var uEe=Object.create;var QF=Object.defineProperty,mEe=Object.defineProperties,pEe=Object.getOwnPropertyDescriptor,hEe=Object.getOwnPropertyDescriptors,fEe=Object.getOwnPropertyNames,XF=Object.getOwnPropertySymbols,Qee=Object.getPrototypeOf,R8=Object.prototype.hasOwnProperty,Zee=Object.prototype.propertyIsEnumerable,gEe=Reflect.get;var F8=(t,n)=>(n=Symbol[t])?n:Symbol.for("Symbol."+t);var Xee=(t,n,e)=>n in t?QF(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,Ve=(t,n)=>{for(var e in n||={})R8.call(n,e)&&Xee(t,e,n[e]);if(XF)for(var e of XF(n))Zee.call(n,e)&&Xee(t,e,n[e]);return t},Gi=(t,n)=>mEe(t,hEe(n));var V_=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(n,e)=>(typeof require<"u"?require:n)[e]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var ZF=(t,n)=>{var e={};for(var i in t)R8.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&XF)for(var i of XF(t))n.indexOf(i)<0&&Zee.call(t,i)&&(e[i]=t[i]);return e};var Sf=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),Jee=(t,n)=>{for(var e in n)QF(t,e,{get:n[e],enumerable:!0})},_Ee=(t,n,e,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of fEe(n))!R8.call(t,r)&&r!==e&&QF(t,r,{get:()=>n[r],enumerable:!(i=pEe(n,r))||i.enumerable});return t};var gc=(t,n,e)=>(e=t!=null?uEe(Qee(t)):{},_Ee(n||!t||!t.__esModule?QF(e,"default",{value:t,enumerable:!0}):e,t));var ete=(t,n,e)=>gEe(Qee(t),e,n);var Mt=(t,n,e)=>new Promise((i,r)=>{var o=l=>{try{s(e.next(l))}catch(u){r(u)}},a=l=>{try{s(e.throw(l))}catch(u){r(u)}},s=l=>l.done?i(l.value):Promise.resolve(l.value).then(o,a);s((e=e.apply(t,n)).next())}),JF=function(t,n){this[0]=t,this[1]=n},P8=(t,n,e)=>{var i=(a,s,l,u)=>{try{var p=e[a](s),g=(s=p.value)instanceof JF,_=p.done;Promise.resolve(g?s[0]:s).then(v=>g?i(a==="return"?a:"next",s[1]?{done:v.done,value:v.value}:v,l,u):l({value:v,done:_})).catch(v=>i("throw",v,l,u))}catch(v){u(v)}},r=a=>o[a]=s=>new Promise((l,u)=>i(a,s,l,u)),o={};return e=e.apply(t,n),o[F8("asyncIterator")]=()=>o,r("next"),r("throw"),r("return"),o};var tte=(t,n,e)=>(n=t[F8("asyncIterator")])?n.call(t):(t=t[F8("iterator")](),n={},e=(i,r)=>(r=t[i])&&(n[i]=o=>new Promise((a,s,l)=>(o=r.call(t,o),l=o.done,Promise.resolve(o.value).then(u=>a({value:u,done:l}),s)))),e("next"),e("return"),n);var yp=Sf((cU,hS)=>{(function(t,n){typeof cU=="object"&&typeof hS<"u"?hS.exports=n():typeof define=="function"&&define.amd?define(n):t.moment=n()})(cU,function(){"use strict";var t;function n(){return t.apply(null,arguments)}function e(T){t=T}function i(T){return T instanceof Array||Object.prototype.toString.call(T)==="[object Array]"}function r(T){return T!=null&&Object.prototype.toString.call(T)==="[object Object]"}function o(T,L){return Object.prototype.hasOwnProperty.call(T,L)}function a(T){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(T).length===0;var L;for(L in T)if(o(T,L))return!1;return!0}function s(T){return T===void 0}function l(T){return typeof T=="number"||Object.prototype.toString.call(T)==="[object Number]"}function u(T){return T instanceof Date||Object.prototype.toString.call(T)==="[object Date]"}function p(T,L){var Z=[],ne,ge=T.length;for(ne=0;ne>>0,ne;for(ne=0;ne0)for(Z=0;Z=0;return(Fe?Z?"+":"":"-")+Math.pow(10,Math.max(0,ge)).toString().substr(1)+ne}var ee=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,me={},ye={};function se(T,L,Z,ne){var ge=ne;typeof ne=="string"&&(ge=function(){return this[ne]()}),T&&(ye[T]=ge),L&&(ye[L[0]]=function(){return z(ge.apply(this,arguments),L[1],L[2])}),Z&&(ye[Z]=function(){return this.localeData().ordinal(ge.apply(this,arguments),T)})}function de(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function Te(T){var L=T.match(ee),Z,ne;for(Z=0,ne=L.length;Z=0&&pe.test(T);)T=T.replace(pe,ne),pe.lastIndex=0,Z-=1;return T}var et={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function It(T){var L=this._longDateFormat[T],Z=this._longDateFormat[T.toUpperCase()];return L||!Z?L:(this._longDateFormat[T]=Z.match(ee).map(function(ne){return ne==="MMMM"||ne==="MM"||ne==="DD"||ne==="dddd"?ne.slice(1):ne}).join(""),this._longDateFormat[T])}var kt="Invalid date";function ii(){return this._invalidDate}var Ri="%d",_i=/\d{1,2}/;function Ht(T){return this._ordinal.replace("%d",T)}var Yi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Dr(T,L,Z,ne){var ge=this._relativeTime[Z];return te(ge)?ge(T,L,Z,ne):ge.replace(/%d/i,T)}function bo(T,L){var Z=this._relativeTime[T>0?"future":"past"];return te(Z)?Z(L):Z.replace(/%s/i,L)}var Qe={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Rt(T){return typeof T=="string"?Qe[T]||Qe[T.toLowerCase()]:void 0}function ui(T){var L={},Z,ne;for(ne in T)o(T,ne)&&(Z=Rt(ne),Z&&(L[Z]=T[ne]));return L}var ei={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Be(T){var L=[],Z;for(Z in T)o(T,Z)&&L.push({unit:Z,priority:ei[Z]});return L.sort(function(ne,ge){return ne.priority-ge.priority}),L}var Je=/\d/,Ke=/\d\d/,nt=/\d{3}/,tt=/\d{4}/,ci=/[+-]?\d{6}/,ai=/\d\d?/,En=/\d\d\d\d?/,on=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,Ni=/\d{1,4}/,$n=/[+-]?\d{1,6}/,sr=/\d+/,qn=/[+-]?\d+/,Xn=/Z|[+-]\d\d:?\d\d/gi,Po=/Z|[+-]\d\d(?::?\d\d)?/gi,zl=/[+-]?\d+(\.\d{1,3})?/,$e=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_t=/^[1-9]\d?/,mi=/^([1-9]\d|\d)/,Zi;Zi={};function wt(T,L,Z){Zi[T]=te(L)?L:function(ne,ge){return ne&&Z?Z:L}}function An(T,L){return o(Zi,T)?Zi[T](L._strict,L._locale):new RegExp($r(T))}function $r(T){return co(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(L,Z,ne,ge,Fe){return Z||ne||ge||Fe}))}function co(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function aa(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function Pi(T){var L=+T,Z=0;return L!==0&&isFinite(L)&&(Z=aa(L)),Z}var dm={};function Br(T,L){var Z,ne=L,ge;for(typeof T=="string"&&(T=[T]),l(L)&&(ne=function(Fe,mt){mt[L]=Pi(Fe)}),ge=T.length,Z=0;Z68?1900:2e3)};var ms=y_("FullYear",!0);function nh(){return uf(this.year())}function y_(T,L){return function(Z){return Z!=null?(TM(this,T,Z),n.updateOffset(this,L),this):mf(this,T)}}function mf(T,L){if(!T.isValid())return NaN;var Z=T._d,ne=T._isUTC;switch(L){case"Milliseconds":return ne?Z.getUTCMilliseconds():Z.getMilliseconds();case"Seconds":return ne?Z.getUTCSeconds():Z.getSeconds();case"Minutes":return ne?Z.getUTCMinutes():Z.getMinutes();case"Hours":return ne?Z.getUTCHours():Z.getHours();case"Date":return ne?Z.getUTCDate():Z.getDate();case"Day":return ne?Z.getUTCDay():Z.getDay();case"Month":return ne?Z.getUTCMonth():Z.getMonth();case"FullYear":return ne?Z.getUTCFullYear():Z.getFullYear();default:return NaN}}function TM(T,L,Z){var ne,ge,Fe,mt,Ki;if(!(!T.isValid()||isNaN(Z))){switch(ne=T._d,ge=T._isUTC,L){case"Milliseconds":return void(ge?ne.setUTCMilliseconds(Z):ne.setMilliseconds(Z));case"Seconds":return void(ge?ne.setUTCSeconds(Z):ne.setSeconds(Z));case"Minutes":return void(ge?ne.setUTCMinutes(Z):ne.setMinutes(Z));case"Hours":return void(ge?ne.setUTCHours(Z):ne.setHours(Z));case"Date":return void(ge?ne.setUTCDate(Z):ne.setDate(Z));case"FullYear":break;default:return}Fe=Z,mt=T.month(),Ki=T.date(),Ki=Ki===29&&mt===1&&!uf(Fe)?28:Ki,ge?ne.setUTCFullYear(Fe,mt,Ki):ne.setFullYear(Fe,mt,Ki)}}function nC(T){return T=Rt(T),te(this[T])?this[T]():this}function I6(T,L){if(typeof T=="object"){T=ui(T);var Z=Be(T),ne,ge=Z.length;for(ne=0;ne=0?(Ki=new Date(T+400,L,Z,ne,ge,Fe,mt),isFinite(Ki.getFullYear())&&Ki.setFullYear(T)):Ki=new Date(T,L,Z,ne,ge,Fe,mt),Ki}function x_(T){var L,Z;return T<100&&T>=0?(Z=Array.prototype.slice.call(arguments),Z[0]=T+400,L=new Date(Date.UTC.apply(null,Z)),isFinite(L.getUTCFullYear())&&L.setUTCFullYear(T)):L=new Date(Date.UTC.apply(null,arguments)),L}function C_(T,L,Z){var ne=7+L-Z,ge=(7+x_(T,0,ne).getUTCDay()-L)%7;return-ge+ne-1}function BM(T,L,Z,ne,ge){var Fe=(7+Z-ne)%7,mt=C_(T,ne,ge),Ki=1+7*(L-1)+Fe+mt,Qn,Hr;return Ki<=0?(Qn=T-1,Hr=ih(Qn)+Ki):Ki>ih(T)?(Qn=T+1,Hr=Ki-ih(T)):(Qn=T,Hr=Ki),{year:Qn,dayOfYear:Hr}}function S_(T,L,Z){var ne=C_(T.year(),L,Z),ge=Math.floor((T.dayOfYear()-ne-1)/7)+1,Fe,mt;return ge<1?(mt=T.year()-1,Fe=ge+um(mt,L,Z)):ge>um(T.year(),L,Z)?(Fe=ge-um(T.year(),L,Z),mt=T.year()+1):(mt=T.year(),Fe=ge),{week:Fe,year:mt}}function um(T,L,Z){var ne=C_(T,L,Z),ge=C_(T+1,L,Z);return(ih(T)-ne+ge)/7}se("w",["ww",2],"wo","week"),se("W",["WW",2],"Wo","isoWeek"),wt("w",ai,_t),wt("ww",ai,Ke),wt("W",ai,_t),wt("WW",ai,Ke),wd(["w","ww","W","WW"],function(T,L,Z,ne){L[ne.substr(0,1)]=Pi(T)});function VI(T){return S_(T,this._week.dow,this._week.doy).week}var w_={dow:0,doy:6};function jM(){return this._week.dow}function HM(){return this._week.doy}function M6(T){var L=this.localeData().week(this);return T==null?L:this.add((T-L)*7,"d")}function zM(T){var L=S_(this,1,4).week;return T==null?L:this.add((T-L)*7,"d")}se("d",0,"do","day"),se("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),se("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),se("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),se("e",0,0,"weekday"),se("E",0,0,"isoWeekday"),wt("d",ai),wt("e",ai),wt("E",ai),wt("dd",function(T,L){return L.weekdaysMinRegex(T)}),wt("ddd",function(T,L){return L.weekdaysShortRegex(T)}),wt("dddd",function(T,L){return L.weekdaysRegex(T)}),wd(["dd","ddd","dddd"],function(T,L,Z,ne){var ge=Z._locale.weekdaysParse(T,ne,Z._strict);ge!=null?L.d=ge:y(Z).invalidWeekday=T}),wd(["d","e","E"],function(T,L,Z,ne){L[ne]=Pi(T)});function UM(T,L){return typeof T!="string"?T:isNaN(T)?(T=L.weekdaysParse(T),typeof T=="number"?T:null):parseInt(T,10)}function GM(T,L){return typeof T=="string"?L.weekdaysParse(T)%7||7:isNaN(T)?null:T}function sC(T,L){return T.slice(L,7).concat(T.slice(0,L))}var F6="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$M="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),R6="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qM=$e,P6=$e,N6=$e;function O6(T,L){var Z=i(this._weekdays)?this._weekdays:this._weekdays[T&&T!==!0&&this._weekdays.isFormat.test(L)?"format":"standalone"];return T===!0?sC(Z,this._week.dow):T?Z[T.day()]:Z}function L6(T){return T===!0?sC(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort}function BI(T){return T===!0?sC(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin}function V6(T,L,Z){var ne,ge,Fe,mt=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ne=0;ne<7;++ne)Fe=_([2e3,1]).day(ne),this._minWeekdaysParse[ne]=this.weekdaysMin(Fe,"").toLocaleLowerCase(),this._shortWeekdaysParse[ne]=this.weekdaysShort(Fe,"").toLocaleLowerCase(),this._weekdaysParse[ne]=this.weekdays(Fe,"").toLocaleLowerCase();return Z?L==="dddd"?(ge=Qa.call(this._weekdaysParse,mt),ge!==-1?ge:null):L==="ddd"?(ge=Qa.call(this._shortWeekdaysParse,mt),ge!==-1?ge:null):(ge=Qa.call(this._minWeekdaysParse,mt),ge!==-1?ge:null):L==="dddd"?(ge=Qa.call(this._weekdaysParse,mt),ge!==-1||(ge=Qa.call(this._shortWeekdaysParse,mt),ge!==-1)?ge:(ge=Qa.call(this._minWeekdaysParse,mt),ge!==-1?ge:null)):L==="ddd"?(ge=Qa.call(this._shortWeekdaysParse,mt),ge!==-1||(ge=Qa.call(this._weekdaysParse,mt),ge!==-1)?ge:(ge=Qa.call(this._minWeekdaysParse,mt),ge!==-1?ge:null)):(ge=Qa.call(this._minWeekdaysParse,mt),ge!==-1||(ge=Qa.call(this._weekdaysParse,mt),ge!==-1)?ge:(ge=Qa.call(this._shortWeekdaysParse,mt),ge!==-1?ge:null))}function B6(T,L,Z){var ne,ge,Fe;if(this._weekdaysParseExact)return V6.call(this,T,L,Z);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ne=0;ne<7;ne++){if(ge=_([2e3,1]).day(ne),Z&&!this._fullWeekdaysParse[ne]&&(this._fullWeekdaysParse[ne]=new RegExp("^"+this.weekdays(ge,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ne]=new RegExp("^"+this.weekdaysShort(ge,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ne]=new RegExp("^"+this.weekdaysMin(ge,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ne]||(Fe="^"+this.weekdays(ge,"")+"|^"+this.weekdaysShort(ge,"")+"|^"+this.weekdaysMin(ge,""),this._weekdaysParse[ne]=new RegExp(Fe.replace(".",""),"i")),Z&&L==="dddd"&&this._fullWeekdaysParse[ne].test(T))return ne;if(Z&&L==="ddd"&&this._shortWeekdaysParse[ne].test(T))return ne;if(Z&&L==="dd"&&this._minWeekdaysParse[ne].test(T))return ne;if(!Z&&this._weekdaysParse[ne].test(T))return ne}}function j6(T){if(!this.isValid())return T!=null?this:NaN;var L=mf(this,"Day");return T!=null?(T=UM(T,this.localeData()),this.add(T-L,"d")):L}function H6(T){if(!this.isValid())return T!=null?this:NaN;var L=(this.day()+7-this.localeData()._week.dow)%7;return T==null?L:this.add(T-L,"d")}function z6(T){if(!this.isValid())return T!=null?this:NaN;if(T!=null){var L=GM(T,this.localeData());return this.day(this.day()%7?L:L-7)}else return this.day()||7}function fa(T){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||jI.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=qM),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)}function ca(T){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||jI.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=P6),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function U6(T){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||jI.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=N6),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function jI(){function T(fc,cp){return cp.length-fc.length}var L=[],Z=[],ne=[],ge=[],Fe,mt,Ki,Qn,Hr;for(Fe=0;Fe<7;Fe++)mt=_([2e3,1]).day(Fe),Ki=co(this.weekdaysMin(mt,"")),Qn=co(this.weekdaysShort(mt,"")),Hr=co(this.weekdays(mt,"")),L.push(Ki),Z.push(Qn),ne.push(Hr),ge.push(Ki),ge.push(Qn),ge.push(Hr);L.sort(T),Z.sort(T),ne.sort(T),ge.sort(T),this._weekdaysRegex=new RegExp("^("+ge.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ne.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Z.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+L.join("|")+")","i")}function HI(){return this.hours()%12||12}function G6(){return this.hours()||24}se("H",["HH",2],0,"hour"),se("h",["hh",2],0,HI),se("k",["kk",2],0,G6),se("hmm",0,0,function(){return""+HI.apply(this)+z(this.minutes(),2)}),se("hmmss",0,0,function(){return""+HI.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),se("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),se("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)});function WM(T,L){se(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),L)})}WM("a",!0),WM("A",!1);function YM(T,L){return L._meridiemParse}wt("a",YM),wt("A",YM),wt("H",ai,mi),wt("h",ai,_t),wt("k",ai,_t),wt("HH",ai,Ke),wt("hh",ai,Ke),wt("kk",ai,Ke),wt("hmm",En),wt("hmmss",on),wt("Hmm",En),wt("Hmmss",on),Br(["H","HH"],Ga),Br(["k","kk"],function(T,L,Z){var ne=Pi(T);L[Ga]=ne===24?0:ne}),Br(["a","A"],function(T,L,Z){Z._isPm=Z._locale.isPM(T),Z._meridiem=T}),Br(["h","hh"],function(T,L,Z){L[Ga]=Pi(T),y(Z).bigHour=!0}),Br("hmm",function(T,L,Z){var ne=T.length-2;L[Ga]=Pi(T.substr(0,ne)),L[Ul]=Pi(T.substr(ne)),y(Z).bigHour=!0}),Br("hmmss",function(T,L,Z){var ne=T.length-4,ge=T.length-2;L[Ga]=Pi(T.substr(0,ne)),L[Ul]=Pi(T.substr(ne,2)),L[Vc]=Pi(T.substr(ge)),y(Z).bigHour=!0}),Br("Hmm",function(T,L,Z){var ne=T.length-2;L[Ga]=Pi(T.substr(0,ne)),L[Ul]=Pi(T.substr(ne))}),Br("Hmmss",function(T,L,Z){var ne=T.length-4,ge=T.length-2;L[Ga]=Pi(T.substr(0,ne)),L[Ul]=Pi(T.substr(ne,2)),L[Vc]=Pi(T.substr(ge))});function KM(T){return(T+"").toLowerCase().charAt(0)==="p"}var $6=/[ap]\.?m?\.?/i,tl=y_("Hours",!0);function zI(T,L,Z){return T>11?Z?"pm":"PM":Z?"am":"AM"}var pf={calendar:G,longDateFormat:et,invalidDate:kt,ordinal:Ri,dayOfMonthOrdinalParse:_i,relativeTime:Yi,months:AM,monthsShort:LI,week:w_,weekdays:F6,weekdaysMin:R6,weekdaysShort:$M,meridiemParse:$6},_a={},Mg={},Gl;function XM(T,L){var Z,ne=Math.min(T.length,L.length);for(Z=0;Z0;){if(ge=sy(Fe.slice(0,Z).join("-")),ge)return ge;if(ne&&ne.length>=Z&&XM(Fe,ne)>=Z-1)break;Z--}L++}return Gl}function ZM(T){return!!(T&&T.match("^[^/\\\\]*$"))}function sy(T){var L=null,Z;if(_a[T]===void 0&&typeof hS<"u"&&hS&&hS.exports&&ZM(T))try{L=Gl._abbr,Z=V_,Z("./locale/"+T),rh(L)}catch{_a[T]=null}return _a[T]}function rh(T,L){var Z;return T&&(s(L)?Z=ps(T):Z=pc(T,L),Z?Gl=Z:typeof console<"u"&&console.warn&&console.warn("Locale "+T+" not found. Did you forget to load it?")),Gl._abbr}function pc(T,L){if(L!==null){var Z,ne=pf;if(L.abbr=T,_a[T]!=null)Q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ne=_a[T]._config;else if(L.parentLocale!=null)if(_a[L.parentLocale]!=null)ne=_a[L.parentLocale]._config;else if(Z=sy(L.parentLocale),Z!=null)ne=Z._config;else return Mg[L.parentLocale]||(Mg[L.parentLocale]=[]),Mg[L.parentLocale].push({name:T,config:L}),null;return _a[T]=new B(O(ne,L)),Mg[T]&&Mg[T].forEach(function(ge){pc(ge.name,ge.config)}),rh(T),_a[T]}else return delete _a[T],null}function q6(T,L){if(L!=null){var Z,ne,ge=pf;_a[T]!=null&&_a[T].parentLocale!=null?_a[T].set(O(_a[T]._config,L)):(ne=sy(T),ne!=null&&(ge=ne._config),L=O(ge,L),ne==null&&(L.abbr=T),Z=new B(L),Z.parentLocale=_a[T],_a[T]=Z),rh(T)}else _a[T]!=null&&(_a[T].parentLocale!=null?(_a[T]=_a[T].parentLocale,T===rh()&&rh(T)):_a[T]!=null&&delete _a[T]);return _a[T]}function ps(T){var L;if(T&&T._locale&&T._locale._abbr&&(T=T._locale._abbr),!T)return Gl;if(!i(T)){if(L=sy(T),L)return L;T=[T]}return QM(T)}function W6(){return q(_a)}function lC(T){var L,Z=T._a;return Z&&y(T).overflow===-2&&(L=Z[mu]<0||Z[mu]>11?mu:Z[pu]<1||Z[pu]>rC(Z[Aa],Z[mu])?pu:Z[Ga]<0||Z[Ga]>24||Z[Ga]===24&&(Z[Ul]!==0||Z[Vc]!==0||Z[Bc]!==0)?Ga:Z[Ul]<0||Z[Ul]>59?Ul:Z[Vc]<0||Z[Vc]>59?Vc:Z[Bc]<0||Z[Bc]>999?Bc:-1,y(T)._overflowDayOfYear&&(Lpu)&&(L=pu),y(T)._overflowWeeks&&L===-1&&(L=OI),y(T)._overflowWeekday&&L===-1&&(L=ay),y(T).overflow=L),T}var hf=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cC=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,GI=/Z|[+-]\d\d(?::?\d\d)?/,sa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],np=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$I=/^\/?Date\((-?\d+)/i,Y6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qI={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function JM(T){var L,Z,ne=T._i,ge=hf.exec(ne)||cC.exec(ne),Fe,mt,Ki,Qn,Hr=sa.length,fc=np.length;if(ge){for(y(T).iso=!0,L=0,Z=Hr;Lih(mt)||T._dayOfYear===0)&&(y(T)._overflowDayOfYear=!0),Z=x_(mt,0,T._dayOfYear),T._a[mu]=Z.getUTCMonth(),T._a[pu]=Z.getUTCDate()),L=0;L<3&&T._a[L]==null;++L)T._a[L]=ne[L]=ge[L];for(;L<7;L++)T._a[L]=ne[L]=T._a[L]==null?L===2?1:0:T._a[L];T._a[Ga]===24&&T._a[Ul]===0&&T._a[Vc]===0&&T._a[Bc]===0&&(T._nextDay=!0,T._a[Ga]=0),T._d=(T._useUTC?x_:VM).apply(null,ne),Fe=T._useUTC?T._d.getUTCDay():T._d.getDay(),T._tzm!=null&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[Ga]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==Fe&&(y(T).weekdayMismatch=!0)}}function nF(T){var L,Z,ne,ge,Fe,mt,Ki,Qn,Hr;L=T._w,L.GG!=null||L.W!=null||L.E!=null?(Fe=1,mt=4,Z=Fg(L.GG,T._a[Aa],S_(da(),1,4).year),ne=Fg(L.W,1),ge=Fg(L.E,1),(ge<1||ge>7)&&(Qn=!0)):(Fe=T._locale._week.dow,mt=T._locale._week.doy,Hr=S_(da(),Fe,mt),Z=Fg(L.gg,T._a[Aa],Hr.year),ne=Fg(L.w,Hr.week),L.d!=null?(ge=L.d,(ge<0||ge>6)&&(Qn=!0)):L.e!=null?(ge=L.e+Fe,(L.e<0||L.e>6)&&(Qn=!0)):ge=Fe),ne<1||ne>um(Z,Fe,mt)?y(T)._overflowWeeks=!0:Qn!=null?y(T)._overflowWeekday=!0:(Ki=BM(Z,ne,ge,Fe,mt),T._a[Aa]=Ki.year,T._dayOfYear=Ki.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function YI(T){if(T._f===n.ISO_8601){JM(T);return}if(T._f===n.RFC_2822){tF(T);return}T._a=[],y(T).empty=!0;var L=""+T._i,Z,ne,ge,Fe,mt,Ki=L.length,Qn=0,Hr,fc;for(ge=Re(T._f,T._locale).match(ee)||[],fc=ge.length,Z=0;Z0&&y(T).unusedInput.push(mt),L=L.slice(L.indexOf(ne)+ne.length),Qn+=ne.length),ye[Fe]?(ne?y(T).empty=!1:y(T).unusedTokens.push(Fe),th(Fe,ne,T)):T._strict&&!ne&&y(T).unusedTokens.push(Fe);y(T).charsLeftOver=Ki-Qn,L.length>0&&y(T).unusedInput.push(L),T._a[Ga]<=12&&y(T).bigHour===!0&&T._a[Ga]>0&&(y(T).bigHour=void 0),y(T).parsedDateParts=T._a.slice(0),y(T).meridiem=T._meridiem,T._a[Ga]=KI(T._locale,T._a[Ga],T._meridiem),Hr=y(T).era,Hr!==null&&(T._a[Aa]=T._locale.erasConvertYear(Hr,T._a[Aa])),ly(T),lC(T)}function KI(T,L,Z){var ne;return Z==null?L:T.meridiemHour!=null?T.meridiemHour(L,Z):(T.isPM!=null&&(ne=T.isPM(Z),ne&&L<12&&(L+=12),!ne&&L===12&&(L=0)),L)}function XI(T){var L,Z,ne,ge,Fe,mt,Ki=!1,Qn=T._f.length;if(Qn===0){y(T).invalidFormat=!0,T._d=new Date(NaN);return}for(ge=0;gethis?this:T:C()});function aF(T,L){var Z,ne;if(L.length===1&&i(L[0])&&(L=L[0]),!L.length)return da();for(Z=L[0],ne=1;nethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ct(){if(!s(this._isDSTShifted))return this._isDSTShifted;var T={},L;return M(T,this),T=jc(T),T._a?(L=T._isUTC?_(T._a):da(T._a),this._isDSTShifted=this.isValid()&&rj(T._a,L.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function rt(){return this.isValid()?!this._isUTC:!1}function Xi(){return this.isValid()?this._isUTC:!1}function lr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var No=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qr(T,L){var Z=T,ne=null,ge,Fe,mt;return mm(T)?Z={ms:T._milliseconds,d:T._days,M:T._months}:l(T)||!isNaN(+T)?(Z={},L?Z[L]=+T:Z.milliseconds=+T):(ne=No.exec(T))?(ge=ne[1]==="-"?-1:1,Z={y:0,d:Pi(ne[pu])*ge,h:Pi(ne[Ga])*ge,m:Pi(ne[Ul])*ge,s:Pi(ne[Vc])*ge,ms:Pi(D_(ne[Bc]*1e3))*ge}):(ne=Rs.exec(T))?(ge=ne[1]==="-"?-1:1,Z={y:oh(ne[2],ge),M:oh(ne[3],ge),w:oh(ne[4],ge),d:oh(ne[5],ge),h:oh(ne[6],ge),m:oh(ne[7],ge),s:oh(ne[8],ge)}):Z==null?Z={}:typeof Z=="object"&&("from"in Z||"to"in Z)&&(mt=hu(da(Z.from),da(Z.to)),Z={},Z.ms=mt.milliseconds,Z.M=mt.months),Fe=new cy(Z),mm(T)&&o(T,"_locale")&&(Fe._locale=T._locale),mm(T)&&o(T,"_isValid")&&(Fe._isValid=T._isValid),Fe}qr.fn=cy.prototype,qr.invalid=ZI;function oh(T,L){var Z=T&&parseFloat(T.replace(",","."));return(isNaN(Z)?0:Z)*L}function lF(T,L){var Z={};return Z.months=L.month()-T.month()+(L.year()-T.year())*12,T.clone().add(Z.months,"M").isAfter(L)&&--Z.months,Z.milliseconds=+L-+T.clone().add(Z.months,"M"),Z}function hu(T,L){var Z;return T.isValid()&&L.isValid()?(L=Ed(L,T),T.isBefore(L)?Z=lF(T,L):(Z=lF(L,T),Z.milliseconds=-Z.milliseconds,Z.months=-Z.months),Z):{milliseconds:0,months:0}}function dy(T,L){return function(Z,ne){var ge,Fe;return ne!==null&&!isNaN(+ne)&&(Q(L,"moment()."+L+"(period, number) is deprecated. Please use moment()."+L+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Fe=Z,Z=ne,ne=Fe),ge=qr(Z,ne),cF(this,ge,T),this}}function cF(T,L,Z,ne){var ge=L._milliseconds,Fe=D_(L._days),mt=D_(L._months);T.isValid()&&(ne=ne??!0,mt&&oC(T,mf(T,"Month")+mt*Z),Fe&&TM(T,"Date",mf(T,"Date")+Fe*Z),ge&&T._d.setTime(T._d.valueOf()+ge*Z),ne&&n.updateOffset(T,Fe||mt))}var T_=dy(1,"add"),mC=dy(-1,"subtract");function uy(T){return typeof T=="string"||T instanceof String}function Go(T){return j(T)||u(T)||uy(T)||l(T)||dF(T)||uj(T)||T===null||T===void 0}function uj(T){var L=r(T)&&!a(T),Z=!1,ne=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ge,Fe,mt=ne.length;for(ge=0;geZ.valueOf():Z.valueOf()9999?Ie(Z,L?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):te(Date.prototype.toISOString)?L?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ie(Z,"Z")):Ie(Z,L?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Pg(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var T="moment",L="",Z,ne,ge,Fe;return this.isLocal()||(T=this.utcOffset()===0?"moment.utc":"moment.parseZone",L="Z"),Z="["+T+'("]',ne=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ge="-MM-DD[T]HH:mm:ss.SSS",Fe=L+'[")]',this.format(Z+ne+ge+Fe)}function _C(T){T||(T=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var L=Ie(this,T);return this.localeData().postformat(L)}function fj(T,L){return this.isValid()&&(j(T)&&T.isValid()||da(T).isValid())?qr({to:this,from:T}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function gj(T){return this.from(da(),T)}function _j(T,L){return this.isValid()&&(j(T)&&T.isValid()||da(T).isValid())?qr({from:this,to:T}).locale(this.locale()).humanize(!L):this.localeData().invalidDate()}function vC(T){return this.to(da(),T)}function py(T){var L;return T===void 0?this._locale._abbr:(L=ps(T),L!=null&&(this._locale=L),this)}var bC=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(T){return T===void 0?this.localeData():this.locale(T)});function fF(){return this._locale}var hy=1e3,A_=60*hy,yC=60*A_,hs=(365*400+97)*24*yC;function Za(T,L){return(T%L+L)%L}function gF(T,L,Z){return T<100&&T>=0?new Date(T+400,L,Z)-hs:new Date(T,L,Z).valueOf()}function _F(T,L,Z){return T<100&&T>=0?Date.UTC(T+400,L,Z)-hs:Date.UTC(T,L,Z)}function vF(T){var L,Z;if(T=Rt(T),T===void 0||T==="millisecond"||!this.isValid())return this;switch(Z=this._isUTC?_F:gF,T){case"year":L=Z(this.year(),0,1);break;case"quarter":L=Z(this.year(),this.month()-this.month()%3,1);break;case"month":L=Z(this.year(),this.month(),1);break;case"week":L=Z(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":L=Z(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":L=Z(this.year(),this.month(),this.date());break;case"hour":L=this._d.valueOf(),L-=Za(L+(this._isUTC?0:this.utcOffset()*A_),yC);break;case"minute":L=this._d.valueOf(),L-=Za(L,A_);break;case"second":L=this._d.valueOf(),L-=Za(L,hy);break}return this._d.setTime(L),n.updateOffset(this,!0),this}function vj(T){var L,Z;if(T=Rt(T),T===void 0||T==="millisecond"||!this.isValid())return this;switch(Z=this._isUTC?_F:gF,T){case"year":L=Z(this.year()+1,0,1)-1;break;case"quarter":L=Z(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":L=Z(this.year(),this.month()+1,1)-1;break;case"week":L=Z(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":L=Z(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":L=Z(this.year(),this.month(),this.date()+1)-1;break;case"hour":L=this._d.valueOf(),L+=yC-Za(L+(this._isUTC?0:this.utcOffset()*A_),yC)-1;break;case"minute":L=this._d.valueOf(),L+=A_-Za(L,A_)-1;break;case"second":L=this._d.valueOf(),L+=hy-Za(L,hy)-1;break}return this._d.setTime(L),n.updateOffset(this,!0),this}function JI(){return this._d.valueOf()-(this._offset||0)*6e4}function fy(){return Math.floor(this.valueOf()/1e3)}function eD(){return new Date(this.valueOf())}function k_(){var T=this;return[T.year(),T.month(),T.date(),T.hour(),T.minute(),T.second(),T.millisecond()]}function gy(){var T=this;return{years:T.year(),months:T.month(),date:T.date(),hours:T.hours(),minutes:T.minutes(),seconds:T.seconds(),milliseconds:T.milliseconds()}}function _y(){return this.isValid()?this.toISOString():null}function xC(){return I(this)}function M_(){return g({},y(this))}function bj(){return y(this).overflow}function yj(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}se("N",0,0,"eraAbbr"),se("NN",0,0,"eraAbbr"),se("NNN",0,0,"eraAbbr"),se("NNNN",0,0,"eraName"),se("NNNNN",0,0,"eraNarrow"),se("y",["y",1],"yo","eraYear"),se("y",["yy",2],0,"eraYear"),se("y",["yyy",3],0,"eraYear"),se("y",["yyyy",4],0,"eraYear"),wt("N",jr),wt("NN",jr),wt("NNN",jr),wt("NNNN",wj),wt("NNNNN",Ej),Br(["N","NN","NNN","NNNN","NNNNN"],function(T,L,Z,ne){var ge=Z._locale.erasParse(T,ne,Z._strict);ge?y(Z).era=ge:y(Z).invalidEra=T}),wt("y",sr),wt("yy",sr),wt("yyy",sr),wt("yyyy",sr),wt("yo",Ij),Br(["y","yy","yyy","yyyy"],Aa),Br(["yo"],function(T,L,Z,ne){var ge;Z._locale._eraYearOrdinalRegex&&(ge=T.match(Z._locale._eraYearOrdinalRegex)),Z._locale.eraYearOrdinalParse?L[Aa]=Z._locale.eraYearOrdinalParse(T,ge):L[Aa]=parseInt(T,10)});function xj(T,L){var Z,ne,ge,Fe=this._eras||ps("en")._eras;for(Z=0,ne=Fe.length;Z=0)return Fe[ne]}function Sj(T,L){var Z=T.since<=T.until?1:-1;return L===void 0?n(T.since).year():n(T.since).year()+(L-T.offset)*Z}function CC(){var T,L,Z,ne=this.localeData().eras();for(T=0,L=ne.length;TFe&&(L=Fe),Fj.call(this,T,L,Z,ne,ge))}function Fj(T,L,Z,ne,ge){var Fe=BM(T,L,Z,ne,ge),mt=x_(Fe.year,0,Fe.dayOfYear);return this.year(mt.getUTCFullYear()),this.month(mt.getUTCMonth()),this.date(mt.getUTCDate()),this}se("Q",0,"Qo","quarter"),wt("Q",Je),Br("Q",function(T,L){L[mu]=(Pi(T)-1)*3});function Rj(T){return T==null?Math.ceil((this.month()+1)/3):this.month((T-1)*3+this.month()%3)}se("D",["DD",2],"Do","date"),wt("D",ai,_t),wt("DD",ai,Ke),wt("Do",function(T,L){return T?L._dayOfMonthOrdinalParse||L._ordinalParse:L._dayOfMonthOrdinalParseLenient}),Br(["D","DD"],pu),Br("Do",function(T,L){L[pu]=Pi(T.match(ai)[0])});var xF=y_("Date",!0);se("DDD",["DDDD",3],"DDDo","dayOfYear"),wt("DDD",ut),wt("DDDD",nt),Br(["DDD","DDDD"],function(T,L,Z){Z._dayOfYear=Pi(T)});function lh(T){var L=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return T==null?L:this.add(T-L,"d")}se("m",["mm",2],0,"minute"),wt("m",ai,mi),wt("mm",ai,Ke),Br(["m","mm"],Ul);var Pj=y_("Minutes",!1);se("s",["ss",2],0,"second"),wt("s",ai,mi),wt("ss",ai,Ke),Br(["s","ss"],Vc);var Nj=y_("Seconds",!1);se("S",0,0,function(){return~~(this.millisecond()/100)}),se(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),se(0,["SSS",3],0,"millisecond"),se(0,["SSSS",4],0,function(){return this.millisecond()*10}),se(0,["SSSSS",5],0,function(){return this.millisecond()*100}),se(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),se(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),se(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),se(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),wt("S",ut,Je),wt("SS",ut,Ke),wt("SSS",ut,nt);var vf,CF;for(vf="SSSS";vf.length<=9;vf+="S")wt(vf,sr);function Oj(T,L){L[Bc]=Pi(("0."+T)*1e3)}for(vf="S";vf.length<=9;vf+="S")Br(vf,Oj);CF=y_("Milliseconds",!1),se("z",0,0,"zoneAbbr"),se("zz",0,0,"zoneName");function Ng(){return this._isUTC?"UTC":""}function Lj(){return this._isUTC?"Coordinated Universal Time":""}var si=R.prototype;si.add=T_,si.calendar=pj,si.clone=hj,si.diff=pF,si.endOf=vj,si.format=_C,si.from=fj,si.fromNow=gj,si.to=_j,si.toNow=vC,si.get=nC,si.invalidAt=bj,si.isAfter=hC,si.isBefore=_f,si.isBetween=fC,si.isSame=uF,si.isSameOrAfter=gC,si.isSameOrBefore=mF,si.isValid=xC,si.lang=bC,si.locale=py,si.localeData=fF,si.max=Z6,si.min=oF,si.parsingFlags=M_,si.set=I6,si.startOf=vF,si.subtract=mC,si.toArray=k_,si.toObject=gy,si.toDate=eD,si.toISOString=my,si.inspect=Pg,typeof Symbol<"u"&&Symbol.for!=null&&(si[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),si.toJSON=_y,si.toString=hF,si.unix=fy,si.valueOf=JI,si.creationData=yj,si.eraName=CC,si.eraNarrow=vy,si.eraAbbr=bF,si.eraYear=_e,si.year=ms,si.isLeapYear=nh,si.weekYear=Dj,si.isoWeekYear=Tj,si.quarter=si.quarters=Rj,si.month=PM,si.daysInMonth=NM,si.week=si.weeks=M6,si.isoWeek=si.isoWeeks=zM,si.weeksInYear=sh,si.weeksInWeekYear=Mj,si.isoWeeksInYear=Aj,si.isoWeeksInISOWeekYear=kj,si.date=xF,si.day=si.days=j6,si.weekday=H6,si.isoWeekday=z6,si.dayOfYear=lh,si.hour=si.hours=tl,si.minute=si.minutes=Pj,si.second=si.seconds=Nj,si.millisecond=si.milliseconds=CF,si.utcOffset=aj,si.utc=lj,si.local=cj,si.parseZone=dj,si.hasAlignedHourOffset=gf,si.isDST=Ge,si.isLocal=rt,si.isUtcOffset=Xi,si.isUtc=lr,si.isUTC=lr,si.zoneAbbr=Ng,si.zoneName=Lj,si.dates=F("dates accessor is deprecated. Use date instead.",xF),si.months=F("months accessor is deprecated. Use month instead",PM),si.years=F("years accessor is deprecated. Use year instead",ms),si.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",sj),si.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ct);function pm(T){return da(T*1e3)}function Vj(){return da.apply(null,arguments).parseZone()}function SF(T){return T}var Io=B.prototype;Io.calendar=X,Io.longDateFormat=It,Io.invalidDate=ii,Io.ordinal=Ht,Io.preparse=SF,Io.postformat=SF,Io.relativeTime=Dr,Io.pastFuture=bo,Io.set=re,Io.eras=xj,Io.erasParse=Cj,Io.erasConvertYear=Sj,Io.erasAbbrRegex=SC,Io.erasNameRegex=F_,Io.erasNarrowRegex=fu,Io.months=k6,Io.monthsShort=MM,Io.monthsParse=RM,Io.monthsRegex=OM,Io.monthsShortRegex=aC,Io.week=VI,Io.firstDayOfYear=HM,Io.firstDayOfWeek=jM,Io.weekdays=O6,Io.weekdaysMin=BI,Io.weekdaysShort=L6,Io.weekdaysParse=B6,Io.weekdaysRegex=fa,Io.weekdaysShortRegex=ca,Io.weekdaysMinRegex=U6,Io.isPM=KM,Io.meridiem=zI;function EC(T,L,Z,ne){var ge=ps(),Fe=_().set(ne,L);return ge[Z](Fe,T)}function wF(T,L,Z){if(l(T)&&(L=T,T=void 0),T=T||"",L!=null)return EC(T,L,Z,"month");var ne,ge=[];for(ne=0;ne<12;ne++)ge[ne]=EC(T,ne,Z,"month");return ge}function IC(T,L,Z,ne){typeof T=="boolean"?(l(L)&&(Z=L,L=void 0),L=L||""):(L=T,Z=L,T=!1,l(L)&&(Z=L,L=void 0),L=L||"");var ge=ps(),Fe=T?ge._week.dow:0,mt,Ki=[];if(Z!=null)return EC(L,(Z+Fe)%7,ne,"day");for(mt=0;mt<7;mt++)Ki[mt]=EC(L,(mt+Fe)%7,ne,"day");return Ki}function EF(T,L){return wF(T,L,"months")}function Bj(T,L){return wF(T,L,"monthsShort")}function jj(T,L,Z){return IC(T,L,Z,"weekdays")}function tD(T,L,Z){return IC(T,L,Z,"weekdaysShort")}function by(T,L,Z){return IC(T,L,Z,"weekdaysMin")}rh("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var L=T%10,Z=Pi(T%100/10)===1?"th":L===1?"st":L===2?"nd":L===3?"rd":"th";return T+Z}}),n.lang=F("moment.lang is deprecated. Use moment.locale instead.",rh),n.langData=F("moment.langData is deprecated. Use moment.localeData instead.",ps);var gu=Math.abs;function Hj(){var T=this._data;return this._milliseconds=gu(this._milliseconds),this._days=gu(this._days),this._months=gu(this._months),T.milliseconds=gu(T.milliseconds),T.seconds=gu(T.seconds),T.minutes=gu(T.minutes),T.hours=gu(T.hours),T.months=gu(T.months),T.years=gu(T.years),this}function iD(T,L,Z,ne){var ge=qr(L,Z);return T._milliseconds+=ne*ge._milliseconds,T._days+=ne*ge._days,T._months+=ne*ge._months,T._bubble()}function zj(T,L){return iD(this,T,L,1)}function ch(T,L){return iD(this,T,L,-1)}function DC(T){return T<0?Math.floor(T):Math.ceil(T)}function Og(){var T=this._milliseconds,L=this._days,Z=this._months,ne=this._data,ge,Fe,mt,Ki,Qn;return T>=0&&L>=0&&Z>=0||T<=0&&L<=0&&Z<=0||(T+=DC(nD(Z)+L)*864e5,L=0,Z=0),ne.milliseconds=T%1e3,ge=aa(T/1e3),ne.seconds=ge%60,Fe=aa(ge/60),ne.minutes=Fe%60,mt=aa(Fe/60),ne.hours=mt%24,L+=aa(mt/24),Qn=aa(Id(L)),Z+=Qn,L-=DC(nD(Qn)),Ki=aa(Z/12),Z%=12,ne.days=L,ne.months=Z,ne.years=Ki,this}function Id(T){return T*4800/146097}function nD(T){return T*146097/4800}function IF(T){if(!this.isValid())return NaN;var L,Z,ne=this._milliseconds;if(T=Rt(T),T==="month"||T==="quarter"||T==="year")switch(L=this._days+ne/864e5,Z=this._months+Id(L),T){case"month":return Z;case"quarter":return Z/3;case"year":return Z/12}else switch(L=this._days+Math.round(nD(this._months)),T){case"week":return L/7+ne/6048e5;case"day":return L+ne/864e5;case"hour":return L*24+ne/36e5;case"minute":return L*1440+ne/6e4;case"second":return L*86400+ne/1e3;case"millisecond":return Math.floor(L*864e5)+ne;default:throw new Error("Unknown unit "+T)}}function op(T){return function(){return this.as(T)}}var R_=op("ms"),bf=op("s"),DF=op("m"),Uj=op("h"),TC=op("d"),Gj=op("w"),TF=op("M"),Cl=op("Q"),rD=op("y"),AF=R_;function ap(){return qr(this)}function oD(T){return T=Rt(T),this.isValid()?this[T+"s"]():NaN}function sp(T){return function(){return this.isValid()?this._data[T]:NaN}}var Lg=sp("milliseconds"),kF=sp("seconds"),hc=sp("minutes"),aD=sp("hours"),$j=sp("days"),qj=sp("months"),Wj=sp("years");function sD(){return aa(this.days()/7)}var dh=Math.round,lp={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function MF(T,L,Z,ne,ge){return ge.relativeTime(L||1,!!Z,T,ne)}function Yj(T,L,Z,ne){var ge=qr(T).abs(),Fe=dh(ge.as("s")),mt=dh(ge.as("m")),Ki=dh(ge.as("h")),Qn=dh(ge.as("d")),Hr=dh(ge.as("M")),fc=dh(ge.as("w")),cp=dh(ge.as("y")),uh=Fe<=Z.ss&&["s",Fe]||Fe0,uh[4]=ne,MF.apply(null,uh)}function Kj(T){return T===void 0?dh:typeof T=="function"?(dh=T,!0):!1}function yy(T,L){return lp[T]===void 0?!1:L===void 0?lp[T]:(lp[T]=L,T==="s"&&(lp.ss=L-1),!0)}function Xj(T,L){if(!this.isValid())return this.localeData().invalidDate();var Z=!1,ne=lp,ge,Fe;return typeof T=="object"&&(L=T,T=!1),typeof T=="boolean"&&(Z=T),typeof L=="object"&&(ne=Object.assign({},lp,L),L.s!=null&&L.ss==null&&(ne.ss=L.s-1)),ge=this.localeData(),Fe=Yj(this,!Z,ne,ge),Z&&(Fe=ge.pastFuture(+this,Fe)),ge.postformat(Fe)}var lD=Math.abs;function yf(T){return(T>0)-(T<0)||+T}function xy(){if(!this.isValid())return this.localeData().invalidDate();var T=lD(this._milliseconds)/1e3,L=lD(this._days),Z=lD(this._months),ne,ge,Fe,mt,Ki=this.asSeconds(),Qn,Hr,fc,cp;return Ki?(ne=aa(T/60),ge=aa(ne/60),T%=60,ne%=60,Fe=aa(Z/12),Z%=12,mt=T?T.toFixed(3).replace(/\.?0+$/,""):"",Qn=Ki<0?"-":"",Hr=yf(this._months)!==yf(Ki)?"-":"",fc=yf(this._days)!==yf(Ki)?"-":"",cp=yf(this._milliseconds)!==yf(Ki)?"-":"",Qn+"P"+(Fe?Hr+Fe+"Y":"")+(Z?Hr+Z+"M":"")+(L?fc+L+"D":"")+(ge||ne||T?"T":"")+(ge?cp+ge+"H":"")+(ne?cp+ne+"M":"")+(T?cp+mt+"S":"")):"P0D"}var uo=cy.prototype;uo.isValid=nj,uo.abs=Hj,uo.add=zj,uo.subtract=ch,uo.as=IF,uo.asMilliseconds=R_,uo.asSeconds=bf,uo.asMinutes=DF,uo.asHours=Uj,uo.asDays=TC,uo.asWeeks=Gj,uo.asMonths=TF,uo.asQuarters=Cl,uo.asYears=rD,uo.valueOf=AF,uo._bubble=Og,uo.clone=ap,uo.get=oD,uo.milliseconds=Lg,uo.seconds=kF,uo.minutes=hc,uo.hours=aD,uo.days=$j,uo.weeks=sD,uo.months=qj,uo.years=Wj,uo.humanize=Xj,uo.toISOString=xy,uo.toString=xy,uo.toJSON=xy,uo.locale=py,uo.localeData=fF,uo.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",xy),uo.lang=bC,se("X",0,0,"unix"),se("x",0,0,"valueOf"),wt("x",qn),wt("X",zl),Br("X",function(T,L,Z){Z._d=new Date(parseFloat(T)*1e3)}),Br("x",function(T,L,Z){Z._d=new Date(Pi(T))});return n.version="2.30.1",e(da),n.fn=si,n.min=J6,n.max=ej,n.now=tj,n.utc=_,n.unix=pm,n.months=EF,n.isDate=u,n.locale=rh,n.invalid=C,n.duration=qr,n.isMoment=j,n.weekdays=jj,n.parseZone=Vj,n.localeData=ps,n.isDuration=mm,n.monthsShort=Bj,n.weekdaysMin=by,n.defineLocale=pc,n.updateLocale=q6,n.locales=W6,n.weekdaysShort=tD,n.normalizeUnits=Rt,n.relativeTimeRounding=Kj,n.relativeTimeThreshold=yy,n.calendarFormat=mj,n.prototype=si,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})});var vae=Sf((dU,_ae)=>{(function(t,n){typeof dU=="object"&&typeof _ae<"u"&&typeof V_=="function"?n(yp()):typeof define=="function"&&define.amd?define(["../moment"],n):n(t.moment)})(dU,function(t){"use strict";var n=t.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xE1b".split("_"),weekdaysMin:"do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_s\xE1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},calendar:{sameDay:"[Hoje \xE0s] LT",nextDay:"[Amanh\xE3 \xE0s] LT",nextWeek:"dddd [\xE0s] LT",lastDay:"[Ontem \xE0s] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[\xDAltimo] dddd [\xE0s] LT":"[\xDAltima] dddd [\xE0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xBA",invalidDate:"Data inv\xE1lida"});return n})});var nue=Sf((exports,module)=>{typeof document<"u"&&typeof navigator<"u"&&function(t,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis<"u"?globalThis:t||self,t.lottie=n())}(exports,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(n){_useWebWorker=!!n},getWebWorker=function(){return _useWebWorker},setLocationHref=function(n){locationHref=n},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,n){var e,i=t.length,r;for(e=0;e1?e[1]=1:e[1]<=0&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(t,n){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return e[2]+=n,e[2]>1?e[2]=1:e[2]<0&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(t,n){var e=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return e[0]+=n/360,e[0]>1?e[0]-=1:e[0]<0&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}var rgbToHex=function(){var t=[],n,e;for(n=0;n<256;n+=1)e=n.toString(16),t[n]=e.length===1?"0"+e:e;return function(i,r,o){return i<0&&(i=0),r<0&&(r=0),o<0&&(o=0),"#"+t[i]+t[r]+t[o]}}(),setSubframeEnabled=function(n){subframeEnabled=!!n},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(n){expressionsPlugin=n},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(n){expressionsInterfaces=n},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(n){defaultCurveSegments=n},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(n){idPrefix$1=n},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(t)}var dataManager=function(){var t=1,n=[],e,i,r={onmessage:function(){},postMessage:function(v){e({data:v})}},o={postMessage:function(v){r.onmessage({data:v})}};function a(_){if(window.Worker&&window.Blob&&getWebWorker()){var v=new Blob(["var _workerSelf = self; self.onmessage = ",_.toString()],{type:"text/javascript"}),y=URL.createObjectURL(v);return new Worker(y)}return e=_,r}function s(){i||(i=a(function(v){function y(){function I(q,G){var X,z,ee=q.length,pe,me,ye,se;for(z=0;z=0;G-=1)if(q[G].ty==="sh")if(q[G].ks.k.i)R(q[G].ks.k);else for(ee=q[G].ks.k.length,z=0;zX[0]?!0:X[0]>q[0]?!1:q[1]>X[1]?!0:X[1]>q[1]?!1:q[2]>X[2]?!0:X[2]>q[2]?!1:null}var K=function(){var q=[4,4,14];function G(z){var ee=z.t.d;z.t.d={k:[{s:ee,t:0}]}}function X(z){var ee,pe=z.length;for(ee=0;ee=0;ee-=1)if(z[ee].ty==="sh")if(z[ee].ks.k.i)z[ee].ks.k.c=z[ee].closed;else for(ye=z[ee].ks.k.length,me=0;me500)&&(this._imageLoaded(),clearInterval(A)),D+=1}.bind(this),50)}function o(C){var D=i(C,this.assetsPath,this.path),A=createNS("image");isSafari?this.testImageLoaded(A):A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){M.img=t,this._imageLoaded()}.bind(this),!1),A.setAttributeNS("http://www.w3.org/1999/xlink","href",D),this._elementHelper.append?this._elementHelper.append(A):this._elementHelper.appendChild(A);var M={img:A,assetData:C};return M}function a(C){var D=i(C,this.assetsPath,this.path),A=createTag("img");A.crossOrigin="anonymous",A.addEventListener("load",this._imageLoaded,!1),A.addEventListener("error",function(){M.img=t,this._imageLoaded()}.bind(this),!1),A.src=D;var M={img:A,assetData:C};return M}function s(C){var D={assetData:C},A=i(C,this.assetsPath,this.path);return dataManager.loadData(A,function(M){D.img=M,this._footageLoaded()}.bind(this),function(){D.img={},this._footageLoaded()}.bind(this)),D}function l(C,D){this.imagesLoadedCb=D;var A,M=C.length;for(A=0;Athis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var n=this.animationData.layers,e,i=n.length,r=t.layers,o,a=r.length;for(o=0;othis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var n,e=0;e=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(n>this.totalFrames?n%this.totalFrames:0)||(e=!0,n=this.totalFrames-1):n>=this.totalFrames?(this.playCount+=1,this.checkSegments(n%this.totalFrames)||(this.setCurrentRawFrameValue(n%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(n):n<0?this.checkSegments(n%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+n%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(e=!0,n=0)):this.setCurrentRawFrameValue(n),e&&(this.setCurrentRawFrameValue(n),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,n){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-n)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+n)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,n){var e=-1;this.isPaused&&(this.currentRawFrame+this.firstFramen&&(e=n-t)),this.firstFrame=t,this.totalFrames=n-t,this.timeCompleted=this.totalFrames,e!==-1&&this.goToAndStop(e,!0)},AnimationItem.prototype.playSegments=function(t,n){if(n&&(this.segments.length=0),_typeof$4(t[0])==="object"){var e,i=t.length;for(e=0;e=0;X-=1)n[X].animation.destroy(G)}function F(G,X,z){var ee=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),pe,me=ee.length;for(pe=0;pe0?M=F:A=F;while(Math.abs(K)>o&&++V=r?I(A,te,M,R):re===0?te:x(A,K,K+l,M,R)}},t}(),pooling=function(){function t(n){return n.concat(createSizedArray(n.length))}return{double:t}}(),poolFactory=function(){return function(t,n,e){var i=0,r=t,o=createSizedArray(r),a={newElement:s,release:l};function s(){var u;return i?(i-=1,u=o[i]):u=n(),u}function l(u){i===r&&(o=pooling.double(o),r*=2),e&&e(u),o[i]=u,i+=1}return a}}(),bezierLengthPool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)}(),segmentsLengthPool=function(){function t(){return{lengths:[],totalLength:0}}function n(e){var i,r=e.lengths.length;for(i=0;i-.001&&D<.001}function e(_,v,y,x,I,C,D,A,M){if(y===0&&C===0&&M===0)return n(_,v,x,I,D,A);var R=t.sqrt(t.pow(x-_,2)+t.pow(I-v,2)+t.pow(C-y,2)),j=t.sqrt(t.pow(D-_,2)+t.pow(A-v,2)+t.pow(M-y,2)),K=t.sqrt(t.pow(D-x,2)+t.pow(A-I,2)+t.pow(M-C,2)),F;return R>j?R>K?F=R-j-K:F=K-j-R:K>j?F=K-j-R:F=j-R-K,F>-1e-4&&F<1e-4}var i=function(){return function(_,v,y,x){var I=getDefaultCurveSegments(),C,D,A,M,R,j=0,K,F=[],V=[],Q=bezierLengthPool.newElement();for(A=y.length,C=0;CD?-1:1,R=!0;R;)if(x[C]<=D&&x[C+1]>D?(A=(D-x[C])/(x[C+1]-x[C]),R=!1):C+=M,C<0||C>=I-1){if(C===I-1)return y[C];R=!1}return y[C]+(y[C+1]-y[C])*A}function u(_,v,y,x,I,C){var D=l(I,C),A=1-D,M=t.round((A*A*A*_[0]+(D*A*A+A*D*A+A*A*D)*y[0]+(D*D*A+A*D*D+D*A*D)*x[0]+D*D*D*v[0])*1e3)/1e3,R=t.round((A*A*A*_[1]+(D*A*A+A*D*A+A*A*D)*y[1]+(D*D*A+A*D*D+D*A*D)*x[1]+D*D*D*v[1])*1e3)/1e3;return[M,R]}var p=createTypedArray("float32",8);function g(_,v,y,x,I,C,D){I<0?I=0:I>1&&(I=1);var A=l(I,D);C=C>1?1:C;var M=l(C,D),R,j=_.length,K=1-A,F=1-M,V=K*K*K,Q=A*K*K*3,te=A*A*K*3,re=A*A*A,O=K*K*F,B=A*K*F+K*A*F+K*K*M,q=A*A*F+K*A*M+A*K*M,G=A*A*M,X=K*F*F,z=A*F*F+K*M*F+K*F*M,ee=A*M*F+K*M*M+A*F*M,pe=A*M*M,me=F*F*F,ye=M*F*F+F*M*F+F*F*M,se=M*M*F+F*M*M+M*F*M,de=M*M*M;for(R=0;R=u.t-e){l.h&&(l=u),r=0;break}if(u.t-e>t){r=o;break}o=C||t=C?M.points.length-1:0;for(_=M.points[R].point.length,g=0;g<_;g+=1)i[g]=M.points[R].point[g]}else{p.__fnct?I=p.__fnct:(I=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,p.__fnct=I),v=I((t-D)/(C-D));var j=M.segmentLength*v,K,F=n.lastFrame=F&&j=C)i[0]=A[0],i[1]=A[1],i[2]=A[2];else if(t<=D)i[0]=l.s[0],i[1]=l.s[1],i[2]=l.s[2];else{var B=createQuaternion(l.s),q=createQuaternion(A),G=(t-D)/(C-D);quaternionToEuler(i,slerp(B,q,G))}else for(o=0;o=C?v=1:t1e-6?(_=Math.acos(v),y=Math.sin(_),x=Math.sin((1-e)*_)/y,I=Math.sin(e*_)/y):(x=1-e,I=e),i[0]=x*r+I*l,i[1]=x*o+I*u,i[2]=x*a+I*p,i[3]=x*s+I*g,i}function quaternionToEuler(t,n){var e=n[0],i=n[1],r=n[2],o=n[3],a=Math.atan2(2*i*o-2*e*r,1-2*i*i-2*r*r),s=Math.asin(2*e*i+2*r*o),l=Math.atan2(2*e*o-2*i*r,1-2*e*e-2*r*r);t[0]=a/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function createQuaternion(t){var n=t[0]*degToRads,e=t[1]*degToRads,i=t[2]*degToRads,r=Math.cos(n/2),o=Math.cos(e/2),a=Math.cos(i/2),s=Math.sin(n/2),l=Math.sin(e/2),u=Math.sin(i/2),p=r*o*a-s*l*u,g=s*l*a+r*o*u,_=s*o*a+r*l*u,v=r*l*a-s*o*u;return[g,_,v,p]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,e=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=e&&t>=e||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function setVValue(t){var n;if(this.propType==="unidimensional")n=t*this.mult,mathAbs(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var e=0,i=this.v.length;e1e-5&&(this.v[e]=n,this._mdf=!0),e+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,n=this.effectsSequence.length,e=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),e){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[i]||o[i]&&!r)&&(o[i]=pointPool.newElement()),o[i][0]=t,o[i][1]=n},ShapePath.prototype.setTripleAt=function(t,n,e,i,r,o,a,s){this.setXYAt(t,n,"v",a,s),this.setXYAt(e,i,"o",a,s),this.setXYAt(r,o,"i",a,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var n=this.v,e=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(n[0][0],n[0][1],i[0][0],i[0][1],e[0][0],e[0][1],0,!1),r=1);var o=this._length-1,a=this._length,s;for(s=r;s=B[B.length-1].t-this.offsetTime)R=B[B.length-1].s?B[B.length-1].s[0]:B[B.length-2].e[0],K=!0;else{for(var q=M,G=B.length-1,X=!0,z,ee,pe;X&&(z=B[q],ee=B[q+1],!(ee.t-this.offsetTime>C));)q=ee.t-this.offsetTime)re=1;else if(CA&&C>A)||(this._caching.lastIndex=M0||z>-1e-6&&z<0?i(z*ee)/ee:z}function X(){var z=this.props,ee=G(z[0]),pe=G(z[1]),me=G(z[4]),ye=G(z[5]),se=G(z[12]),de=G(z[13]);return"matrix("+ee+","+pe+","+me+","+ye+","+se+","+de+")"}return function(){this.reset=r,this.rotate=o,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=p,this.skewFromAxis=g,this.shear=u,this.scale=_,this.setTransform=v,this.translate=y,this.transform=x,this.multiply=I,this.applyToPoint=R,this.applyToX=j,this.applyToY=K,this.applyToZ=F,this.applyToPointArray=O,this.applyToTriplePoints=re,this.applyToPointStringified=B,this.toCSS=q,this.to2dCSS=X,this.clone=A,this.cloneFromProps=M,this.equals=D,this.inversePoints=te,this.inversePoint=Q,this.getInverseMatrix=V,this._t=this.transform,this.isIdentity=C,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,n){t==="expressions"&&setExpressionsPlugin(n)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var n=queryString.split("&"),e=0;e"u"?"undefined":_typeof$3(exports))==="object"&&typeof module<"u")&&!(typeof define=="function"&&define.amd)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},n={};t.registerModifier=e,t.getModifier=i;function e(r,o){n[r]||(n[r]=o)}function i(r,o,a){return new n[r](o,a)}return t}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var n={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(n),this.addShapeToModifier(n),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,n){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,n),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,n){this.s=PropertyFactory.getProp(t,n.s,0,.01,this),this.e=PropertyFactory.getProp(t,n.e,0,.01,this),this.o=PropertyFactory.getProp(t,n.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=n.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,n,e,i,r){var o=[];n<=1?o.push({s:t,e:n}):t>=1?o.push({s:t-1,e:n-1}):(o.push({s:t,e:1}),o.push({s:0,e:n-1}));var a=[],s,l=o.length,u;for(s=0;si+e)){var p,g;u.s*r<=i?p=0:p=(u.s*r-i)/e,u.e*r>=i+e?g=1:g=(u.e*r-i)/e,a.push([p,g])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(t){var n,e=t.length;for(n=0;n1?n=1+i:this.s.v<0?n=0+i:n=this.s.v+i,this.e.v>1?e=1+i:this.e.v<0?e=0+i:e=this.e.v+i,n>e){var r=n;n=e,e=r}n=Math.round(n*1e4)*1e-4,e=Math.round(e*1e4)*1e-4,this.sValue=n,this.eValue=e}else n=this.sValue,e=this.eValue;var o,a,s=this.shapes.length,l,u,p,g,_,v=0;if(e===n)for(a=0;a=0;a-=1)if(x=this.shapes[a],x.shape._mdf){for(I=x.localShapeCollection,I.releaseShapes(),this.m===2&&s>1?(M=this.calculateShapeEdges(n,e,x.totalShapeLength,A,v),A+=x.totalShapeLength):M=[[C,D]],u=M.length,l=0;l=1?y.push({s:x.totalShapeLength*(C-1),e:x.totalShapeLength*(D-1)}):(y.push({s:x.totalShapeLength*C,e:x.totalShapeLength}),y.push({s:0,e:x.totalShapeLength*(D-1)}));var R=this.addShapes(x,y[0]);if(y[0].s!==y[0].e){if(y.length>1){var j=x.shape.paths.shapes[x.shape.paths._length-1];if(j.c){var K=R.pop();this.addPaths(R,I),R=this.addShapes(x,y[1],K)}else this.addPaths(R,I),R=this.addShapes(x,y[1])}this.addPaths(R,I)}}x.shape.paths=I}}},TrimModifier.prototype.addPaths=function(t,n){var e,i=t.length;for(e=0;en.e){e.c=!1;break}else n.s<=u&&n.e>=u+p.addedLength?(this.addSegment(r[o].v[s-1],r[o].o[s-1],r[o].i[s],r[o].v[s],e,g,I),I=!1):(v=bez.getNewSegment(r[o].v[s-1],r[o].v[s],r[o].o[s-1],r[o].i[s],(n.s-u)/p.addedLength,(n.e-u)/p.addedLength,_[s-1]),this.addSegmentFromArray(v,e,g,I),I=!1,e.c=!1),u+=p.addedLength,g+=1;if(r[o].c&&_.length){if(p=_[s-1],u<=n.e){var C=_[s-1].addedLength;n.s<=u&&n.e>=u+C?(this.addSegment(r[o].v[s-1],r[o].o[s-1],r[o].i[0],r[o].v[0],e,g,I),I=!1):(v=bez.getNewSegment(r[o].v[s-1],r[o].v[0],r[o].o[s-1],r[o].i[0],(n.s-u)/C,(n.e-u)/C,_[s-1]),this.addSegmentFromArray(v,e,g,I),I=!1,e.c=!1)}else e.c=!1;u+=p.addedLength,g+=1}if(e._length&&(e.setXYAt(e.v[x][0],e.v[x][1],"i",x),e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)),u>n.e)break;o=this.p.keyframes[this.p.keyframes.length-1].t?(p=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),g=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(p=this.p.pv,g=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){p=[],g=[];var _=this.px,v=this.py;_._caching.lastFrame+_.offsetTime<=_.keyframes[0].t?(p[0]=_.getValueAtTime((_.keyframes[0].t+.01)/u,0),p[1]=v.getValueAtTime((v.keyframes[0].t+.01)/u,0),g[0]=_.getValueAtTime(_.keyframes[0].t/u,0),g[1]=v.getValueAtTime(v.keyframes[0].t/u,0)):_._caching.lastFrame+_.offsetTime>=_.keyframes[_.keyframes.length-1].t?(p[0]=_.getValueAtTime(_.keyframes[_.keyframes.length-1].t/u,0),p[1]=v.getValueAtTime(v.keyframes[v.keyframes.length-1].t/u,0),g[0]=_.getValueAtTime((_.keyframes[_.keyframes.length-1].t-.01)/u,0),g[1]=v.getValueAtTime((v.keyframes[v.keyframes.length-1].t-.01)/u,0)):(p=[_.pv,v.pv],g[0]=_.getValueAtTime((_._caching.lastFrame+_.offsetTime-.01)/u,_.offsetTime),g[1]=v.getValueAtTime((v._caching.lastFrame+v.offsetTime-.01)/u,v.offsetTime))}else g=t,p=g;this.v.rotate(-Math.atan2(p[1]-g[1],p[0]-g[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function r(){}function o(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function a(l,u,p){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(p||l),u.p&&u.p.s?(this.px=PropertyFactory.getProp(l,u.p.x,0,0,this),this.py=PropertyFactory.getProp(l,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(l,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(l,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,u.rz,0,degToRads,this),u.or.k[0].ti){var g,_=u.or.k.length;for(g=0;g<_;g+=1)u.or.k[g].to=null,u.or.k[g].ti=null}this.or=PropertyFactory.getProp(l,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(l,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(l,u.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:n,getValue:e,precalculateMatrix:i,autoOrient:r},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=o,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function s(l,u,p){return new a(l,u,p)}return{getTransformProperty:s}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,n.c,0,null,this),this.o=PropertyFactory.getProp(t,n.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,n.tr,this),this.so=PropertyFactory.getProp(t,n.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,n.tr.eo,0,.01,this),this.data=n,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,n,e,i,r,o){var a=o?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-r),l=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*a*r,i.p.v[1]*a*r,i.p.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.rotate(-i.r.v*a*r),n.translate(i.a.v[0],i.a.v[1],i.a.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.scale(o?1/s:s,o?1/l:l),e.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,n,e,i){for(this.elem=t,this.arr=n,this.pos=e,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,n[e]);e>0;)e-=1,this._elements.unshift(n[e]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var n,e=t.length;for(n=0;n0?Math.floor(_):Math.ceil(_),x=this.pMatrix.props,I=this.rMatrix.props,C=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var D=0;if(_>0){for(;Dy;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),D-=1;v&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-v,!0),D-=v)}i=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,o=this._currentCopies;for(var A,M;o;){if(n=this.elemsData[i].it,e=n[n.length-1].transform.mProps.v.props,M=e.length,n[n.length-1].transform.mProps._mdf=!0,n[n.length-1].transform.op._mdf=!0,n[n.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),D!==0){for((i!==0&&r===1||i!==this._currentCopies-1&&r===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(I[0],I[1],I[2],I[3],I[4],I[5],I[6],I[7],I[8],I[9],I[10],I[11],I[12],I[13],I[14],I[15]),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]),A=0;A0&&i<1?[n]:[]:[n-i,n+i].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var n=lerpPoint(this.points[0],this.points[1],t),e=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(n,e,t),o=lerpPoint(e,i,t),a=lerpPoint(r,o,t);return[new PolynomialBezier(this.points[0],n,r,a,!0),new PolynomialBezier(a,o,i,this.points[3],!0)]};function extrema(t,n){var e=t.points[0][n],i=t.points[t.points.length-1][n];if(e>i){var r=i;i=e,e=r}for(var o=quadRoots(3*t.a[n],2*t.b[n],t.c[n]),a=0;a0&&o[a]<1){var s=t.point(o[a])[n];si&&(i=s)}return{min:e,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,n,e){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(n+e)/2,t1:n,t2:e}}function splitData(t){var n=t.bez.split(.5);return[intersectData(n[0],t.t1,t.t),intersectData(n[1],t.t,t.t2)]}function boxIntersect(t,n){return Math.abs(t.cx-n.cx)*2=o||t.width<=i&&t.height<=i&&n.width<=i&&n.height<=i){r.push([t.t,n.t]);return}var a=splitData(t),s=splitData(n);intersectsImpl(a[0],s[0],e+1,i,r,o),intersectsImpl(a[0],s[1],e+1,i,r,o),intersectsImpl(a[1],s[0],e+1,i,r,o),intersectsImpl(a[1],s[1],e+1,i,r,o)}}PolynomialBezier.prototype.intersections=function(t,n,e){n===void 0&&(n=2),e===void 0&&(e=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,n,i,e),i},PolynomialBezier.shapeSegment=function(t,n){var e=(n+1)%t.length();return new PolynomialBezier(t.v[n],t.o[n],t.i[e],t.v[e],!0)},PolynomialBezier.shapeSegmentInverted=function(t,n){var e=(n+1)%t.length();return new PolynomialBezier(t.v[e],t.i[e],t.o[n],t.v[n],!0)};function crossProduct(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function lineIntersection(t,n,e,i){var r=[t[0],t[1],1],o=[n[0],n[1],1],a=[e[0],e[1],1],s=[i[0],i[1],1],l=crossProduct(crossProduct(r,o),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,n,e){return[t[0]+Math.cos(n)*e,t[1]-Math.sin(n)*e]}function pointDistance(t,n){return Math.hypot(t[0]-n[0],t[1]-n[1])}function pointEqual(t,n){return floatEqual(t[0],n[0])&&floatEqual(t[1],n[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,n.s,0,null,this),this.frequency=PropertyFactory.getProp(t,n.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,n.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,n,e,i,r,o,a){var s=e-Math.PI/2,l=e+Math.PI/2,u=n[0]+Math.cos(e)*i*r,p=n[1]-Math.sin(e)*i*r;t.setTripleAt(u,p,u+Math.cos(s)*o,p-Math.sin(s)*o,u+Math.cos(l)*a,p-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,n){var e=[n[0]-t[0],n[1]-t[1]],i=-Math.PI*.5,r=[Math.cos(i)*e[0]-Math.sin(i)*e[1],Math.sin(i)*e[0]+Math.cos(i)*e[1]];return r}function getProjectingAngle(t,n){var e=n===0?t.length()-1:n-1,i=(n+1)%t.length(),r=t.v[e],o=t.v[i],a=getPerpendicularVector(r,o);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(t,n,e,i,r,o,a){var s=getProjectingAngle(n,e),l=n.v[e%n._length],u=n.v[e===0?n._length-1:e-1],p=n.v[(e+1)%n._length],g=o===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,_=o===2?Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)):0;setPoint(t,n.v[e%n._length],s,a,i,_/((r+1)*2),g/((r+1)*2),o)}function zigZagSegment(t,n,e,i,r,o){for(var a=0;a1&&n.length>1&&(r=getIntersection(t[0],n[n.length-1]),r)?[[t[0].split(r[0])[0]],[n[n.length-1].split(r[1])[1]]]:[e,i]}function pruneIntersections(t){for(var n,e=1;e1&&(n=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=n[0],t[0]=n[1]),t}function offsetSegmentSplit(t,n){var e=t.inflectionPoints(),i,r,o,a;if(e.length===0)return[offsetSegment(t,n)];if(e.length===1||floatEqual(e[1],1))return o=t.split(e[0]),i=o[0],r=o[1],[offsetSegment(i,n),offsetSegment(r,n)];o=t.split(e[0]),i=o[0];var s=(e[1]-e[0])/(1-e[0]);return o=o[1].split(s),a=o[0],r=o[1],[offsetSegment(i,n),offsetSegment(a,n),offsetSegment(r,n)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,n){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,n.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,n.ml,0,null,this),this.lineJoin=n.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,n,e,i){var r=shapePool.newElement();r.c=t.c;var o=t.length();t.c||(o-=1);var a,s,l,u=[];for(a=0;a=0;a-=1)l=PolynomialBezier.shapeSegmentInverted(t,a),u.push(offsetSegmentSplit(l,n));u=pruneIntersections(u);var p=null,g=null;for(a=0;a0&&(ye=!1),ye){var Te=createTag("style");Te.setAttribute("f-forigin",z[ee].fOrigin),Te.setAttribute("f-origin",z[ee].origin),Te.setAttribute("f-family",z[ee].fFamily),Te.type="text/css",Te.innerText="@font-face {font-family: "+z[ee].fFamily+"; font-style: normal; src: url('"+z[ee].fPath+"');}",X.appendChild(Te)}}else if(z[ee].fOrigin==="g"||z[ee].origin===1){for(se=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),de=0;de=55296&&z<=56319){var ee=G.charCodeAt(1);ee>=56320&&ee<=57343&&(X=(z-55296)*1024+ee-56320+65536)}return X}function j(G,X){var z=G.toString(16)+X.toString(16);return g.indexOf(z)!==-1}function K(G){return G===l}function F(G){return G===s}function V(G){var X=R(G);return X>=u&&X<=p}function Q(G){return V(G.substr(0,2))&&V(G.substr(2,2))}function te(G){return e.indexOf(G)!==-1}function re(G,X){var z=R(G.substr(X,2));if(z!==i)return!1;var ee=0;for(X+=2;ee<5;){if(z=R(G.substr(X,2)),za)return!1;ee+=1,X+=2}return R(G.substr(X,2))===r}function O(){this.isLoaded=!0}var B=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};B.isModifier=j,B.isZeroWidthJoiner=K,B.isFlagEmoji=Q,B.isRegionalCode=V,B.isCombinedCharacter=te,B.isRegionalFlag=re,B.isVariationSelector=F,B.BLACK_FLAG_CODE_POINT=i;var q={addChars:C,addFonts:I,getCharData:D,getFontByName:M,measureText:A,checkLoadedFonts:y,setIsLoaded:O};return B.prototype=q,B}();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(n){this.renderableComponents.indexOf(n)===-1&&this.renderableComponents.push(n)},removeRenderableComponent:function(n){this.renderableComponents.indexOf(n)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(n),1)},prepareRenderableFrame:function(n){this.checkLayerLimits(n)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(n){this.data.ip-this.data.st<=n&&this.data.op-this.data.st>n?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var n,e=this.renderableComponents.length;for(n=0;n.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(t){var n,e=this.layers.length,i;for(this.completeLayers=!0,n=e-1;n>=0;n-=1)this.elements[n]||(i=this.layers[n],i.ip-i.st<=t-this.layers[n].st&&i.op-i.st>t-this.layers[n].st&&this.buildItem(n)),this.completeLayers=this.elements[n]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,n=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",_),this.element.maskedElement.setAttribute(D,"url("+getLocationHref()+"#"+_+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var n=this.element.finalTransform.mat,e,i=this.masksProperties.length;for(e=0;e1&&(i+=" C"+n.o[r-1][0]+","+n.o[r-1][1]+" "+n.i[0][0]+","+n.i[0][1]+" "+n.v[0][0]+","+n.v[0][1]),e.lastPath!==i){var a="";e.elem&&(n.c&&(a=t.inv?this.solidPath+i:i),e.elem.setAttribute("d",a)),e.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};t.createFilter=n,t.createAlphaToLuminanceFilter=e;function n(i,r){var o=createNS("filter");return o.setAttribute("id",i),r!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function e(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var n,e="SourceGraphic",i=t.data.ef?t.data.ef.length:0,r=createElementID(),o=filtersFactory.createFilter(r,!0),a=0;this.filters=[];var s;for(n=0;n=0&&(i=this.shapeModifiers[n].processShapes(this._isFirstFrame),!i);n-=1);}},searchProcessedElement:function(n){for(var e=this.processedElements,i=0,r=e.length;i.01)return!1;e+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,n=this.data.k.k.length;t0;)C=_.transformers[V].mProps._mdf||C,F-=1,V-=1;if(C)for(F=R-_.styles[A].lvl,V=_.transformers.length-1;F>0;)K.multiply(_.transformers[V].mProps.v),F-=1,V-=1}else K=t;if(j=_.sh.paths,x=j._length,C){for(I="",y=0;y=1?O=.99:O<=-1&&(O=-.99);var B=te*O,q=Math.cos(re+_.a.v)*B+I[0],G=Math.sin(re+_.a.v)*B+I[1];y.setAttribute("fx",q),y.setAttribute("fy",G),x&&!_.g._collapsable&&(_.of.setAttribute("fx",q),_.of.setAttribute("fy",G))}}}function p(g,_,v){var y=_.style,x=_.d;x&&(x._mdf||v)&&x.dashStr&&(y.pElem.setAttribute("stroke-dasharray",x.dashStr),y.pElem.setAttribute("stroke-dashoffset",x.dashoffset[0])),_.c&&(_.c._mdf||v)&&y.pElem.setAttribute("stroke","rgb("+bmFloor(_.c.v[0])+","+bmFloor(_.c.v[1])+","+bmFloor(_.c.v[2])+")"),(_.o._mdf||v)&&y.pElem.setAttribute("stroke-opacity",_.o.v),(_.w._mdf||v)&&(y.pElem.setAttribute("stroke-width",_.w.v),y.msElem&&y.msElem.setAttribute("stroke-width",_.w.v))}return e}();function SVGShapeElement(t,n,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,n,e),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,n=this.shapes.length,e,i,r=this.stylesList.length,o,a=[],s=!1;for(i=0;i1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var n,e=t.length;for(n=0;n=0;l-=1){if(I=this.searchProcessedElement(t[l]),I?n[l]=e[I-1]:t[l]._render=a,t[l].ty==="fl"||t[l].ty==="st"||t[l].ty==="gf"||t[l].ty==="gs"||t[l].ty==="no")I?n[l].style.closed=t[l].hd:n[l]=this.createStyleElement(t[l],r),t[l]._render&&n[l].style.pElem.parentNode!==i&&i.appendChild(n[l].style.pElem),_.push(n[l].style);else if(t[l].ty==="gr"){if(!I)n[l]=this.createGroupElement(t[l]);else for(g=n[l].it.length,p=0;p1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var n=this.currentData,e=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(i=0;in);)e+=1;return this.keysIndex!==e&&(this.keysIndex=e),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var n=[],e=0,i=t.length,r,o,a=!1,s=!1,l="";e=55296&&r<=56319?FontManager.isRegionalFlag(t,e)?l=t.substr(e,14):(o=t.charCodeAt(e+1),o>=56320&&o<=57343&&(FontManager.isModifier(r,o)?(l=t.substr(e,2),a=!0):FontManager.isFlagEmoji(t.substr(e,4))?l=t.substr(e,4):l=t.substr(e,2))):r>56319?(o=t.charCodeAt(e+1),FontManager.isVariationSelector(r)&&(a=!0)):FontManager.isZeroWidthJoiner(r)&&(a=!0,s=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),e+=l.length;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var n=this.elem.globalData.fontManager,e=this.data,i=[],r,o,a,s=0,l,u=e.m.g,p=0,g=0,_=0,v=[],y=0,x=0,I,C,D=n.getFontByName(t.f),A,M=0,R=getFontProperties(D);t.fWeight=R.weight,t.fStyle=R.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),o=t.finalText.length,t.finalLineHeight=t.lh;var j=t.tr/1e3*t.finalSize,K;if(t.sz)for(var F=!0,V=t.sz[0],Q=t.sz[1],te,re;F;){re=this.buildFinalText(t.t),te=0,y=0,o=re.length,j=t.tr/1e3*t.finalSize;var O=-1;for(r=0;rV&&re[r]!==" "?(O===-1?o+=1:r=O,te+=t.finalLineHeight||t.finalSize*1.2,re.splice(r,O===r?1:0,"\r"),O=-1,y=0):(y+=M,y+=j);te+=D.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Qx?y:x,y=-2*j,l="",a=!0,_+=1):l=q,n.chars?(A=n.getCharData(q,D.fStyle,n.getFontByName(t.f).fFamily),M=a?0:A.w*t.finalSize/100):M=n.measureText(l,t.f,t.finalSize),q===" "?B+=M+j:(y+=M+j+B,B=0),i.push({l:M,an:M,add:p,n:a,anIndexes:[],val:l,line:_,animatorJustifyOffset:0}),u==2){if(p+=M,l===""||l===" "||r===o-1){for((l===""||l===" ")&&(p-=M);g<=r;)i[g].an=p,i[g].ind=s,i[g].extra=M,g+=1;s+=1,p=0}}else if(u==3){if(p+=M,l===""||r===o-1){for(l===""&&(p-=M);g<=r;)i[g].an=p,i[g].ind=s,i[g].extra=M,g+=1;p=0,s+=1}}else i[s].ind=s,i[s].extra=0,s+=1;if(t.l=i,x=y>x?y:x,v.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=x,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=v;var G=e.a,X,z;C=G.length;var ee,pe,me=[];for(I=0;I0?s=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:p=1+this.xe.v/100;var g=BezierFactory.getBezierEasing(s,l,u,p).get,_=0,v=this.finalS,y=this.finalE,x=this.data.sh;if(x===2)y===v?_=a>=y?1:0:_=t(0,n(.5/(y-v)+(a-v)/(y-v),1)),_=g(_);else if(x===3)y===v?_=a>=y?0:1:_=1-t(0,n(.5/(y-v)+(a-v)/(y-v),1)),_=g(_);else if(x===4)y===v?_=0:(_=t(0,n(.5/(y-v)+(a-v)/(y-v),1)),_<.5?_*=2:_=1-2*(_-.5)),_=g(_);else if(x===5){if(y===v)_=0;else{var I=y-v;a=n(t(0,a+.5-v),y-v);var C=-I/2+a,D=I/2;_=Math.sqrt(1-C*C/(D*D))}_=g(_)}else x===6?(y===v?_=0:(a=n(t(0,a+.5-v),y-v),_=(1+Math.cos(Math.PI+Math.PI*2*a/(y-v)))/2),_=g(_)):(a>=e(v)&&(a-v<0?_=t(0,n(n(y,1)-(v-a),1)):_=t(0,n(y-a,1))),_=g(_));if(this.sm.v!==100){var A=this.sm.v*.01;A===0&&(A=1e-8);var M=.5-A*.5;_1&&(_=1))}return _*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var s=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/s,u=this.s.v/s+l,p=this.e.v/s+l;if(u>p){var g=u;u=p,p=g}this.finalS=u,this.finalE=p}},extendPrototype([DynamicPropertyContainer],i);function r(o,a,s){return new i(o,a,s)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(t,n,e){var i={propType:!1},r=PropertyFactory.getProp,o=n.a;this.a={r:o.r?r(t,o.r,0,degToRads,e):i,rx:o.rx?r(t,o.rx,0,degToRads,e):i,ry:o.ry?r(t,o.ry,0,degToRads,e):i,sk:o.sk?r(t,o.sk,0,degToRads,e):i,sa:o.sa?r(t,o.sa,0,degToRads,e):i,s:o.s?r(t,o.s,1,.01,e):i,a:o.a?r(t,o.a,1,0,e):i,o:o.o?r(t,o.o,0,.01,e):i,p:o.p?r(t,o.p,1,0,e):i,sw:o.sw?r(t,o.sw,0,0,e):i,sc:o.sc?r(t,o.sc,1,0,e):i,fc:o.fc?r(t,o.fc,1,0,e):i,fh:o.fh?r(t,o.fh,0,0,e):i,fs:o.fs?r(t,o.fs,0,.01,e):i,fb:o.fb?r(t,o.fb,0,.01,e):i,t:o.t?r(t,o.t,0,0,e):i},this.s=TextSelectorProp.getTextSelectorProp(t,n.s,e),this.s.t=n.s.t}function TextAnimatorProperty(t,n,e){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=n,this._elem=e,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(e)}TextAnimatorProperty.prototype.searchProperties=function(){var t,n=this._textData.a.length,e,i=PropertyFactory.getProp;for(t=0;t=y+tt||!R?(V=(y+tt-I)/x.partialLength,de=M.point[0]+(x.point[0]-M.point[0])*V,Te=M.point[1]+(x.point[1]-M.point[1])*V,o.translate(-e[0]*_[p].an*.005,-(e[1]*B)*.01),C=!1):R&&(I+=x.partialLength,D+=1,D>=R.length&&(D=0,A+=1,j[A]?R=j[A].points:te.v.c?(D=0,A=0,R=j[A].points):(I-=x.partialLength,R=null)),R&&(M=x,x=R[D],K=x.partialLength));se=_[p].an/2-_[p].add,o.translate(-se,0,0)}else se=_[p].an/2-_[p].add,o.translate(-se,0,0),o.translate(-e[0]*_[p].an*.005,-e[1]*B*.01,0);for(z=0;zt?this.textSpans[t].span:createNS(s?"g":"text"),A<=t){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=l,s){var R=createNS("g");l.appendChild(R),this.textSpans[t].childSpan=R}this.textSpans[t].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(u.reset(),g&&(a[t].n&&(_=-x,v+=e.yOffset,v+=y?1:0,y=!1),this.applyTextPropertiesToMatrix(e,u,a[t].line,_,v),_+=a[t].l||0,_+=x),s){M=this.globalData.fontManager.getCharData(e.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);var j;if(M.t===1)j=new SVGCompElement(M.data,this.globalData,this);else{var K=emptyShapeData;M.data&&M.data.shapes&&(K=this.buildShapeData(M.data,e.finalSize)),j=new SVGShapeElement(K,this.globalData,this)}if(this.textSpans[t].glyph){var F=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(F.layerElement),F.destroy()}this.textSpans[t].glyph=j,j._debug=!0,j.prepareFrame(0),j.renderFrame(),this.textSpans[t].childSpan.appendChild(j.layerElement),M.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+e.finalSize/100+","+e.finalSize/100+")")}else g&&l.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),l.textContent=a[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}g&&l&&l.setAttribute("d",p)}for(;t=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf)for(n=0;n=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,n=this.layers.length;for(t=0;t=0;i-=1)n.finalTransform.multiply(n.transforms[i].transform.mProps.v);n._mdf=o},processSequences:function(n){var e,i=this.sequenceList.length;for(e=0;e=1){this.buffers=[];var n=this.globalData.canvasContext,e=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(n.canvas.width,n.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var n=this.globalData;if(n.blendMode!==this.data.bm){n.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);n.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(n){n.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var n=this.buffers[0],e=n.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var n=this.buffers[1],e=n.getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=r.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(n,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(n){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!n)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(t,n,e,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;n.ty==="rc"?r=5:n.ty==="el"?r=6:n.ty==="sr"&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,n,r,t);var o,a=e.length,s;for(o=0;o=0;o-=1){if(g=this.searchProcessedElement(t[o]),g?n[o]=e[g-1]:t[o]._shouldRender=i,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs")g?n[o].style.closed=!1:n[o]=this.createStyleElement(t[o],y),u.push(n[o].style);else if(t[o].ty==="gr"){if(!g)n[o]=this.createGroupElement(t[o]);else for(l=n[o].it.length,s=0;s=0;r-=1)n[r].ty==="tr"?(a=e[r].transform,this.renderShapeTransform(t,a)):n[r].ty==="sh"||n[r].ty==="el"||n[r].ty==="rc"||n[r].ty==="sr"?this.renderPath(n[r],e[r]):n[r].ty==="fl"?this.renderFill(n[r],e[r],a):n[r].ty==="st"?this.renderStroke(n[r],e[r],a):n[r].ty==="gf"||n[r].ty==="gs"?this.renderGradientFill(n[r],e[r],a):n[r].ty==="gr"?this.renderShape(a,n[r].it,e[r].it):n[r].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,n){if(this._isFirstFrame||n._mdf||t.transforms._mdf){var e=t.trNodes,i=n.paths,r,o,a,s=i._length;e.length=0;var l=t.transforms.finalTransform;for(a=0;a=1?p=.99:p<=-1&&(p=-.99);var g=l*p,_=Math.cos(u+n.a.v)*g+a[0],v=Math.sin(u+n.a.v)*g+a[1];r=o.createRadialGradient(_,v,0,a[0],a[1],l)}var y,x=t.g.p,I=n.g.c,C=1;for(y=0;yo&&l==="xMidYMid slice"||rr&&s==="meet"||or&&s==="slice")?this.transformCanvas.tx=(e-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(or&&s==="slice")?this.transformCanvas.tx=(e-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,p==="YMid"&&(o>r&&s==="meet"||or&&s==="meet"||o=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,n){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!n||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||n,this.globalData.projectInterface.currentFrame=t;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var n=this.elements;if(!(n[t]||this.layers[t].ty===99)){var e=this.createItem(this.layers[t],this,this.globalData);n[t]=e,e.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,n=15;for(t=0;t=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame()},CVCompElement.prototype.destroy=function(){var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,n){this.animationItem=t,this.renderConfig={clearCanvas:n&&n.clearCanvas!==void 0?n.clearCanvas:!0,context:n&&n.context||null,progressiveLoad:n&&n.progressiveLoad||!1,preserveAspectRatio:n&&n.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:n&&n.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:n&&n.contentVisibility||"visible",className:n&&n.className||"",id:n&&n.id||"",runExpressions:!n||n.runExpressions===void 0||n.runExpressions},this.renderConfig.dpr=n&&n.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=n&&n.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var n=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();n.transform=e,n.webkitTransform=e}this.finalTransform._opMdf&&(n.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(t,n,e){this.initElement(t,n,e)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,n,e){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,n,e),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var n=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",n.w),t.setAttribute("height",n.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,n){var e,i=t.length;for(e=0;e0&&l<1&&r[_].push(this.calculateF(l,t,n,e,i,_))):(u=a*a-4*s*o,u>=0&&(p=(-a+bmSqrt(u))/(2*o),p>0&&p<1&&r[_].push(this.calculateF(p,t,n,e,i,_)),g=(-a-bmSqrt(u))/(2*o),g>0&&g<1&&r[_].push(this.calculateF(g,t,n,e,i,_)))));this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(t,n,e,i,r,o){return bmPow(1-t,3)*n[o]+3*bmPow(1-t,2)*t*e[o]+3*(1-t)*bmPow(t,2)*i[o]+bmPow(t,3)*r[o]},HShapeElement.prototype.calculateBoundingBox=function(t,n){var e,i=t.length;for(e=0;ee&&(e=r)}e*=t.mult}else e=t.v*t.mult;n.x-=e,n.xMax+=e,n.y-=e,n.yMax+=e},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,n=999999;if(t.x=n,t.xMax=-n,t.y=n,t.yMax=-n,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax=0;n-=1){var i=this.hierarchy[n].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;this.p?r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/o,r[1]/o,r[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),u=Math.atan2(a[0],-a[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){e=this.comp.threeDElements.length;var g,_,v;for(n=0;n=t)return this.threeDElements[n].perspectiveElem;n+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,n){var e=createTag("div"),i,r;styleDiv(e);var o=createTag("div");if(styleDiv(o),n==="3d"){i=e.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a,r=o.style;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=s,r.webkitTransform=s}e.appendChild(o);var l={container:o,perspectiveElem:e,startPos:t,endPos:t,type:n};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,n=this.layers.length,e,i="";for(t=0;t=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,n){for(var e=0,i=this.threeDElements.length;ee?(r=t/this.globalData.compSize.w,o=t/this.globalData.compSize.w,a=0,s=(n-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(r=n/this.globalData.compSize.h,o=n/this.globalData.compSize.h,a=(t-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,s=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+o+",0,0,0,0,1,0,"+a+","+s+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t=this.globalData.compSize.w,n=this.globalData.compSize.h,e,i=this.threeDElements.length;for(e=0;e=u;)te/=2,re/=2,O>>>=1;return(te+O)/re};return V.int32=function(){return F.g(4)|0},V.quick=function(){return F.g(4)/4294967296},V.double=V,I(D(F.S),t),(M.pass||R||function(Q,te,re,O){return O&&(O.S&&y(O,F),Q.state=function(){return y(F,{})}),re?(n[a]=Q,te):Q})(V,K,"global"in M?M.global:this==n,M.state)}n["seed"+a]=_;function v(A){var M,R=A.length,j=this,K=0,F=j.i=j.j=0,V=j.S=[];for(R||(A=[R++]);Ke){var i=e;e=n,n=i}return Math.min(Math.max(t,n),e)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,n){if(typeof t=="number"||t instanceof Number)return n=n||0,Math.abs(t-n);n||(n=helperLengthArray);var e,i=Math.min(t.length,n.length),r=0;for(e=0;e.5?u/(2-r-o):u/(r+o),r){case n:a=(e-i)/u+(e1&&(e-=1),e<1/6?t+(n-t)*6*e:e<1/2?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function hslToRgb(t){var n=t[0],e=t[1],i=t[2],r,o,a;if(e===0)r=i,a=i,o=i;else{var s=i<.5?i*(1+e):i+e-i*e,l=2*i-s;r=hue2rgb(l,s,n+1/3),o=hue2rgb(l,s,n),a=hue2rgb(l,s,n-1/3)}return[r,o,a,t[3]]}function linear(t,n,e,i,r){if((i===void 0||r===void 0)&&(i=n,r=e,n=0,e=1),e=e)return r;var a=e===n?0:(t-n)/(e-n);if(!i.length)return i+(r-i)*a;var s,l=i.length,u=createTypedArray("float32",l);for(s=0;s1){for(r=0;r1?n=1:n<0&&(n=0);var a=t(n);if($bm_isInstanceOfArray(r)){var s,l=r.length,u=createTypedArray("float32",l);for(s=0;sdata.k[n].t&&tdata.k[n+1].t-t?(i=n+2,r=data.k[n+1].t):(i=n+1,r=data.k[n].t);break}i===-1&&(i=n+1,r=data.k[n].t)}var o={};return o.index=i,o.time=r/elem.comp.globalData.frameRate,o}function key(t){var n,e,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,n={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=r.length,e=0;eI.length-1)&&(v=I.length-1),A=I[I.length-1-v].t,D=C-A);var M,R,j;if(_==="pingpong"){var K=Math.floor((x-A)/D);if(K%2!==0)return this.getValueAtTime((D-(x-A)%D+A)/this.comp.globalData.frameRate,0)}else if(_==="offset"){var F=this.getValueAtTime(A/this.comp.globalData.frameRate,0),V=this.getValueAtTime(C/this.comp.globalData.frameRate,0),Q=this.getValueAtTime(((x-A)%D+A)/this.comp.globalData.frameRate,0),te=Math.floor((x-A)/D);if(this.pv.length){for(j=new Array(F.length),R=j.length,M=0;M=C)return this.pv;var D,A;y?(v?D=Math.abs(this.elem.comp.globalData.frameRate*v):D=Math.max(0,this.elem.data.op-C),A=C+D):((!v||v>I.length-1)&&(v=I.length-1),A=I[v].t,D=A-C);var M,R,j;if(_==="pingpong"){var K=Math.floor((C-x)/D);if(K%2===0)return this.getValueAtTime(((C-x)%D+C)/this.comp.globalData.frameRate,0)}else if(_==="offset"){var F=this.getValueAtTime(C/this.comp.globalData.frameRate,0),V=this.getValueAtTime(A/this.comp.globalData.frameRate,0),Q=this.getValueAtTime((D-(C-x)%D+C)/this.comp.globalData.frameRate,0),te=Math.floor((C-x)/D)+1;if(this.pv.length){for(j=new Array(F.length),R=j.length,M=0;M1?(I-x)/(v-1):1,D=0,A=0,M;this.pv.length?M=createTypedArray("float32",this.pv.length):M=0;for(var R;DD){var K=A,F=x.c&&A===M-1?0:A+1,V=(D-R)/C[A].addedLength;j=bez.getPointInSegment(x.v[K],x.v[F],x.o[K],x.i[F],V,C[A]);break}else R+=C[A].addedLength;A+=1}return j||(j=x.c?[x.v[0][0],x.v[0][1]]:[x.v[x._length-1][0],x.v[x._length-1][1]]),j},vectorOnPath:function(v,y,x){v==1?v=this.v.c:v==0&&(v=.999);var I=this.pointOnPath(v,y),C=this.pointOnPath(v+.001,y),D=C[0]-I[0],A=C[1]-I[1],M=Math.sqrt(Math.pow(D,2)+Math.pow(A,2));if(M===0)return[0,0];var R=x==="tangent"?[D/M,A/M]:[-A/M,D/M];return R},tangentOnPath:function(v,y){return this.vectorOnPath(v,y,"tangent")},normalOnPath:function(v,y){return this.vectorOnPath(v,y,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([p],l),extendPrototype([p],u),u.prototype.getValueAtTime=s,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var g=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(_,v,y,x,I){var C=g(_,v,y,x,I);return C.propertyIndex=v.ix,C.lock=!1,y===3?expressionHelpers.searchExpressions(_,v.pt,C):y===4&&expressionHelpers.searchExpressions(_,v.ks,C),C.k&&_.addDynamicProperty(C),C}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(n,e){var i=this.calculateExpression(e);if(n.t!==i){var r={};return this.copyData(r,n),r.t=i.toString(),r.__complete=!1,r}return n},TextProperty.prototype.searchProperty=function(){var n=this.searchKeyframes(),e=this.searchExpressions();return this.kf=n||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(n,e){var i=createNS("feMerge");i.setAttribute("result",n);var r,o;for(o=0;o=u?g=y<0?i:r:g=i+v*Math.pow((s-t)/y,1/e),p[_]=g,_+=1,o+=256/(a-1);return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var n,e=this.filterManager.effectElements;this.feFuncRComposed&&(t||e[3].p._mdf||e[4].p._mdf||e[5].p._mdf||e[6].p._mdf||e[7].p._mdf)&&(n=this.getTableValue(e[3].p.v,e[4].p.v,e[5].p.v,e[6].p.v,e[7].p.v),this.feFuncRComposed.setAttribute("tableValues",n),this.feFuncGComposed.setAttribute("tableValues",n),this.feFuncBComposed.setAttribute("tableValues",n)),this.feFuncR&&(t||e[10].p._mdf||e[11].p._mdf||e[12].p._mdf||e[13].p._mdf||e[14].p._mdf)&&(n=this.getTableValue(e[10].p.v,e[11].p.v,e[12].p.v,e[13].p.v,e[14].p.v),this.feFuncR.setAttribute("tableValues",n)),this.feFuncG&&(t||e[17].p._mdf||e[18].p._mdf||e[19].p._mdf||e[20].p._mdf||e[21].p._mdf)&&(n=this.getTableValue(e[17].p.v,e[18].p.v,e[19].p.v,e[20].p.v,e[21].p.v),this.feFuncG.setAttribute("tableValues",n)),this.feFuncB&&(t||e[24].p._mdf||e[25].p._mdf||e[26].p._mdf||e[27].p._mdf||e[28].p._mdf)&&(n=this.getTableValue(e[24].p.v,e[25].p.v,e[26].p.v,e[27].p.v,e[28].p.v),this.feFuncB.setAttribute("tableValues",n)),this.feFuncA&&(t||e[31].p._mdf||e[32].p._mdf||e[33].p._mdf||e[34].p._mdf||e[35].p._mdf)&&(n=this.getTableValue(e[31].p.v,e[32].p.v,e[33].p.v,e[34].p.v,e[35].p.v),this.feFuncA.setAttribute("tableValues",n))}};function SVGDropShadowEffect(t,n,e,i,r){var o=n.container.globalData.renderConfig.filterSize,a=n.data.fs||o;t.setAttribute("x",a.x||o.x),t.setAttribute("y",a.y||o.y),t.setAttribute("width",a.width||o.width),t.setAttribute("height",a.height||o.height),this.filterManager=n;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",i+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,t.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,t.appendChild(u);var p=createNS("feComposite");p.setAttribute("in",i+"_drop_shadow_3"),p.setAttribute("in2",i+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(p);var g=this.createMergeNode(i,[i+"_drop_shadow_4",r]);t.appendChild(g)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var n=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(n[0]*255),Math.round(n[1]*255),Math.round(n[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=e*Math.cos(i),o=e*Math.sin(i);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,n,e){this.initialized=!1,this.filterManager=n,this.filterElem=t,this.elem=e,e.matteElement=createNS("g"),e.matteElement.appendChild(e.layerElement),e.matteElement.appendChild(e.transformedElement),e.baseElement=e.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var n=0,e=_svgMatteSymbols.length;n{cue.exports=H2;H2.flatten=H2;H2.unflatten=lue;function aue(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function sue(t){return t}function H2(t,n){n=n||{};let e=n.delimiter||".",i=n.maxDepth,r=n.transformKey||sue,o={};function a(s,l,u){u=u||1,Object.keys(s).forEach(function(p){let g=s[p],_=n.safe&&Array.isArray(g),v=Object.prototype.toString.call(g),y=aue(g),x=v==="[object Object]"||v==="[object Array]",I=l?l+e+r(p):r(p);if(!_&&!y&&x&&Object.keys(g).length&&(!n.maxDepth||u0&&(_=s(g.shift()),v=s(g[0]))}y[_]=lue(t[p],n)}),o}});var Tme=Sf(xi=>{var Q2={};Q2.userAgent=!1;var gw={},x7e="11.1.0",C7e="jsrsasign(all) 11.1.0 (2024-02-01) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license";var Fi=Fi||function(t,n){var e={},i=e.lib={},r=i.Base=function(){function v(){}return{extend:function(y){v.prototype=this;var x=new v;return y&&x.mixIn(y),x.hasOwnProperty("init")||(x.init=function(){x.$super.init.apply(this,arguments)}),x.init.prototype=x,x.$super=this,x},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var x in y)y.hasOwnProperty(x)&&(this[x]=y[x]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=r.extend({init:function(v,y){v=this.words=v||[],y!=n?this.sigBytes=y:this.sigBytes=v.length*4},toString:function(v){return(v||s).stringify(this)},concat:function(v){var y=this.words,x=v.words,I=this.sigBytes,C=v.sigBytes;if(this.clamp(),I%4)for(var D=0;D>>2]>>>24-D%4*8&255;y[I+D>>>2]|=A<<24-(I+D)%4*8}else for(var D=0;D>>2]=x[D>>>2];return this.sigBytes+=C,this},clamp:function(){var v=this.words,y=this.sigBytes;v[y>>>2]&=4294967295<<32-y%4*8,v.length=t.ceil(y/4)},clone:function(){var v=r.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var y=[],x=0;x>>2]>>>24-C%4*8&255;I.push((D>>>4).toString(16)),I.push((D&15).toString(16))}return I.join("")},parse:function(v){for(var y=v.length,x=[],I=0;I>>3]|=parseInt(v.substr(I,2),16)<<24-I%8*4;return new o.init(x,y/2)}},l=a.Latin1={stringify:function(v){for(var y=v.words,x=v.sigBytes,I=[],C=0;C>>2]>>>24-C%4*8&255;I.push(String.fromCharCode(D))}return I.join("")},parse:function(v){for(var y=v.length,x=[],I=0;I>>2]|=(v.charCodeAt(I)&255)<<24-I%4*8;return new o.init(x,y)}},u=a.Utf8={stringify:function(v){try{return decodeURIComponent(escape(l.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return l.parse(unescape(encodeURIComponent(v)))}},p=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=u.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var y=this._data,x=y.words,I=y.sigBytes,C=this.blockSize,D=C*4,A=I/D;v?A=t.ceil(A):A=t.max((A|0)-this._minBufferSize,0);var M=A*C,R=t.min(M*4,I);if(M){for(var j=0;j>>2]&255}},n.BlockCipher=s.extend({cfg:s.cfg.extend({mode:g,padding:u}),reset:function(){s.reset.call(this);var I=this.cfg,x=I.iv,I=I.mode;if(this._xformMode==this._ENC_XFORM_MODE)var C=I.createEncryptor;else C=I.createDecryptor,this._minBufferSize=1;this._mode=C.call(I,this,x&&x.words)},_doProcessBlock:function(x,I){this._mode.processBlock(x,I)},_doFinalize:function(){var x=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){x.pad(this._data,this.blockSize);var I=this._process(!0)}else I=this._process(!0),x.unpad(I);return I},blockSize:4});var p=n.CipherParams=e.extend({init:function(x){this.mixIn(x)},toString:function(x){return(x||this.formatter).stringify(this)}}),g=(v.format={}).OpenSSL={stringify:function(x){var I=x.ciphertext;return x=x.salt,(x?i.create([1398893684,1701076831]).concat(x).concat(I):I).toString(o)},parse:function(x){x=o.parse(x);var I=x.words;if(I[0]==1398893684&&I[1]==1701076831){var C=i.create(I.slice(2,4));I.splice(0,4),x.sigBytes-=16}return p.create({ciphertext:x,salt:C})}},_=n.SerializableCipher=e.extend({cfg:e.extend({format:g}),encrypt:function(x,I,C,D){D=this.cfg.extend(D);var A=x.createEncryptor(C,D);return I=A.finalize(I),A=A.cfg,p.create({ciphertext:I,key:C,iv:A.iv,algorithm:x,mode:A.mode,padding:A.padding,blockSize:x.blockSize,formatter:D.format})},decrypt:function(x,I,C,D){return D=this.cfg.extend(D),I=this._parse(I,D.format),x.createDecryptor(C,D).finalize(I.ciphertext)},_parse:function(x,I){return typeof x=="string"?I.parse(x,this):x}}),v=(v.kdf={}).OpenSSL={execute:function(x,I,C,D){return D||(D=i.random(8)),x=a.create({keySize:I+C}).compute(x,D),C=i.create(x.words.slice(I),4*C),x.sigBytes=4*I,p.create({key:x,iv:C,salt:D})}},y=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:v}),encrypt:function(x,I,C,D){return D=this.cfg.extend(D),C=D.kdf.execute(C,x.keySize,x.ivSize),D.iv=C.iv,x=_.encrypt.call(this,x,I,C.key,D),x.mixIn(C),x},decrypt:function(x,I,C,D){return D=this.cfg.extend(D),I=this._parse(I,D.format),C=D.kdf.execute(C,x.keySize,x.ivSize,I.salt),D.iv=C.iv,_.decrypt.call(this,x,I,C.key,D)}})}();(function(){for(var t=Fi,n=t.lib.BlockCipher,j=t.algo,e=[],i=[],r=[],o=[],a=[],s=[],l=[],u=[],p=[],g=[],_=[],v=0;256>v;v++)_[v]=128>v?v<<1:v<<1^283;for(var y=0,x=0,v=0;256>v;v++){var I=x^x<<1^x<<2^x<<3^x<<4,I=I>>>8^I&255^99;e[y]=I,i[I]=y;var C=_[y],D=_[C],A=_[D],M=257*_[I]^16843008*I;r[y]=M<<24|M>>>8,o[y]=M<<16|M>>>16,a[y]=M<<8|M>>>24,s[y]=M,M=16843009*A^65537*D^257*C^16843008*y,l[I]=M<<24|M>>>8,u[I]=M<<16|M>>>16,p[I]=M<<8|M>>>24,g[I]=M,y?(y=C^_[_[_[A^C]]],x^=_[_[x]]):y=x=1}var R=[0,1,2,4,8,16,32,64,128,27,54],j=j.AES=n.extend({_doReset:function(){for(var V=this._key,K=V.words,F=V.sigBytes/4,V=4*((this._nRounds=F+6)+1),Q=this._keySchedule=[],te=0;te>>24]<<24|e[re>>>16&255]<<16|e[re>>>8&255]<<8|e[re&255]):(re=re<<8|re>>>24,re=e[re>>>24]<<24|e[re>>>16&255]<<16|e[re>>>8&255]<<8|e[re&255],re^=R[te/F|0]<<24),Q[te]=Q[te-F]^re}for(K=this._invKeySchedule=[],F=0;FF||4>=te?re:l[e[re>>>24]]^u[e[re>>>16&255]]^p[e[re>>>8&255]]^g[e[re&255]]},encryptBlock:function(K,F){this._doCryptBlock(K,F,this._keySchedule,r,o,a,s,e)},decryptBlock:function(K,F){var V=K[F+1];K[F+1]=K[F+3],K[F+3]=V,this._doCryptBlock(K,F,this._invKeySchedule,l,u,p,g,i),V=K[F+1],K[F+1]=K[F+3],K[F+3]=V},_doCryptBlock:function(K,F,V,Q,te,re,O,B){for(var q=this._nRounds,ye=K[F]^V[0],se=K[F+1]^V[1],de=K[F+2]^V[2],me=K[F+3]^V[3],G=4,X=1;X>>24]^te[se>>>16&255]^re[de>>>8&255]^O[me&255]^V[G++],ee=Q[se>>>24]^te[de>>>16&255]^re[me>>>8&255]^O[ye&255]^V[G++],pe=Q[de>>>24]^te[me>>>16&255]^re[ye>>>8&255]^O[se&255]^V[G++],me=Q[me>>>24]^te[ye>>>16&255]^re[se>>>8&255]^O[de&255]^V[G++],ye=z,se=ee,de=pe;z=(B[ye>>>24]<<24|B[se>>>16&255]<<16|B[de>>>8&255]<<8|B[me&255])^V[G++],ee=(B[se>>>24]<<24|B[de>>>16&255]<<16|B[me>>>8&255]<<8|B[ye&255])^V[G++],pe=(B[de>>>24]<<24|B[me>>>16&255]<<16|B[ye>>>8&255]<<8|B[se&255])^V[G++],me=(B[me>>>24]<<24|B[ye>>>16&255]<<16|B[se>>>8&255]<<8|B[de&255])^V[G++],K[F]=z,K[F+1]=ee,K[F+2]=pe,K[F+3]=me},keySize:8});t.AES=n._createHelper(j)})();(function(){function t(_,v){var y=(this._lBlock>>>_^this._rBlock)&v;this._rBlock^=y,this._lBlock^=y<<_}function n(_,v){var y=(this._rBlock>>>_^this._lBlock)&v;this._lBlock^=y,this._rBlock^=y<<_}var e=Fi,r=e.lib,i=r.WordArray,r=r.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],p=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=o.DES=r.extend({_doReset:function(){for(var _=this._key.words,v=[],y=0;56>y;y++){var x=a[y]-1;v[y]=_[x>>>5]>>>31-x%32&1}for(_=this._subKeys=[],x=0;16>x;x++){for(var I=_[x]=[],C=l[x],y=0;24>y;y++)I[y/6|0]|=v[(s[y]-1+C)%28]<<31-y%6,I[4+(y/6|0)]|=v[28+(s[y+24]-1+C)%28]<<31-y%6;for(I[0]=I[0]<<1|I[0]>>>31,y=1;7>y;y++)I[y]>>>=4*(y-1)+3;I[7]=I[7]<<5|I[7]>>>27}for(v=this._invSubKeys=[],y=0;16>y;y++)v[y]=_[15-y]},encryptBlock:function(_,v){this._doCryptBlock(_,v,this._subKeys)},decryptBlock:function(_,v){this._doCryptBlock(_,v,this._invSubKeys)},_doCryptBlock:function(_,v,y){this._lBlock=_[v],this._rBlock=_[v+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var x=0;16>x;x++){for(var I=y[x],C=this._lBlock,D=this._rBlock,A=0,M=0;8>M;M++)A|=u[M][((D^I[M])&p[M])>>>0];this._lBlock=D,this._rBlock=C^A}y=this._lBlock,this._lBlock=this._rBlock,this._rBlock=y,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),_[v]=this._lBlock,_[v+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});e.DES=r._createHelper(g),o=o.TripleDES=r.extend({_doReset:function(){var _=this._key.words;this._des1=g.createEncryptor(i.create(_.slice(0,2))),this._des2=g.createEncryptor(i.create(_.slice(2,4))),this._des3=g.createEncryptor(i.create(_.slice(4,6)))},encryptBlock:function(_,v){this._des1.encryptBlock(_,v),this._des2.decryptBlock(_,v),this._des3.encryptBlock(_,v)},decryptBlock:function(_,v){this._des3.decryptBlock(_,v),this._des2.encryptBlock(_,v),this._des1.decryptBlock(_,v)},keySize:6,ivSize:2,blockSize:2}),e.TripleDES=r._createHelper(o)})();(function(){var t=Fi,n=t.lib.WordArray;t.enc.Base64={stringify:function(e){var i=e.words,r=e.sigBytes,o=this._map;e.clamp(),e=[];for(var a=0;a>>2]>>>24-8*(a%4)&255)<<16|(i[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|i[a+2>>>2]>>>24-8*((a+2)%4)&255,l=0;4>l&&a+.75*l>>6*(3-l)&63));if(i=o.charAt(64))for(;e.length%4;)e.push(i);return e.join("")},parse:function(e){var i=e.length,r=this._map,o=r.charAt(64);o&&(o=e.indexOf(o),o!=-1&&(i=o));for(var o=[],a=0,s=0;s>>6-2*(s%4);o[a>>>2]|=(l|u)<<24-8*(a%4),a++}return n.create(o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(t){function n(g,_,v,y,x,I,C){return g=g+(_&v|~_&y)+x+C,(g<>>32-I)+_}function e(g,_,v,y,x,I,C){return g=g+(_&y|v&~y)+x+C,(g<>>32-I)+_}function i(g,_,v,y,x,I,C){return g=g+(_^v^y)+x+C,(g<>>32-I)+_}function r(g,_,v,y,x,I,C){return g=g+(v^(_|~y))+x+C,(g<>>32-I)+_}for(var o=Fi,l=o.lib,a=l.WordArray,s=l.Hasher,l=o.algo,u=[],p=0;64>p;p++)u[p]=4294967296*t.abs(t.sin(p+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,_){for(var v=0;16>v;v++){var y=_+v,x=g[y];g[y]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var v=this._hash.words,y=g[_+0],x=g[_+1],I=g[_+2],C=g[_+3],D=g[_+4],A=g[_+5],M=g[_+6],R=g[_+7],j=g[_+8],K=g[_+9],F=g[_+10],V=g[_+11],Q=g[_+12],te=g[_+13],re=g[_+14],O=g[_+15],B=v[0],X=v[1],G=v[2],q=v[3],B=n(B,X,G,q,y,7,u[0]),q=n(q,B,X,G,x,12,u[1]),G=n(G,q,B,X,I,17,u[2]),X=n(X,G,q,B,C,22,u[3]),B=n(B,X,G,q,D,7,u[4]),q=n(q,B,X,G,A,12,u[5]),G=n(G,q,B,X,M,17,u[6]),X=n(X,G,q,B,R,22,u[7]),B=n(B,X,G,q,j,7,u[8]),q=n(q,B,X,G,K,12,u[9]),G=n(G,q,B,X,F,17,u[10]),X=n(X,G,q,B,V,22,u[11]),B=n(B,X,G,q,Q,7,u[12]),q=n(q,B,X,G,te,12,u[13]),G=n(G,q,B,X,re,17,u[14]),X=n(X,G,q,B,O,22,u[15]),B=e(B,X,G,q,x,5,u[16]),q=e(q,B,X,G,M,9,u[17]),G=e(G,q,B,X,V,14,u[18]),X=e(X,G,q,B,y,20,u[19]),B=e(B,X,G,q,A,5,u[20]),q=e(q,B,X,G,F,9,u[21]),G=e(G,q,B,X,O,14,u[22]),X=e(X,G,q,B,D,20,u[23]),B=e(B,X,G,q,K,5,u[24]),q=e(q,B,X,G,re,9,u[25]),G=e(G,q,B,X,C,14,u[26]),X=e(X,G,q,B,j,20,u[27]),B=e(B,X,G,q,te,5,u[28]),q=e(q,B,X,G,I,9,u[29]),G=e(G,q,B,X,R,14,u[30]),X=e(X,G,q,B,Q,20,u[31]),B=i(B,X,G,q,A,4,u[32]),q=i(q,B,X,G,j,11,u[33]),G=i(G,q,B,X,V,16,u[34]),X=i(X,G,q,B,re,23,u[35]),B=i(B,X,G,q,x,4,u[36]),q=i(q,B,X,G,D,11,u[37]),G=i(G,q,B,X,R,16,u[38]),X=i(X,G,q,B,F,23,u[39]),B=i(B,X,G,q,te,4,u[40]),q=i(q,B,X,G,y,11,u[41]),G=i(G,q,B,X,C,16,u[42]),X=i(X,G,q,B,M,23,u[43]),B=i(B,X,G,q,K,4,u[44]),q=i(q,B,X,G,Q,11,u[45]),G=i(G,q,B,X,O,16,u[46]),X=i(X,G,q,B,I,23,u[47]),B=r(B,X,G,q,y,6,u[48]),q=r(q,B,X,G,R,10,u[49]),G=r(G,q,B,X,re,15,u[50]),X=r(X,G,q,B,A,21,u[51]),B=r(B,X,G,q,Q,6,u[52]),q=r(q,B,X,G,C,10,u[53]),G=r(G,q,B,X,F,15,u[54]),X=r(X,G,q,B,x,21,u[55]),B=r(B,X,G,q,j,6,u[56]),q=r(q,B,X,G,O,10,u[57]),G=r(G,q,B,X,M,15,u[58]),X=r(X,G,q,B,te,21,u[59]),B=r(B,X,G,q,D,6,u[60]),q=r(q,B,X,G,V,10,u[61]),G=r(G,q,B,X,I,15,u[62]),X=r(X,G,q,B,K,21,u[63]);v[0]=v[0]+B|0,v[1]=v[1]+X|0,v[2]=v[2]+G|0,v[3]=v[3]+q|0},_doFinalize:function(){var g=this._data,_=g.words,v=8*this._nDataBytes,y=8*g.sigBytes;_[y>>>5]|=128<<24-y%32;var x=t.floor(v/4294967296);for(_[(y+64>>>9<<4)+15]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,_[(y+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,g.sigBytes=4*(_.length+1),this._process(),g=this._hash,_=g.words,v=0;4>v;v++)y=_[v],_[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;return g},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)})(Math);(function(){var t=Fi,r=t.lib,n=r.WordArray,e=r.Hasher,i=[],r=t.algo.SHA1=e.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,a){for(var s=this._hash.words,l=s[0],u=s[1],p=s[2],g=s[3],_=s[4],v=0;80>v;v++){if(16>v)i[v]=o[a+v]|0;else{var y=i[v-3]^i[v-8]^i[v-14]^i[v-16];i[v]=y<<1|y>>>31}y=(l<<5|l>>>27)+_+i[v],y=20>v?y+((u&p|~u&g)+1518500249):40>v?y+((u^p^g)+1859775393):60>v?y+((u&p|u&g|p&g)-1894007588):y+((u^p^g)-899497514),_=g,g=p,p=u<<30|u>>>2,u=l,l=y}s[0]=s[0]+l|0,s[1]=s[1]+u|0,s[2]=s[2]+p|0,s[3]=s[3]+g|0,s[4]=s[4]+_|0},_doFinalize:function(){var o=this._data,a=o.words,s=8*this._nDataBytes,l=8*o.sigBytes;return a[l>>>5]|=128<<24-l%32,a[(l+64>>>9<<4)+14]=Math.floor(s/4294967296),a[(l+64>>>9<<4)+15]=s,o.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var o=e.clone.call(this);return o._hash=this._hash.clone(),o}});t.SHA1=e._createHelper(r),t.HmacSHA1=e._createHmacHelper(r)})();(function(t){for(var n=Fi,v=n.lib,e=v.WordArray,i=v.Hasher,v=n.algo,r=[],o=[],a=function(x){return 4294967296*(x-(x|0))|0},s=2,l=0;64>l;){var u;e:{u=s;for(var p=t.sqrt(u),g=2;g<=p;g++)if(!(u%g)){u=!1;break e}u=!0}u&&(8>l&&(r[l]=a(t.pow(s,.5))),o[l]=a(t.pow(s,1/3)),l++),s++}var _=[],v=v.SHA256=i.extend({_doReset:function(){this._hash=new e.init(r.slice(0))},_doProcessBlock:function(y,x){for(var I=this._hash.words,C=I[0],D=I[1],A=I[2],M=I[3],R=I[4],j=I[5],K=I[6],F=I[7],V=0;64>V;V++){if(16>V)_[V]=y[x+V]|0;else{var Q=_[V-15],te=_[V-2];_[V]=((Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3)+_[V-7]+((te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10)+_[V-16]}Q=F+((R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25))+(R&j^~R&K)+o[V]+_[V],te=((C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22))+(C&D^C&A^D&A),F=K,K=j,j=R,R=M+Q|0,M=A,A=D,D=C,C=Q+te|0}I[0]=I[0]+C|0,I[1]=I[1]+D|0,I[2]=I[2]+A|0,I[3]=I[3]+M|0,I[4]=I[4]+R|0,I[5]=I[5]+j|0,I[6]=I[6]+K|0,I[7]=I[7]+F|0},_doFinalize:function(){var y=this._data,x=y.words,I=8*this._nDataBytes,C=8*y.sigBytes;return x[C>>>5]|=128<<24-C%32,x[(C+64>>>9<<4)+14]=t.floor(I/4294967296),x[(C+64>>>9<<4)+15]=I,y.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var y=i.clone.call(this);return y._hash=this._hash.clone(),y}});n.SHA256=i._createHelper(v),n.HmacSHA256=i._createHmacHelper(v)})(Math);(function(){var t=Fi,n=t.lib.WordArray,i=t.algo,e=i.SHA256,i=i.SHA224=e.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=e._doFinalize.call(this);return r.sigBytes-=4,r}});t.SHA224=e._createHelper(i),t.HmacSHA224=e._createHmacHelper(i)})();(function(){function t(){return i.create.apply(i,arguments)}for(var n=Fi,e=n.lib.Hasher,o=n.x64,i=o.Word,r=o.WordArray,o=n.algo,a=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],s=[],l=0;80>l;l++)s[l]=t();o=o.SHA512=e.extend({_doReset:function(){this._hash=new r.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(u,p){for(var D=this._hash.words,g=D[0],_=D[1],v=D[2],y=D[3],x=D[4],I=D[5],C=D[6],D=D[7],A=g.high,M=g.low,R=_.high,j=_.low,K=v.high,F=v.low,V=y.high,Q=y.low,te=x.high,re=x.low,O=I.high,B=I.low,q=C.high,G=C.low,X=D.high,z=D.low,ee=A,pe=M,me=R,ye=j,se=K,de=F,Te=V,Ie=Q,Re=te,et=re,It=O,kt=B,ii=q,Ri=G,_i=X,Ht=z,Yi=0;80>Yi;Yi++){var ci=s[Yi];if(16>Yi)var Dr=ci.high=u[p+2*Yi]|0,tt=ci.low=u[p+2*Yi+1]|0;else{var Dr=s[Yi-15],tt=Dr.high,ui=Dr.low,Dr=(tt>>>1|ui<<31)^(tt>>>8|ui<<24)^tt>>>7,ui=(ui>>>1|tt<<31)^(ui>>>8|tt<<24)^(ui>>>7|tt<<25),ei=s[Yi-2],tt=ei.high,Ke=ei.low,ei=(tt>>>19|Ke<<13)^(tt<<3|Ke>>>29)^tt>>>6,Ke=(Ke>>>19|tt<<13)^(Ke<<3|tt>>>29)^(Ke>>>6|tt<<26),tt=s[Yi-7],bo=tt.high,Qe=s[Yi-16],nt=Qe.high,Qe=Qe.low,tt=ui+tt.low,Dr=Dr+bo+(tt>>>0>>0?1:0),tt=tt+Ke,Dr=Dr+ei+(tt>>>0>>0?1:0),tt=tt+Qe,Dr=Dr+nt+(tt>>>0>>0?1:0);ci.high=Dr,ci.low=tt}var bo=Re&It^~Re&ii,Qe=et&kt^~et&Ri,ci=ee&me^ee&se^me&se,Rt=pe&ye^pe&de^ye&de,ui=(ee>>>28|pe<<4)^(ee<<30|pe>>>2)^(ee<<25|pe>>>7),ei=(pe>>>28|ee<<4)^(pe<<30|ee>>>2)^(pe<<25|ee>>>7),Ke=a[Yi],Be=Ke.high,Je=Ke.low,Ke=Ht+((et>>>14|Re<<18)^(et>>>18|Re<<14)^(et<<23|Re>>>9)),nt=_i+((Re>>>14|et<<18)^(Re>>>18|et<<14)^(Re<<23|et>>>9))+(Ke>>>0>>0?1:0),Ke=Ke+Qe,nt=nt+bo+(Ke>>>0>>0?1:0),Ke=Ke+Je,nt=nt+Be+(Ke>>>0>>0?1:0),Ke=Ke+tt,nt=nt+Dr+(Ke>>>0>>0?1:0),tt=ei+Rt,ci=ui+ci+(tt>>>0>>0?1:0),_i=ii,Ht=Ri,ii=It,Ri=kt,It=Re,kt=et,et=Ie+Ke|0,Re=Te+nt+(et>>>0>>0?1:0)|0,Te=se,Ie=de,se=me,de=ye,me=ee,ye=pe,pe=Ke+tt|0,ee=nt+ci+(pe>>>0>>0?1:0)|0}M=g.low=M+pe,g.high=A+ee+(M>>>0>>0?1:0),j=_.low=j+ye,_.high=R+me+(j>>>0>>0?1:0),F=v.low=F+de,v.high=K+se+(F>>>0>>0?1:0),Q=y.low=Q+Ie,y.high=V+Te+(Q>>>0>>0?1:0),re=x.low=re+et,x.high=te+Re+(re>>>0>>0?1:0),B=I.low=B+kt,I.high=O+It+(B>>>0>>0?1:0),G=C.low=G+Ri,C.high=q+ii+(G>>>0>>0?1:0),z=D.low=z+Ht,D.high=X+_i+(z>>>0>>0?1:0)},_doFinalize:function(){var u=this._data,p=u.words,g=8*this._nDataBytes,_=8*u.sigBytes;return p[_>>>5]|=128<<24-_%32,p[(_+128>>>10<<5)+30]=Math.floor(g/4294967296),p[(_+128>>>10<<5)+31]=g,u.sigBytes=4*p.length,this._process(),this._hash.toX32()},clone:function(){var u=e.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:32}),n.SHA512=e._createHelper(o),n.HmacSHA512=e._createHmacHelper(o)})();(function(){var t=Fi,r=t.x64,n=r.Word,e=r.WordArray,r=t.algo,i=r.SHA512,r=r.SHA384=i.extend({_doReset:function(){this._hash=new e.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=16,o}});t.SHA384=i._createHelper(r),t.HmacSHA384=i._createHmacHelper(r)})();(function(){var t=Fi,u=t.lib,n=u.WordArray,e=u.Hasher,u=t.algo,i=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),r=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),s=n.create([0,1518500249,1859775393,2400959708,2840853838]),l=n.create([1352829926,1548603684,1836072691,2053994217,0]),u=u.RIPEMD160=e.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,g){for(var _=0;16>_;_++){var v=g+_,y=p[v];p[v]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var v=this._hash.words,y=s.words,x=l.words,I=i.words,C=r.words,D=o.words,A=a.words,M,R,j,K,F,V,Q,te,re,O;V=M=v[0],Q=R=v[1],te=j=v[2],re=K=v[3],O=F=v[4];for(var B,_=0;80>_;_+=1)B=M+p[g+I[_]]|0,B=16>_?B+((R^j^K)+y[0]):32>_?B+((R&j|~R&K)+y[1]):48>_?B+(((R|~j)^K)+y[2]):64>_?B+((R&K|j&~K)+y[3]):B+((R^(j|~K))+y[4]),B|=0,B=B<>>32-D[_],B=B+F|0,M=F,F=K,K=j<<10|j>>>22,j=R,R=B,B=V+p[g+C[_]]|0,B=16>_?B+((Q^(te|~re))+x[0]):32>_?B+((Q&re|te&~re)+x[1]):48>_?B+(((Q|~te)^re)+x[2]):64>_?B+((Q&te|~Q&re)+x[3]):B+((Q^te^re)+x[4]),B|=0,B=B<>>32-A[_],B=B+O|0,V=O,O=re,re=te<<10|te>>>22,te=Q,Q=B;B=v[1]+j+re|0,v[1]=v[2]+K+O|0,v[2]=v[3]+F+V|0,v[3]=v[4]+M+Q|0,v[4]=v[0]+R+te|0,v[0]=B},_doFinalize:function(){var p=this._data,g=p.words,_=8*this._nDataBytes,v=8*p.sigBytes;for(g[v>>>5]|=128<<24-v%32,g[(v+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,p.sigBytes=4*(g.length+1),this._process(),p=this._hash,g=p.words,_=0;5>_;_++)v=g[_],g[_]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;return p},clone:function(){var p=e.clone.call(this);return p._hash=this._hash.clone(),p}});t.RIPEMD160=e._createHelper(u),t.HmacRIPEMD160=e._createHmacHelper(u)})(Math);(function(){var t=Fi,n=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(e,i){e=this._hasher=new e.init,typeof i=="string"&&(i=n.parse(i));var r=e.blockSize,o=4*r;i.sigBytes>o&&(i=e.finalize(i)),i.clamp();for(var a=this._oKey=i.clone(),s=this._iKey=i.clone(),l=a.words,u=s.words,p=0;p>6)+_w.charAt(e&63);if(n+1==t.length?(e=parseInt(t.substring(n,n+1),16),i+=_w.charAt(e<<2)):n+2==t.length&&(e=parseInt(t.substring(n,n+2),16),i+=_w.charAt(e>>2)+_w.charAt((e&3)<<4)),WW)for(;(i.length&3)>0;)i+=WW;return i}function bw(t){var n="",e,i=0,r,o;for(e=0;e>2),r=o&3,i=1):i==1?(n+=I0(r<<2|o>>4),r=o&15,i=2):i==2?(n+=I0(r),n+=I0(o>>2),r=o&3,i=3):(n+=I0(r<<2|o>>4),n+=I0(o&15),i=0));return i==1&&(n+=I0(r<<2)),n}function lme(t){var n=bw(t),e,i=new Array;for(e=0;2*e=0;){var a=n*this[t++]+e[i]+r;r=Math.floor(a/67108864),e[i++]=a&67108863}return r}function E7e(t,n,e,i,r,o){for(var a=n&32767,s=n>>15;--o>=0;){var l=this[t]&32767,u=this[t++]>>15,p=s*l+u*a;l=a*l+((p&32767)<<15)+e[i]+(r&1073741823),r=(l>>>30)+(p>>>15)+s*u+(r>>>30),e[i++]=l&1073741823}return r}function I7e(t,n,e,i,r,o){for(var a=n&16383,s=n>>14;--o>=0;){var l=this[t]&16383,u=this[t++]>>14,p=s*l+u*a;l=a*l+((p&16383)<<14)+e[i]+r,r=(l>>28)+(p>>14)+s*u,e[i++]=l&268435455}return r}ome&&Q2.appName=="Microsoft Internet Explorer"?(Ue.prototype.am=E7e,Rv=30):ome&&Q2.appName!="Netscape"?(Ue.prototype.am=w7e,Rv=26):(Ue.prototype.am=I7e,Rv=28);Ue.prototype.DB=Rv;Ue.prototype.DM=(1<=0;--n)t[n]=this[n];t.t=this.t,t.s=this.s}function A7e(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function Fv(t){var n=So();return n.fromInt(t),n}function k7e(t,n){var e;if(n==16)e=4;else if(n==8)e=3;else if(n==256)e=8;else if(n==2)e=1;else if(n==32)e=5;else if(n==4)e=2;else{this.fromRadix(t,n);return}this.t=0,this.s=0;for(var i=t.length,r=!1,o=0;--i>=0;){var a=e==8?t[i]&255:cme(t,i);if(a<0){t.charAt(i)=="-"&&(r=!0);continue}r=!1,o==0?this[this.t++]=a:o+e>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB)}e==8&&t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t}function F7e(t){if(this.s<0)return"-"+this.negate().toString(t);var n;if(t==16)n=4;else if(t==8)n=3;else if(t==2)n=1;else if(t==32)n=5;else if(t==4)n=2;else return this.toRadix(t);var e=(1<0)for(s>s)>0&&(r=!0,o=I0(i));a>=0;)s>(s+=this.DB-n)):(i=this[a]>>(s-=n)&e,s<=0&&(s+=this.DB,--a)),i>0&&(r=!0),r&&(o+=I0(i));return r?o:"0"}function R7e(){var t=So();return Ue.ZERO.subTo(this,t),t}function P7e(){return this.s<0?this.negate():this}function N7e(t){var n=this.s-t.s;if(n!=0)return n;var e=this.t;if(n=e-t.t,n!=0)return this.s<0?-n:n;for(;--e>=0;)if((n=this[e]-t[e])!=0)return n;return 0}function WL(t){var n=1,e;return(e=t>>>16)!=0&&(t=e,n+=16),(e=t>>8)!=0&&(t=e,n+=8),(e=t>>4)!=0&&(t=e,n+=4),(e=t>>2)!=0&&(t=e,n+=2),(e=t>>1)!=0&&(t=e,n+=1),n}function O7e(){return this.t<=0?0:this.DB*(this.t-1)+WL(this[this.t-1]^this.s&this.DM)}function L7e(t,n){var e;for(e=this.t-1;e>=0;--e)n[e+t]=this[e];for(e=t-1;e>=0;--e)n[e]=0;n.t=this.t+t,n.s=this.s}function V7e(t,n){for(var e=t;e=0;--s)n[s+o+1]=this[s]>>i|a,a=(this[s]&r)<=0;--s)n[s]=0;n[o]=a,n.t=this.t+o+1,n.s=this.s,n.clamp()}function j7e(t,n){n.s=this.s;var e=Math.floor(t/this.DB);if(e>=this.t){n.t=0;return}var i=t%this.DB,r=this.DB-i,o=(1<>i;for(var a=e+1;a>i;i>0&&(n[this.t-e-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;e>=this.DB;i-=t.s}n.s=i<0?-1:0,i<-1?n[e++]=this.DV+i:i>0&&(n[e++]=i),n.t=e,n.clamp()}function z7e(t,n){var e=this.abs(),i=t.abs(),r=e.t;for(n.t=r+i.t;--r>=0;)n[r]=0;for(r=0;r=0;)t[e]=0;for(e=0;e=n.DV&&(t[e+n.t]-=n.DV,t[e+n.t+1]=1)}t.t>0&&(t[t.t-1]+=n.am(e,n[e],t,2*e,0,1)),t.s=0,t.clamp()}function G7e(t,n,e){var i=t.abs();if(!(i.t<=0)){var r=this.abs();if(r.t0?(i.lShiftTo(l,o),r.lShiftTo(l,e)):(i.copyTo(o),r.copyTo(e));var u=o.t,p=o[u-1];if(p!=0){var g=p*(1<1?o[u-2]>>this.F2:0),_=this.FV/g,v=(1<=0&&(e[e.t++]=1,e.subTo(C,e)),Ue.ONE.dlShiftTo(u,C),C.subTo(o,o);o.t=0;){var D=e[--x]==p?this.DM:Math.floor(e[x]*_+(e[x-1]+y)*v);if((e[x]+=o.am(0,D,e,I,0,u))0&&e.rShiftTo(l,e),a<0&&Ue.ZERO.subTo(e,e)}}}function $7e(t){var n=So();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(Ue.ZERO)>0&&t.subTo(n,n),n}function L1(t){this.m=t}function q7e(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function W7e(t){return t}function Y7e(t){t.divRemTo(this.m,null,t)}function K7e(t,n,e){t.multiplyTo(n,e),this.reduce(e)}function X7e(t,n){t.squareTo(n),this.reduce(n)}L1.prototype.convert=q7e;L1.prototype.revert=W7e;L1.prototype.reduce=Y7e;L1.prototype.mulTo=K7e;L1.prototype.sqrTo=X7e;function Q7e(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var n=t&3;return n=n*(2-(t&15)*n)&15,n=n*(2-(t&255)*n)&255,n=n*(2-((t&65535)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n}function V1(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(n,n),n}function J7e(t){var n=So();return t.copyTo(n),this.reduce(n),n}function eze(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var n=0;n>15)*this.mpl&this.um)<<15)&t.DM;for(e=n+this.m.t,t[e]+=this.m.am(0,i,t,n,0,this.m.t);t[e]>=t.DV;)t[e]-=t.DV,t[++e]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function tze(t,n){t.squareTo(n),this.reduce(n)}function ize(t,n,e){t.multiplyTo(n,e),this.reduce(e)}V1.prototype.convert=Z7e;V1.prototype.revert=J7e;V1.prototype.reduce=eze;V1.prototype.mulTo=ize;V1.prototype.sqrTo=tze;function nze(){return(this.t>0?this[0]&1:this.s)==0}function rze(t,n){if(t>4294967295||t<1)return Ue.ONE;var e=So(),i=So(),r=n.convert(this),o=WL(t)-1;for(r.copyTo(e);--o>=0;)if(n.sqrTo(e,i),(t&1<0)n.mulTo(i,r,e);else{var a=e;e=i,i=a}return n.revert(e)}function oze(t,n){var e;return t<256||n.isEven()?e=new L1(n):e=new V1(n),this.exp(t,e)}Ue.prototype.copyTo=T7e;Ue.prototype.fromInt=A7e;Ue.prototype.fromString=k7e;Ue.prototype.clamp=M7e;Ue.prototype.dlShiftTo=L7e;Ue.prototype.drShiftTo=V7e;Ue.prototype.lShiftTo=B7e;Ue.prototype.rShiftTo=j7e;Ue.prototype.subTo=H7e;Ue.prototype.multiplyTo=z7e;Ue.prototype.squareTo=U7e;Ue.prototype.divRemTo=G7e;Ue.prototype.invDigit=Q7e;Ue.prototype.isEven=nze;Ue.prototype.exp=rze;Ue.prototype.toString=F7e;Ue.prototype.negate=R7e;Ue.prototype.abs=P7e;Ue.prototype.compareTo=N7e;Ue.prototype.bitLength=O7e;Ue.prototype.mod=$7e;Ue.prototype.modPowInt=oze;Ue.ZERO=Fv(0);Ue.ONE=Fv(1);function aze(){var t=So();return this.copyTo(t),t}function sze(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function cze(){return this.t==0?this.s:this[0]<<16>>16}function dze(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function uze(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function mze(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var n=this.chunkSize(t),e=Math.pow(t,n),i=Fv(e),r=So(),o=So(),a="";for(this.divRemTo(i,r,o);r.signum()>0;)a=(e+o.intValue()).toString(t).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(t)+a}function pze(t,n){this.fromInt(0),n==null&&(n=10);for(var e=this.chunkSize(n),i=Math.pow(n,e),r=!1,o=0,a=0,s=0;s=e&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(a,0)),r&&Ue.ZERO.subTo(this,this)}function hze(t,n,e){if(typeof n=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,e),this.testBit(t-1)||this.bitwiseTo(Ue.ONE.shiftLeft(t-1),JW,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(Ue.ONE.shiftLeft(t-1),this);else{var i=new Array,r=t&7;i.length=(t>>3)+1,n.nextBytes(i),r>0?i[0]&=(1<0)for(e>e)!=(this.s&this.DM)>>e&&(n[r++]=i|this.s<=0;)e<8?(i=(this[t]&(1<>(e+=this.DB-8)):(i=this[t]>>(e-=8)&255,e<=0&&(e+=this.DB,--t)),i&128&&(i|=-256),r==0&&(this.s&128)!=(i&128)&&++r,(r>0||i!=this.s)&&(n[r++]=i);return n}function gze(t){return this.compareTo(t)==0}function _ze(t){return this.compareTo(t)<0?this:t}function vze(t){return this.compareTo(t)>0?this:t}function bze(t,n,e){var i,r,o=Math.min(t.t,this.t);for(i=0;i>=16,n+=16),t&255||(t>>=8,n+=8),t&15||(t>>=4,n+=4),t&3||(t>>=2,n+=2),t&1||++n,n}function Aze(){for(var t=0;t=this.t?this.s!=0:(this[n]&1<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;e>=this.DB;i+=t.s}n.s=i<0?-1:0,i>0?n[e++]=i:i<-1&&(n[e++]=this.DV+i),n.t=e,n.clamp()}function Vze(t){var n=So();return this.addTo(t,n),n}function Bze(t){var n=So();return this.subTo(t,n),n}function jze(t){var n=So();return this.multiplyTo(t,n),n}function Hze(){var t=So();return this.squareTo(t),t}function zze(t){var n=So();return this.divRemTo(t,n,null),n}function Uze(t){var n=So();return this.divRemTo(t,null,n),n}function Gze(t){var n=So(),e=So();return this.divRemTo(t,n,e),new Array(n,e)}function $ze(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function qze(t,n){if(t!=0){for(;this.t<=n;)this[this.t++]=0;for(this[n]+=t;this[n]>=this.DV;)this[n]-=this.DV,++n>=this.t&&(this[this.t++]=0),++this[n]}}function J2(){}function mme(t){return t}function Wze(t,n,e){t.multiplyTo(n,e)}function Yze(t,n){t.squareTo(n)}J2.prototype.convert=mme;J2.prototype.revert=mme;J2.prototype.mulTo=Wze;J2.prototype.sqrTo=Yze;function Kze(t){return this.exp(t,new J2)}function Xze(t,n,e){var i=Math.min(this.t+t.t,n);for(e.s=0,e.t=i;i>0;)e[--i]=0;var r;for(r=e.t-this.t;i=0;)e[i]=0;for(i=Math.max(n-this.t,0);i2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var n=So();return t.copyTo(n),this.reduce(n),n}function Jze(t){return t}function eUe(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function tUe(t,n){t.squareTo(n),this.reduce(n)}function iUe(t,n,e){t.multiplyTo(n,e),this.reduce(e)}xw.prototype.convert=Zze;xw.prototype.revert=Jze;xw.prototype.reduce=eUe;xw.prototype.mulTo=iUe;xw.prototype.sqrTo=tUe;function nUe(t,n){var e=t.bitLength(),i,r=Fv(1),o;if(e<=0)return r;e<18?i=1:e<48?i=3:e<144?i=4:e<768?i=5:i=6,e<8?o=new L1(n):n.isEven()?o=new xw(n):o=new V1(n);var a=new Array,s=3,l=i-1,u=(1<1){var p=So();for(o.sqrTo(a[1],p);s<=u;)a[s]=So(),o.mulTo(p,a[s-2],a[s]),s+=2}var g=t.t-1,_,v=!0,y=So(),x;for(e=WL(t[g])-1;g>=0;){for(e>=l?_=t[g]>>e-l&u:(_=(t[g]&(1<0&&(_|=t[g-1]>>this.DB+e-l)),s=i;!(_&1);)_>>=1,--s;if((e-=s)<0&&(e+=this.DB,--g),v)a[_].copyTo(r),v=!1;else{for(;s>1;)o.sqrTo(r,y),o.sqrTo(y,r),s-=2;s>0?o.sqrTo(r,y):(x=r,r=y,y=x),o.mulTo(y,a[_],r)}for(;g>=0&&!(t[g]&1<0&&(n.rShiftTo(o,n),e.rShiftTo(o,e));n.signum()>0;)(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),n.compareTo(e)>=0?(n.subTo(e,n),n.rShiftTo(1,n)):(e.subTo(n,e),e.rShiftTo(1,e));return o>0&&e.lShiftTo(o,e),e}function oUe(t){if(t<=0)return 0;var n=this.DV%t,e=this.s<0?t-1:0;if(this.t>0)if(n==0)e=this[0]%t;else for(var i=this.t-1;i>=0;--i)e=(n*e+this[i])%t;return e}function aUe(t){var n=t.isEven();if(this.isEven()&&n||t.signum()==0)return Ue.ZERO;for(var e=t.clone(),i=this.clone(),r=Fv(1),o=Fv(0),a=Fv(0),s=Fv(1);e.signum()!=0;){for(;e.isEven();)e.rShiftTo(1,e),n?((!r.isEven()||!o.isEven())&&(r.addTo(this,r),o.subTo(t,o)),r.rShiftTo(1,r)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?((!a.isEven()||!s.isEven())&&(a.addTo(this,a),s.subTo(t,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);e.compareTo(i)>=0?(e.subTo(i,e),n&&r.subTo(a,r),o.subTo(s,o)):(i.subTo(e,i),n&&a.subTo(r,a),s.subTo(o,s))}if(i.compareTo(Ue.ONE)!=0)return Ue.ZERO;if(s.compareTo(t)>=0)return s.subtract(t);if(s.signum()<0)s.addTo(t,s);else return s;return s.signum()<0?s.add(t):s}var $d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],sUe=(1<<26)/$d[$d.length-1];function lUe(t){var n,e=this.abs();if(e.t==1&&e[0]<=$d[$d.length-1]){for(n=0;n<$d.length;++n)if(e[0]==$d[n])return!0;return!1}if(e.isEven())return!1;for(n=1;n<$d.length;){for(var i=$d[n],r=n+1;r<$d.length&&i>1,t>$d.length&&(t=$d.length);for(var r=So(),o=0;o>8&255,Nm[tc++]^=t>>16&255,Nm[tc++]^=t>>24&255,tc>=YW&&(tc-=YW)}function tY(){pUe(new Date().getTime())}if(Nm==null){if(Nm=new Array,tc=0,gw!==void 0&&(gw.crypto!==void 0||gw.msCrypto!==void 0)){if(GW=gw.crypto||gw.msCrypto,GW.getRandomValues)for($W=new Uint8Array(32),GW.getRandomValues($W),Ap=0;Ap<32;++Ap)Nm[tc++]=$W[Ap];else if(Q2.appName=="Netscape"&&Q2.appVersion<"5")for(qW=gw.crypto.random(32),Ap=0;Ap>>8,Nm[tc++]=Ap&255;tc=0,tY()}var Ap,GW,$W,qW;function hUe(){if(zL==null){for(tY(),zL=mUe(),zL.init(Nm),tc=0;tc0&&n.length>0)this.n=Vu(t,16),this.e=parseInt(n,16);else throw"Invalid RSA public key"}function _Ue(t){return t.modPowInt(this.e,this.n)}pr.prototype.doPublic=_Ue;pr.prototype.setPublic=gUe;pr.prototype.type="RSA";function vUe(t,n,e){if(this.isPrivate=!0,typeof t!="string")this.n=t,this.e=n,this.d=e;else if(t!=null&&n!=null&&t.length>0&&n.length>0)this.n=Vu(t,16),this.e=parseInt(n,16),this.d=Vu(e,16);else throw"Invalid RSA private key"}function bUe(t,n,e,i,r,o,a,s){if(this.isPrivate=!0,this.isPublic=!1,t==null)throw"RSASetPrivateEx N == null";if(n==null)throw"RSASetPrivateEx E == null";if(t.length==0)throw"RSASetPrivateEx N.length == 0";if(n.length==0)throw"RSASetPrivateEx E.length == 0";if(t!=null&&n!=null&&t.length>0&&n.length>0)this.n=Vu(t,16),this.e=parseInt(n,16),this.d=Vu(e,16),this.p=Vu(i,16),this.q=Vu(r,16),this.dmp1=Vu(o,16),this.dmq1=Vu(a,16),this.coeff=Vu(s,16);else throw"Invalid RSA private key in RSASetPrivateEx"}function yUe(t,n){var e=new Cw,i=t>>1;this.e=parseInt(n,16);for(var r=new Ue(n,16),o=t/2-100,a=Ue.ONE.shiftLeft(o);;){for(;this.p=new Ue(t-i,1,e),!(this.p.subtract(Ue.ONE).gcd(r).compareTo(Ue.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Ue(i,1,e),!(this.q.subtract(Ue.ONE).gcd(r).compareTo(Ue.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.q.subtract(this.p).abs();if(!(l.bitLength()0;--u){r=r.twice();var p=e.testBit(u),g=n.testBit(u);p!=g&&(r=r.add(p?this:i))}for(u=a.bitLength()-2;u>0;--u){s=s.twice();var _=a.testBit(u),v=o.testBit(u);_!=v&&(s=s.add(_?s:l))}return r}function VUe(t,n,e){var i;t.bitLength()>e.bitLength()?i=t.bitLength()-1:i=e.bitLength()-1;for(var r=this.curve.getInfinity(),o=this.add(n);i>=0;)r=r.twice(),t.testBit(i)?e.testBit(i)?r=r.add(o):r=r.add(this):e.testBit(i)&&(r=r.add(n)),--i;return r}jo.prototype.getX=kUe;jo.prototype.getY=MUe;jo.prototype.equals=FUe;jo.prototype.isInfinity=RUe;jo.prototype.negate=PUe;jo.prototype.add=NUe;jo.prototype.twice=OUe;jo.prototype.multiply=LUe;jo.prototype.multiplyTwo=VUe;function T0(t,n,e){this.q=t,this.a=this.fromBigInteger(n),this.b=this.fromBigInteger(e),this.infinity=new jo(this,null,null)}function BUe(){return this.q}function jUe(){return this.a}function HUe(){return this.b}function zUe(t){return t==this?!0:this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)}function UUe(){return this.infinity}function GUe(t){return new Ml(this.q,t)}function $Ue(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var n=t.substr(0,2),e=t.substr(2),i=this.fromBigInteger(new Ue(u,16)),r=this.getA(),o=this.getB(),a=i.square().add(r).multiply(i).add(o),s=a.sqrt();return n=="03"&&(s=s.negate()),new jo(this,i,s);case 4:case 6:case 7:var l=(t.length-2)/2,u=t.substr(2,l),p=t.substr(l+2,l);return new jo(this,this.fromBigInteger(new Ue(u,16)),this.fromBigInteger(new Ue(p,16)));default:return null}}T0.prototype.getQ=BUe;T0.prototype.getA=jUe;T0.prototype.getB=HUe;T0.prototype.equals=zUe;T0.prototype.getInfinity=UUe;T0.prototype.fromBigInteger=GUe;T0.prototype.decodePointHex=$Ue;Ml.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)};jo.prototype.getEncoded=function(t){var n=function(o,a){var s=o.toByteArrayUnsigned();if(as.length;)s.unshift(0);return s},e=this.getX().toBigInteger(),i=this.getY().toBigInteger(),r=n(e,32);return t?i.isEven()?r.unshift(2):r.unshift(3):(r.unshift(4),r=r.concat(n(i,32))),r};jo.decodeFrom=function(t,n){var e=n[0],i=n.length-1,r=n.slice(1,1+i/2),o=n.slice(1+i/2,1+i);r.unshift(0),o.unshift(0);var a=new Ue(r),s=new Ue(o);return new jo(t,t.fromBigInteger(a),t.fromBigInteger(s))};jo.decodeFromHex=function(t,n){var e=n.substr(0,2),i=n.length-2,r=n.substr(2,i/2),o=n.substr(2+i/2,i/2),a=new Ue(r,16),s=new Ue(o,16);return new jo(t,t.fromBigInteger(a),t.fromBigInteger(s))};jo.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var n=t.x.subtract(this.x),e=t.y.subtract(this.y),i=e.divide(n),r=i.square().subtract(this.x).subtract(t.x),o=i.multiply(this.x.subtract(r)).subtract(this.y);return new jo(this.curve,r,o)};jo.prototype.twice2D=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=this.curve.fromBigInteger(Ue.valueOf(2)),n=this.curve.fromBigInteger(Ue.valueOf(3)),e=this.x.square().multiply(n).add(this.curve.a).divide(this.y.multiply(t)),i=e.square().subtract(this.x.multiply(t)),r=e.multiply(this.x.subtract(i)).subtract(this.y);return new jo(this.curve,i,r)};jo.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(t.signum()==0)return this.curve.getInfinity();var n=t,e=n.multiply(new Ue("3")),i=this.negate(),r=this,o;for(o=e.bitLength()-2;o>0;--o){r=r.twice();var a=e.testBit(o),s=n.testBit(o);a!=s&&(r=r.add2D(a?this:i))}return r};jo.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),n=this.getY().toBigInteger(),e=this.curve.getA().toBigInteger(),i=this.curve.getB().toBigInteger(),r=this.curve.getQ(),o=n.multiply(n).mod(r),a=t.multiply(t).multiply(t).add(e.multiply(t)).add(i).mod(r);return o.equals(a)};jo.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"};jo.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var n=this.getX().toBigInteger(),e=this.getY().toBigInteger();if(n.compareTo(Ue.ONE)<0||n.compareTo(t.subtract(Ue.ONE))>0)throw new Error("x coordinate out of bounds");if(e.compareTo(Ue.ONE)<0||e.compareTo(t.subtract(Ue.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var pme=function(){var t="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",n='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',e='(?:"'+n+'*")',i=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+t+"|"+e+")","g"),r=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),o={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:` `,r:"\r",t:" "};function a(g,_,v){return _?o[_]:String.fromCharCode(parseInt(v,16))}var s=new String(""),l="\\",u={"{":Object,"[":Array},p=Object.hasOwnProperty;return function(g,_){var v=g.match(i),y,x=v[0],I=!1;x==="{"?y={}:x==="["?y=[]:(y=[],I=!0);for(var C,D=[y],A=1-I,M=v.length;A=0;)delete V[Q[O]]}return _.call(K,F,V)};y=j({"":y},"")}return y}}();(typeof P>"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});P.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var n=t.toString(16);return n.length%2==1&&(n="0"+n),n},this.bigIntToMinTwosComplementsHex=function(t){return tA(t)},this.getPEMStringFromHex=function(t,n){return od(t,n)},this.newObject=function(t){var n=P,e=n.asn1,i=e.ASN1Object,r=e.DERBoolean,o=e.DERInteger,a=e.DERBitString,s=e.DEROctetString,l=e.DERNull,u=e.DERObjectIdentifier,p=e.DEREnumerated,g=e.DERUTF8String,_=e.DERNumericString,v=e.DERPrintableString,y=e.DERTeletexString,x=e.DERIA5String,I=e.DERUTCTime,C=e.DERGeneralizedTime,D=e.DERVisibleString,A=e.DERBMPString,M=e.DERSequence,R=e.DERSet,j=e.DERTaggedObject,K=e.ASN1Util.newObject;if(t instanceof e.ASN1Object)return t;var F=Object.keys(t);if(F.length!=1)throw new Error("key of param shall be only one.");var V=F[0];if(":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+V+":")==-1)throw new Error("undefined key: "+V);if(V=="bool")return new r(t[V]);if(V=="int")return new o(t[V]);if(V=="bitstr")return new a(t[V]);if(V=="octstr")return new s(t[V]);if(V=="null")return new l(t[V]);if(V=="oid")return new u(t[V]);if(V=="enum")return new p(t[V]);if(V=="utf8str")return new g(t[V]);if(V=="numstr")return new _(t[V]);if(V=="prnstr")return new v(t[V]);if(V=="telstr")return new y(t[V]);if(V=="ia5str")return new x(t[V]);if(V=="utctime")return new I(t[V]);if(V=="gentime")return new C(t[V]);if(V=="visstr")return new D(t[V]);if(V=="bmpstr")return new A(t[V]);if(V=="asn1")return new i(t[V]);if(V=="seq"){for(var Q=t[V],te=[],re=0;re"u"||this.hV==null)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+o.length+",v="+this.hV);var a=this.hV.length/2,s=a.toString(16);if(s.length%2==1&&(s="0"+s),a<128)return s;var l=s.length/2;if(l>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+a.toString(16));var u=128+l;return u.toString(16)+s},this.tohex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(a){this.params=a},t!=null&&t.tlv!=null&&(this.hTLV=t.tlv,this.isModified=!1)};P.asn1.DERAbstractString=function(t){P.asn1.DERAbstractString.superclass.constructor.call(this);var n=null,e=null;this.getString=function(){return this.s},this.setString=function(i){this.hTLV=null,this.isModified=!0,this.s=i,this.hV=KL(this.s).toLowerCase()},this.setStringHex=function(i){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.getFreshValueHex=function(){return this.hV},typeof t<"u"&&(typeof t=="string"?this.setString(t):typeof t.str<"u"?this.setString(t.str):typeof t.hex<"u"&&this.setStringHex(t.hex))};Et(P.asn1.DERAbstractString,P.asn1.ASN1Object);P.asn1.DERAbstractTime=function(t){P.asn1.DERAbstractTime.superclass.constructor.call(this);var n=null,e=null;this.localDateToUTC=function(i){var r=i.getTime()+i.getTimezoneOffset()*6e4,o=new Date(r);return o},this.formatDate=function(i,r,o){var a=this.zeroPadding,s=this.localDateToUTC(i),l=String(s.getFullYear());r=="utc"&&(l=l.substr(2,2));var u=a(String(s.getMonth()+1),2),p=a(String(s.getDate()),2),g=a(String(s.getHours()),2),_=a(String(s.getMinutes()),2),v=a(String(s.getSeconds()),2),y=l+u+p+g+_+v;if(o===!0){var x=s.getMilliseconds();if(x!=0){var I=a(String(x),3);I=I.replace(/[0]+$/,""),y=y+"."+I}}return y+"Z"},this.zeroPadding=function(i,r){return i.length>=r?i:new Array(r-i.length+1).join("0")+i},this.setByParam=function(i){this.hV=null,this.hTLV=null,this.params=i},this.getString=function(){},this.setString=function(i){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.str=i},this.setByDate=function(i){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.date=i},this.setByDateValue=function(i,r,o,a,s,l){var u=new Date(Date.UTC(i,r-1,o,a,s,l,0));this.setByDate(u)},this.getFreshValueHex=function(){return this.hV}};Et(P.asn1.DERAbstractTime,P.asn1.ASN1Object);P.asn1.DERAbstractStructured=function(t){P.asn1.DERAbstractString.superclass.constructor.call(this);var n=null;this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,typeof t<"u"&&typeof t.array<"u"&&(this.asn1Array=t.array)};Et(P.asn1.DERAbstractStructured,P.asn1.ASN1Object);P.asn1.DERBoolean=function(t){P.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",t==!1?this.hTLV="010100":this.hTLV="0101ff"};Et(P.asn1.DERBoolean,P.asn1.ASN1Object);P.asn1.DERInteger=function(t){P.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var n=tA;this.setByBigInteger=function(e){this.isModified=!0,this.params={bigint:e}},this.setByInteger=function(e){this.isModified=!0,this.params=e},this.setValueHex=function(e){this.isModified=!0,this.params={hex:e}},this.getFreshValueHex=function(){var e=this.params,i=null;if(e==null)throw new Error("value not set");if(typeof e=="object"&&e.hex!=null)return this.hV=e.hex,this.hV;if(typeof e=="number")i=new Ue(String(e),10);else if(e.int!=null)i=new Ue(String(e.int),10);else if(e.bigint!=null)i=e.bigint;else throw new Error("wrong parameter");return this.hV=n(i),this.hV},t!=null&&(this.params=t)};Et(P.asn1.DERInteger,P.asn1.ASN1Object);P.asn1.DERBitString=function(t){if(t!==void 0&&typeof t.obj<"u"){var n=P.asn1.ASN1Util.newObject(t.obj);t.hex="00"+n.tohex()}P.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,i){if(e<0||7=o)break}return i};ti.getNthChildIdx=function(t,n,e){var i=ti.getChildIdx(t,n);return i[e]};ti.getIdxbyList=function(t,n,e,i){var r=ti,o,a;return e.length==0?i!==void 0&&t.substr(n,2)!==i?-1:n:(o=e.shift(),a=r.getChildIdx(t,n),o>=a.length?-1:r.getIdxbyList(t,a[o],e,i))};ti.getIdxbyListEx=function(t,n,e,i){var r=ti,o,a;if(e.length==0)return i!==void 0&&t.substr(n,2)!==i?-1:n;o=e.shift(),a=r.getChildIdx(t,n);for(var s=0,l=0;l=t.length?null:r.getTLV(t,o)};ti.getTLVbyListEx=function(t,n,e,i){var r=ti,o=r.getIdxbyListEx(t,n,e,i);return o==-1?null:r.getTLV(t,o)};ti.getVbyList=function(t,n,e,i,r){var o=ti,a,s;return a=o.getIdxbyList(t,n,e,i),a==-1||a>=t.length?null:(s=o.getV(t,a),r===!0&&(s=s.substr(2)),s)};ti.getVbyListEx=function(t,n,e,i,r){var o=ti,a,s,l;return a=o.getIdxbyListEx(t,n,e,i),a==-1?null:(l=o.getV(t,a),t.substr(a,2)=="03"&&r!==!1&&(l=l.substr(2)),l)};ti.getInt=function(t,n,e){e==null&&(e=-1);try{var i=t.substr(n,2);if(i!="02"&&i!="03")return e;var r=ti.getV(t,n);return i=="02"?parseInt(r,16):Cme(r)}catch{return e}};ti.getOID=function(t,n,e){e==null&&(e=null);try{if(t.substr(n,2)!="06")return e;var i=ti.getV(t,n);return e4(i)}catch{return e}};ti.getOIDName=function(t,n,e){e==null&&(e=null);try{var i=ti.getOID(t,n,e);if(i==e)return e;var r=P.asn1.x509.OID.oid2name(i);return r==""?i:r}catch{return e}};ti.getString=function(t,n,e){e==null&&(e=null);try{var i=ti.getV(t,n);return ju(i)}catch{return e}};ti.hextooidstr=function(t){var n=function(g,_){return g.length>=_?g:new Array(_-g.length+1).join("0")+g},e=[],i=t.substr(0,2),r=parseInt(i,16);e[0]=new String(Math.floor(r/40)),e[1]=new String(r%40);for(var o=t.substr(2),a=[],s=0;s0&&(p=p+"."+l.join(".")),p};ti.dump=function(t,n,e,i){var r=ti,o=r.getV,a=r.dump,s=r.getChildIdx,l=t;t instanceof P.asn1.ASN1Object&&(l=t.tohex());var u=function(K,F){if(K.length<=F*2)return K;var V=K.substr(0,F)+"..(total "+K.length/2+"bytes).."+K.substr(K.length-F,F);return V};n===void 0&&(n={ommit_long_octet:32}),e===void 0&&(e=0),i===void 0&&(i="");var p=n.ommit_long_octet,R=l.substr(e,2);if(R=="01"){var g=o(l,e);return g=="00"?i+`BOOLEAN FALSE `:i+`BOOLEAN TRUE `}if(R=="02"){var g=o(l,e);return i+"INTEGER "+u(g,p)+` `}if(R=="03"){var g=o(l,e);if(r.isASN1HEX(g.substr(2))){var _=i+`BITSTRING, encapsulates `;return _=_+a(g.substr(2),n,0,i+" "),_}else return i+"BITSTRING "+u(g,p)+` `}if(R=="04"){var g=o(l,e);if(r.isASN1HEX(g)){var _=i+`OCTETSTRING, encapsulates `;return _=_+a(g,n,0,i+" "),_}else return i+"OCTETSTRING "+u(g,p)+` `}if(R=="05")return i+`NULL `;if(R=="06"){var v=o(l,e),y=P.asn1.ASN1Util.oidHexToInt(v),x=P.asn1.x509.OID.oid2name(y),I=y.replace(/\./g," ");return x!=""?i+"ObjectIdentifier "+x+" ("+I+`) `:i+"ObjectIdentifier ("+I+`) `}if(R=="0a")return i+"ENUMERATED "+parseInt(o(l,e))+` `;if(R=="0c")return i+"UTF8String '"+ra(o(l,e))+`' `;if(R=="13")return i+"PrintableString '"+ra(o(l,e))+`' `;if(R=="14")return i+"TeletexString '"+ra(o(l,e))+`' `;if(R=="16")return i+"IA5String '"+ra(o(l,e))+`' `;if(R=="17")return i+"UTCTime "+ra(o(l,e))+` `;if(R=="18")return i+"GeneralizedTime "+ra(o(l,e))+` `;if(R=="1a")return i+"VisualString '"+ra(o(l,e))+`' `;if(R=="1e")return i+"BMPString '"+oY(o(l,e))+`' `;if(R=="30"){if(l.substr(e,4)=="3000")return i+`SEQUENCE {} `;var _=i+`SEQUENCE `,C=s(l,e),D=n;if((C.length==2||C.length==3)&&l.substr(C[0],2)=="06"&&l.substr(C[C.length-1],2)=="04"){var x=r.oidname(o(l,C[0])),A=JSON.parse(JSON.stringify(n));A.x509ExtName=x,D=A}for(var M=0;M4?{enum:{hex:C}}:{enum:parseInt(C,16)};if(x=="30"||x=="31")return I[v[x]]=y(t),I;if(x=="14"){var j=_(C);return I[v[x]]={str:j},I}else if(x=="1e"){var j=g(C);return I[v[x]]={str:j},I}else if(":0c:12:13:16:17:18:1a:".indexOf(x)!=-1){var j=p(C);return I[v[x]]={str:j},I}else if(x.match(/^8[0-9]$/)){var j=p(C);return j==null|j==""?{tag:{tag:x,explicit:!1,hex:C}}:j.match(/[\x00-\x1F\x7F-\x9F]/)!=null||j.match(/[\u0000-\u001F\u0080–\u009F]/)!=null?{tag:{tag:x,explicit:!1,hex:C}}:{tag:{tag:x,explicit:!1,str:j}}}else if(x.match(/^a[0-9]$/))try{if(!i(C))throw new Error("not encap");return{tag:{tag:x,explicit:!0,obj:e(C)}}}catch{return{tag:{tag:x,explicit:!0,hex:C}}}else{var K=new P.asn1.ASN1Object;K.hV=C;var F=K.getLengthHexFromValue();return{asn1:{tlv:x+F+C}}}}}};ti.isContextTag=function(t,n){t=t.toLowerCase();var e,i;try{e=parseInt(t,16)}catch{return-1}if(n===void 0)return(e&192)==128;try{var r=n.match(/^\[[0-9]+\]$/);return r==null||(i=parseInt(n.substr(1,n.length-1),10),i>31)?!1:(e&192)==128&&(e&31)==i}catch{return!1}};ti.isASN1HEX=function(t){var n=ti;if(t.length%2==1)return!1;var e=n.getVblen(t,0),i=t.substr(0,2),r=n.getL(t,0),o=t.length-i.length-r.length;return o==e*2};ti.checkStrictDER=function(t,n,e,i,r){var o=ti;if(e===void 0){if(typeof t!="string")throw new Error("not hex string");if(t=t.toLowerCase(),!P.lang.String.isHex(t))throw new Error("not hex string");e=t.length,i=t.length/2,i<128?r=1:r=Math.ceil(i.toString(16))+1}var a=o.getL(t,n);if(a.length>r*2)throw new Error("L of TLV too long: idx="+n);var s=o.getVblen(t,n);if(s>i)throw new Error("value of L too long than hex: idx="+n);var l=o.getTLV(t,n),u=l.length-2-o.getL(t,n).length;if(u!==s*2)throw new Error("V string length and L's value not the same:"+u+"/"+s*2);if(n===0&&t.length!=l.length)throw new Error("total length and TLV length unmatch:"+t.length+"!="+l.length);var p=t.substr(n,2);if(p==="02"){var g=o.getVidx(t,n);if(t.substr(g,2)=="00"&&t.charCodeAt(g+2)<56)throw new Error("not least zeros for DER INTEGER")}if(parseInt(p,16)&32){for(var _=o.getVblen(t,n),v=0,y=o.getChildIdx(t,n),x=0;x"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});(typeof P.asn1.x509>"u"||!P.asn1.x509)&&(P.asn1.x509={});P.asn1.x509.Certificate=function(t){P.asn1.x509.Certificate.superclass.constructor.call(this);var n=P,e=n.asn1,i=e.DERBitString,r=e.DERSequence,o=e.x509,a=o.TBSCertificate,s=o.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(l){this.params=l},this.sign=function(){var l=this.params,u=l.sigalg;l.sigalg.name!=null&&(u=l.sigalg.name);var p=l.tbsobj.tohex(),g=new P.crypto.Signature({alg:u});g.init(l.cakey),g.updateHex(p),l.sighex=g.sign()},this.getPEM=function(){return od(this.tohex(),"CERTIFICATE")},this.tohex=function(){var l=this.params;if((l.tbsobj==null||l.tbsobj==null)&&(l.tbsobj=new a(l)),l.sighex==null&&l.cakey!=null&&this.sign(),l.sighex==null)throw new Error("sighex or cakey parameter not defined");var u=[];u.push(l.tbsobj),u.push(new s({name:l.sigalg})),u.push(new i({hex:"00"+l.sighex}));var p=new r({array:u});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&(this.params=t)};Et(P.asn1.x509.Certificate,P.asn1.ASN1Object);P.asn1.x509.TBSCertificate=function(t){P.asn1.x509.TBSCertificate.superclass.constructor.call(this);var n=P,e=n.asn1,i=e.x509,r=e.DERTaggedObject,o=e.DERInteger,a=e.DERSequence,s=i.AlgorithmIdentifier,l=i.Time,u=i.X500Name,p=i.Extensions,g=i.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(_){this.params=_},this.tohex=function(){var _=[],v=this.params;if(v.version!=null||v.version!=1){var y=2;v.version!=null&&(y=v.version-1);var x=new r({obj:new o({int:y})});_.push(x)}_.push(new o(v.serial)),_.push(new s({name:v.sigalg})),_.push(new u(v.issuer)),_.push(new a({array:[new l(v.notbefore),new l(v.notafter)]})),_.push(new u(v.subject)),_.push(new g(io.getKey(v.sbjpubkey))),v.ext!==void 0&&v.ext.length>0&&_.push(new r({tag:"a3",obj:new p(v.ext)}));var I=new P.asn1.DERSequence({array:_});return I.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.x509.TBSCertificate,P.asn1.ASN1Object);P.asn1.x509.Extensions=function(t){P.asn1.x509.Extensions.superclass.constructor.call(this);var n=P,e=n.asn1,i=e.DERSequence,r=e.x509;this.aParam=[],this.setByParam=function(o){this.aParam=o},this.tohex=function(){for(var o=[],a=0;a-1&&s.push(new i({int:this.pathLen}));var l=new r({array:s});return this.asn1ExtnValue=l,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,t!==void 0&&(t.cA!==void 0&&(this.cA=t.cA),t.pathLen!==void 0&&(this.pathLen=t.pathLen))};Et(P.asn1.x509.BasicConstraints,P.asn1.x509.Extension);P.asn1.x509.CRLDistributionPoints=function(t){P.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,t);var n=P,e=n.asn1,i=e.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(r){for(var o=[],a=0;a0&&o.push(new e({array:a}))}var l=new e({array:o});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&(this.params=t)};Et(P.asn1.x509.PolicyInformation,P.asn1.ASN1Object);P.asn1.x509.PolicyQualifierInfo=function(t){P.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,t);var n=P.asn1,e=n.DERSequence,i=n.DERIA5String,r=n.DERObjectIdentifier,o=n.x509.UserNotice;this.params=null,this.tohex=function(){if(this.params.cps!==void 0){var a=new e({array:[new r({oid:"1.3.6.1.5.5.7.2.1"}),new i({str:this.params.cps})]});return a.tohex()}if(this.params.unotice!=null){var a=new e({array:[new r({oid:"1.3.6.1.5.5.7.2.2"}),new o(this.params.unotice)]});return a.tohex()}},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&(this.params=t)};Et(P.asn1.x509.PolicyQualifierInfo,P.asn1.ASN1Object);P.asn1.x509.UserNotice=function(t){P.asn1.x509.UserNotice.superclass.constructor.call(this,t);var n=P.asn1.DERSequence,e=P.asn1.DERInteger,i=P.asn1.x509.DisplayText,r=P.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var o=[];this.params.noticeref!==void 0&&o.push(new r(this.params.noticeref)),this.params.exptext!==void 0&&o.push(new i(this.params.exptext));var a=new n({array:o});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&(this.params=t)};Et(P.asn1.x509.UserNotice,P.asn1.ASN1Object);P.asn1.x509.NoticeReference=function(t){P.asn1.x509.NoticeReference.superclass.constructor.call(this,t);var n=P.asn1.DERSequence,e=P.asn1.DERInteger,i=P.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var r=[];if(this.params.org!==void 0&&r.push(new i(this.params.org)),this.params.noticenum!==void 0){for(var o=[],a=this.params.noticenum,s=0;s0)for(var a=0;a0;r++){var o=n.shift();if(e===!0){var a=i.pop(),s=(a+","+o).replace(/\\,/g,",");i.push(s),e=!1}else i.push(o);o.substr(-1,1)==="\\"&&(e=!0)}return i=i.map(function(l){return l.replace("/","\\/")}),i.reverse(),"/"+i.join("/")};P.asn1.x509.X500Name.ldapToOneline=function(t){return P.asn1.x509.X500Name.ldapToCompat(t)};P.asn1.x509.RDN=function(t){P.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var n=P.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){e.rule!==void 0&&(this.sRule=e.rule),e.str!==void 0&&this.addByMultiValuedString(e.str),e.array!==void 0&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new P.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var i=P.asn1.x509.RDN.parseString(e),r=0;r0)for(var e=0;e0;r++){var o=n.shift();if(e===!0){var a=i.pop(),s=(a+"+"+o).replace(/\\\+/g,"+");i.push(s),e=!1}else i.push(o);o.substr(-1,1)==="\\"&&(e=!0)}for(var l=!1,u=[],r=0;i.length>0;r++){var o=i.shift();if(l===!0){var p=u.pop();if(o.match(/"$/)){var s=(p+"+"+o).replace(/^([^=]+)="(.*)"$/,"$1=$2");u.push(s),l=!1}else u.push(p+"+"+o)}else u.push(o);o.match(/^[^=]+="/)&&(l=!0)}return u};P.asn1.x509.AttributeTypeAndValue=function(t){P.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var n=P,e=n.asn1,i=e.DERSequence,r=e.DERUTF8String,o=e.DERPrintableString,a=e.DERTeletexString,s=e.DERIA5String,l=e.DERVisibleString,u=e.DERBMPString,p=n.lang.String.isMail,g=n.lang.String.isPrintable;this.setByParam=function(_){if(_.rule!==void 0&&(this.sRule=_.rule),_.ds!==void 0&&(this.dsType=_.ds),_.value===void 0&&_.str!==void 0){var v=_.str,y=v.match(/^([^=]+)=(.+)$/);if(y)this.sType=y[1],this.sValue=y[2];else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)}else this.sType=_.type,this.sValue=_.value},this.setByString=function(_,v){v!==void 0&&(this.sRule=v);var y=_.match(/^([^=]+)=(.+)$/);if(y)this.setByAttrTypeAndValueStr(y[1],y[2]);else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)},this._getDsType=function(){var _=this.sType,v=this.sValue,y=this.sRule;return y==="prn"?_=="CN"&&p(v)?"ia5":g(v)?"prn":"utf8":y==="utf8"?_=="CN"&&p(v)?"ia5":_=="C"?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(_,v,y){y!==void 0&&(this.sRule=y),this.sType=_,this.sValue=v},this.getValueObj=function(_,v){if(_=="utf8")return new r({str:v});if(_=="prn")return new o({str:v});if(_=="tel")return new a({str:v});if(_=="ia5")return new s({str:v});if(_=="vis")return new l({str:v});if(_=="bmp")return new u({str:v});throw new Error("unsupported directory string type: type="+_+" value="+v)},this.tohex=function(){this.dsType==null&&(this.dsType=this._getDsType());var _=P.asn1.x509.OID.atype2obj(this.sType),v=this.getValueObj(this.dsType,this.sValue),y=new i({array:[_,v]});return this.TLV=y.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.x509.AttributeTypeAndValue,P.asn1.ASN1Object);P.asn1.x509.SubjectPublicKeyInfo=function(t){P.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var n=null,e=null,i=P,r=i.asn1,o=r.DERInteger,a=r.DERBitString,s=r.DERObjectIdentifier,l=r.DERSequence,u=r.ASN1Util.newObject,p=r.x509,g=p.AlgorithmIdentifier,_=i.crypto,v=_.ECDSA,y=_.DSA;this.getASN1Object=function(){if(this.asn1AlgId==null||this.asn1SubjPKey==null)throw"algId and/or subjPubKey not set";var x=new l({array:[this.asn1AlgId,this.asn1SubjPKey]});return x},this.tohex=function(){var x=this.getASN1Object();return this.hTLV=x.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(x){try{if(x instanceof pr){var I=u({seq:[{int:{bigint:x.n}},{int:{int:x.e}}]}),C=I.tohex();this.asn1AlgId=new g({name:"rsaEncryption"}),this.asn1SubjPKey=new a({hex:"00"+C})}}catch{}try{if(x instanceof P.crypto.ECDSA){var D=new s({name:x.curveName});this.asn1AlgId=new g({name:"ecPublicKey",asn1params:D}),this.asn1SubjPKey=new a({hex:"00"+x.pubKeyHex})}}catch{}try{if(x instanceof P.crypto.DSA){var D=new u({seq:[{int:{bigint:x.p}},{int:{bigint:x.q}},{int:{bigint:x.g}}]});this.asn1AlgId=new g({name:"dsa",asn1params:D});var A=new o({bigint:x.y});this.asn1SubjPKey=new a({hex:"00"+A.tohex()})}}catch{}},t!==void 0&&this.setPubKey(t)};Et(P.asn1.x509.SubjectPublicKeyInfo,P.asn1.ASN1Object);P.asn1.x509.Time=function(t){P.asn1.x509.Time.superclass.constructor.call(this);var n=null,e=null,i=P,r=i.asn1,o=r.DERUTCTime,a=r.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(s){this.timeParams=s},this.setByParam=function(s){this.params=s},this.getType=function(s){return s.match(/^[0-9]{12}Z$/)?"utc":s.match(/^[0-9]{14}Z$/)?"gen":s.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":s.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var s=this.params,l=null;if(typeof s=="string"&&(s={str:s}),s!=null&&s.str&&(s.type==null||s.type==null)&&(s.type=this.getType(s.str)),s!=null&&s.str?(s.type=="utc"&&(l=new o(s.str)),s.type=="gen"&&(l=new a(s.str))):this.type=="gen"?l=new a:l=new o,l==null)throw new Error("wrong setting for Time");return this.TLV=l.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};P.asn1.x509.Time_bak=function(t){P.asn1.x509.Time_bak.superclass.constructor.call(this);var n=null,e=null,i=P,r=i.asn1,o=r.DERUTCTime,a=r.DERGeneralizedTime;this.setTimeParams=function(s){this.timeParams=s},this.tohex=function(){var s=null;return this.timeParams!=null?this.type=="utc"?s=new o(this.timeParams):s=new a(this.timeParams):this.type=="utc"?s=new o:s=new a,this.TLV=s.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",t!==void 0&&(t.type!==void 0?this.type=t.type:t.str!==void 0&&(t.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),t.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=t)};Et(P.asn1.x509.Time,P.asn1.ASN1Object);P.asn1.x509.AlgorithmIdentifier=function(t){P.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var n=P,e=n.asn1,i=e.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(this.nameAlg===null&&this.asn1Alg===null)throw new Error("algorithm not specified");if(this.nameAlg!==null){var o=null;for(var a in i)a===this.nameAlg&&(o=i[a]);if(o!==null)return this.hTLV=o,this.hTLV}this.nameAlg!==null&&this.asn1Alg===null&&(this.asn1Alg=e.x509.OID.name2obj(this.nameAlg));var s=[this.asn1Alg];this.asn1Params!==null&&s.push(this.asn1Params);var l=new e.DERSequence({array:s});return this.hTLV=l.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&(t.name!==void 0&&(this.nameAlg=t.name),t.asn1params!==void 0&&(this.asn1Params=t.asn1params),t.paramempty!==void 0&&(this.paramEmpty=t.paramempty)),this.asn1Params===null&&this.paramEmpty===!1&&this.nameAlg!==null){this.nameAlg.name!==void 0&&(this.nameAlg=this.nameAlg.name);var r=this.nameAlg.toLowerCase();r.substr(-7,7)!=="withdsa"&&r.substr(-9,9)!=="withecdsa"&&(this.asn1Params=new e.DERNull)}};Et(P.asn1.x509.AlgorithmIdentifier,P.asn1.ASN1Object);P.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"};P.asn1.x509.GeneralName=function(t){P.asn1.x509.GeneralName.superclass.constructor.call(this);var n={rfc822:"81",dns:"82",dn:"a4",uri:"86",ip:"87",otherName:"a0"},e=P,i=e.asn1,r=i.x509,o=r.X500Name,a=r.OtherName,s=i.DERIA5String,l=i.DERPrintableString,u=i.DEROctetString,p=i.DERTaggedObject,g=i.ASN1Object,_=Error;this.params=null,this.setByParam=function(v){this.params=v},this.tohex=function(){var v=this.params,y,I,x,I=!1;if(v.other!==void 0)y="a0",x=new a(v.other);else if(v.rfc822!==void 0)y="81",x=new s({str:v.rfc822});else if(v.dns!==void 0)y="82",x=new s({str:v.dns});else if(v.dn!==void 0)y="a4",I=!0,typeof v.dn=="string"?x=new o({str:v.dn}):v.dn instanceof P.asn1.x509.X500Name?x=v.dn:x=new o(v.dn);else if(v.ldapdn!==void 0)y="a4",I=!0,x=new o({ldapstr:v.ldapdn});else if(v.certissuer!==void 0||v.certsubj!==void 0){y="a4",I=!0;var C,D,A=null;if(v.certsubj!==void 0?(C=!1,D=v.certsubj):(C=!0,D=v.certissuer),D.match(/^[0-9A-Fa-f]+$/)&&A==D,D.indexOf("-----BEGIN ")!=-1&&(A=ns(D)),A==null)throw new Error("certsubj/certissuer not cert");var M=new Nn;M.hex=A;var R;C?R=M.getIssuerHex():R=M.getSubjectHex(),x=new g,x.hTLV=R}else if(v.uri!==void 0)y="86",x=new s({str:v.uri});else if(v.ip!==void 0){y="87";var j,K=v.ip;try{if(K.match(/^[0-9a-f]+$/)){var F=K.length;if(F==8||F==16||F==32||F==64)j=K;else throw"err"}else j=rY(K)}catch(Q){throw new _("malformed IP address: "+v.ip+":"+Q.message)}x=new u({hex:j})}else throw new _("improper params");var V=new p({tag:y,explicit:I,obj:x});return V.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.x509.GeneralName,P.asn1.ASN1Object);P.asn1.x509.GeneralNames=function(t){P.asn1.x509.GeneralNames.superclass.constructor.call(this);var n=null,e=P,i=e.asn1;this.setByParamArray=function(r){for(var o=0;o"u")throw"Name of ObjectIdentifier not defined: "+n;var e=this.name2oidList[n],i=new t({oid:e});return this.objCache[n]=i,i},this.atype2obj=function(n){if(this.objCache[n]!==void 0)return this.objCache[n];var e;if(n.match(/^\d+\.\d+\.[0-9.]+$/))e=n;else if(this.atype2oidList[n]!==void 0)e=this.atype2oidList[n];else if(this.name2oidList[n]!==void 0)e=this.name2oidList[n];else throw new Error("AttributeType name undefined: "+n);var i=new t({oid:e});return this.objCache[n]=i,i},this.registerOIDs=function(n){if(this.checkOIDs(n))for(var e in n)this.name2oidList[e]=n[e]},this.checkOIDs=function(n){try{var e=Object.keys(n);return e.length==0?!1:(e.map(function(i,r,o){var a=this[i];if(!a.match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")},n),!0)}catch{return!1}}};P.asn1.x509.OID.oid2name=function(t){var n=P.asn1.x509.OID.name2oidList;for(var e in n)if(n[e]==t)return e;return""};P.asn1.x509.OID.oid2atype=function(t){var n=P.asn1.x509.OID.atype2oidList;for(var e in n)if(n[e]==t)return e;return t};P.asn1.x509.OID.name2oid=function(t){if(t.match(/^[0-9.]+$/))return t;var n=P.asn1.x509.OID.name2oidList;return n[t]===void 0?"":n[t]};P.asn1.x509.X509Util={};P.asn1.x509.X509Util.newCertPEM=function(t){var n=P.asn1.x509,e=n.TBSCertificate,i=n.Certificate,r=new i(t);return r.getPEM()};(typeof P>"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});(typeof P.asn1.cms>"u"||!P.asn1.cms)&&(P.asn1.cms={});P.asn1.cms.Attribute=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.DERSet,a=i.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(s){this.params=s},this.getValueArray=function(){throw new n("not yet implemented abstract")},this.tohex=function(){var s=new a({oid:this.typeOid}),l=new o({array:this.getValueArray()}),u=new r({array:[s,l]});return u.tohex()},this.getEncodedHex=function(){return this.tohex()}};Et(P.asn1.cms.Attribute,P.asn1.ASN1Object);P.asn1.cms.ContentType=function(t){var n=P,e=n.asn1;e.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){var i=new e.DERObjectIdentifier(this.params.type);return[i]},t!=null&&this.setByParam(t)};Et(P.asn1.cms.ContentType,P.asn1.cms.Attribute);P.asn1.cms.MessageDigest=function(t){var n=P,e=n.asn1,i=e.DEROctetString,r=e.cms;r.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){var o=new i(this.params);return[o]},t!=null&&this.setByParam(t)};Et(P.asn1.cms.MessageDigest,P.asn1.cms.Attribute);P.asn1.cms.SigningTime=function(t){var n=P,e=n.asn1;e.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){var i=new e.x509.Time(this.params);return[i]},t!=null&&this.setByParam(t)};Et(P.asn1.cms.SigningTime,P.asn1.cms.Attribute);P.asn1.cms.SigningCertificate=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.cms,a=o.ESSCertID,s=e.crypto;o.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(this.params==null||this.params==null||this.params.array==null)throw new n("parameter 'array' not specified");for(var l=this.params.array,u=[],p=0;p0){for(var y=o(_.valhex,v[0]),x=g(y,0),I=[],C=0;C1){var M=o(_.valhex,v[1]);_.polhex=M}delete _.valhex},this.setSignaturePolicyIdentifier=function(_){var v=g(_.valhex,0);if(v.length>0){var y=i.getOID(_.valhex,v[0]);_.oid=y}if(v.length>1){var x=new n,I=g(_.valhex,v[1]),C=o(_.valhex,I[0]),D=x.getAlgorithmIdentifierName(C);_.alg=D;var A=r(_.valhex,I[1]);_.hash=A}delete _.valhex},this.setSigningCertificateV2=function(_){var v=g(_.valhex,0);if(v.length>0){for(var y=o(_.valhex,v[0]),x=g(y,0),I=[],C=0;C1){var M=o(_.valhex,v[1]);_.polhex=M}delete _.valhex},this.getESSCertID=function(_){var v={},y=g(_,0);if(y.length>0){var x=r(_,y[0]);v.hash=x}if(y.length>1){var I=o(_,y[1]),C=this.getIssuerSerial(I);C.serial!=null&&(v.serial=C.serial),C.issuer!=null&&(v.issuer=C.issuer)}return v},this.getESSCertIDv2=function(_){var v={},y=g(_,0);if(y.length<1||3x+1){var D=o(_,y[x+1]),A=this.getIssuerSerial(D);v.issuer=A.issuer,v.serial=A.serial}return v},this.getIssuerSerial=function(_){var v={},y=g(_,0),x=o(_,y[0]),I=e.getGeneralNames(x),C=I[0].dn;v.issuer=C;var D=r(_,y[1]);return v.serial={hex:D},v},this.getCertificateSet=function(_){for(var v=g(_,0),y=[],x=0;x"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});(typeof P.asn1.tsp>"u"||!P.asn1.tsp)&&(P.asn1.tsp={});P.asn1.tsp.TimeStampToken=function(t){var n=P,e=n.asn1,i=e.tsp;i.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var r=new i.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=r.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.TimeStampToken,P.asn1.cms.SignedData);P.asn1.tsp.TSTInfo=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.DERInteger,a=i.DERBoolean,s=i.DERGeneralizedTime,l=i.DERObjectIdentifier,u=i.DERTaggedObject,p=i.tsp,g=p.MessageImprint,_=p.Accuracy,v=i.x509.X500Name,y=i.x509.GeneralName;if(p.TSTInfo.superclass.constructor.call(this),this.dVersion=new o({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var x=[this.dVersion];if(this.dPolicy==null)throw new Error("policy shall be specified.");if(x.push(this.dPolicy),this.dMessageImprint==null)throw new Error("messageImprint shall be specified.");if(x.push(this.dMessageImprint),this.dSerial==null)throw new Error("serialNumber shall be specified.");if(x.push(this.dSerial),this.dGenTime==null)throw new Error("genTime shall be specified.");x.push(this.dGenTime),this.dAccuracy!=null&&x.push(this.dAccuracy),this.dOrdering!=null&&x.push(this.dOrdering),this.dNonce!=null&&x.push(this.dNonce),this.dTsa!=null&&x.push(this.dTsa);var I=new r({array:x});return this.hTLV=I.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},t!==void 0){if(typeof t.policy=="string"){if(!t.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new l({oid:t.policy})}t.messageImprint!==void 0&&(this.dMessageImprint=new g(t.messageImprint)),t.serial!==void 0&&(this.dSerial=new o(t.serial)),t.genTime!==void 0&&(this.dGenTime=new s(t.genTime)),t.accuracy!==void 0&&(this.dAccuracy=new _(t.accuracy)),t.ordering!==void 0&&t.ordering==!0&&(this.dOrdering=new a),t.nonce!==void 0&&(this.dNonce=new o(t.nonce)),t.tsa!==void 0&&(this.dTsa=new u({tag:"a0",explicit:!0,obj:new y({dn:t.tsa})}))}};Et(P.asn1.tsp.TSTInfo,P.asn1.ASN1Object);P.asn1.tsp.Accuracy=function(t){var n=P,e=n.asn1,i=e.ASN1Util.newObject;e.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var r=this.params,o=[];return r.seconds!=null&&typeof r.seconds=="number"&&o.push({int:r.seconds}),r.millis!=null&&typeof r.millis=="number"&&o.push({tag:{tagi:"80",obj:{int:r.millis}}}),r.micros!=null&&typeof r.micros=="number"&&o.push({tag:{tagi:"81",obj:{int:r.micros}}}),i({seq:o}).tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.Accuracy,P.asn1.ASN1Object);P.asn1.tsp.MessageImprint=function(t){var n=P,e=n.asn1,i=e.DERSequence,r=e.DEROctetString,o=e.x509,a=o.AlgorithmIdentifier;e.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var s=this.params,l=new a({name:s.alg}),u=new r({hex:s.hash}),p=new i({array:[l,u]});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.tsp.MessageImprint,P.asn1.ASN1Object);P.asn1.tsp.TimeStampReq=function(t){var n=P,e=n.asn1,i=e.DERSequence,r=e.DERInteger,o=e.DERBoolean,a=e.ASN1Object,s=e.DERObjectIdentifier,l=e.tsp,u=l.MessageImprint;l.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var p=this.params,g=[];g.push(new r({int:1})),p.messageImprint instanceof P.asn1.ASN1Object?g.push(p.messageImprint):g.push(new u(p.messageImprint)),p.policy!=null&&g.push(new s(p.policy)),p.nonce!=null&&g.push(new r(p.nonce)),p.certreq==!0&&g.push(new o);var _=new i({array:g});return _.tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.TimeStampReq,P.asn1.ASN1Object);P.asn1.tsp.TimeStampResp=function(t){var n=P,e=n.asn1,i=e.DERSequence,r=e.ASN1Object,o=e.tsp,a=o.PKIStatusInfo;o.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var s=this.params,l=[];if(s.econtent!=null||s.tst!=null)if(s.statusinfo!=null?l.push(new a(s.statusinfo)):l.push(new a("granted")),s.econtent!=null)l.push(new o.TimeStampToken(s).getContentInfo());else if(s.tst instanceof e.ASN1Object)l.push(s.tst);else throw new Error("improper member tst value");else if(s.statusinfo!=null)l.push(new a(s.statusinfo));else throw new Error("parameter for token nor statusinfo not specified");var u=new i({array:l});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.TimeStampResp,P.asn1.ASN1Object);P.asn1.tsp.PKIStatusInfo=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.tsp,a=o.PKIStatus,s=o.PKIFreeText,l=o.PKIFailureInfo;o.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var u=this.params,p=[];if(typeof u=="string")p.push(new a(u));else{if(u.status==null)throw new n("property 'status' unspecified");p.push(new a(u.status)),u.statusstr!=null&&p.push(new s(u.statusstr)),u.failinfo!=null&&p.push(new l(u.failinfo))}var g=new r({array:p});return g.tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.PKIStatusInfo,P.asn1.ASN1Object);P.asn1.tsp.PKIStatus=function(t){var n=Error,e=P,i=e.asn1,r=i.DERInteger,o=i.tsp;o.PKIStatus.superclass.constructor.call(this);var a={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var s=this.params,l,u;if(typeof s=="string")try{u=a[s]}catch{throw new n("undefined name: "+s)}else if(typeof s=="number")u=s;else throw new n("unsupported params");return new r({int:u}).tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.PKIStatus,P.asn1.ASN1Object);P.asn1.tsp.PKIFreeText=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.DERUTF8String,a=i.tsp;a.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var s=this.params;if(!s instanceof Array)throw new n("wrong params: not array");for(var l=[],u=0;u=0;_--)g+=p[_];return g}else{if(typeof l=="string"&&s[l]!=null)return $L([l],s);if(typeof l=="object"&&l.length!=null)return $L(l,s);throw new n("wrong params")}},this.tohex=function(){var l=this.params,u=this.getBinValue();return new r({bin:u}).tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.tsp.PKIFailureInfo,P.asn1.ASN1Object);P.asn1.tsp.AbstractTSAAdapter=function(t){this.getTSTHex=function(n,e){throw"not implemented yet"}};P.asn1.tsp.SimpleTSAAdapter=function(t){var n=P,e=n.asn1,i=e.tsp,r=n.crypto.Util.hashHex;i.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(o,a){var s=r(o,a);this.params.econtent.content.messageImprint={alg:a,hash:s},this.params.econtent.content.serial={int:this.serial++};var l=Math.floor(Math.random()*1e9);this.params.econtent.content.nonce={int:l};var u=new i.TimeStampToken(this.params);return u.getContentInfoEncodedHex()},t!==void 0&&(this.params=t)};Et(P.asn1.tsp.SimpleTSAAdapter,P.asn1.tsp.AbstractTSAAdapter);P.asn1.tsp.FixedTSAAdapter=function(t){var n=P,e=n.asn1,i=e.tsp,r=n.crypto.Util.hashHex;i.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(o,a){var s=r(o,a);this.params.econtent.content.messageImprint={alg:a,hash:s};var l=new i.TimeStampToken(this.params);return l.getContentInfoEncodedHex()},t!==void 0&&(this.params=t)};Et(P.asn1.tsp.FixedTSAAdapter,P.asn1.tsp.AbstractTSAAdapter);P.asn1.tsp.TSPUtil=new function(){};P.asn1.tsp.TSPUtil.newTimeStampToken=function(t){return new P.asn1.tsp.TimeStampToken(t)};P.asn1.tsp.TSPUtil.parseTimeStampReq=function(t){var n=new P.asn1.tsp.TSPParser;return n.getTimeStampReq(t)};P.asn1.tsp.TSPUtil.parseMessageImprint=function(t){var n=new P.asn1.tsp.TSPParser;return n.getMessageImprint(t)};P.asn1.tsp.TSPParser=function(){var t=Error,n=Nn,e=new n,i=ti,r=i.getV,o=i.getTLV,a=i.getIdxbyList,s=i.getTLVbyListEx,l=i.getChildIdx,u=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],p={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(g){var _=l(g,0);if(_.length==1)return this.getPKIStatusInfo(o(g,_[0]));if(_.length>1){var v=this.getPKIStatusInfo(o(g,_[0])),y=o(g,_[1]),x=this.getToken(y);return x.statusinfo=v,x}},this.getToken=function(g){var _=new P.asn1.cms.CMSParser,v=_.getCMSSignedData(g);return this.setTSTInfo(v),v},this.setTSTInfo=function(g){var _=g.econtent;if(_.type=="tstinfo"){var v=_.content.hex,y=this.getTSTInfo(v);_.content=y}},this.getTSTInfo=function(g){var _={},v=l(g,0),y=r(g,v[1]);_.policy=e4(y);var x=o(g,v[2]);_.messageImprint=this.getMessageImprint(x);var I=r(g,v[3]);_.serial={hex:I};var C=r(g,v[4]);_.genTime={str:ra(C)};var D=0;if(v.length>5&&g.substr(v[5],2)=="30"){var A=o(g,v[5]);_.accuracy=this.getAccuracy(A),D++}if(v.length>5+D&&g.substr(v[5+D],2)=="01"){var M=r(g,v[5+D]);M=="ff"&&(_.ordering=!0),D++}if(v.length>5+D&&g.substr(v[5+D],2)=="02"){var R=r(g,v[5+D]);_.nonce={hex:R},D++}if(v.length>5+D&&g.substr(v[5+D],2)=="a0"){var j=o(g,v[5+D]);j="30"+j.substr(2),pGeneralNames=e.getGeneralNames(j);var K=pGeneralNames[0].dn;_.tsa=K,D++}if(v.length>5+D&&g.substr(v[5+D],2)=="a1"){var F=o(g,v[5+D]);F="30"+F.substr(2);var V=e.getExtParamArray(F);_.ext=V,D++}return _},this.getAccuracy=function(g){for(var _={},v=l(g,0),y=0;y1&&g.substr(v[1],2)=="30"){var C=o(g,v[1]);_.statusstr=this.getPKIFreeText(C),y++}if(v.length>y&&g.substr(v[1+y],2)=="03"){var D=o(g,v[1+y]);_.failinfo=this.getPKIFailureInfo(D)}return _},this.getPKIFreeText=function(g){for(var _=[],v=l(g,0),y=0;y"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});(typeof P.asn1.cades>"u"||!P.asn1.cades)&&(P.asn1.cades={});P.asn1.cades.SignaturePolicyIdentifier=function(t){var n=P,e=n.asn1,i=e.cades,r=i.SignaturePolicyId;i.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new r(this.params)]},this.setByParam=function(o){this.params=o},t!=null&&this.setByParam(t)};Et(P.asn1.cades.SignaturePolicyIdentifier,P.asn1.cms.Attribute);P.asn1.cades.SignaturePolicyId=function(t){var n=P,e=n.asn1,i=e.DERSequence,r=e.DERObjectIdentifier,o=e.x509,a=o.AlgorithmIdentifier,s=e.cades,l=s.SignaturePolicyId,u=s.OtherHashAlgAndValue;l.superclass.constructor.call(this),this.params=null,this.tohex=function(){var p=this.params,g=[];g.push(new r(p.oid)),g.push(new u(p));var _=new i({array:g});return _.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(p){this.params=p},t!=null&&this.setByParam(t)};Et(P.asn1.cades.SignaturePolicyId,P.asn1.ASN1Object);P.asn1.cades.OtherHashAlgAndValue=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.DEROctetString,a=i.x509,s=a.AlgorithmIdentifier,l=i.cades,u=l.OtherHashAlgAndValue;u.superclass.constructor.call(this),this.params=null,this.tohex=function(){var p=this.params;if(p.alg==null)throw new n("property 'alg' not specified");if(p.hash==null&&p.cert==null)throw new n("property 'hash' nor 'cert' not specified");var g=null;if(p.hash!=null)g=p.hash;else if(p.cert!=null){if(typeof p.cert!="string")throw new n("cert not string");var _=p.cert;p.cert.indexOf("-----BEGIN")!=-1&&(_=ns(p.cert)),g=P.crypto.Util.hashHex(_,p.alg)}var v=[];v.push(new s({name:p.alg})),v.push(new o({hex:g}));var y=new r({array:v});return y.tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.cades.OtherHashAlgAndValue,P.asn1.ASN1Object);P.asn1.cades.OtherHashValue=function(t){P.asn1.cades.OtherHashValue.superclass.constructor.call(this);var n=Error,e=P,i=e.lang.String.isHex,r=e.asn1,o=r.DEROctetString,a=e.crypto.Util.hashHex;this.params=null,this.tohex=function(){var s=this.params;if(s.hash==null&&s.cert==null)throw new n("hash or cert not specified");var l=null;if(s.hash!=null)l=s.hash;else if(s.cert!=null){if(typeof s.cert!="string")throw new n("cert not string");var u=s.cert;s.cert.indexOf("-----BEGIN")!=-1&&(u=ns(s.cert)),l=P.crypto.Util.hashHex(u,"sha1")}return new o({hex:l}).tohex()},this.getEncodedHex=function(){return this.tohex()},t!=null&&this.setByParam(t)};Et(P.asn1.cades.OtherHashValue,P.asn1.ASN1Object);P.asn1.cades.SignatureTimeStamp=function(t){var n=Error,e=P,i=e.lang.String.isHex,r=e.asn1,o=r.ASN1Object,a=r.x509,s=r.cades;s.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var l=this.params;if(l.tst!=null)if(i(l.tst)){var u=new o;return u.hTLV=l.tst,[u]}else{if(l.tst instanceof o)return[l.tst];throw new n("params.tst has wrong value")}else if(l.res!=null){var p=l.res;if(p instanceof o&&(p=p.tohex()),typeof p!="string"||!i(p))throw new n("params.res has wrong value");var g=ti.getTLVbyList(p,0,[1]),u=new o;return u.hTLV=l.tst,[u]}},t!=null&&this.setByParam(t)};Et(P.asn1.cades.SignatureTimeStamp,P.asn1.cms.Attribute);P.asn1.cades.CompleteCertificateRefs=function(t){var n=Error,e=P,i=e.asn1,r=i.DERSequence,o=i.cades,a=o.OtherCertID,s=e.lang.String.isHex;o.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var l=this.params,u=[],p=0;p"u"||!P.asn1.csr)&&(P.asn1.csr={});P.asn1.csr.CertificationRequest=function(t){var n=P,e=n.asn1,i=e.DERBitString,r=e.DERSequence,o=e.csr,a=e.x509,s=o.CertificationRequestInfo;o.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(l){this.params=l},this.sign=function(){var l=new s(this.params).tohex(),u=new P.crypto.Signature({alg:this.params.sigalg});u.init(this.params.sbjprvkey),u.updateHex(l);var p=u.sign();this.params.sighex=p},this.getPEM=function(){return od(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var l=this.params,u=new P.asn1.csr.CertificationRequestInfo(this.params),p=new P.asn1.x509.AlgorithmIdentifier({name:l.sigalg});if(l.sighex==null&&l.sbjprvkey!=null&&this.sign(),l.sighex==null)throw new Error("sighex or sbjprvkey parameter not defined");var g=new i({hex:"00"+l.sighex}),_=new r({array:[u,p,g]});return _.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.csr.CertificationRequest,P.asn1.ASN1Object);P.asn1.csr.CertificationRequestInfo=function(t){var n=P,e=n.asn1,i=e.DERBitString,r=e.DERSequence,o=e.DERInteger,a=e.DERUTF8String,s=e.DERTaggedObject,l=e.ASN1Util.newObject,u=e.csr,p=e.x509,g=p.X500Name,_=p.Extensions,v=p.SubjectPublicKeyInfo,y=u.AttributeList;u.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(I){I!=null&&(this.params=I)},this.tohex=function(){var I=this.params,C=[];if(C.push(new o({int:0})),C.push(new g(I.subject)),C.push(new v(io.getKey(I.sbjpubkey))),I.attrs!=null){var D=x(I.attrs),A=l({tag:{tage:"a0",obj:D}});C.push(A)}else if(I.extreq!=null){var M=new _(I.extreq),A=l({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[M]}]}}});C.push(A)}else C.push(new s({tag:"a0",explicit:!1,obj:new a({str:""})}));var R=new r({array:C});return R.tohex()},this.getEncodedHex=function(){return this.tohex()};function x(I){for(var C=Error,D=P.asn1.x509.Extensions,A=[],M=0;M"u"||!P)&&(P={});(typeof P.asn1>"u"||!P.asn1)&&(P.asn1={});(typeof P.asn1.ocsp>"u"||!P.asn1.ocsp)&&(P.asn1.ocsp={});P.asn1.ocsp.DEFAULT_HASH="sha1";P.asn1.ocsp.OCSPResponse=function(t){P.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);var n=P.asn1.DEREnumerated,e=P.asn1.ASN1Util.newObject,i=P.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var o=this.params.resstatus;return typeof o=="number"?o:typeof o!="string"?-1:r.indexOf(o)},this.setByParam=function(o){this.params=o},this.tohex=function(){var o=this.params,a=this._getStatusCode();if(a==-1)throw new Error("responseStatus not supported: "+o.resstatus);if(a!=0)return e({seq:[{enum:{int:a}}]}).tohex();var s=new i(o);return e({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:s}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.ocsp.OCSPResponse,P.asn1.ASN1Object);P.asn1.ocsp.ResponseBytes=function(t){P.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var n=P.asn1,e=n.DERSequence,i=n.DERObjectIdentifier,r=n.DEROctetString,o=n.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(a){this.params=a},this.tohex=function(){var a=this.params;if(a.restype!="ocspBasic")throw new Error("not supported responseType: "+a.restype);var s=new o(a),l=[];l.push(new i({name:"ocspBasic"})),l.push(new r({hex:s.tohex()}));var u=new e({array:l});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.ocsp.ResponseBytes,P.asn1.ASN1Object);P.asn1.ocsp.BasicOCSPResponse=function(t){P.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var n=Error,e=P.asn1,i=e.ASN1Object,r=e.DERSequence,o=e.DERGeneralizedTime,a=e.DERTaggedObject,s=e.DERBitString,l=e.x509.Extensions,u=e.x509.AlgorithmIdentifier,p=e.ocsp,g=p.ResponderID;_SingleResponseList=p.SingleResponseList,_ResponseData=p.ResponseData,this.params=null,this.setByParam=function(_){this.params=_},this.sign=function(){var _=this.params,v=_.tbsresp.tohex(),y=new P.crypto.Signature({alg:_.sigalg});y.init(_.reskey),y.updateHex(v),_.sighex=y.sign()},this.tohex=function(){var _=this.params;_.tbsresp==null&&(_.tbsresp=new _ResponseData(_)),_.sighex==null&&_.reskey!=null&&this.sign();var v=[];if(v.push(_.tbsresp),v.push(new u({name:_.sigalg})),v.push(new s({hex:"00"+_.sighex})),_.certs!=null&&_.certs.length!=null){for(var y=[],x=0;x<_.certs.length;x++){var I=_.certs[x],C=null;if(ti.isASN1HEX(I))C=I;else if(I.match(/-----BEGIN/))C=ns(I);else throw new n("certs["+x+"] not hex or PEM");y.push(new i({tlv:C}))}var D=new r({array:y});v.push(new a({tag:"a0",explicit:!0,obj:D}))}var A=new r({array:v});return A.tohex()},this.getEncodedHex=function(){return this.tohex()},t!==void 0&&this.setByParam(t)};Et(P.asn1.ocsp.BasicOCSPResponse,P.asn1.ASN1Object);P.asn1.ocsp.ResponseData=function(t){P.asn1.ocsp.ResponseData.superclass.constructor.call(this);var n=Error,e=P.asn1,i=e.DERSequence,r=e.DERGeneralizedTime,o=e.DERTaggedObject,a=e.x509.Extensions,s=e.ocsp,l=s.ResponderID;_SingleResponseList=s.SingleResponseList,this.params=null,this.tohex=function(){var u=this.params;u.respid!=null&&new n("respid not specified"),u.prodat!=null&&new n("prodat not specified"),u.array!=null&&new n("array not specified");var p=[];if(p.push(new l(u.respid)),p.push(new r(u.prodat)),p.push(new _SingleResponseList(u.array)),u.ext!=null){var g=new a(u.ext);p.push(new o({tag:"a1",explicit:!0,obj:g}))}var _=new i({array:p});return _.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(u){this.params=u},t!==void 0&&this.setByParam(t)};Et(P.asn1.ocsp.ResponseData,P.asn1.ASN1Object);P.asn1.ocsp.ResponderID=function(t){P.asn1.ocsp.ResponderID.superclass.constructor.call(this);var n=P,e=n.asn1,i=e.ASN1Util.newObject,r=e.x509.X500Name,o=n.lang.String.isHex,a=Error;this.params=null,this.tohex=function(){var s=this.params;if(s.key!=null){var l=null;if(typeof s.key=="string"){if(o(s.key)&&(l=s.key),s.key.match(/-----BEGIN CERTIFICATE/)){var u=new Nn(s.key),p=u.getExtSubjectKeyIdentifier();p!=null&&(l=p.kid.hex)}}else if(s.key instanceof Nn){var p=s.key.getExtSubjectKeyIdentifier();p!=null&&(l=p.kid.hex)}if(l==null)throw new a("wrong key member value");var g=i({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:l}}}});return g.tohex()}else if(s.name!=null){var _=null;if(typeof s.name=="string"&&s.name.match(/-----BEGIN CERTIFICATE/)){var u=new Nn(s.name);_=u.getSubject()}else s.name instanceof Nn?_=s.name.getSubject():typeof s.name=="object"&&(s.name.array!=null||s.name.str!=null)&&(_=s.name);if(_==null)throw new a("wrong name member value");var g=i({tag:{tag:"a1",explicit:!0,obj:new r(_)}});return g.tohex()}throw new a("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(s){this.params=s},t!==void 0&&this.setByParam(t)};Et(P.asn1.ocsp.ResponderID,P.asn1.ASN1Object);P.asn1.ocsp.SingleResponseList=function(t){P.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var n=P.asn1,e=n.DERSequence,i=n.ocsp.SingleResponse;this.params=null,this.tohex=function(){var r=this.params;if(typeof r!="object"||r.length==null)throw new Error("params not specified properly");for(var o=[],a=0;a"u"||!P)&&(P={});(typeof P.lang>"u"||!P.lang)&&(P.lang={});P.lang.String=function(){};function hme(t){for(var n=new Array,e=0;e>6,l=128|a&63;return ra(s.toString(16)+l.toString(16))}var s=224|(o&240)>>4,l=128|(o&15)<<2|(a&192)>>6,u=128|a&63;return ra(s.toString(16)+l.toString(16)+u.toString(16))}var e=t.match(/.{4}/g),i=e.map(n);return i.join("")}function JL(t){for(var n=encodeURIComponent(t),e="",i=0;i"7"?"00"+t:t}function c9e(t){t=t.replace(/^\s*\[\s*/,""),t=t.replace(/\s*\]\s*$/,""),t=t.replace(/\s*/g,"");try{var n=t.split(/,/).map(function(e,i,r){var o=parseInt(e);if(o<0||255n.length&&(e=n.length);for(var i=0;i0&&(u=u+"."+s.join(".")),u}catch{return null}}function xme(t){var n=new Ue(String(t),10);return tA(n)}function tA(t){var n=t.toString(16);if(n.substr(0,1)!="-")return n.length%2==1?n="0"+n:n.match(/^[0-7]/)||(n="00"+n),n;var e=n.substr(1),i=e.length;i%2==1?i+=1:n.match(/^[0-7]/)||(i+=2);for(var r="",o=0;o=n?t:new Array(n-t.length+1).join(e)+t};function Cme(t){if(t.length%2!=0||(t=t.toLowerCase(),t.match(/^[0-9a-f]+$/)==null))return-1;try{var n=t.substr(0,2);if(n=="00")return parseInt(t.substr(2),16);var e=parseInt(n,16);if(e>7)return-1;var i=t.substr(2),r=parseInt(i,16).toString(2);r=="0"&&(r="00000000"),r=r.slice(0,0-e);var o=parseInt(r,2);return o==NaN?-1:o}catch{return-1}}function Sme(t){if(typeof t!="number"||t<0)return null;var n=Number(t).toString(2),e=8-n.length%8;e==8&&(e=0),n=n+GL("",e,"0");var i=parseInt(n,2).toString(16);i.length%2==1&&(i="0"+i);var r="0"+e;return r+i}function wme(t){if(typeof t!="string"||t.length%2!=0||!t.match(/^[0-9a-f]+$/))return null;try{var n=parseInt(t.substr(0,2),16);if(n<0||7=0;i--)o+=r[i];return o}function pa(t,i,e){if(typeof t=="object"){for(var i=String(i).split("."),r=0;r"u"||!P)&&(P={});(typeof P.crypto>"u"||!P.crypto)&&(P.crypto={});P.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:Fi.algo.MD5,sha1:Fi.algo.SHA1,sha224:Fi.algo.SHA224,sha256:Fi.algo.SHA256,sha384:Fi.algo.SHA384,sha512:Fi.algo.SHA512,ripemd160:Fi.algo.RIPEMD160},this.getDigestInfoHex=function(t,n){if(typeof this.DIGESTINFOHEAD[n]>"u")throw"alg not supported in Util.DIGESTINFOHEAD: "+n;return this.DIGESTINFOHEAD[n]+t},this.getPaddedDigestInfoHex=function(t,n,e){var i=this.getDigestInfoHex(t,n),r=e/4;if(i.length+22>r)throw"key is too short for SigAlg: keylen="+e+","+n;for(var o="0001",a="00"+i,s="",l=r-o.length-a.length,u=0;u"u"||!P)&&(P={});(typeof P.crypto>"u"||!P.crypto)&&(P.crypto={});P.crypto.ECDSA=function(t){var n="secp256r1",e=null,i=null,r=null,o=Error,a=Ue,s=jo,l=P.crypto.ECDSA,u=P.crypto.ECParameterDB,p=l.getName,g=ti,_=g.getVbyListEx,v=g.isASN1HEX,y=new Cw,x=null;this.type="EC",this.isPrivate=!1,this.isPublic=!1;function I(C,D,A,M){for(var R=Math.max(D.bitLength(),M.bitLength()),j=C.add2D(A),K=C.curve.getInfinity(),F=R-1;F>=0;--F)K=K.twice2D(),K.z=a.ONE,D.testBit(F)?M.testBit(F)?K=K.add2D(j):K=K.add2D(C):M.testBit(F)&&(K=K.add2D(A));return K}this.getBigRandom=function(C){return new a(C.bitLength(),y).mod(C.subtract(a.ONE)).add(a.ONE)},this.setNamedCurve=function(C){this.ecparams=u.getByName(C),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=C},this.setPrivateKeyHex=function(C){this.isPrivate=!0,this.prvKeyHex=C},this.setPublicKeyHex=function(C){this.isPublic=!0,this.pubKeyHex=C},this.getPublicKeyXYHex=function(){var C=this.pubKeyHex;if(C.substr(0,2)!=="04")throw"this method supports uncompressed format(04) only";var D=this.ecparams.keycharlen;if(C.length!==2+D*2)throw"malformed public key hex length";var A={};return A.x=C.substr(2,D),A.y=C.substr(2+D),A},this.getShortNISTPCurveName=function(){var C=this.curveName;return C==="secp256r1"||C==="NIST P-256"||C==="P-256"||C==="prime256v1"?"P-256":C==="secp384r1"||C==="NIST P-384"||C==="P-384"?"P-384":C==="secp521r1"||C==="NIST P-521"||C==="P-521"?"P-521":null},this.generateKeyPairHex=function(){var C=this.ecparams.n,D=this.getBigRandom(C),A=this.ecparams.keycharlen,M=("0000000000"+D.toString(16)).slice(-A);this.setPrivateKeyHex(M);var R=this.generatePublicKeyHex();return{ecprvhex:M,ecpubhex:R}},this.generatePublicKeyHex=function(){var C=new a(this.prvKeyHex,16),D=this.ecparams.G.multiply(C),A=D.getX().toBigInteger(),M=D.getY().toBigInteger(),R=this.ecparams.keycharlen,j=("0000000000"+A.toString(16)).slice(-R),K=("0000000000"+M.toString(16)).slice(-R),F="04"+j+K;return this.setPublicKeyHex(F),F},this.signWithMessageHash=function(C){return this.signHex(C,this.prvKeyHex)},this.signHex=function(C,D){var A=new a(D,16),M=this.ecparams.n,R=new a(C.substring(0,this.ecparams.keycharlen),16);do var j=this.getBigRandom(M),K=this.ecparams.G,F=K.multiply(j),V=F.getX().toBigInteger().mod(M);while(V.compareTo(a.ZERO)<=0);var Q=j.modInverse(M).multiply(R.add(A.multiply(V))).mod(M);return l.biRSSigToASN1Sig(V,Q)},this.sign=function(C,D){var A=D,M=this.ecparams.n,R=a.fromByteArrayUnsigned(C);do var j=this.getBigRandom(M),K=this.ecparams.G,F=K.multiply(j),V=F.getX().toBigInteger().mod(M);while(V.compareTo(Ue.ZERO)<=0);var Q=j.modInverse(M).multiply(R.add(A.multiply(V))).mod(M);return this.serializeSig(V,Q)},this.verifyWithMessageHash=function(C,D){return this.verifyHex(C,D,this.pubKeyHex)},this.verifyHex=function(C,D,A){try{var M,R,j=l.parseSigHex(D);M=j.r,R=j.s;var K=s.decodeFromHex(this.ecparams.curve,A),F=new a(C.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(F,M,R,K)}catch{return!1}},this.verify=function(C,D,A){var M,R;if(Bitcoin.Util.isArray(D)){var j=this.parseSig(D);M=j.r,R=j.s}else if(typeof D=="object"&&D.r&&D.s)M=D.r,R=D.s;else throw"Invalid value for signature";var K;if(A instanceof jo)K=A;else if(Bitcoin.Util.isArray(A))K=s.decodeFrom(this.ecparams.curve,A);else throw"Invalid format for pubkey value, must be byte array or ECPointFp";var F=a.fromByteArrayUnsigned(C);return this.verifyRaw(F,M,R,K)},this.verifyRaw=function(C,D,A,M){var R=this.ecparams.n,j=this.ecparams.G;if(D.compareTo(a.ONE)<0||D.compareTo(R)>=0||A.compareTo(a.ONE)<0||A.compareTo(R)>=0)return!1;var K=A.modInverse(R),F=C.multiply(K).mod(R),V=D.multiply(K).mod(R),Q=j.multiply(F).add(M.multiply(V)),te=Q.getX().toBigInteger().mod(R);return te.equals(D)},this.serializeSig=function(C,D){var A=C.toByteArraySigned(),M=D.toByteArraySigned(),R=[];return R.push(2),R.push(A.length),R=R.concat(A),R.push(2),R.push(M.length),R=R.concat(M),R.unshift(R.length),R.unshift(48),R},this.parseSig=function(C){var D;if(C[0]!=48)throw new Error("Signature not a valid DERSequence");if(D=2,C[D]!=2)throw new Error("First element in signature must be a DERInteger");var A=C.slice(D+2,D+2+C[D+1]);if(D+=2+C[D+1],C[D]!=2)throw new Error("Second element in signature must be a DERInteger");var M=C.slice(D+2,D+2+C[D+1]);D+=2+C[D+1];var R=a.fromByteArrayUnsigned(A),j=a.fromByteArrayUnsigned(M);return{r:R,s:j}},this.parseSigCompact=function(C){if(C.length!==65)throw"Signature has the wrong length";var D=C[0]-27;if(D<0||D>7)throw"Invalid signature type";var A=this.ecparams.n,M=a.fromByteArrayUnsigned(C.slice(1,33)).mod(A),R=a.fromByteArrayUnsigned(C.slice(33,65)).mod(A);return{r:M,s:R,i:D}},this.readPKCS5PrvKeyHex=function(C){if(v(C)===!1)throw new Error("not ASN.1 hex string");var D,A,M;try{D=_(C,0,["[0]",0],"06"),A=_(C,0,[1],"04");try{M=_(C,0,["[1]",0],"03")}catch{}}catch{throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=p(D),this.curveName===void 0)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(M),this.setPrivateKeyHex(A),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(C){if(v(C)===!1)throw new o("not ASN.1 hex string");var D,A,M,R;try{D=_(C,0,[1,0],"06"),A=_(C,0,[1,1],"06"),M=_(C,0,[2,0,1],"04");try{R=_(C,0,[2,0,"[1]",0],"03")}catch{}}catch{throw new o("malformed PKCS#8 plain ECC private key")}if(this.curveName=p(A),this.curveName===void 0)throw new o("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(R),this.setPrivateKeyHex(M),this.isPublic=!1},this.readPKCS8PubKeyHex=function(C){if(v(C)===!1)throw new o("not ASN.1 hex string");var D,A,M;try{D=_(C,0,[0,0],"06"),A=_(C,0,[0,1],"06"),M=_(C,0,[1],"03")}catch{throw new o("malformed PKCS#8 ECC public key")}if(this.curveName=p(A),this.curveName===null)throw new o("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(M)},this.readCertPubKeyHex=function(C,D){if(v(C)===!1)throw new o("not ASN.1 hex string");var A,M;try{A=_(C,0,[0,5,0,1],"06"),M=_(C,0,[0,5,1],"03")}catch{throw new o("malformed X.509 certificate ECC public key")}if(this.curveName=p(A),this.curveName===null)throw new o("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(M)},t!==void 0&&t.curve!==void 0&&(this.curveName=t.curve),this.curveName===void 0&&(this.curveName=n),this.setNamedCurve(this.curveName),t!==void 0&&(t.prv!==void 0&&this.setPrivateKeyHex(t.prv),t.pub!==void 0&&this.setPublicKeyHex(t.pub))};P.crypto.ECDSA.parseSigHex=function(t){var n=P.crypto.ECDSA.parseSigHexInHexRS(t),e=new Ue(n.r,16),i=new Ue(n.s,16);return{r:e,s:i}};P.crypto.ECDSA.parseSigHexInHexRS=function(t){var n=ti,e=n.getChildIdx,i=n.getV;if(n.checkStrictDER(t,0),t.substr(0,2)!="30")throw new Error("signature is not a ASN.1 sequence");var r=e(t,0);if(r.length!=2)throw new Error("signature shall have two elements");var o=r[0],a=r[1];if(t.substr(o,2)!="02")throw new Error("1st item not ASN.1 integer");if(t.substr(a,2)!="02")throw new Error("2nd item not ASN.1 integer");var s=i(t,o),l=i(t,a);return{r:s,s:l}};P.crypto.ECDSA.asn1SigToConcatSig=function(t){var n=P.crypto.ECDSA.parseSigHexInHexRS(t),e=n.r,i=n.s;if(e.length>=130&&e.length<=134){if(e.length%2!=0)throw Error("unknown ECDSA sig r length error");if(i.length%2!=0)throw Error("unknown ECDSA sig s length error");e.substr(0,2)=="00"&&(e=e.substr(2)),i.substr(0,2)=="00"&&(i=i.substr(2));var r=Math.max(e.length,i.length);return e=("000000"+e).slice(-r),i=("000000"+i).slice(-r),e+i}if(e.substr(0,2)=="00"&&e.length%32==2&&(e=e.substr(2)),i.substr(0,2)=="00"&&i.length%32==2&&(i=i.substr(2)),e.length%32==30&&(e="00"+e),i.length%32==30&&(i="00"+i),e.length%32!=0)throw Error("unknown ECDSA sig r length error");if(i.length%32!=0)throw Error("unknown ECDSA sig s length error");return e+i};P.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var n=t.substr(0,t.length/2),e=t.substr(t.length/2);return P.crypto.ECDSA.hexRSSigToASN1Sig(n,e)};P.crypto.ECDSA.hexRSSigToASN1Sig=function(t,n){var e=new Ue(t,16),i=new Ue(n,16);return P.crypto.ECDSA.biRSSigToASN1Sig(e,i)};P.crypto.ECDSA.biRSSigToASN1Sig=function(t,n){var e=P.asn1,i=new e.DERInteger({bigint:t}),r=new e.DERInteger({bigint:n}),o=new e.DERSequence({array:[i,r]});return o.tohex()};P.crypto.ECDSA.getName=function(t){return t==="2b8104001f"?"secp192k1":t==="2a8648ce3d030107"?"secp256r1":t==="2b8104000a"?"secp256k1":t==="2b81040021"?"secp224r1":t==="2b81040022"?"secp384r1":t==="2b81040023"?"secp521r1":"|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)!==-1?"secp256r1":"|secp256k1|".indexOf(t)!==-1?"secp256k1":"|secp224r1|NIST P-224|P-224|".indexOf(t)!==-1?"secp224r1":"|secp384r1|NIST P-384|P-384|".indexOf(t)!==-1?"secp384r1":"|secp521r1|NIST P-521|P-521|".indexOf(t)!==-1?"secp521r1":null};(typeof P>"u"||!P)&&(P={});(typeof P.crypto>"u"||!P.crypto)&&(P.crypto={});P.crypto.ECParameterDB=new function(){var t={},n={};function e(i){return new Ue(i,16)}this.getByName=function(i){var r=i;if(typeof n[r]<"u"&&(r=n[i]),typeof t[r]<"u")return t[r];throw"unregistered EC curve name: "+r},this.regist=function(i,r,o,a,s,l,u,p,g,_,v,y){t[i]={};var x=e(o),I=e(a),C=e(s),D=e(l),A=e(u),M=new T0(x,I,C),R=M.decodePointHex("04"+p+g);t[i].name=i,t[i].keylen=r,t[i].keycharlen=Math.ceil(r/8)*2,t[i].curve=M,t[i].G=R,t[i].n=D,t[i].h=A,t[i].oid=v,t[i].info=y;for(var j=0;j<_.length;j++)n[_[j]]=i}};P.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field");P.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field");P.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field");P.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]);P.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]);P.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]);P.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]);P.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]);P.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]);P.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]);(typeof P>"u"||!P)&&(P={});(typeof P.crypto>"u"||!P.crypto)&&(P.crypto={});P.crypto.DSA=function(){var t=ti,n=t.getVbyList,e=t.getVbyListEx,i=t.isASN1HEX,r=Ue;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(o,a,s,l,u){this.isPrivate=!0,this.p=o,this.q=a,this.g=s,this.y=l,this.x=u},this.setPrivateHex=function(o,a,s,l,u){var p,g,_,v,y;p=new Ue(o,16),g=new Ue(a,16),_=new Ue(s,16),typeof l=="string"&&l.length>1?v=new Ue(l,16):v=null,y=new Ue(u,16),this.setPrivate(p,g,_,v,y)},this.setPublic=function(o,a,s,l){this.isPublic=!0,this.p=o,this.q=a,this.g=s,this.y=l,this.x=null},this.setPublicHex=function(o,a,s,l){var u,p,g,_;u=new Ue(o,16),p=new Ue(a,16),g=new Ue(s,16),_=new Ue(l,16),this.setPublic(u,p,g,_)},this.signWithMessageHash=function(o){var a=this.p,s=this.q,l=this.g,u=this.y,p=this.x,g=P.crypto.Util.getRandomBigIntegerMinToMax(Ue.ONE.add(Ue.ONE),s.subtract(Ue.ONE)),_=o.substr(0,s.bitLength()/4),v=new Ue(_,16),y=l.modPow(g,a).mod(s),x=g.modInverse(s).multiply(v.add(p.multiply(y))).mod(s),I=P.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:y}},{int:{bigint:x}}]});return I},this.verifyWithMessageHash=function(o,a){var s=this.p,l=this.q,u=this.g,p=this.y,g=this.parseASN1Signature(a),_=g[0],v=g[1],y=o.substr(0,l.bitLength()/4),x=new Ue(y,16);if(Ue.ZERO.compareTo(_)>0||_.compareTo(l)>0||Ue.ZERO.compareTo(v)>=0||v.compareTo(l)>0)throw"invalid DSA signature";var I=v.modInverse(l),C=x.multiply(I).mod(l),D=_.multiply(I).mod(l),A=u.modPow(C,s).multiply(p.modPow(D,s)).mod(s).mod(l);return A.compareTo(_)==0},this.parseASN1Signature=function(o){try{var a=new r(e(o,0,[0],"02"),16),s=new r(e(o,0,[1],"02"),16);return[a,s]}catch{throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(o){var a,s,l,u,p;if(i(o)===!1)throw new Error("not ASN.1 hex string");try{a=e(o,0,[1],"02"),s=e(o,0,[2],"02"),l=e(o,0,[3],"02"),u=e(o,0,[4],"02"),p=e(o,0,[5],"02")}catch{throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(a,s,l,u,p)},this.readPKCS8PrvKeyHex=function(o){var a,s,l,u;if(i(o)===!1)throw new Error("not ASN.1 hex string");try{a=e(o,0,[1,1,0],"02"),s=e(o,0,[1,1,1],"02"),l=e(o,0,[1,1,2],"02"),u=e(o,0,[2,0],"02")}catch{throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(a,s,l,null,u)},this.readPKCS8PubKeyHex=function(o){var a,s,l,u;if(i(o)===!1)throw new Error("not ASN.1 hex string");try{a=e(o,0,[0,1,0],"02"),s=e(o,0,[0,1,1],"02"),l=e(o,0,[0,1,2],"02"),u=e(o,0,[1,0],"02")}catch{throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(a,s,l,u)},this.readCertPubKeyHex=function(o,a){var s,l,u,p;if(i(o)===!1)throw new Error("not ASN.1 hex string");try{s=e(o,0,[0,5,0,1,0],"02"),l=e(o,0,[0,5,0,1,1],"02"),u=e(o,0,[0,5,0,1,2],"02"),p=e(o,0,[0,5,1,0],"02")}catch{throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(s,l,u,p)}};var io=function(){var t=function(x,I,C){return i(Fi.AES,x,I,C)},n=function(x,I,C){return i(Fi.TripleDES,x,I,C)},e=function(x,I,C){return i(Fi.DES,x,I,C)},i=function(x,I,C,D){var A=Fi.enc.Hex.parse(I),M=Fi.enc.Hex.parse(C),R=Fi.enc.Hex.parse(D),j={};j.key=M,j.iv=R,j.ciphertext=A;var K=x.decrypt(j,M,{iv:R});return Fi.enc.Hex.stringify(K)},r=function(x,I,C){return s(Fi.AES,x,I,C)},o=function(x,I,C){return s(Fi.TripleDES,x,I,C)},a=function(x,I,C){return s(Fi.DES,x,I,C)},s=function(x,I,C,D){var A=Fi.enc.Hex.parse(I),M=Fi.enc.Hex.parse(C),R=Fi.enc.Hex.parse(D),j=x.encrypt(A,M,{iv:R}),K=Fi.enc.Hex.parse(j.toString()),F=Fi.enc.Base64.stringify(K);return F},l={"AES-256-CBC":{proc:t,eproc:r,keylen:32,ivlen:16},"AES-192-CBC":{proc:t,eproc:r,keylen:24,ivlen:16},"AES-128-CBC":{proc:t,eproc:r,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:n,eproc:o,keylen:24,ivlen:8},"DES-CBC":{proc:e,eproc:a,keylen:8,ivlen:8}},u=function(x){return l[x].proc},p=function(x){var I=Fi.lib.WordArray.random(x),C=Fi.enc.Hex.stringify(I);return C},g=function(x){var I={},C=x.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));C&&(I.cipher=C[1],I.ivsalt=C[2]);var D=x.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));D&&(I.type=D[1]);var A=-1,M=0;x.indexOf(`\r \r `)!=-1&&(A=x.indexOf(`\r \r `),M=2),x.indexOf(` `)!=-1&&(A=x.indexOf(` `),M=1);var R=x.indexOf("-----END");if(A!=-1&&R!=-1){var j=x.substring(A+M*2,R-M);j=j.replace(/\s+/g,""),I.data=j}return I},_=function(x,I,C){for(var D=C.substring(0,16),A=Fi.enc.Hex.parse(D),M=Fi.enc.Utf8.parse(I),R=l[x].keylen+l[x].ivlen,j="",K=null;;){var F=Fi.algo.MD5.create();if(K!=null&&F.update(K),F.update(M),F.update(A),K=F.finalize(),j=j+Fi.enc.Hex.stringify(K),j.length>=R*2)break}var V={};return V.keyhex=j.substr(0,l[x].keylen*2),V.ivhex=j.substr(l[x].keylen*2,l[x].ivlen*2),V},v=function(x,I,C,D){var A=Fi.enc.Base64.parse(x),M=Fi.enc.Hex.stringify(A),R=l[I].proc,j=R(M,C,D);return j},y=function(x,I,C,D){var A=l[I].eproc,M=A(x,C,D);return M};return{version:"1.0.0",parsePKCS5PEM:function(x){return g(x)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(x,I,C){return _(x,I,C)},decryptKeyB64:function(x,I,C,D){return v(x,I,C,D)},getDecryptedKeyHex:function(x,I){var C=g(x),D=C.type,A=C.cipher,M=C.ivsalt,R=C.data,j=_(A,I,M),K=j.keyhex,F=v(R,A,K,M);return F},getEncryptedPKCS5PEMFromPrvKeyHex:function(x,I,C,D,A){var Q="";if((typeof D>"u"||D==null)&&(D="AES-256-CBC"),typeof l[D]>"u")throw new Error("KEYUTIL unsupported algorithm: "+D);if(typeof A>"u"||A==null){var M=l[D].ivlen,R=p(M);A=R.toUpperCase()}var j=_(D,C,A),K=j.keyhex,F=y(I,D,K,A),V=F.replace(/(.{64})/g,`$1\r `),Q="-----BEGIN "+x+` PRIVATE KEY-----\r `;return Q+=`Proc-Type: 4,ENCRYPTED\r `,Q+="DEK-Info: "+D+","+A+`\r `,Q+=`\r `,Q+=V,Q+=`\r -----END `+x+` PRIVATE KEY-----\r `,Q},getEncryptedPKCS8PEM:function(x,I,C){var D=this.getEncryptedPKCS8Hex(x,I,C);return od(D,"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(x,I,C){var D;C==null||C==null?D={}:D=JSON.parse(JSON.stringify(C)),D.plain=x,this.initPBES2Param(D),this.encryptPBES2Param(D,I);var A=this.generatePBES2ASN1Param(D);return P.asn1.ASN1Util.newObject(A).tohex()},initPBES2Param:function(x){if(pa(x,"encalg")==null&&(x.encalg="aes256-CBC"),pa(x,"iter")==null&&(x.iter=2048),pa(x,"prf")==null&&(x.prf="hmacWithSHA256"),pa(x,"salt")==null&&(x.salt=Fi.enc.Hex.stringify(Fi.lib.WordArray.random(8))),pa(x,"enciv")==null){var I;x.encalg=="des-EDE3-CBC"&&(I=8),x.encalg=="aes128-CBC"&&(I=16),x.encalg=="aes256-CBC"&&(I=16),x.enciv=Fi.enc.Hex.stringify(Fi.lib.WordArray.random(I))}},encryptPBES2Param:function(x,I){var C=io.getDKFromPBES2Param(x,I);try{var D=P.crypto.Cipher.encrypt(x.plain,C,x.encalg,{iv:x.enciv})}catch{throw new Error("encrypt error: "+x.plain+" "+C+" "+x.encalg+" "+x.enciv)}x.enc=D},generatePBES2ASN1Param:function(x){var I={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:x.salt}},{int:{hex:xme(x.iter)}}]}]},{seq:[{oid:x.encalg},{octstr:{hex:x.enciv}}]}]}]},{octstr:{hex:x.enc}}]};return x.prf!="hmacWithSHA1"&&I.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:x.prf},{null:""}]}),I},parseHexOfEncryptedPKCS8:function(x){var I=ti,C=I.getChildIdx,D=I.getV,A={},M=C(x,0);if(M.length!=2)throw new Error("malformed format: SEQUENCE(0).items != 2: "+M.length);A.ciphertext=D(x,M[1]);var R=C(x,M[0]);if(R.length!=2)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+R.length);if(D(x,R[0])!="2a864886f70d01050d")throw new Error("this only supports pkcs5PBES2");var j=C(x,R[1]);if(R.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+j.length);var K=C(x,j[1]);if(K.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+K.length);if(D(x,K[0])!="2a864886f70d0307")throw"this only supports TripleDES";A.encryptionSchemeAlg="TripleDES",A.encryptionSchemeIV=D(x,K[1]);var F=C(x,j[0]);if(F.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+F.length);if(D(x,F[0])!="2a864886f70d01050c")throw new Error("this only supports pkcs5PBKDF2");var V=C(x,F[1]);if(V.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+V.length);A.pbkdf2Salt=D(x,V[0]);var Q=D(x,V[1]);try{A.pbkdf2Iter=parseInt(Q,16)}catch{throw new Error("malformed format pbkdf2Iter: "+Q)}return A},getPBKDF2KeyHexFromParam:function(x,I){var C=Fi.enc.Hex.parse(x.pbkdf2Salt),D=x.pbkdf2Iter,A=Fi.PBKDF2(I,C,{keySize:192/32,iterations:D}),M=Fi.enc.Hex.stringify(A);return M},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(x,I){var C=ns(x,"ENCRYPTED PRIVATE KEY"),D=this.parseHexOfEncryptedPKCS8(C),A=io.getPBKDF2KeyHexFromParam(D,I),M={};M.ciphertext=Fi.enc.Hex.parse(D.ciphertext);var R=Fi.enc.Hex.parse(A),j=Fi.enc.Hex.parse(D.encryptionSchemeIV),K=Fi.TripleDES.decrypt(M,R,{iv:j}),F=Fi.enc.Hex.stringify(K);return F},parsePBES2:function(x){var I=ti.parse(x);if(pa(I,"seq.0.seq.0.oid")!="pkcs5PBES2"||pa(I,"seq.0.seq.1.seq.0.seq.0.oid")!="pkcs5PBKDF2")throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var C=pa(I,"seq.0.seq.1.seq.0.seq.1.seq");if(C==null)throw new Error("PBKDF2 parameter not found");var D=pa(C,"0.octstr.hex"),A=pa(C,"1.int.hex"),M=pa(C,"2.seq.0.oid","hmacWithSHA1"),R=-1;try{R=parseInt(A,16)}catch{throw new Error("iter not proper value")}var j=pa(I,"seq.0.seq.1.seq.1.seq.0.oid"),K=pa(I,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),F=pa(I,"seq.1.octstr.hex");if(j==null||K==null||F==null)throw new Error("encalg, enciv or enc is undefined");var V={salt:D,iter:R,prf:M,encalg:j,enciv:K,enc:F};return V},getDKFromPBES2Param:function(x,I){var C={hmacWithSHA1:Fi.algo.SHA1,hmacWithSHA224:Fi.algo.SHA224,hmacWithSHA256:Fi.algo.SHA256,hmacWithSHA384:Fi.algo.SHA384,hmacWithSHA512:Fi.algo.SHA512},D={"des-EDE3-CBC":192/32,"aes128-CBC":128/32,"aes256-CBC":256/32},A=C[x.prf];if(A==null)throw new Error("unsupported prf");var M=D[x.encalg];if(M==null)throw new Error("unsupported encalg");var R=Fi.enc.Hex.parse(x.salt),j=x.iter;try{var K=Fi.PBKDF2(I,R,{keySize:M,iterations:j,hasher:A});return Fi.enc.Hex.stringify(K)}catch(F){throw new Error("PBKDF2 error: "+F+" "+JSON.stringify(x)+" "+I)}},getPlainHexFromEncryptedPKCS8PEM:function(x,I){if(x.indexOf("BEGIN ENCRYPTED PRIVATE KEY")==-1)throw new Error("not Encrypted PKCS#8 PEM string");var C=ns(x),D;try{D=io.parsePBES2(C)}catch(M){throw new Error("malformed PBES2 format: "+M.message)}var A=io.getDKFromPBES2Param(D,I);return P.crypto.Cipher.decrypt(D.enc,A,D.encalg,{iv:D.enciv})},getKeyFromEncryptedPKCS8PEM:function(x,I){var C=this.getPlainHexFromEncryptedPKCS8PEM(x,I),D=this.getKeyFromPlainPrivatePKCS8Hex(C);return D},parsePlainPrivatePKCS8Hex:function(x){var I=ti,C=I.getChildIdx,D=I.getV,A={};if(A.algparam=null,x.substr(0,2)!="30")throw new Error("malformed plain PKCS8 private key(code:001)");var M=C(x,0);if(M.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if(x.substr(M[1],2)!="30")throw new Error("malformed PKCS8 private key(code:003)");var R=C(x,M[1]);if(R.length!=2)throw new Error("malformed PKCS8 private key(code:004)");if(x.substr(R[0],2)!="06")throw new Error("malformed PKCS8 private key(code:005)");if(A.algoid=D(x,R[0]),x.substr(R[1],2)=="06"&&(A.algparam=D(x,R[1])),x.substr(M[2],2)!="04")throw new Error("malformed PKCS8 private key(code:006)");return A.keyidx=I.getVidx(x,M[2]),A},getKeyFromPlainPrivatePKCS8PEM:function(x){var I=ns(x,"PRIVATE KEY"),C=this.getKeyFromPlainPrivatePKCS8Hex(I);return C},getKeyFromPlainPrivatePKCS8Hex:function(x){var I=this.parsePlainPrivatePKCS8Hex(x),C;if(I.algoid=="2a864886f70d010101")C=new pr;else if(I.algoid=="2a8648ce380401")C=new P.crypto.DSA;else if(I.algoid=="2a8648ce3d0201")C=new P.crypto.ECDSA;else throw new Error("unsupported private key algorithm");return C.readPKCS8PrvKeyHex(x),C},_getKeyFromPublicPKCS8Hex:function(x){var I,C=ti.getVbyList(x,0,[0,0],"06");if(C==="2a864886f70d010101")I=new pr;else if(C==="2a8648ce380401")I=new P.crypto.DSA;else if(C==="2a8648ce3d0201")I=new P.crypto.ECDSA;else throw new Error("unsupported PKCS#8 public key hex");return I.readPKCS8PubKeyHex(x),I},parsePublicRawRSAKeyHex:function(x){var I=ti,C=I.getChildIdx,D=I.getV,A={};if(x.substr(0,2)!="30")throw new Error("malformed RSA key(code:001)");var M=C(x,0);if(M.length!=2)throw new Error("malformed RSA key(code:002)");if(x.substr(M[0],2)!="02")throw new Error("malformed RSA key(code:003)");if(A.n=D(x,M[0]),x.substr(M[1],2)!="02")throw new Error("malformed RSA key(code:004)");return A.e=D(x,M[1]),A},parsePublicPKCS8Hex:function(x){var I=ti,C=I.getChildIdx,D=I.getV,A={};A.algparam=null;var M=C(x,0);if(M.length!=2)throw new Error("outer DERSequence shall have 2 elements: "+M.length);var R=M[0];if(x.substr(R,2)!="30")throw new Error("malformed PKCS8 public key(code:001)");var j=C(x,R);if(j.length!=2)throw new Error("malformed PKCS8 public key(code:002)");if(x.substr(j[0],2)!="06")throw new Error("malformed PKCS8 public key(code:003)");if(A.algoid=D(x,j[0]),x.substr(j[1],2)=="06"?A.algparam=D(x,j[1]):x.substr(j[1],2)=="30"&&(A.algparam={},A.algparam.p=I.getVbyList(x,j[1],[0],"02"),A.algparam.q=I.getVbyList(x,j[1],[1],"02"),A.algparam.g=I.getVbyList(x,j[1],[2],"02")),x.substr(M[1],2)!="03")throw new Error("malformed PKCS8 public key(code:004)");return A.key=D(x,M[1]).substr(2),A}}}();io.getKey=function(t,n,e){var i=ti,r=i.getChildIdx,o=i.getV,a=i.getVbyList,s=P.crypto,l=s.ECDSA,u=s.DSA,p=pr,g=ns,_=io;if(typeof p<"u"&&t instanceof p||typeof l<"u"&&t instanceof l||typeof u<"u"&&t instanceof u)return t;if(t.curve!==void 0&&t.xy!==void 0&&t.d===void 0)return new l({pub:t.xy,curve:t.curve});if(t.curve!==void 0&&t.d!==void 0)return new l({prv:t.d,curve:t.curve});if(t.kty===void 0&&t.n!==void 0&&t.e!==void 0&&t.d===void 0){var v=new p;return v.setPublic(t.n,t.e),v}if(t.kty===void 0&&t.n!==void 0&&t.e!==void 0&&t.d!==void 0&&t.p!==void 0&&t.q!==void 0&&t.dp!==void 0&&t.dq!==void 0&&t.co!==void 0&&t.qi===void 0){var v=new p;return v.setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),v}if(t.kty===void 0&&t.n!==void 0&&t.e!==void 0&&t.d!==void 0&&t.p===void 0){var v=new p;return v.setPrivate(t.n,t.e,t.d),v}if(t.p!==void 0&&t.q!==void 0&&t.g!==void 0&&t.y!==void 0&&t.x===void 0){var v=new u;return v.setPublic(t.p,t.q,t.g,t.y),v}if(t.p!==void 0&&t.q!==void 0&&t.g!==void 0&&t.y!==void 0&&t.x!==void 0){var v=new u;return v.setPrivate(t.p,t.q,t.g,t.y,t.x),v}if(t.kty==="RSA"&&t.n!==void 0&&t.e!==void 0&&t.d===void 0){var v=new p;return v.setPublic(za(t.n),za(t.e)),v}if(t.kty==="RSA"&&t.n!==void 0&&t.e!==void 0&&t.d!==void 0&&t.p!==void 0&&t.q!==void 0&&t.dp!==void 0&&t.dq!==void 0&&t.qi!==void 0){var v=new p;return v.setPrivateEx(za(t.n),za(t.e),za(t.d),za(t.p),za(t.q),za(t.dp),za(t.dq),za(t.qi)),v}if(t.kty==="RSA"&&t.n!==void 0&&t.e!==void 0&&t.d!==void 0){var v=new p;return v.setPrivate(za(t.n),za(t.e),za(t.d)),v}if(t.kty==="EC"&&t.crv!==void 0&&t.x!==void 0&&t.y!==void 0&&t.d===void 0){var y=new l({curve:t.crv}),x=y.ecparams.keycharlen,I=("0000000000"+za(t.x)).slice(-x),C=("0000000000"+za(t.y)).slice(-x),D="04"+I+C;return y.setPublicKeyHex(D),y}if(t.kty==="EC"&&t.crv!==void 0&&t.x!==void 0&&t.y!==void 0&&t.d!==void 0){var y=new l({curve:t.crv}),x=y.ecparams.keycharlen,I=("0000000000"+za(t.x)).slice(-x),C=("0000000000"+za(t.y)).slice(-x),D="04"+I+C,A=("0000000000"+za(t.d)).slice(-x);return y.setPublicKeyHex(D),y.setPrivateKeyHex(A),y}if(e==="pkcs5prv"){var M=t,i=ti,R,v;if(R=r(M,0),R.length===9)v=new p,v.readPKCS5PrvKeyHex(M);else if(R.length===6)v=new u,v.readPKCS5PrvKeyHex(M);else if(R.length>2&&M.substr(R[1],2)==="04")v=new l,v.readPKCS5PrvKeyHex(M);else throw new Error("unsupported PKCS#1/5 hexadecimal key");return v}if(e==="pkcs8prv"){var v=_.getKeyFromPlainPrivatePKCS8Hex(t);return v}if(e==="pkcs8pub")return _._getKeyFromPublicPKCS8Hex(t);if(e==="x509pub")return Nn.getPublicKeyFromCertHex(t);if(t.indexOf("-END CERTIFICATE-",0)!=-1||t.indexOf("-END X509 CERTIFICATE-",0)!=-1||t.indexOf("-END TRUSTED CERTIFICATE-",0)!=-1)return Nn.getPublicKeyFromCertPEM(t);if(t.indexOf("-END PUBLIC KEY-")!=-1){var j=ns(t,"PUBLIC KEY");return _._getKeyFromPublicPKCS8Hex(j)}if(t.indexOf("-END RSA PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")==-1){var K=g(t,"RSA PRIVATE KEY");return _.getKey(K,null,"pkcs5prv")}if(t.indexOf("-END DSA PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")==-1){var F=g(t,"DSA PRIVATE KEY"),V=a(F,0,[1],"02"),Q=a(F,0,[2],"02"),te=a(F,0,[3],"02"),re=a(F,0,[4],"02"),O=a(F,0,[5],"02"),v=new u;return v.setPrivate(new Ue(V,16),new Ue(Q,16),new Ue(te,16),new Ue(re,16),new Ue(O,16)),v}if(t.indexOf("-END EC PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")==-1){var K=g(t,"EC PRIVATE KEY");return _.getKey(K,null,"pkcs5prv")}if(t.indexOf("-END PRIVATE KEY-")!=-1)return _.getKeyFromPlainPrivatePKCS8PEM(t);if(t.indexOf("-END RSA PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")!=-1){var B=_.getDecryptedKeyHex(t,n),q=new pr;return q.readPKCS5PrvKeyHex(B),q}if(t.indexOf("-END EC PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")!=-1){var F=_.getDecryptedKeyHex(t,n),v=a(F,0,[1],"04"),G=a(F,0,[2,0],"06"),X=a(F,0,[3,0],"03").substr(2),z="";if(P.crypto.OID.oidhex2name[G]!==void 0)z=P.crypto.OID.oidhex2name[G];else throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+G);var y=new l({curve:z});return y.setPublicKeyHex(X),y.setPrivateKeyHex(v),y.isPublic=!1,y}if(t.indexOf("-END DSA PRIVATE KEY-")!=-1&&t.indexOf("4,ENCRYPTED")!=-1){var F=_.getDecryptedKeyHex(t,n),V=a(F,0,[1],"02"),Q=a(F,0,[2],"02"),te=a(F,0,[3],"02"),re=a(F,0,[4],"02"),O=a(F,0,[5],"02"),v=new u;return v.setPrivate(new Ue(V,16),new Ue(Q,16),new Ue(te,16),new Ue(re,16),new Ue(O,16)),v}if(t.indexOf("-END ENCRYPTED PRIVATE KEY-")!=-1)return _.getKeyFromEncryptedPKCS8PEM(t,n);throw new Error("not supported argument")};io.generateKeypair=function(t,n){if(t=="RSA"){var e=n,i=new pr;i.generate(e,"10001"),i.isPrivate=!0,i.isPublic=!0;var r=new pr,o=i.n.toString(16),a=i.e.toString(16);r.setPublic(o,a),r.isPrivate=!1,r.isPublic=!0;var s={};return s.prvKeyObj=i,s.pubKeyObj=r,s}else if(t=="EC"){var l=n,u=new P.crypto.ECDSA({curve:l}),p=u.generateKeyPairHex(),i=new P.crypto.ECDSA({curve:l});i.setPublicKeyHex(p.ecpubhex),i.setPrivateKeyHex(p.ecprvhex),i.isPrivate=!0,i.isPublic=!1;var r=new P.crypto.ECDSA({curve:l});r.setPublicKeyHex(p.ecpubhex),r.isPrivate=!1,r.isPublic=!0;var s={};return s.prvKeyObj=i,s.pubKeyObj=r,s}else throw new Error("unknown algorithm: "+t)};io.getPEM=function(t,n,e,i,r,o){var a=P,s=a.asn1,l=s.DERObjectIdentifier,u=s.DERInteger,p=s.ASN1Util.newObject,g=s.x509,_=g.SubjectPublicKeyInfo,v=a.crypto,y=v.DSA,x=v.ECDSA,I=pr;function C(q){var G=p({seq:[{int:0},{int:{bigint:q.n}},{int:q.e},{int:{bigint:q.d}},{int:{bigint:q.p}},{int:{bigint:q.q}},{int:{bigint:q.dmp1}},{int:{bigint:q.dmq1}},{int:{bigint:q.coeff}}]});return G}function D(q){var G=p({seq:[{int:1},{octstr:{hex:q.prvKeyHex}},{tag:["a0",!0,{oid:{name:q.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+q.pubKeyHex}}]}]});return G}function A(q){var G=p({seq:[{int:0},{int:{bigint:q.p}},{int:{bigint:q.q}},{int:{bigint:q.g}},{int:{bigint:q.y}},{int:{bigint:q.x}}]});return G}if((I!==void 0&&t instanceof I||y!==void 0&&t instanceof y||x!==void 0&&t instanceof x)&&t.isPublic==!0&&(n===void 0||n=="PKCS8PUB")){var M=new _(t),R=M.tohex();return od(R,"PUBLIC KEY")}if(n=="PKCS1PRV"&&I!==void 0&&t instanceof I&&(e===void 0||e==null)&&t.isPrivate==!0){var M=C(t),R=M.tohex();return od(R,"RSA PRIVATE KEY")}if(n=="PKCS1PRV"&&x!==void 0&&t instanceof x&&(e===void 0||e==null)&&t.isPrivate==!0){var j=new l({name:t.curveName}),K=j.tohex(),F=D(t),V=F.tohex(),Q="";return Q+=od(K,"EC PARAMETERS"),Q+=od(V,"EC PRIVATE KEY"),Q}if(n=="PKCS1PRV"&&y!==void 0&&t instanceof y&&(e===void 0||e==null)&&t.isPrivate==!0){var M=A(t),R=M.tohex();return od(R,"DSA PRIVATE KEY")}if(n=="PKCS5PRV"&&I!==void 0&&t instanceof I&&e!==void 0&&e!=null&&t.isPrivate==!0){var M=C(t),R=M.tohex();return i===void 0&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",R,e,i,o)}if(n=="PKCS5PRV"&&x!==void 0&&t instanceof x&&e!==void 0&&e!=null&&t.isPrivate==!0){var M=D(t),R=M.tohex();return i===void 0&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",R,e,i,o)}if(n=="PKCS5PRV"&&y!==void 0&&t instanceof y&&e!==void 0&&e!=null&&t.isPrivate==!0){var M=A(t),R=M.tohex();return i===void 0&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",R,e,i,o)}var te=function(q,G){if(typeof G=="string")return io.getEncryptedPKCS8PEM(q,G);if(typeof G=="object"&&pa(G,"passcode")!=null){var X=JSON.parse(JSON.stringify(G)),z=X.passcode;return delete X.passcode,io.getEncryptedPKCS8PEM(q,z,X)}};if(n=="PKCS8PRV"&&I!=null&&t instanceof I&&t.isPrivate==!0){var re=C(t),O=re.tohex(),M=p({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:O}}]}),R=M.tohex();return e===void 0||e==null?od(R,"PRIVATE KEY"):te(R,e)}if(n=="PKCS8PRV"&&x!==void 0&&t instanceof x&&t.isPrivate==!0){var B={seq:[{int:1},{octstr:{hex:t.prvKeyHex}}]};typeof t.pubKeyHex=="string"&&B.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]});var re=new p(B),O=re.tohex(),M=p({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:O}}]}),R=M.tohex();return e===void 0||e==null?od(R,"PRIVATE KEY"):te(R,e)}if(n=="PKCS8PRV"&&y!==void 0&&t instanceof y&&t.isPrivate==!0){var re=new u({bigint:t.x}),O=re.tohex(),M=p({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:O}}]}),R=M.tohex();return e===void 0||e==null?od(R,"PRIVATE KEY"):te(R,e)}throw new Error("unsupported object nor format")};io.getKeyFromCSRPEM=function(t){var n=ns(t,"CERTIFICATE REQUEST"),e=io.getKeyFromCSRHex(n);return e};io.getKeyFromCSRHex=function(t){var n=io.parseCSRHex(t),e=io.getKey(n.p8pubkeyhex,null,"pkcs8pub");return e};io.parseCSRHex=function(t){var n=ti,e=n.getChildIdx,i=n.getTLV,r={},o=t;if(o.substr(0,2)!="30")throw new Error("malformed CSR(code:001)");var a=e(o,0);if(a.length<1)throw new Error("malformed CSR(code:002)");if(o.substr(a[0],2)!="30")throw new Error("malformed CSR(code:003)");var s=e(o,a[0]);if(s.length<3)throw new Error("malformed CSR(code:004)");return r.p8pubkeyhex=i(o,s[2]),r};io.getKeyID=function(t){var n=io,e=ti;typeof t=="string"&&t.indexOf("BEGIN ")!=-1&&(t=n.getKey(t));var i=ns(n.getPEM(t)),r=e.getIdxbyList(i,0,[1]),o=e.getV(i,r).substring(2);return P.crypto.Util.hashHex(o,"sha1")};io.getJWK=function(t,n,e,i,r){var o,a={},s,l=P.crypto.Util.hashHex;if(typeof t=="string")o=io.getKey(t),t.indexOf("CERTIFICATE")!=-1&&(s=ns(t));else if(typeof t=="object")t instanceof Nn?(o=t.getPublicKey(),s=t.hex):o=t;else throw new Error("unsupported keyinfo type");if(o instanceof pr&&o.isPrivate)a.kty="RSA",a.n=kl(o.n.toString(16)),a.e=kl(o.e.toString(16)),a.d=kl(o.d.toString(16)),a.p=kl(o.p.toString(16)),a.q=kl(o.q.toString(16)),a.dp=kl(o.dmp1.toString(16)),a.dq=kl(o.dmq1.toString(16)),a.qi=kl(o.coeff.toString(16));else if(o instanceof pr&&o.isPublic)a.kty="RSA",a.n=kl(o.n.toString(16)),a.e=kl(o.e.toString(16));else if(o instanceof P.crypto.ECDSA&&o.isPrivate){var u=o.getShortNISTPCurveName();if(u!=="P-256"&&u!=="P-384"&&u!=="P-521")throw new Error("unsupported curve name for JWT: "+u);var p=o.getPublicKeyXYHex();a.kty="EC",a.crv=u,a.x=kl(p.x),a.y=kl(p.y),a.d=kl(o.prvKeyHex)}else if(o instanceof P.crypto.ECDSA&&o.isPublic){var u=o.getShortNISTPCurveName();if(u!=="P-256"&&u!=="P-384"&&u!=="P-521")throw new Error("unsupported curve name for JWT: "+u);var p=o.getPublicKeyXYHex();a.kty="EC",a.crv=u,a.x=kl(p.x),a.y=kl(p.y)}if(a.kty==null)throw new Error("unsupported keyinfo");return!o.isPrivate&&n!=!0&&(a.kid=P.jws.JWS.getJWKthumbprint(a)),s!=null&&e!=!0&&(a.x5c=[D0(s)]),s!=null&&i!=!0&&(a.x5t=vw(D0(l(s,"sha1")))),s!=null&&r!=!0&&(a["x5t#S256"]=vw(D0(l(s,"sha256")))),a};io.getJWKFromKey=function(t){return io.getJWK(t,!0,!0,!0,!0)};pr.getPosArrayOfChildrenFromHex=function(t){return ti.getChildIdx(t,0)};pr.getHexValueArrayOfChildrenFromHex=function(t){var n=ti,e=n.getV,_=pr.getPosArrayOfChildrenFromHex(t),i=e(t,_[0]),r=e(t,_[1]),o=e(t,_[2]),a=e(t,_[3]),s=e(t,_[4]),l=e(t,_[5]),u=e(t,_[6]),p=e(t,_[7]),g=e(t,_[8]),_=new Array;return _.push(i,r,o,a,s,l,u,p,g),_};pr.prototype.readPrivateKeyFromPEMString=function(t){var n=ns(t),e=pr.getHexValueArrayOfChildrenFromHex(n);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])};pr.prototype.readPKCS5PrvKeyHex=function(t){var n=pr.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])};pr.prototype.readPKCS8PrvKeyHex=function(t){var n,e,i,r,o,a,s,l,u=ti,p=u.getVbyListEx;if(u.isASN1HEX(t)===!1)throw new Error("not ASN.1 hex string");try{n=p(t,0,[2,0,1],"02"),e=p(t,0,[2,0,2],"02"),i=p(t,0,[2,0,3],"02"),r=p(t,0,[2,0,4],"02"),o=p(t,0,[2,0,5],"02"),a=p(t,0,[2,0,6],"02"),s=p(t,0,[2,0,7],"02"),l=p(t,0,[2,0,8],"02")}catch{throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(n,e,i,r,o,a,s,l)};pr.prototype.readPKCS5PubKeyHex=function(t){var n=ti,e=n.getV;if(n.isASN1HEX(t)===!1)throw new Error("keyHex is not ASN.1 hex string");var i=n.getChildIdx(t,0);if(i.length!==2||t.substr(i[0],2)!=="02"||t.substr(i[1],2)!=="02")throw new Error("wrong hex for PKCS#5 public key");var r=e(t,i[0]),o=e(t,i[1]);this.setPublic(r,o)};pr.prototype.readPKCS8PubKeyHex=function(t){var n=ti;if(n.isASN1HEX(t)===!1)throw new Error("not ASN.1 hex string");if(n.getTLVbyListEx(t,0,[0,0])!=="06092a864886f70d010101")throw new Error("not PKCS8 RSA public key");var e=n.getTLVbyListEx(t,0,[1,0]);this.readPKCS5PubKeyHex(e)};pr.prototype.readCertPubKeyHex=function(t,n){var e,i;e=new Nn,e.readCertHex(t),i=e.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var i9t=new RegExp("[^0-9a-f]","gi");function Eme(t,n){for(var e="",i=n/4-t.length,r=0;r>24,(r&16711680)>>16,(r&65280)>>8,r&255])))),r+=1;return i}pr.prototype.signPSS=function(t,n,e){var i=function(o){return P.crypto.Util.hashHex(o,n)},r=i(Qf(t));return e===void 0&&(e=-1),this.signWithMessageHashPSS(r,n,e)};pr.prototype.signWithMessageHashPSS=function(t,n,e){var i=ju(t),r=i.length,o=this.n.bitLength()-1,a=Math.ceil(o/8),s,l=function(I){return P.crypto.Util.hashHex(I,n)};if(e===-1||e===void 0)e=r;else if(e===-2)e=a-r-2;else if(e<-2)throw new Error("invalid salt length");if(a0&&(u=new Array(e),new Cw().nextBytes(u),u=String.fromCharCode.apply(String,u));var p=ju(l(Qf("\0\0\0\0\0\0\0\0"+i+u))),g=[];for(s=0;s>8*a-o&255;for(y[0]&=~x,s=0;si)return!1;var r=this.doPublic(e),o=r.toString(16);if(o.length+3!=i/4)return!1;var a=o.replace(/^1f+00/,""),s=Dme(a);if(s.length==0)return!1;var l=s[0],u=s[1],p=function(_){return P.crypto.Util.hashString(_,l)},g=p(t);return u==g};pr.prototype.verifyWithMessageHash=function(t,n){if(n.length!=Math.ceil(this.n.bitLength()/4))return!1;var e=Vu(n,16);if(e.bitLength()>this.n.bitLength())return 0;var i=this.doPublic(e),r=i.toString(16).replace(/^1f+00/,""),o=Dme(r);if(o.length==0)return!1;var a=o[0],s=o[1];return s==t};pr.prototype.verifyPSS=function(t,n,e,i){var r=function(a){return P.crypto.Util.hashHex(a,e)},o=r(Qf(t));return i===void 0&&(i=-1),this.verifyWithMessageHashPSS(o,n,e,i)};pr.prototype.verifyWithMessageHashPSS=function(t,n,e,i){if(n.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=new Ue(n,16),o=function(D){return P.crypto.Util.hashHex(D,e)},a=ju(t),s=a.length,l=this.n.bitLength()-1,u=Math.ceil(l/8),p;if(i===-1||i===void 0)i=s;else if(i===-2)i=u-s-2;else if(i<-2)throw new Error("invalid salt length");if(u>8*u-l&255;if(_.charCodeAt(0)&y)throw new Error("bits beyond keysize not zero");var x=Ime(v,_.length,o),I=[];for(p=0;p<_.length;p+=1)I[p]=_.charCodeAt(p)^x.charCodeAt(p);I[0]&=~y;var C=u-s-i-2;for(p=0;p0?V:void 0}catch{return}},this._asn1ToNoticeRef=function(F){try{for(var V={},Q=pa(F,"seq"),te=0;te0?V:void 0}catch{return}},this._asn1ToNoticeNum=function(F){try{for(var V=pa(F,"seq"),Q=[],te=0;te1){var O=a(F,re[1]),B=this.getGeneralName(O);B.uri!=null&&(te.uri=B.uri)}if(re.length>2){var q=a(F,re[2]);q=="0101ff"&&(te.reqauth=!0),q=="010100"&&(te.reqauth=!1)}return te},this.getExtSubjectDirectoryAttributes=function(F,V){if(F===void 0&&V===void 0){var Q=this.getExtInfo("subjectDirectoryAttributes");if(Q===void 0)return;F=a(this.hex,Q.vidx),V=Q.critical}var te={extname:"subjectDirectoryAttributes"};V&&(te.critical=!0);try{for(var re=o(F),O=[],B=0;B0&&(V.ext=this.getExtParamArray()),V.sighex=this.getSignatureValueHex(),F.tbshex==!0&&(V.tbshex=u(this.hex,0,[0])),F.nodnarray==!0&&(delete V.issuer.array,delete V.subject.array),V},this.getExtParamArray=function(F){if(F==null){var V=_(this.hex,0,[0,"[3]"]);V!=-1&&(F=p(this.hex,0,[0,"[3]",0],"30"))}for(var Q=[],te=e(F,0),re=0;re"u"||!P)&&(P={});(typeof P.jws>"u"||!P.jws)&&(P.jws={});P.jws.JWS=function(){var t=P,n=t.jws.JWS,e=n.isSafeJSONString;this.parseJWS=function(i,r){if(!(this.parsedJWS!==void 0&&(r||this.parsedJWS.sigvalH!==void 0))){var o=i.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(o==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var a=o[1],s=o[2],l=o[3],u=a+"."+s;if(this.parsedJWS={},this.parsedJWS.headB64U=a,this.parsedJWS.payloadB64U=s,this.parsedJWS.sigvalB64U=l,this.parsedJWS.si=u,!r){var p=za(l),g=Vu(p,16);this.parsedJWS.sigvalH=p,this.parsedJWS.sigvalBI=g}var _=Wh(a),v=Wh(s);if(this.parsedJWS.headS=_,this.parsedJWS.payloadS=v,!e(_,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+_}}};P.jws.JWS.sign=function(t,n,e,i,r){var o=P,a=o.jws,s=a.JWS,l=s.readSafeJSONString,u=s.isSafeJSONString,p=o.crypto,g=p.ECDSA,_=p.Mac,v=p.Signature,y=JSON,x,I,C;if(typeof n!="string"&&typeof n!="object")throw"spHeader must be JSON string or object: "+n;if(typeof n=="object"&&(I=n,x=y.stringify(I)),typeof n=="string"){if(x=n,!u(x))throw"JWS Head is not safe JSON string: "+x;I=l(x)}if(C=e,typeof e=="object"&&(C=y.stringify(e)),(t==""||t==null)&&I.alg!==void 0&&(t=I.alg),t!=""&&t!=null&&I.alg===void 0&&(I.alg=t,x=y.stringify(I)),t!==I.alg)throw"alg and sHeader.alg doesn't match: "+t+"!="+I.alg;var D=null;if(s.jwsalg2sigalg[t]===void 0)throw"unsupported alg name: "+t;D=s.jwsalg2sigalg[t];var A=Z2(x),M=Z2(C),R=A+"."+M,j="";if(D.substr(0,4)=="Hmac"){if(i===void 0)throw"mac key shall be specified for HS* alg";var K=new _({alg:D,prov:"cryptojs",pass:i});K.updateString(R),j=K.doFinal()}else if(D.indexOf("withECDSA")!=-1){var F=new v({alg:D});F.init(i,r),F.updateString(R);var V=F.sign();j=P.crypto.ECDSA.asn1SigToConcatSig(V)}else if(D!="none"){var F=new v({alg:D});F.init(i,r),F.updateString(R),j=F.sign()}var Q=kl(j);return R+"."+Q};P.jws.JWS.verify=function(t,n,e){var i=P,r=i.jws,o=r.JWS,a=o.readSafeJSONString,s=i.crypto,l=s.ECDSA,u=s.Mac,p=s.Signature,g;if(typeof pr!==void 0&&(g=pr),!aY(t))return!1;var _=t.split(".");if(_.length!==3)return!1;var v=_[0],y=_[1],x=v+"."+y,I=za(_[2]),C=a(Wh(_[0])),D=null,A=null;if(C.alg===void 0)throw"algorithm not specified in header";if(D=C.alg,A=D.substr(0,2),e!=null&&Object.prototype.toString.call(e)==="[object Array]"&&e.length>0){var M=":"+e.join(":")+":";if(M.indexOf(":"+D+":")==-1)throw"algorithm '"+D+"' not accepted in the list"}if(D!="none"&&n===null)throw"key shall be specified to verify.";if(typeof n=="string"&&n.indexOf("-----BEGIN ")!=-1&&(n=io.getKey(n)),(A=="RS"||A=="PS")&&!(n instanceof g))throw"key shall be a RSAKey obj for RS* and PS* algs";if(A=="ES"&&!(n instanceof l))throw"key shall be a ECDSA obj for ES* algs";D=="none";var R=null;if(o.jwsalg2sigalg[C.alg]===void 0)throw"unsupported alg name: "+D;if(R=o.jwsalg2sigalg[D],R=="none")throw"not supported";if(R.substr(0,4)=="Hmac"){var j=null;if(n===void 0)throw"hexadecimal key shall be specified for HMAC";var K=new u({alg:R,pass:n});return K.updateString(x),j=K.doFinal(),I==j}else if(R.indexOf("withECDSA")!=-1){var F=null;try{F=l.concatSigToASN1Sig(I)}catch{return!1}var V=new p({alg:R});return V.init(n),V.updateString(x),V.verify(F)}else{var V=new p({alg:R});return V.init(n),V.updateString(x),V.verify(I)}};P.jws.JWS.parse=function(t){var n=t.split("."),e={},i,r,o;if(n.length!=2&&n.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return i=n[0],r=n[1],n.length==3&&(o=n[2]),e.headerObj=P.jws.JWS.readSafeJSONString(Wh(i)),e.payloadObj=P.jws.JWS.readSafeJSONString(Wh(r)),e.headerPP=JSON.stringify(e.headerObj,null," "),e.payloadObj==null?e.payloadPP=Wh(r):e.payloadPP=JSON.stringify(e.payloadObj,null," "),o!==void 0&&(e.sigHex=za(o)),e};P.jws.JWS.verifyJWT=function(t,n,e){var i=P,r=i.jws,o=r.JWS,a=o.readSafeJSONString,s=o.inArray,l=o.includedArray;if(!aY(t))return!1;var u=t.split(".");if(u.length!=3)return!1;var p=u[0],g=u[1],_=p+"."+g,v=za(u[2]),y=a(Wh(p)),x=a(Wh(g));if(y.alg===void 0)return!1;if(e.alg===void 0)throw"acceptField.alg shall be specified";if(!s(y.alg,e.alg)||x.iss!==void 0&&typeof e.iss=="object"&&!s(x.iss,e.iss)||x.sub!==void 0&&typeof e.sub=="object"&&!s(x.sub,e.sub))return!1;if(x.aud!==void 0&&typeof e.aud=="object"){if(typeof x.aud=="string"){if(!s(x.aud,e.aud))return!1}else if(typeof x.aud=="object"&&!l(x.aud,e.aud))return!1}var I=r.IntDate.getNow();return e.verifyAt!==void 0&&typeof e.verifyAt=="number"&&(I=e.verifyAt),(e.gracePeriod===void 0||typeof e.gracePeriod!="number")&&(e.gracePeriod=0),!(x.exp!==void 0&&typeof x.exp=="number"&&x.exp+e.gracePeriod"u"||!P)&&(P={});(typeof P.jws>"u"||!P.jws)&&(P.jws={});P.jws.JWSJS=function(){var t=P,n=t.jws,e=n.JWS,i=e.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(r){this.init();var o=r.split(".");if(o.length!=3)throw"malformed input JWS";this.aHeader.push(o[0]),this.sPayload=o[1],this.aSignature.push(o[2])},this.addSignature=function(r,o,a,s){if(this.sPayload===void 0||this.sPayload===null)throw"there's no JSON-JS signature to add.";var l=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var u=P.jws.JWS.sign(r,o,this.sPayload,a,s),p=u.split("."),g=p[0],_=p[2];this.aHeader.push(p[0]),this.aSignature.push(p[2])}catch(v){throw this.aHeader.length>l&&this.aHeader.pop(),this.aSignature.length>l&&this.aSignature.pop(),"addSignature failed: "+v}},this.verifyAll=function(r){if(this.aHeader.length!==r.length||this.aSignature.length!==r.length)return!1;for(var o=0;o0)this.aHeader=r.headers;else throw"malformed header";if(typeof r.payload=="string")this.sPayload=r.payload;else throw"malformed signatures";if(r.signatures.length>0)this.aSignature=r.signatures;else throw"malformed signatures"}catch(a){throw"malformed JWS-JS JSON object: "+a}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return this.aHeader.length==0?1:0}};xi.SecureRandom=Cw;xi.rng_seed_time=tY;xi.BigInteger=Ue;xi.RSAKey=pr;xi.ECDSA=P.crypto.ECDSA;xi.DSA=P.crypto.DSA;xi.Signature=P.crypto.Signature;xi.MessageDigest=P.crypto.MessageDigest;xi.Mac=P.crypto.Mac;xi.KEYUTIL=io;xi.ASN1HEX=ti;xi.X509=Nn;xi.X509CRL=m9e;xi.CryptoJS=Fi;xi.b64tohex=bw;xi.b64toBA=lme;xi.ECFieldElementFp=Ml;xi.ECPointFp=jo;xi.ECCurveFp=T0;xi.stoBA=hme;xi.BAtos=fme;xi.BAtohex=YL;xi.stohex=Bu;xi.stob64=qUe;xi.stob64u=WUe;xi.b64utos=YUe;xi.b64tob64u=vw;xi.b64utob64=eA;xi.hex2b64=D0;xi.hextob64u=kl;xi.b64utohex=za;xi.utf8tob64u=Z2;xi.b64utoutf8=Wh;xi.utf8tob64=KUe;xi.b64toutf8=XUe;xi.utf8tohex=KL;xi.hextoutf8=ra;xi.hextorstr=ju;xi.rstrtohex=Qf;xi.hextob64=iY;xi.hextob64nl=JUe;xi.b64nltohex=gme;xi.hextopem=od;xi.pemtohex=ns;xi.hextoArrayBuffer=i9e;xi.ArrayBuffertohex=n9e;xi.zulutomsec=nY;xi.msectozulu=r9e;xi.zulutosec=_me;xi.zulutodate=o9e;xi.datetozulu=a9e;xi.uricmptohex=QL;xi.hextouricmp=ZL;xi.ipv6tohex=KW;xi.hextoipv6=XW;xi.hextoip=UL;xi.iptohex=rY;xi.ucs2hextoutf8=oY;xi.encodeURIComponentAll=JL;xi.newline_toUnix=s9e;xi.newline_toDos=l9e;xi.hextoposhex=QW;xi.intarystrtohex=c9e;xi.strdiffidx=d9e;xi.oidtohex=yme;xi.hextooid=e4;xi.strpad=GL;xi.bitstrtoint=Cme;xi.inttobitstr=Sme;xi.bitstrtobinstr=wme;xi.binstrtobitstr=u9e;xi.isBase64URLDot=aY;xi.namearraytobinstr=$L;xi.extendClass=Et;xi.foldnl=XL;xi.b64topem=e9e;xi.pemtob64=t9e;xi.timeogen=vme;xi.aryval=pa;xi.inttohex=xme;xi.twoscompl=tA;xi.KJUR=P;xi.crypto=P.crypto;xi.asn1=P.asn1;xi.jws=P.jws;xi.lang=P.lang;xi.VERSION=x7e;xi.VERSION_FULL=C7e});var Ame=Sf(sY=>{"use strict";Object.defineProperty(sY,"__esModule",{value:!0});function p9e(t){var n=4,e=t.length,i=e%n;if(!i)return t;var r=e,o=n-i,a=e+o,s=Buffer.alloc(a);for(s.write(t);o--;)s.write("=",r++);return s.toString()}sY.default=p9e});var Mme=Sf(dY=>{"use strict";Object.defineProperty(dY,"__esModule",{value:!0});var h9e=Ame();function kme(t,n){return n===void 0&&(n="utf8"),Buffer.isBuffer(t)?lY(t.toString("base64")):lY(Buffer.from(t,n).toString("base64"))}function f9e(t,n){return n===void 0&&(n="utf8"),Buffer.from(cY(t),"base64").toString(n)}function cY(t){return t=t.toString(),h9e.default(t).replace(/\-/g,"+").replace(/_/g,"/")}function lY(t){return t.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function g9e(t){return Buffer.from(cY(t),"base64")}var Sw=kme;Sw.encode=kme;Sw.decode=f9e;Sw.toBase64=cY;Sw.fromBase64=lY;Sw.toBuffer=g9e;dY.default=Sw});var Fme=Sf((l9t,i4)=>{i4.exports=Mme().default;i4.exports.default=i4.exports});var zbe=Sf(Jx=>{typeof window.lacunaWebPKIExtension>"u"&&(window.lacunaWebPKIExtension=null);window.LacunaWebPKI=null;LacunaWebPKI=function(t){if(this.license=null,this.defaultFailCallback=null,this.angularScope=null,this.ngZone=null,this.brand=null,this.restPkiUrl=null,this.useDomainNativePool=!1,this.mobileIntegrationMode=null,t&&(this.license=t),this.isSupportedMobile&&window.$&&window.$.blockUI)try{window.$.blockUI.defaults.bindEvents=!1,this._log("blockUI bindEvents disabled")}catch(n){this._log("Error disabling blockUI bindEvents: ",n)}};(function(t){t.Promise=function(O,B){this.successCallback=function(){},this.failCallback=null,this.angularScope=O,this.ngZone=B},t.Promise.prototype.success=function(O){return this.successCallback=O,this},t.Promise.prototype.error=function(O){return this.failCallback=function(B){O(B.message,B.error,B.origin,B.code)},this},t.Promise.prototype.fail=function(O){return this.failCallback=O,this},t.Promise.prototype._invokeSuccess=function(O,B){if(B>0){var q=this;setTimeout(function(){q._invokeSuccess(O)},B)}else{var G=this.successCallback||function(){t._log("Success ignored (no callback registered)")};this._apply(function(){G(O)})}},t.Promise.prototype._invokeError=function(O,B){if(B>0){var q=this;setTimeout(function(){q._invokeError(O)},B)}else{var G=this.failCallback||function(X){throw"Web PKI error originated at "+X.origin+": "+X.message+` `+X.complete+` code: `+X.code};this._apply(function(){G({userMessage:O.userMessage||O.message,message:O.message,error:O.complete,origin:O.origin,code:O.code})})}},t.Promise.prototype._apply=function(O){if(this.angularScope){var B=this.angularScope.$root.$$phase;B=="$apply"||B=="$digest"?O():this.angularScope.$apply(function(){O()})}else this.ngZone?this.ngZone.run(function(){O()}):O()},t._installUrl="https://get.webpkiplugin.com/",t._chromeExtensionId="dcngeagmmhegagicpcmpinaoklddcgon",t._firefoxExtensionId="webpki-beta@lacunasoftware.com",t._edgeExtensionId="nedeegdmhlnmboboahchfpkmdnnemapd",t._edgeLegacyProductId="d2798a85-9698-425a-add7-3db79a39ca8a",t._chromeExtensionFirstVersionWithSelfUpdate="2.0.20",t._jslibVersion="2.16.3",t._mobileSupported=!0,t._buildChannel="stable",t._extensionRequiredVersion="2.16.0",t._chromeNativeWinRequiredVersion="2.12.3",t._chromeNativeLinuxRequiredVersion="2.13.3",t._chromeNativeMacRequiredVersion="2.13.3",t._ieAddonRequiredVersion="2.9.1",t._mobileRequiredVersion="3.2.0",t._chromeInstallationStates={INSTALLED:0,EXTENSION_NOT_INSTALLED:1,EXTENSION_OUTDATED:2,NATIVE_NOT_INSTALLED:3,NATIVE_OUTDATED:4},t._certKeyUsages={crlSign:2,dataEncipherment:16,decipherOnly:32768,digitalSignature:128,encipherOnly:1,keyAgreement:8,keyCertSign:4,keyEncipherment:32,nonRepudiation:64},t._certExtendedKeyUsages={clientAuth:1,serverAuth:2,codeSigning:4,emailProtection:8,timeStamping:16,ocspSigning:32,ipsecEndSystem:64,ipsecTunnel:128,ipsecUser:256,any:512},t.apiVersions={v1_0:"1.0",v1_1:"1.1",v1_2:"1.2",v1_3:"1.3",v1_4:"1.4",v1_4_1:"1.4.1",v1_5:"1.5",v1_5_1:"1.5.1",v1_5_2:"1.5.2",v1_6:"1.6.0",v1_6_1:"1.6.1",v1_7_0:"1.7.0",v1_7_2:"1.7.2",v1_8_0:"1.8.0",v1_8_1:"1.8.1",v1_8_2:"1.8.2",v1_9_0:"1.9.0",latest:"latest"},t._apiMap={nativeWin:{},nativeLinux:{},nativeMac:{},ieAddon:{},extension:{},mobile:{}},t._apiMap.nativeWin[t.apiVersions.v1_0]="2.1.0",t._apiMap.nativeWin[t.apiVersions.v1_1]="2.3.0",t._apiMap.nativeWin[t.apiVersions.v1_2]="2.4.1",t._apiMap.nativeWin[t.apiVersions.v1_3]="2.5.0",t._apiMap.nativeWin[t.apiVersions.v1_4]="2.6.2",t._apiMap.nativeWin[t.apiVersions.v1_4_1]="2.6.5",t._apiMap.nativeWin[t.apiVersions.v1_5]="2.8.0",t._apiMap.nativeWin[t.apiVersions.v1_5_1]="2.8.1",t._apiMap.nativeWin[t.apiVersions.v1_5_2]="2.9.0",t._apiMap.nativeWin[t.apiVersions.v1_6]="2.10.0",t._apiMap.nativeWin[t.apiVersions.v1_6_1]="2.10.1",t._apiMap.nativeWin[t.apiVersions.v1_7_0]="2.11.0",t._apiMap.nativeWin[t.apiVersions.v1_7_2]="2.11.0",t._apiMap.nativeWin[t.apiVersions.v1_8_0]="2.12.0",t._apiMap.nativeWin[t.apiVersions.v1_8_1]="2.12.1",t._apiMap.nativeWin[t.apiVersions.v1_8_2]="2.12.3",t._apiMap.nativeWin[t.apiVersions.v1_9_0]="2.12.3",t._apiMap.ieAddon[t.apiVersions.v1_0]="2.0.4",t._apiMap.ieAddon[t.apiVersions.v1_1]="2.1.1",t._apiMap.ieAddon[t.apiVersions.v1_2]="2.2.4",t._apiMap.ieAddon[t.apiVersions.v1_3]="2.3.0",t._apiMap.ieAddon[t.apiVersions.v1_4]="2.4.2",t._apiMap.ieAddon[t.apiVersions.v1_4_1]="2.4.5",t._apiMap.ieAddon[t.apiVersions.v1_5]="2.5.0",t._apiMap.ieAddon[t.apiVersions.v1_5_1]="2.5.2",t._apiMap.ieAddon[t.apiVersions.v1_5_2]="2.6.0",t._apiMap.ieAddon[t.apiVersions.v1_6]="2.7.0",t._apiMap.ieAddon[t.apiVersions.v1_6_1]="2.7.2",t._apiMap.ieAddon[t.apiVersions.v1_7_0]="2.8.0",t._apiMap.ieAddon[t.apiVersions.v1_7_2]="2.8.0",t._apiMap.ieAddon[t.apiVersions.v1_8_0]="2.9.0",t._apiMap.ieAddon[t.apiVersions.v1_8_1]="2.9.1",t._apiMap.ieAddon[t.apiVersions.v1_8_2]="2.9.1",t._apiMap.ieAddon[t.apiVersions.v1_9_0]="2.9.1",t._apiMap.nativeLinux[t.apiVersions.v1_0]="2.0.0",t._apiMap.nativeLinux[t.apiVersions.v1_1]="2.4.0",t._apiMap.nativeLinux[t.apiVersions.v1_2]="2.6.2",t._apiMap.nativeLinux[t.apiVersions.v1_3]="2.7.0",t._apiMap.nativeLinux[t.apiVersions.v1_4]="2.7.4",t._apiMap.nativeLinux[t.apiVersions.v1_4_1]="2.7.4",t._apiMap.nativeLinux[t.apiVersions.v1_5]="2.9.0",t._apiMap.nativeLinux[t.apiVersions.v1_5_1]="2.9.0",t._apiMap.nativeLinux[t.apiVersions.v1_5_2]="2.9.5",t._apiMap.nativeLinux[t.apiVersions.v1_6]="2.10.0",t._apiMap.nativeLinux[t.apiVersions.v1_6_1]="2.10.0",t._apiMap.nativeLinux[t.apiVersions.v1_7_0]="2.12.0",t._apiMap.nativeLinux[t.apiVersions.v1_7_2]="2.12.1",t._apiMap.nativeLinux[t.apiVersions.v1_8_0]="2.13.0",t._apiMap.nativeLinux[t.apiVersions.v1_8_1]="2.13.1",t._apiMap.nativeLinux[t.apiVersions.v1_8_2]="2.13.3",t._apiMap.nativeLinux[t.apiVersions.v1_9_0]="2.13.3",t._apiMap.nativeMac[t.apiVersions.v1_0]="2.3.0",t._apiMap.nativeMac[t.apiVersions.v1_1]="2.4.0",t._apiMap.nativeMac[t.apiVersions.v1_2]="2.6.1",t._apiMap.nativeMac[t.apiVersions.v1_3]="2.7.0",t._apiMap.nativeMac[t.apiVersions.v1_4]="2.7.4",t._apiMap.nativeMac[t.apiVersions.v1_4_1]="2.7.4",t._apiMap.nativeMac[t.apiVersions.v1_5]="2.9.0",t._apiMap.nativeMac[t.apiVersions.v1_5_1]="2.9.0",t._apiMap.nativeMac[t.apiVersions.v1_5_2]="2.9.5",t._apiMap.nativeMac[t.apiVersions.v1_6]="2.10.0",t._apiMap.nativeMac[t.apiVersions.v1_6_1]="2.10.0",t._apiMap.nativeMac[t.apiVersions.v1_7_0]="2.12.0",t._apiMap.nativeMac[t.apiVersions.v1_7_2]="2.12.1",t._apiMap.nativeMac[t.apiVersions.v1_8_0]="2.13.0",t._apiMap.nativeMac[t.apiVersions.v1_8_1]="2.13.1",t._apiMap.nativeMac[t.apiVersions.v1_8_2]="2.13.3",t._apiMap.nativeMac[t.apiVersions.v1_9_0]="2.13.3",t._apiMap.extension[t.apiVersions.v1_0]="2.3.2",t._apiMap.extension[t.apiVersions.v1_1]="2.7.0",t._apiMap.extension[t.apiVersions.v1_2]="2.9.1",t._apiMap.extension[t.apiVersions.v1_3]="2.10.1",t._apiMap.extension[t.apiVersions.v1_4]="2.11.7",t._apiMap.extension[t.apiVersions.v1_4_1]="2.11.7",t._apiMap.extension[t.apiVersions.v1_5]="2.13.0",t._apiMap.extension[t.apiVersions.v1_5_1]="2.13.0",t._apiMap.extension[t.apiVersions.v1_5_2]="2.14.2",t._apiMap.extension[t.apiVersions.v1_6]="2.15.0",t._apiMap.extension[t.apiVersions.v1_6_1]="2.15.0",t._apiMap.extension[t.apiVersions.v1_7_0]="2.16.0",t._apiMap.extension[t.apiVersions.v1_7_2]="2.16.0",t._apiMap.extension[t.apiVersions.v1_8_0]="2.16.0",t._apiMap.extension[t.apiVersions.v1_8_1]="2.16.0",t._apiMap.extension[t.apiVersions.v1_8_2]="2.16.0",t._apiMap.extension[t.apiVersions.v1_9_0]="2.17.0",t._apiMap.mobile[t.apiVersions.v1_0]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_1]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_2]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_3]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_4]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_4_1]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_5]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_5_1]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_5_2]="1.1.0",t._apiMap.mobile[t.apiVersions.v1_6]="2.7.0",t._apiMap.mobile[t.apiVersions.v1_6_1]="2.7.0",t._apiMap.mobile[t.apiVersions.v1_7_0]="3.0.0",t._apiMap.mobile[t.apiVersions.v1_7_2]="3.0.0",t._apiMap.mobile[t.apiVersions.v1_8_0]="3.2.0",t._apiMap.mobile[t.apiVersions.v1_8_1]="3.2.0",t._apiMap.mobile[t.apiVersions.v1_8_2]="3.2.0",t._apiMap.mobile[t.apiVersions.v1_9_0]="3.2.0",t._apiMap.nativeWin[t.apiVersions.latest]=t._chromeNativeWinRequiredVersion,t._apiMap.ieAddon[t.apiVersions.latest]=t._ieAddonRequiredVersion,t._apiMap.nativeLinux[t.apiVersions.latest]=t._chromeNativeLinuxRequiredVersion,t._apiMap.nativeMac[t.apiVersions.latest]=t._chromeNativeMacRequiredVersion,t._apiMap.extension[t.apiVersions.latest]=t._extensionRequiredVersion,t._apiMap.mobile[t.apiVersions.latest]=t._mobileRequiredVersion,t._nativeInfo={},t.installationStates={INSTALLED:0,NOT_INSTALLED:1,OUTDATED:2,BROWSER_NOT_SUPPORTED:3},t.isSupportedMobile=void 0,t.certificateValidationLevels={full:"full",offline:"offline"},t.padesPolicies={basic:"basic",brazilAdrBasica:"brazilAdrBasica"},t.cadesPolicies={bes:"cadesBes",brazilAdrBasica:"brazilAdrBasica"},t.xmlPolicies={xmlDSig:"xmlDSig",xadesBes:"xadesBes",brazilNFe:"brazilNFe",brazilAdrBasica:"brazilAdrBasica"},t.cadesAcceptablePolicies={pkiBrazil:["brazilAdrBasica","brazilAdrTempo","brazilAdrValidacao","brazilAdrCompleta","brazilAdrArquivamento"]},t.xmlAcceptablePolicies={pkiBrazil:["brazilAdrBasica","brazilAdrTempo"]},t.standardTrustArbitrators={pkiBrazil:{type:"standard",standardArbitrator:"pkiBrazil"},pkiItaly:{type:"standard",standardArbitrator:"pkiItaly"},pkiPeru:{type:"standard",standardArbitrator:"pkiPeru"},windows:{type:"standard",standardArbitrator:"windows"}},t.xmlInsertionOptions={appendChild:"appendChild",prependChild:"prependChild",appendSibling:"appendSibling",prependSibling:"prependSibling"},t.outputModes={showSaveFileDialog:"showSaveFileDialog",saveInFolder:"saveInFolder",autoSave:"autoSave",returnContent:"returnContent"},t.trustArbitratorTypes={trustedRoot:"trustedRoot",tsl:"tsl",standard:"standard"},t.padesPaperSizes={custom:"custom",a0:"a0",a1:"a1",a2:"a2",a3:"a3",a4:"a4",a5:"a5",a6:"a6",a7:"a7",a8:"a8",letter:"letter",legal:"legal",ledger:"ledger"},t.padesHorizontalAlign={left:"left",center:"center",rigth:"rigth"},t.padesVerticalAlign={top:"top",center:"center",bottom:"bottom"},t.padesMeasurementUnits={centimeters:"centimeters",pdfPoints:"pdfPoints"},t.padesPageOrientations={auto:"auto",portrait:"portrait",landscape:"landscape"},t.padesAutoPositioningHorizontalDirections={leftToRight:"leftToRight",rightToLeft:"rightToLeft"},t.padesAutoPositioningVerticalDirections={topDown:"topDown",bottomUp:"bottomUp"},t.markElementTypes={text:"text",image:"image"},t.markTextStyle={normal:0,bold:1,italic:2},t.passwordPolicies={lettersAndNumbers:1,upperAndLowerCase:2,specialCharacters:4},t.pkcs11Modules={safeSign:{win:"aetpkss1.dll",linux:"libaetpkss.so.3",mac:"libaetpkss.dylib"},safeNet:{win:"eTPKCS11.dll",linux:"libeToken.so",mac:"libeToken.dylib"}},t.mobileIntegrationModes={appIntegration:"appIntegration",browserIntegration:"browserIntegration"},t.encryptionParameters={rsaEncryptionPkcs1:"RSAEncryptionPkcs1",rsaEncryptionOaepSHA1:"RSAEncryptionOaepSHA1",rsaEncryptionOaepSHA256:"RSAEncryptionOaepSHA256",rsaEncryptionOaepSHA384:"RSAEncryptionOaepSHA384",rsaEncryptionOaepSHA512:"RSAEncryptionOaepSHA512"},t._parseDataUrl=function(O){var B=/^data:(.+);base64,(.+)$/.exec(O);return B?{mimeType:B[1],content:B[2]}:(t._log("failed to parse data url"),null)},t._downloadResource=function(O,B){t._log("resolving resource reference: "+O);var q=new XMLHttpRequest;q.open("GET",O),q.responseType="blob",q.onload=function(){var G=new FileReader;G.onloadend=function(){t._log("resource reference resolved");var X=t._parseDataUrl(G.result);B(X)},G.readAsDataURL(q.response)},q.send()},t._getRequestOsP11Modules=function(O){if(!O||!O.length)return null;for(var B=[],q=0;qme?1:-1}return q.length!=G.length?-1:0},t._log=function(O,B){window.console&&(B?window.console.log(O,B):window.console.log(O))},t._createContext=function(O){var B=new t.Promise(this.angularScope,this.ngZone);O&&O.success&&B.success(O.success),O&&O.fail?B.fail(O.fail):O&&O.error?B.error(O.error):B.fail(this.defaultFailCallback);var q={promise:B,license:this.license,useDomainNativePool:this.useDomainNativePool,instance:t._supportedMobileDetected?this:void 0};return q},t.init=function(O){O?typeof O=="function"&&(O={ready:O}):O={},O.license&&(this.license=O.license),O.defaultError&&(this.defaultFailCallback=function(X){O.defaultError(X.message,X.error,X.origin,X.code)}),O.defaultFail&&(this.defaultFailCallback=O.defaultFail),O.angularScope&&(this.angularScope=O.angularScope),O.ngZone&&(this.ngZone=O.ngZone),O.brand&&(this.brand=O.brand),O.restPkiUrl&&(this.restPkiUrl=O.restPkiUrl[O.restPkiUrl.length-1]==="/"?O.restPkiUrl:O.restPkiUrl+"/"),this.useDomainNativePool=O.useDomainNativePool===!0;var B=this,q=function(X){X.isInstalled?O.ready?O.ready():t._log("Web PKI ready (no callback registered)"):O.notInstalled?O.notInstalled(X.status,X.message,X.browserSpecificStatus):B.redirectToInstallPage()},G=this._createContext({success:q,fail:O.fail,error:O.error});return t._requestHandler.checkInstalled(G,O.requiredApiVersion),G.promise},t.getVersion=function(O){var B=this._createContext(O);return t._requestHandler.sendCommand(B,"getVersion",null),B.promise},t.listCertificates=function(O){if(!O)O={};else if(O.filter&&typeof O.filter!="function")throw typeof O.filter=="boolean"?'args.filter must be a function (hint: if you used "pki.filters.xxx()", try removing the "()")':"args.filter must be a function, received "+typeof O.filter;var B=this._createContext(O);return t._requestHandler.sendCommand(B,"listCertificates",null,function(q){return t._processCertificates(q,O.filter,O.selectId,O.selectOptionFormatter)}),B.promise},t._processCertificate=function(O){if(O.validityStart=new Date(O.validityStart),O.validityEnd=new Date(O.validityEnd),O.keyUsage=t._processKeyUsage(O.keyUsage),O.extendedKeyUsage=t._processExtendedKeyUsage(O.extendedKeyUsage),O.pkiBrazil&&O.pkiBrazil.dateOfBirth){var B=O.pkiBrazil.dateOfBirth;O.pkiBrazil.dateOfBirth=new Date(parseInt(B.slice(0,4),10),parseInt(B.slice(5,7),10)-1,parseInt(B.slice(8,10),10))}},t._processCertificates=function(O,B,q,G){for(var X=[],z=0;zRe?1:IeTe.validityEnd?-1:de.validityEnd0;)pe.remove(0);for(var me=0;me0))for(var B=0;B"u")throw'filter called without cert argument (hint: if you are using "pki.filters.isPkiBrazilPessoaFisica()", try "pki.filters.isPkiBrazilPessoaFisica")';return O.pkiBrazil&&(O.pkiBrazil.cpf||"")!==""&&(O.pkiBrazil.cnpj||"")===""},hasPkiBrazilCpf:function(O){if(typeof O>"u")throw'filter called without cert argument (hint: if you are using "pki.filters.hasPkiBrazilCpf()", try "pki.filters.hasPkiBrazilCpf")';return O.pkiBrazil&&(O.pkiBrazil.cpf||"")!==""},hasPkiBrazilCnpj:function(O){if(typeof O>"u")throw'filter called without cert argument (hint: if you are using "pki.filters.hasPkiBrazilCnpj()", try "pki.filters.hasPkiBrazilCnpj")';return O.pkiBrazil&&(O.pkiBrazil.cnpj||"")!==""},pkiBrazilCpfEquals:function(O){if(typeof O!="string")throw`cpf must be a string (hint: if you are using "pki.filters.pkiBrazilCpfEquals", try "pki.filters.pkiBrazilCpfEquals('somecpf')")`;return function(B){return B.pkiBrazil&&B.pkiBrazil.cpf===O}},pkiBrazilCnpjEquals:function(O){if(typeof O!="string")throw`cnpj must be a string (hint: if you are using "pki.filters.pkiBrazilCnpjEquals", try "pki.filters.pkiBrazilCnpjEquals('somecnpj')")`;return function(B){return B.pkiBrazil&&B.pkiBrazil.cnpj===O}},hasPkiItalyCodiceFiscale:function(O){if(typeof O>"u")throw'filter called without cert argument (hint: if you are using "pki.filters.hasPkiItalyCodiceFiscale()", try "pki.filters.hasPkiItalyCodiceFiscale")';return O.pkiItaly&&(O.pkiItaly.codiceFiscale||"")!==""},pkiItalyCodiceFiscaleEquals:function(O){if(typeof O!="string")throw`cf must be a string (hint: if you are using "pki.filters.pkiItalyCodiceFiscaleEquals", try "pki.filters.pkiItalyCodiceFiscaleEquals('someCodice')")`;return function(B){return B.pkiItaly&&B.pkiItaly.codiceFiscale===O}},isWithinValidity:function(O){if(typeof O>"u")throw'filter called without cert argument (hint: if you are using "pki.filters.isWithinValidity()", try "pki.filters.isWithinValidity")';var B=new Date;return O.validityStart<=B&&B<=O.validityEnd},all:function(){var O;return arguments.length===1&&typeof arguments[0]=="object"?O=arguments[0]:O=arguments,function(B){for(var q=0;q3,e="",i=[{getName:function(){return"Android"},r:/Android/},{getName:function(){return"iOS"},r:/(iPhone|iPad|iPod)/},{getName:function(){return n?"iOS":""},r:/(Mac OS|MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],r=0;r=0,y=t.detectedBrowser.indexOf("Chrome")>=0,x=t.detectedBrowser.indexOf("Firefox")>=0,I=t.detectedBrowser.indexOf("Edg")>=0,C=t.detectedBrowser.indexOf("Safari")>=0,D=t._supportedMobileDetected&&e==="Android",A=t._supportedMobileDetected&&e==="iOS",!t._supportedMobileDetected&&!v)t._requestHandler=new function(){var O="com.lacunasoftware.WebPKI.RequestEvent",B="com.lacunasoftware.WebPKI.ResponseEvent",q={};I&&t._buildChannel!=="stable"&&(O="com.lacunasoftware.WebPKI.RequestEvent",B="com.lacunasoftware.WebPKI.ResponseEvent");var G=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)},X=function(){return G()+G()+"-"+G()+"-"+G()+"-"+G()+"-"+G()+G()+G()},z=function(Ie,Re){var et=X();return q[et]={promise:Ie,responseProcessor:Re},et},ee=function(Ie,Re,et,It){var kt=z(Ie.promise,It),ii={requestId:kt,license:Ie.license,useDomainNativePool:Ie.useDomainNativePool,command:Re,request:et};if(y||I){var Ri=new CustomEvent(O,{detail:ii});document.dispatchEvent(Ri)}else window.postMessage({port:O,message:ii},"*")},pe=function(Ie,Re){M(Re),setTimeout(function(){me(Ie,25)},200)},me=function(Ie,Re){t._log("polling extension");var et=document.getElementById(t._chromeExtensionId)||document.getElementById(t._firefoxExtensionId.replace(/[^A-Za-z0-9_]/g,"_"))||document.getElementById(t._edgeExtensionId)||document.getElementById(t._edgeLegacyProductId);if(et===null){Re>1?setTimeout(function(){me(Ie,Re-1)},200):Ie.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.NOT_INSTALLED,message:"The Web PKI extension is not installed",browserSpecificStatus:t._chromeInstallationStates.EXTENSION_NOT_INSTALLED});return}ye(Ie)},ye=function(Ie){t._log("checking extension version");var Re=new t.Promise(null);Re.success(function(et){if(t._compareVersions(et,a)<0){var It=s!==null&&t._compareVersions(et,s)>=0;Ie.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.OUTDATED,browserSpecificStatus:t._chromeInstallationStates.EXTENSION_OUTDATED,message:"The Web PKI extension is outdated (installed version: "+et+", required version: "+a+")",chromeExtensionCanSelfUpdate:It})}else se(Ie)}),Re.fail(function(et){Ie.promise._invokeError(et)}),ee({license:Ie.license,useDomainNativePool:Ie.useDomainNativePool,promise:Re},"getExtensionVersion",null)},se=function(Ie){t._log("initializing extension");var Re=new t.Promise(null);Re.success(function(et){et.isReady?(t._nativeInfo=et.nativeInfo,et.nativeInfo.os==="Windows"&&t._compareVersions(et.nativeInfo.installedVersion,l)<0?Ie.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.OUTDATED,browserSpecificStatus:t._chromeInstallationStates.NATIVE_OUTDATED,message:"The Web PKI native component is outdated (installed version: "+et.nativeInfo.installedVersion+", required version: "+l+")",platformInfo:et.platformInfo,nativeInfo:et.nativeInfo}):et.nativeInfo.os==="Linux"&&t._compareVersions(et.nativeInfo.installedVersion,u)<0?Ie.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.OUTDATED,browserSpecificStatus:t._chromeInstallationStates.NATIVE_OUTDATED,message:"The Web PKI native component is outdated (installed version: "+et.nativeInfo.installedVersion+", required version: "+u+")",platformInfo:et.platformInfo,nativeInfo:et.nativeInfo}):et.nativeInfo.os==="Darwin"&&t._compareVersions(et.nativeInfo.installedVersion,p)<0?Ie.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.OUTDATED,browserSpecificStatus:t._chromeInstallationStates.NATIVE_OUTDATED,message:"The Web PKI native component is outdated (installed version: "+et.nativeInfo.installedVersion+", required version: "+p+")",platformInfo:et.platformInfo,nativeInfo:et.nativeInfo}):Ie.promise._invokeSuccess({isInstalled:!0})):Ie.promise._invokeSuccess({isInstalled:!1,status:de(et.status),browserSpecificStatus:et.status,message:et.message,platformInfo:et.platformInfo,nativeInfo:et.nativeInfo})}),Re.fail(function(et){Ie.promise._invokeError(et)}),ee({license:Ie.license,useDomainNativePool:Ie.useDomainNativePool,promise:Re},"initialize",null)},de=function(Ie){return Ie===t._chromeInstallationStates.INSTALLED?t.installationStates.INSTALLED:Ie===t._chromeInstallationStates.EXTENSION_OUTDATED||Ie===t._chromeInstallationStates.NATIVE_OUTDATED?t.installationStates.OUTDATED:t.installationStates.NOT_INSTALLED},Te=function(Ie){var Re=q[Ie.requestId];delete q[Ie.requestId],Ie.success?(Re.responseProcessor&&(Ie.response=Re.responseProcessor(Ie.response)),Re.promise._invokeSuccess(Ie.response)):Re.promise._invokeError(Ie.exception)};this.sendCommand=ee,this.checkInstalled=pe,y||I?document.addEventListener(B,function(Ie){Te(Ie.detail)}):window.addEventListener("message",function(Ie){Ie&&Ie.data&&Ie.data.port===B&&Te(Ie.data.message)})};else if(v)t._requestHandler=new function(){var O={},B=0,q=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)},G=function(){return q()+q()+"-"+q()+"-"+q()+"-"+q()+"-"+q()+q()+q()},X=function(se,de){var Te=G();return O[Te]={promise:se,pollStart:B,responseProcessor:de},Te},z=function(){return window.lacunaWebPKIExtension},ee=function(){if(z()){var se=z().GetAvailableResults();if(se===null)throw"Add-on method GetAvailableResults failed";var de=JSON.parse(se),Te=[];for(var Ie in O)if(O.hasOwnProperty(Ie)){var Re=O[Ie],et=!1;if(Re.sendFailed)et=!0;else{for(var It=null,kt=0;kt=Re.pollStart+120&&(Re.promise._invokeError({message:"The operation has timed out",complete:"The operation has timed out",origin:"helper",code:"addon_timeout"}),et=!0)}et&&Te.push(Ie)}for(var ii=0;ii1?setTimeout(function(){pe(se,de-1)},200):se.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.NOT_INSTALLED,message:"The Web PKI add-on is not installed"});return}var Te=new t.Promise(null);Te.success(function(Ie){t._nativeInfo={os:"Windows",installedVersion:Ie},t._compareVersions(Ie,g)<0?se.promise._invokeSuccess({isInstalled:!1,status:t.installationStates.OUTDATED,message:"The Web PKI add-on is outdated (installed version: "+Ie+", latest version: "+g+")"}):se.promise._invokeSuccess({isInstalled:!0})}),Te.fail(function(Ie){se.promise._invokeError(Ie)}),me({license:se.license,useDomainNativePool:se.useDomainNativePool,promise:Te},"getVersion",null)},me=function(se,de,Te,Ie){if(z()){var Re=X(se.promise,Ie),et={requestId:Re,license:se.license,useDomainNativePool:se.useDomainNativePool,command:de,request:Te},It;try{var kt=z().SendCommand(JSON.stringify(et));kt===!1&&(It="Failed to send command to add-on")}catch(ii){It="Exception when sending command to add-on: "+ii}It&&(se.promise._invokeError({message:"Failed to send command to add-on",complete:It,origin:"helper",code:"addon_send_command_failure"},200),O[Re].sendFailed=!0)}else se.promise._invokeError({message:"Add-on not detected",complete:"Add-on not detected",origin:"helper",code:"addon_not_detected"},200)},ye=function(se,de){M(de),setTimeout(function(){pe(se,25)},200)};this.sendCommand=me,this.checkInstalled=ye,ee()};else{var R=function(){return window.lacunaWebPkiAppBridge},j=null,K=null,F=!1;t._requestHandler=new function(){var O=function(q,G,X,z){if(j===null&&re(q),j!==null){j.sendCommand(q,G,X,z);return}var ee=setInterval(function(){if(j!==null){clearInterval(ee),j.sendCommand(q,G,X,z);return}},400)},B=function(q,G){if(j===null&&re(q),j!==null){j.checkInstalled(q,G);return}var X=setInterval(function(){if(j!==null){clearInterval(X),j.checkInstalled(q,G);return}},400)};this.sendCommand=O,this.checkInstalled=B};var V=function(){console.log("use mobile in-app integration"),j=new function(){var O={};R().processResponse=function(ee){console.log("Response received: ",ee);var pe=ee;typeof ee=="string"&&(pe=JSON.parse(ee));var me=O[pe.requestId];delete O[pe.requestId],me&&(pe.success?(me.responseProcessor&&(pe.response=me.responseProcessor(pe.response)),me.promise._invokeSuccess(pe.response)):me.promise._invokeError(pe.exception))};var B=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)},q=function(){return B()+B()+"-"+B()+"-"+B()+"-"+B()+"-"+B()+B()+B()},G=function(ee,pe){var me=q();return O[me]={promise:ee,responseProcessor:pe},me},X=function(ee,pe,me,ye){var se=G(ee.promise,ye),de={requestId:se,license:ee.license,command:pe,request:me},Te=JSON.stringify(de);console.log("Sending message: "+Te),R().processRequest(Te)},z=function(ee,pe){M(pe);var me=new t.Promise(null);me.success(function(ye){t._nativeInfo={os:ye.os,installedVersion:ye.version};var se=t.installationStates.INSTALLED;t._compareVersions(ye.version,_)<0&&(se=t.installationStates.OUTDATED),ee.promise._invokeSuccess({nativeInfo:{os:ye.os,installedVersion:ye.version},isInstalled:se===t.installationStates.INSTALLED,status:se})}).fail(function(ye){ee.promise._invokeError(ye)}),X({license:ee.license,useDomainNativePool:ee.useDomainNativePool,promise:me},"getInfo",null)};this.sendCommand=X,this.checkInstalled=z}},Q=function(){console.log("use mobile signalr integration");var O=null,B="https://cloud.lacunasoftware.com/scripts/signalr-client-1.0.4.min.js",q="https://cloud.lacunasoftware.com/js/forge-cipher.min.js",G={require:"require",window:"window"},X=null;if(typeof Jx!="object"&&typeof V_=="function"&&typeof define=="function"&&define.amd)V_([B],function(ye){t._signalR=ye}),V_([q],function(ye){t._forge=ye}),X=G.require;else{var z=document.createElement("script");z.setAttribute("src",B),document.getElementsByTagName("head")[0].appendChild(z),z=document.createElement("script"),z.setAttribute("src",q),document.getElementsByTagName("head")[0].appendChild(z),X=G.window}j=new function(){var ye=[],se="https://cloud.lacunasoftware.com/",de=se+"api/sessions/",Te=se+"session/",Ie=null,Re=!1,et=null,It=!1,kt=3,ii=5e3,Ri=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)},_i=function(){ye=[],Ie=null,It=!1},Ht=function(){return Ri()+Ri()+"-"+Ri()+"-"+Ri()+"-"+Ri()+"-"+Ri()+Ri()+Ri()},Yi=function(){ye.shift(),Dr()},Dr=function(){if(ye.length>0){var ut=ye[0];ut.time=new Date().getTime(),ut.sendAttempt++,console.log("[Signal] resending request (attempt "+ut.sendAttempt+"): "+ut.requestId),ai(de+Ie+"/request",ut.data,function(Ni){(!Ni||!Ni.sentToDevice)&&ut.sendAttempt>=kt&&(ut.promise._invokeError({message:"Could not send message to mobile",code:t.errorCodes.MOBILE_SEND_MESSAGE}),Yi())},function(Ni,$n){ut.sendAttempt>=kt&&(ut.promise._invokeError({message:"Error while sending message to mobile: "+Ni,complete:typeof $n=="string"?$n:JSON.stringify($n),code:t.errorCodes.MOBILE_SEND_MESSAGE}),Yi())}),ut.sendAttempt<=1&&Qe(ut)}},bo=function(ut){ut.promise._invokeError({message:"The mobile is not responding",complete:"The operation has timed out",origin:"jslib",code:t.errorCodes.MOBILE_TIMEOUT}),Yi()},Qe=function(ut){if(!Rt(ut.requestId)){console.log("[Signal] stop request timeout (shift): "+ut.requestId);return}var Ni=new Date().getTime();if(ut.receipt){if(Ni>ut.time+6e4){bo(ut),console.log("[Signal] stop request timeout (long timeout): "+ut.requestId);return}}else if(Ni>ut.time+ii)if(ut.sendAttempt50){ut.promise._invokeError({message:"Dependency scripts did not load",complete:"Dependency scripts did not load",code:t.errorCodes.UNDEFINED});return}setTimeout(function(){Ke(ut,Ni+1)},200)},nt=function(ut){var Ni=null,$n=function(qn){O.hide();try{qn.stop()}catch(Xn){console.log("[Signal] error while stopping signalR",Xn)}},sr=function(qn,Xn){if(Xn=Xn||1,!It){console.log("[Signal] waiting device connection");var Po=7;if(A&&(Po=5),Xn>Po){$n(qn),ut.instance.redirectToInstallPage();return}setTimeout(function(){sr(qn,Xn+1)},2e3)}};on(Te,function(qn){qn.on("connected",function(Xn){It=!0,O.hide(),console.log("[Signal] device connected");var Po=new t.Promise(null);Po.success(function(zl){var $e=t.installationStates.INSTALLED;t._compareVersions(zl.version,_)<0&&($e=t.installationStates.OUTDATED),ut.promise._invokeSuccess({nativeInfo:{os:zl.os,installedVersion:zl.version},isInstalled:$e===t.installationStates.INSTALLED,status:$e})}).fail(function(zl){ut.promise._invokeError(zl)}),console.log("[Signal] sending first command"),Be({license:ut.license,useDomainNativePool:ut.useDomainNativePool,promise:Po},"getInfo",null)}),qn.on("message",function(Xn){console.log("[Signal] available response"),ci(de+Ie+"/response",tt)}),qn.on("connectionId",function(Xn){console.log("[Signal] Got connection id: "+Xn),Ni=Xn}),qn.on("receipt",function(Xn){ei(Xn)}),qn.onclose(function(Xn){console.log("[Signal] disconnected",Xn)})}).then(function(qn){var Xn=function(Po){if(console.log("[Signal] Getting connection Id"),Po=Po||1,Po>10){console.log("[Signal] Fail. ConnectionId timeout"),ut.promise._invokeError({message:"Connection Id timeout",complete:"Did not get connection Id event.",code:t.errorCodes.UNDEFINED});return}if(!Ni){setTimeout(function(){Xn(Po+1)},1e3);return}console.log("[Signal] Getting session");var zl={connectionId:Ni};ai(de,zl,function($e){Ie=$e.sessionId,et=ee(),console.log("[Signal] session started"),console.log("[Signal] showing modal deep link");var _t="start?s="+Ie+"&k="+et.hex+"&b="+t.detectedBrowser+"&o="+window.location.hostname,mi="webpki://"+_t;D&&(mi="intent://"+_t+"#Intent;scheme=webpki;S.browser_fallback_url="+encodeURIComponent(t._installUrl+(ut.instance.brand||"")+"?returnUrl="+encodeURIComponent(document.URL)+"&jslib="+t._jslibVersion)+";end"),O=new K(mi),O.onOkCLick=function(){O.showWait(),sr(qn)},O.onCancelClick=function(){$n(qn),ut.promise._invokeError({message:"Start mobile app cancelled",complete:"Start mobile app cancelled",code:t.errorCodes.USER_CANCELLED})},O.show()})};setTimeout(Xn,100)})},tt=function(ut){ut=typeof ut=="string"?JSON.parse(ut):ut,console.log("[Signal] got response. Type: "+ut.type);var Ni={};try{if(ut.format!=0)throw{message:"Unknown data format: "+ut.format};ut.type!=="Error"?Ni=JSON.parse(me(ut.content,et)):Ni={requestId:ut.id,success:!1,exception:ut.content?typeof ut.content=="string"?JSON.parse(ut.content):ut.content:{message:"Cryptographic error on mobile native",error:"Cryptographic error on mobile native",code:t.errorCodes.COMMAND_DECRYPT_ERROR}}}catch(sr){Ni={requestId:ut.id,success:!1,exception:{message:"Error while decrypting response message",error:typeof sr=="object"?sr.message||JSON.stringify(sr):sr,code:t.errorCodes.COMMAND_DECRYPT_ERROR}}}var $n=ui(ut.id);if($n===null){console.log("[Signal] got response for disposed request: "+ut.id);return}Ni.success?($n.responseProcessor&&(Ni.response=$n.responseProcessor(Ni.response)),$n.promise._invokeSuccess(Ni.response)):$n.promise._invokeError(Ni.exception),Yi()},ci=function(ut,Ni,$n){var sr=new XMLHttpRequest;sr.onreadystatechange=function(){En(sr,"GET",ut,Ni,$n)},sr.open("GET",ut,!0),sr.setRequestHeader("Accept","application/json"),sr.withCredentials=!1,console.log("[HttpHandler] Get "+ut),sr.send()},ai=function(ut,Ni,$n,sr){var qn=new XMLHttpRequest;qn.onreadystatechange=function(){En(qn,"POST",ut,$n,sr)},qn.open("POST",ut,!0),qn.setRequestHeader("Content-Type","application/json"),qn.setRequestHeader("Accept","application/json"),qn.withCredentials=!1,console.log("[HttpHandler] Post on ("+ut+"): ",Ni),qn.send(JSON.stringify(Ni))},En=function(ut,Ni,$n,sr,qn){if(ut.readyState===4)if(ut.status>=200&&ut.status<=299){var Xn=null;if(ut.status===200||ut.status===201)try{Xn=JSON.parse(ut.responseText),sr(Xn)}catch{console.log("[HttpHandler] error parsing response."),Xn=ut.responseText,qn(ut.status,Xn)}console.log("[HttpHandler] received response from "+Ni+" "+$n,Xn)}else if(ut.status===0&&!ut.responseText&&A)console.log("[HttpHandler] got Safari abort connection. Applying workaround"),sr({sentToDevice:!0});else{var Po;try{Po=JSON.parse(ut.responseText)}catch{console.log("[HttpHandler] error parsing error"),Po=null}console.log("[HttpHandler] error: "+ut.responseText),qn(ut.status,Po)}},on=null;(function(){var ut=function(Ni){if(Ni=Ni||1,Ni>100)throw"Script "+(!t._forge&&!t._signalR?"forge / signalR":t._forge?"signalR":"forge")+" did not load";X!==G.require&&(t._signalR=window.signalR,t._forge=window.forge),t._signalR!==void 0&&t._forge!==void 0?(on=function($n,sr){return function(){console.log("[Signal] Starting connection");var Xn=new t._signalR.HubConnectionBuilder().withUrl($n).build();return sr&&typeof sr=="function"&&sr(Xn),Xn.start().then(function(){return Xn}).catch(function(Po){return console.log("[Signal] Cannot start the connection. Erro: ",Po),window.Promise.reject(Po)})}()},Re=!0):setTimeout(function(){ut(Ni+1)},200)};setTimeout(function(){ut()},50)})(),this.sendCommand=Be,this.checkInstalled=Je};var ee=function(){var ye=t._forge.random.getBytesSync(32);return{raw:ye,b64:t._forge.util.encode64(ye),hex:t._forge.util.bytesToHex(ye)}},pe=function(ye,se){var de=t._forge.random.getBytesSync(16),Te=se.raw,Ie=new t._forge.util.ByteBuffer;Ie.putBuffer(t._forge.util.createBuffer(ye));var Re=t._forge.cipher.createCipher("AES-CBC",Te);Re.start({iv:de}),Re.update(Ie),Re.finish();var et=Re.output.bytes(),It=t._forge.hmac.create();It.start("sha256",Te),It.update(et),hmacContent=It.digest().bytes();var kt=new t._forge.util.ByteBuffer;return kt.putBytes(de),kt.putBytes(hmacContent),kt.putBytes(et),t._forge.util.encode64(kt.bytes())},me=function(ye,se){var de=se.raw,Te=new t._forge.util.ByteBuffer;Te.putBytes(t._forge.util.decode64(ye));var Ie=Te.getBytes(16),Re=Te.getBytes(32),et=Te.bytes(),It=t._forge.hmac.create();It.start("sha256",de),It.update(et);var kt=It.digest().bytes();if(kt!==Re)throw{message:"Error on message integrity"};var ii=t._forge.cipher.createDecipher("AES-CBC",de);ii.start({iv:Ie}),ii.update(Te);var Ri=ii.finish();if(!Ri)throw{message:"Error on message decryption"};return t._forge.util.decodeUtf8(ii.output.getBytes())}},te=function(O){j=new function(){var B="-lcn",q="wpki"+B,G="access?u="+encodeURIComponent(window.location.href)+"&c="+encodeURIComponent(document.cookie),X=q+"://"+G;D&&(X="intent://"+G+"#Intent;scheme="+q+";S.browser_fallback_url="+encodeURIComponent(t._installUrl+(O.instance.brand||"")+"?returnUrl="+encodeURIComponent(document.URL)+"&jslib="+t._jslibVersion)+";end"),this.sendCommand=function(z,ee,pe,me){},this.checkInstalled=function(z,ee){var pe=new K(X);pe.onOkCLick=function(){pe.showWait();var me=new Date;setTimeout(function(){pe.hide(),A&&new Date-me<10*1e3&&z.instance.redirectToInstallPage()},5e3)},pe.onCancelClick=function(){pe.hide(),z.promise._invokeError({message:"Start mobile app cancelled",complete:"Start mobile app cancelled",code:t.errorCodes.USER_CANCELLED})},pe.show()}}},re=function(O){if(!F){F=!0;var B=10,q=setInterval(function(){if(console.log("polling mobile integration mode ..."),B<=0){clearInterval(q),O.instance.mobileIntegrationMode===t.mobileIntegrationModes.browserIntegration?Q():te(O);return}if(R()&&R().loaded){clearInterval(q),V();return}B--},300)}};K=function(O){this.deepLink=O,this.onOkCLick=null,this.onCancelClick=null;var B=null,q={pt:{accessCertificates:"O site {{domain}} deseja acessar seus certificados digitais.",authorize:"Permitir",cancel:"Cancelar",wait:"Aguarde..."},en:{accessCertificates:"The website {{domain}} wants to access your digital certificates.",authorize:"Authorize",cancel:"Cancel",wait:"Please wait..."},es:{accessCertificates:"El sitio {{domain}} quiere acceder a sus certificados digitales.",authorize:"Permitir",cancel:"Cancelar",wait:"Espera..."}},G=null,X=function(ee){if(G===null){var pe=window.navigator.language||"en",me=Object.keys(q);G=me.indexOf(pe)>-1?pe:pe.length>1&&me.indexOf(pe.substring(0,2))>-1?pe.substring(0,2):"en"}return q[G][ee]||ee},z=function(ee){B=document.getElementById("webPkiModal"),B!=null&&(B.removeChild(B.firstChild),document.getElementsByTagName("body")[0].removeChild(B)),B=document.createElement("div"),B.setAttribute("id","webPkiModal"),B.setAttribute("style","display: none;");var pe=document.createElement("div");pe.setAttribute("style",'display: table; background-color: #fefefe; margin: 5%; width: 90%; height: 90%; font-family: "Helvetica"; text-align: center; border-radius: 10px;');var me=document.createElement("div");me.setAttribute("style","display: table-cell; vertical-align: middle;");var ye=document.createElement("p");ye.setAttribute("id","webPkiWaitElement"),ye.setAttribute("style","display: none"),ye.appendChild(document.createTextNode(X("wait")));var se=document.createElement("p");se.setAttribute("id","webPkiTextElement"),se.setAttribute("style","padding-left: 5%; padding-right: 5%; font-size: 1.6em; color: black; word-wrap: break-word; white-space: normal;"),se.appendChild(document.createTextNode(X("accessCertificates").split("{{domain}}")[0]));var de=document.createElement("strong");de.appendChild(document.createTextNode(window.location.hostname)),se.appendChild(de),se.appendChild(document.createTextNode(X("accessCertificates").split("{{domain}}")[1]));var Te=document.createElement("div");Te.setAttribute("id","webPkiButtonsElement");var Ie=document.createElement("a");Ie.setAttribute("style","-webkit-appearance: button; -moz-appearance: button; appearance: button; padding: 2% 4%; text-align: center; text-decoration: none; display: inline-block; font-size: 1.1em; margin: 5%; cursor: pointer; background-color: #e7e7e7; color: black"),Ie.appendChild(document.createTextNode(X("cancel")));var Re=document.createElement("a");Re.setAttribute("style","-webkit-appearance: button; -moz-appearance: button; appearance: button; padding: 2% 4%; text-align: center; text-decoration: none; display: inline-block; font-size: 1.1em; margin: 5%; cursor: pointer; background-color: #0078e7; color: white"),Re.setAttribute("id","wpkiModalDeepLink"),Re.setAttribute("href",ee.deepLink),Re.appendChild(document.createTextNode(X("authorize"))),A?(Te.appendChild(Ie),Te.appendChild(Re)):(Te.appendChild(Re),Te.appendChild(Ie)),me.appendChild(ye),me.appendChild(se),me.appendChild(Te),pe.appendChild(me),B.appendChild(pe),document.getElementsByTagName("body")[0].appendChild(B),Re.onclick=ee.onOkCLick,Ie.onclick=ee.onCancelClick};this.hide=function(){B.setAttribute("style","display: none;")},this.show=function(){z(this),B.setAttribute("style","display: block; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.4);")},this.showWait=function(){document.getElementById("webPkiTextElement").setAttribute("style","display: none;"),document.getElementById("webPkiButtonsElement").setAttribute("style","display: none;"),document.getElementById("webPkiWaitElement").setAttribute("style","padding-left: 5%; padding-right: 5%; font-size: 1.6em; color: black; word-wrap: break-word;")}}}}})(LacunaWebPKI.prototype);typeof Jx=="object"&&(Object.defineProperties?Object.defineProperties(Jx,{default:{value:LacunaWebPKI},__esModule:{value:!0},LacunaWebPKI:{value:LacunaWebPKI}}):(Jx.default=LacunaWebPKI,Jx.__esModule=!0,Jx.LacunaWebPKI=LacunaWebPKI))});var Ube=Sf((xI,CM)=>{(function(){var t,n="4.17.21",e=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",o="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",s=500,l="__lodash_placeholder__",u=1,p=2,g=4,_=1,v=2,y=1,x=2,I=4,C=8,D=16,A=32,M=64,R=128,j=256,K=512,F=30,V="...",Q=800,te=16,re=1,O=2,B=3,q=1/0,G=9007199254740991,X=17976931348623157e292,z=NaN,ee=4294967295,pe=ee-1,me=ee>>>1,ye=[["ary",R],["bind",y],["bindKey",x],["curry",C],["curryRight",D],["flip",K],["partial",A],["partialRight",M],["rearg",j]],se="[object Arguments]",de="[object Array]",Te="[object AsyncFunction]",Ie="[object Boolean]",Re="[object Date]",et="[object DOMException]",It="[object Error]",kt="[object Function]",ii="[object GeneratorFunction]",Ri="[object Map]",_i="[object Number]",Ht="[object Null]",Yi="[object Object]",Dr="[object Promise]",bo="[object Proxy]",Qe="[object RegExp]",Rt="[object Set]",ui="[object String]",ei="[object Symbol]",Be="[object Undefined]",Je="[object WeakMap]",Ke="[object WeakSet]",nt="[object ArrayBuffer]",tt="[object DataView]",ci="[object Float32Array]",ai="[object Float64Array]",En="[object Int8Array]",on="[object Int16Array]",ut="[object Int32Array]",Ni="[object Uint8Array]",$n="[object Uint8ClampedArray]",sr="[object Uint16Array]",qn="[object Uint32Array]",Xn=/\b__p \+= '';/g,Po=/\b(__p \+=) '' \+/g,zl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$e=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,mi=RegExp($e.source),Zi=RegExp(_t.source),wt=/<%-([\s\S]+?)%>/g,An=/<%([\s\S]+?)%>/g,$r=/<%=([\s\S]+?)%>/g,co=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aa=/^\w*$/,Pi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dm=/[\\^$.*+?()[\]{}|]/g,Br=RegExp(dm.source),wd=/^\s+/,th=/\s/,uf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Aa=/\{\n\/\* \[wrapped with (.+)\] \*/,mu=/,? & /,pu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ga=/[()=,{}\[\]\/\s]/,Ul=/\\(\\)?/g,Vc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Bc=/\w*$/,OI=/^[-+]0x[0-9a-f]+$/i,ay=/^0b[01]+$/i,ih=/^\[object .+?Constructor\]$/,ms=/^0o[0-7]+$/i,nh=/^(?:0|[1-9]\d*)$/,y_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mf=/($^)/,TM=/['\n\r\u2028\u2029\\]/g,nC="\\ud800-\\udfff",I6="\\u0300-\\u036f",D6="\\ufe20-\\ufe2f",Qa="\\u20d0-\\u20ff",rC=I6+D6+Qa,AM="\\u2700-\\u27bf",LI="a-z\\xdf-\\xf6\\xf8-\\xff",kM="\\xac\\xb1\\xd7\\xf7",T6="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A6="\\u2000-\\u206f",k6=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",MM="A-Z\\xc0-\\xd6\\xd8-\\xde",FM="\\ufe0e\\ufe0f",RM=kM+T6+A6+k6,oC="['\u2019]",PM="["+nC+"]",NM="["+RM+"]",aC="["+rC+"]",OM="\\d+",LM="["+AM+"]",VM="["+LI+"]",x_="[^"+nC+RM+OM+AM+LI+MM+"]",C_="\\ud83c[\\udffb-\\udfff]",BM="(?:"+aC+"|"+C_+")",S_="[^"+nC+"]",um="(?:\\ud83c[\\udde6-\\uddff]){2}",VI="[\\ud800-\\udbff][\\udc00-\\udfff]",w_="["+MM+"]",jM="\\u200d",HM="(?:"+VM+"|"+x_+")",M6="(?:"+w_+"|"+x_+")",zM="(?:"+oC+"(?:d|ll|m|re|s|t|ve))?",UM="(?:"+oC+"(?:D|LL|M|RE|S|T|VE))?",GM=BM+"?",sC="["+FM+"]?",F6="(?:"+jM+"(?:"+[S_,um,VI].join("|")+")"+sC+GM+")*",$M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",R6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qM=sC+GM+F6,P6="(?:"+[LM,um,VI].join("|")+")"+qM,N6="(?:"+[S_+aC+"?",aC,um,VI,PM].join("|")+")",O6=RegExp(oC,"g"),L6=RegExp(aC,"g"),BI=RegExp(C_+"(?="+C_+")|"+N6+qM,"g"),V6=RegExp([w_+"?"+VM+"+"+zM+"(?="+[NM,w_,"$"].join("|")+")",M6+"+"+UM+"(?="+[NM,w_+HM,"$"].join("|")+")",w_+"?"+HM+"+"+zM,w_+"+"+UM,R6,$M,OM,P6].join("|"),"g"),B6=RegExp("["+jM+nC+rC+FM+"]"),j6=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,H6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z6=-1,fa={};fa[ci]=fa[ai]=fa[En]=fa[on]=fa[ut]=fa[Ni]=fa[$n]=fa[sr]=fa[qn]=!0,fa[se]=fa[de]=fa[nt]=fa[Ie]=fa[tt]=fa[Re]=fa[It]=fa[kt]=fa[Ri]=fa[_i]=fa[Yi]=fa[Qe]=fa[Rt]=fa[ui]=fa[Je]=!1;var ca={};ca[se]=ca[de]=ca[nt]=ca[tt]=ca[Ie]=ca[Re]=ca[ci]=ca[ai]=ca[En]=ca[on]=ca[ut]=ca[Ri]=ca[_i]=ca[Yi]=ca[Qe]=ca[Rt]=ca[ui]=ca[ei]=ca[Ni]=ca[$n]=ca[sr]=ca[qn]=!0,ca[It]=ca[kt]=ca[Je]=!1;var U6={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jI={"&":"&","<":"<",">":">",'"':""","'":"'"},HI={"&":"&","<":"<",">":">",""":'"',"'":"'"},G6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},WM=parseFloat,YM=parseInt,KM=typeof global=="object"&&global&&global.Object===Object&&global,$6=typeof self=="object"&&self&&self.Object===Object&&self,tl=KM||$6||Function("return this")(),zI=typeof xI=="object"&&xI&&!xI.nodeType&&xI,pf=zI&&typeof CM=="object"&&CM&&!CM.nodeType&&CM,_a=pf&&pf.exports===zI,Mg=_a&&KM.process,Gl=function(){try{var Ge=pf&&pf.require&&pf.require("util").types;return Ge||Mg&&Mg.binding&&Mg.binding("util")}catch{}}(),XM=Gl&&Gl.isArrayBuffer,UI=Gl&&Gl.isDate,QM=Gl&&Gl.isMap,ZM=Gl&&Gl.isRegExp,sy=Gl&&Gl.isSet,rh=Gl&&Gl.isTypedArray;function pc(Ge,Ct,rt){switch(rt.length){case 0:return Ge.call(Ct);case 1:return Ge.call(Ct,rt[0]);case 2:return Ge.call(Ct,rt[0],rt[1]);case 3:return Ge.call(Ct,rt[0],rt[1],rt[2])}return Ge.apply(Ct,rt)}function q6(Ge,Ct,rt,Xi){for(var lr=-1,No=Ge==null?0:Ge.length;++lr-1}function GI(Ge,Ct,rt){for(var Xi=-1,lr=Ge==null?0:Ge.length;++Xi-1;);return rt}function oF(Ge,Ct){for(var rt=Ge.length;rt--&&E_(Ct,Ge[rt],0)>-1;);return rt}function Z6(Ge,Ct){for(var rt=Ge.length,Xi=0;rt--;)Ge[rt]===Ct&&++Xi;return Xi}var aF=ly(U6),J6=ly(jI);function ej(Ge){return"\\"+G6[Ge]}function tj(Ge,Ct){return Ge==null?t:Ge[Ct]}function rp(Ge){return B6.test(Ge)}function ij(Ge){return j6.test(Ge)}function nj(Ge){for(var Ct,rt=[];!(Ct=Ge.next()).done;)rt.push(Ct.value);return rt}function ZI(Ge){var Ct=-1,rt=Array(Ge.size);return Ge.forEach(function(Xi,lr){rt[++Ct]=[lr,Xi]}),rt}function cy(Ge,Ct){return function(rt){return Ge(Ct(rt))}}function mm(Ge,Ct){for(var rt=-1,Xi=Ge.length,lr=0,No=[];++rt-1}function xF(b,w){var N=this.__data__,J=gu(N,b);return J<0?(++this.size,N.push([b,w])):N[J][1]=w,this}sh.prototype.clear=Mj,sh.prototype.delete=yF,sh.prototype.get=Fj,sh.prototype.has=Rj,sh.prototype.set=xF;function lh(b){var w=-1,N=b==null?0:b.length;for(this.clear();++w=w?b:w)),b}function Id(b,w,N,J,le,be){var De,Oe=w&u,We=w&p,Nt=w&g;if(N&&(De=le?N(b,J,le,be):N(b)),De!==t)return De;if(!Ja(b))return b;var Lt=wr(b);if(Lt){if(De=j1e(b),!Oe)return _u(b,De)}else{var Qt=Hc(b),Ui=Qt==kt||Qt==ii;if(L_(b))return HJ(b,Oe);if(Qt==Yi||Qt==se||Ui&&!le){if(De=We||Ui?{}:aee(b),!Oe)return We?A1e(b,zj(De,b)):T1e(b,iD(De,b))}else{if(!ca[Qt])return le?b:{};De=H1e(b,Qt,Oe)}}be||(be=new pm);var hn=be.get(b);if(hn)return hn;be.set(b,De),Nee(b)?b.forEach(function(Yn){De.add(Id(Yn,w,N,Yn,b,be))}):Ree(b)&&b.forEach(function(Yn,oo){De.set(oo,Id(Yn,w,N,oo,b,be))});var Wn=Nt?We?c8:l8:We?bu:$l,zr=Lt?t:Wn(b);return ps(zr||b,function(Yn,oo){zr&&(oo=Yn,Yn=b[oo]),by(De,oo,Id(Yn,w,N,oo,b,be))}),De}function nD(b){var w=$l(b);return function(N){return IF(N,b,w)}}function IF(b,w,N){var J=N.length;if(b==null)return!J;for(b=qr(b);J--;){var le=N[J],be=w[le],De=b[le];if(De===t&&!(le in b)||!be(De))return!1}return!0}function op(b,w,N){if(typeof b!="function")throw new hu(r);return mD(function(){b.apply(t,N)},w)}function R_(b,w,N,J){var le=-1,be=cC,De=!0,Oe=b.length,We=[],Nt=w.length;if(!Oe)return We;N&&(w=sa(w,jc(N))),J?(be=GI,De=!1):w.length>=e&&(be=I_,De=!1,w=new Ng(w));e:for(;++lele?0:le+N),J=J===t||J>le?le:Rr(J),J<0&&(J+=le),J=N>J?0:Lee(J);N0&&N(Oe)?w>1?Cl(Oe,w-1,N,J,le):np(le,Oe):J||(le[le.length]=Oe)}return le}var rD=WJ(),AF=WJ(!0);function ap(b,w){return b&&rD(b,w,$l)}function oD(b,w){return b&&AF(b,w,$l)}function sp(b,w){return hf(w,function(N){return Hg(b[N])})}function Lg(b,w){w=N_(w,b);for(var N=0,J=w.length;b!=null&&Nw}function $j(b,w){return b!=null&&Go.call(b,w)}function qj(b,w){return b!=null&&w in qr(b)}function Wj(b,w,N){return b>=Za(w,N)&&b=120&&Lt.length>=120)?new Ng(De&&Lt):t}Lt=b[0];var Qt=-1,Ui=Oe[0];e:for(;++Qt-1;)Oe!==b&&Rg.call(Oe,We,1),Rg.call(b,We,1);return b}function RJ(b,w){for(var N=b?w.length:0,J=N-1;N--;){var le=w[N];if(N==J||le!==be){var be=le;jg(le)?Rg.call(b,le,1):t8(b,le)}}return b}function Zj(b,w){return b+py(vF()*(w-b+1))}function _1e(b,w,N,J){for(var le=-1,be=hs(vC((w-b)/(N||1)),0),De=rt(be);be--;)De[J?be:++le]=b,b+=N;return De}function Jj(b,w){var N="";if(!b||w<1||w>G)return N;do w%2&&(N+=b),w=py(w/2),w&&(b+=b);while(w);return N}function Wr(b,w){return g8(cee(b,w,yu),b+"")}function v1e(b){return EF(RC(b))}function b1e(b,w){var N=RC(b);return HF(N,Og(w,0,N.length))}function cD(b,w,N,J){if(!Ja(b))return b;w=N_(w,b);for(var le=-1,be=w.length,De=be-1,Oe=b;Oe!=null&&++lele?0:le+w),N=N>le?le:N,N<0&&(N+=le),le=w>N?0:N-w>>>0,w>>>=0;for(var be=rt(le);++J>>1,De=b[be];De!==null&&!fm(De)&&(N?De<=w:De=e){var Nt=w?null:R1e(b);if(Nt)return D_(Nt);De=!1,le=I_,We=new Ng}else We=w?[]:Oe;e:for(;++J=J?b:dp(b,w,N)}var jJ=fj||function(b){return tl.clearTimeout(b)};function HJ(b,w){if(w)return b.slice();var N=b.length,J=uF?uF(N):new b.constructor(N);return b.copy(J),J}function o8(b){var w=new b.constructor(b.byteLength);return new fC(w).set(new fC(b)),w}function w1e(b,w){var N=w?o8(b.buffer):b.buffer;return new b.constructor(N,b.byteOffset,b.byteLength)}function E1e(b){var w=new b.constructor(b.source,Bc.exec(b));return w.lastIndex=b.lastIndex,w}function I1e(b){return vy?qr(vy.call(b)):{}}function zJ(b,w){var N=w?o8(b.buffer):b.buffer;return new b.constructor(N,b.byteOffset,b.length)}function UJ(b,w){if(b!==w){var N=b!==t,J=b===null,le=b===b,be=fm(b),De=w!==t,Oe=w===null,We=w===w,Nt=fm(w);if(!Oe&&!Nt&&!be&&b>w||be&&De&&We&&!Oe&&!Nt||J&&De&&We||!N&&We||!le)return 1;if(!J&&!be&&!Nt&&b=Oe)return We;var Nt=N[J];return We*(Nt=="desc"?-1:1)}}return b.index-w.index}function GJ(b,w,N,J){for(var le=-1,be=b.length,De=N.length,Oe=-1,We=w.length,Nt=hs(be-De,0),Lt=rt(We+Nt),Qt=!J;++Oe1?N[le-1]:t,De=le>2?N[2]:t;for(be=b.length>3&&typeof be=="function"?(le--,be):t,De&&Dd(N[0],N[1],De)&&(be=le<3?t:be,le=1),w=qr(w);++J-1?le[be?w[De]:De]:t}}function XJ(b){return Bg(function(w){var N=w.length,J=N,le=fu.prototype.thru;for(b&&w.reverse();J--;){var be=w[J];if(typeof be!="function")throw new hu(r);if(le&&!De&&BF(be)=="wrapper")var De=new fu([],!0)}for(J=De?J:N;++J1&&yo.reverse(),Lt&&WeOe))return!1;var Nt=be.get(b),Lt=be.get(w);if(Nt&&Lt)return Nt==w&&Lt==b;var Qt=-1,Ui=!0,hn=N&v?new Ng:t;for(be.set(b,w),be.set(w,b);++Qt1?"& ":"")+w[J],w=w.join(N>2?", ":" "),b.replace(uf,`{ /* [wrapped with `+w+`] */ `)}function U1e(b){return wr(b)||wy(b)||!!(hF&&b&&b[hF])}function jg(b,w){var N=typeof b;return w=w??G,!!w&&(N=="number"||N!="symbol"&&nh.test(b))&&b>-1&&b%1==0&&b0){if(++w>=Q)return arguments[0]}else w=0;return b.apply(t,arguments)}}function HF(b,w){var N=-1,J=b.length,le=J-1;for(w=w===t?J:w;++N1?b[w-1]:t;return N=typeof N=="function"?(b.pop(),N):t,xee(b,N)});function Cee(b){var w=_e(b);return w.__chain__=!0,w}function eCe(b,w){return w(b),b}function zF(b,w){return w(b)}var tCe=Bg(function(b){var w=b.length,N=w?b[0]:0,J=this.__wrapped__,le=function(be){return DC(be,b)};return w>1||this.__actions__.length||!(J instanceof jr)||!jg(N)?this.thru(le):(J=J.slice(N,+N+(w?1:0)),J.__actions__.push({func:zF,args:[le],thisArg:t}),new fu(J,this.__chain__).thru(function(be){return w&&!be.length&&be.push(t),be}))});function iCe(){return Cee(this)}function nCe(){return new fu(this.value(),this.__chain__)}function rCe(){this.__values__===t&&(this.__values__=Oee(this.value()));var b=this.__index__>=this.__values__.length,w=b?t:this.__values__[this.__index__++];return{done:b,value:w}}function oCe(){return this}function aCe(b){for(var w,N=this;N instanceof SC;){var J=fee(N);J.__index__=0,J.__values__=t,w?le.__wrapped__=J:w=J;var le=J;N=N.__wrapped__}return le.__wrapped__=b,w}function sCe(){var b=this.__wrapped__;if(b instanceof jr){var w=b;return this.__actions__.length&&(w=new jr(this)),w=w.reverse(),w.__actions__.push({func:zF,args:[_8],thisArg:t}),new fu(w,this.__chain__)}return this.thru(_8)}function lCe(){return VJ(this.__wrapped__,this.__actions__)}var cCe=PF(function(b,w,N){Go.call(b,N)?++b[N]:ch(b,N,1)});function dCe(b,w,N){var J=wr(b)?lC:Uj;return N&&Dd(b,w,N)&&(w=t),J(b,Bn(w,3))}function uCe(b,w){var N=wr(b)?hf:TF;return N(b,Bn(w,3))}var mCe=KJ(gee),pCe=KJ(_ee);function hCe(b,w){return Cl(UF(b,w),1)}function fCe(b,w){return Cl(UF(b,w),q)}function gCe(b,w,N){return N=N===t?1:Rr(N),Cl(UF(b,w),N)}function See(b,w){var N=wr(b)?ps:bf;return N(b,Bn(w,3))}function wee(b,w){var N=wr(b)?W6:DF;return N(b,Bn(w,3))}var _Ce=PF(function(b,w,N){Go.call(b,N)?b[N].push(w):ch(b,N,[w])});function vCe(b,w,N,J){b=vu(b)?b:RC(b),N=N&&!J?Rr(N):0;var le=b.length;return N<0&&(N=hs(le+N,0)),YF(b)?N<=le&&b.indexOf(w,N)>-1:!!le&&E_(b,w,N)>-1}var bCe=Wr(function(b,w,N){var J=-1,le=typeof w=="function",be=vu(b)?rt(b.length):[];return bf(b,function(De){be[++J]=le?pc(w,De,N):lp(De,w,N)}),be}),yCe=PF(function(b,w,N){ch(b,N,w)});function UF(b,w){var N=wr(b)?sa:mt;return N(b,Bn(w,3))}function xCe(b,w,N,J){return b==null?[]:(wr(w)||(w=w==null?[]:[w]),N=J?t:N,wr(N)||(N=N==null?[]:[N]),uh(b,w,N))}var CCe=PF(function(b,w,N){b[N?0:1].push(w)},function(){return[[],[]]});function SCe(b,w,N){var J=wr(b)?$I:nF,le=arguments.length<3;return J(b,Bn(w,4),N,le,bf)}function wCe(b,w,N){var J=wr(b)?Y6:nF,le=arguments.length<3;return J(b,Bn(w,4),N,le,DF)}function ECe(b,w){var N=wr(b)?hf:TF;return N(b,qF(Bn(w,3)))}function ICe(b){var w=wr(b)?EF:v1e;return w(b)}function DCe(b,w,N){(N?Dd(b,w,N):w===t)?w=1:w=Rr(w);var J=wr(b)?Bj:b1e;return J(b,w)}function TCe(b){var w=wr(b)?jj:x1e;return w(b)}function ACe(b){if(b==null)return 0;if(vu(b))return YF(b)?ff(b):b.length;var w=Hc(b);return w==Ri||w==Rt?b.size:ne(b).length}function kCe(b,w,N){var J=wr(b)?qI:C1e;return N&&Dd(b,w,N)&&(w=t),J(b,Bn(w,3))}var MCe=Wr(function(b,w){if(b==null)return[];var N=w.length;return N>1&&Dd(b,w[0],w[1])?w=[]:N>2&&Dd(w[0],w[1],w[2])&&(w=[w[0]]),uh(b,Cl(w,1),[])}),GF=gj||function(){return tl.Date.now()};function FCe(b,w){if(typeof w!="function")throw new hu(r);return b=Rr(b),function(){if(--b<1)return w.apply(this,arguments)}}function Eee(b,w,N){return w=N?t:w,w=b&&w==null?b.length:w,Vg(b,R,t,t,t,t,w)}function Iee(b,w){var N;if(typeof w!="function")throw new hu(r);return b=Rr(b),function(){return--b>0&&(N=w.apply(this,arguments)),b<=1&&(w=t),N}}var b8=Wr(function(b,w,N){var J=y;if(N.length){var le=mm(N,MC(b8));J|=A}return Vg(b,J,w,N,le)}),Dee=Wr(function(b,w,N){var J=y|x;if(N.length){var le=mm(N,MC(Dee));J|=A}return Vg(w,J,b,N,le)});function Tee(b,w,N){w=N?t:w;var J=Vg(b,C,t,t,t,t,t,w);return J.placeholder=Tee.placeholder,J}function Aee(b,w,N){w=N?t:w;var J=Vg(b,D,t,t,t,t,t,w);return J.placeholder=Aee.placeholder,J}function kee(b,w,N){var J,le,be,De,Oe,We,Nt=0,Lt=!1,Qt=!1,Ui=!0;if(typeof b!="function")throw new hu(r);w=mp(w)||0,Ja(N)&&(Lt=!!N.leading,Qt="maxWait"in N,be=Qt?hs(mp(N.maxWait)||0,w):be,Ui="trailing"in N?!!N.trailing:Ui);function hn(Ns){var ph=J,Ug=le;return J=le=t,Nt=Ns,De=b.apply(Ug,ph),De}function Wn(Ns){return Nt=Ns,Oe=mD(oo,w),Lt?hn(Ns):De}function zr(Ns){var ph=Ns-We,Ug=Ns-Nt,Kee=w-ph;return Qt?Za(Kee,be-Ug):Kee}function Yn(Ns){var ph=Ns-We,Ug=Ns-Nt;return We===t||ph>=w||ph<0||Qt&&Ug>=be}function oo(){var Ns=GF();if(Yn(Ns))return yo(Ns);Oe=mD(oo,zr(Ns))}function yo(Ns){return Oe=t,Ui&&J?hn(Ns):(J=le=t,De)}function gm(){Oe!==t&&jJ(Oe),Nt=0,J=We=le=Oe=t}function Td(){return Oe===t?De:yo(GF())}function _m(){var Ns=GF(),ph=Yn(Ns);if(J=arguments,le=this,We=Ns,ph){if(Oe===t)return Wn(We);if(Qt)return jJ(Oe),Oe=mD(oo,w),hn(We)}return Oe===t&&(Oe=mD(oo,w)),De}return _m.cancel=gm,_m.flush=Td,_m}var RCe=Wr(function(b,w){return op(b,1,w)}),PCe=Wr(function(b,w,N){return op(b,mp(w)||0,N)});function NCe(b){return Vg(b,K)}function $F(b,w){if(typeof b!="function"||w!=null&&typeof w!="function")throw new hu(r);var N=function(){var J=arguments,le=w?w.apply(this,J):J[0],be=N.cache;if(be.has(le))return be.get(le);var De=b.apply(this,J);return N.cache=be.set(le,De)||be,De};return N.cache=new($F.Cache||lh),N}$F.Cache=lh;function qF(b){if(typeof b!="function")throw new hu(r);return function(){var w=arguments;switch(w.length){case 0:return!b.call(this);case 1:return!b.call(this,w[0]);case 2:return!b.call(this,w[0],w[1]);case 3:return!b.call(this,w[0],w[1],w[2])}return!b.apply(this,w)}}function OCe(b){return Iee(2,b)}var LCe=S1e(function(b,w){w=w.length==1&&wr(w[0])?sa(w[0],jc(Bn())):sa(Cl(w,1),jc(Bn()));var N=w.length;return Wr(function(J){for(var le=-1,be=Za(J.length,N);++le=w}),wy=MF(function(){return arguments}())?MF:function(b){return fs(b)&&Go.call(b,"callee")&&!pF.call(b,"callee")},wr=rt.isArray,ZCe=XM?jc(XM):Yj;function vu(b){return b!=null&&WF(b.length)&&!Hg(b)}function Ps(b){return fs(b)&&vu(b)}function JCe(b){return b===!0||b===!1||fs(b)&&hc(b)==Ie}var L_=fF||M8,eSe=UI?jc(UI):Kj;function tSe(b){return fs(b)&&b.nodeType===1&&!pD(b)}function iSe(b){if(b==null)return!0;if(vu(b)&&(wr(b)||typeof b=="string"||typeof b.splice=="function"||L_(b)||FC(b)||wy(b)))return!b.length;var w=Hc(b);if(w==Ri||w==Rt)return!b.size;if(uD(b))return!ne(b).length;for(var N in b)if(Go.call(b,N))return!1;return!0}function nSe(b,w){return yy(b,w)}function rSe(b,w,N){N=typeof N=="function"?N:t;var J=N?N(b,w):t;return J===t?yy(b,w,t,N):!!J}function x8(b){if(!fs(b))return!1;var w=hc(b);return w==It||w==et||typeof b.message=="string"&&typeof b.name=="string"&&!pD(b)}function oSe(b){return typeof b=="number"&&hy(b)}function Hg(b){if(!Ja(b))return!1;var w=hc(b);return w==kt||w==ii||w==Te||w==bo}function Fee(b){return typeof b=="number"&&b==Rr(b)}function WF(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=G}function Ja(b){var w=typeof b;return b!=null&&(w=="object"||w=="function")}function fs(b){return b!=null&&typeof b=="object"}var Ree=QM?jc(QM):lD;function aSe(b,w){return b===w||yf(b,w,u8(w))}function sSe(b,w,N){return N=typeof N=="function"?N:t,yf(b,w,u8(w),N)}function lSe(b){return Pee(b)&&b!=+b}function cSe(b){if(q1e(b))throw new lr(i);return xy(b)}function dSe(b){return b===null}function uSe(b){return b==null}function Pee(b){return typeof b=="number"||fs(b)&&hc(b)==_i}function pD(b){if(!fs(b)||hc(b)!=Yi)return!1;var w=gC(b);if(w===null)return!0;var N=Go.call(w,"constructor")&&w.constructor;return typeof N=="function"&&N instanceof N&&uy.call(N)==mj}var C8=ZM?jc(ZM):uo;function mSe(b){return Fee(b)&&b>=-G&&b<=G}var Nee=sy?jc(sy):T;function YF(b){return typeof b=="string"||!wr(b)&&fs(b)&&hc(b)==ui}function fm(b){return typeof b=="symbol"||fs(b)&&hc(b)==ei}var FC=rh?jc(rh):L;function pSe(b){return b===t}function hSe(b){return fs(b)&&Hc(b)==Je}function fSe(b){return fs(b)&&hc(b)==Ke}var gSe=VF(Fe),_Se=VF(function(b,w){return b<=w});function Oee(b){if(!b)return[];if(vu(b))return YF(b)?Ed(b):_u(b);if(my&&b[my])return nj(b[my]());var w=Hc(b),N=w==Ri?ZI:w==Rt?D_:RC;return N(b)}function zg(b){if(!b)return b===0?b:0;if(b=mp(b),b===q||b===-q){var w=b<0?-1:1;return w*X}return b===b?b:0}function Rr(b){var w=zg(b),N=w%1;return w===w?N?w-N:w:0}function Lee(b){return b?Og(Rr(b),0,ee):0}function mp(b){if(typeof b=="number")return b;if(fm(b))return z;if(Ja(b)){var w=typeof b.valueOf=="function"?b.valueOf():b;b=Ja(w)?w+"":w}if(typeof b!="string")return b===0?b:+b;b=rF(b);var N=ay.test(b);return N||ms.test(b)?YM(b.slice(2),N?2:8):OI.test(b)?z:+b}function Vee(b){return xf(b,bu(b))}function vSe(b){return b?Og(Rr(b),-G,G):b===0?b:0}function ea(b){return b==null?"":hm(b)}var bSe=AC(function(b,w){if(uD(w)||vu(w)){xf(w,$l(w),b);return}for(var N in w)Go.call(w,N)&&by(b,N,w[N])}),Bee=AC(function(b,w){xf(w,bu(w),b)}),KF=AC(function(b,w,N,J){xf(w,bu(w),b,J)}),ySe=AC(function(b,w,N,J){xf(w,$l(w),b,J)}),xSe=Bg(DC);function CSe(b,w){var N=F_(b);return w==null?N:iD(N,w)}var SSe=Wr(function(b,w){b=qr(b);var N=-1,J=w.length,le=J>2?w[2]:t;for(le&&Dd(w[0],w[1],le)&&(J=1);++N1),be}),xf(b,c8(b),N),J&&(N=Id(N,u|p|g,P1e));for(var le=w.length;le--;)t8(N,w[le]);return N});function HSe(b,w){return Hee(b,qF(Bn(w)))}var zSe=Bg(function(b,w){return b==null?{}:f1e(b,w)});function Hee(b,w){if(b==null)return{};var N=sa(c8(b),function(J){return[J]});return w=Bn(w),FJ(b,N,function(J,le){return w(J,le[0])})}function USe(b,w,N){w=N_(w,b);var J=-1,le=w.length;for(le||(le=1,b=t);++Jw){var J=b;b=w,w=J}if(N||b%1||w%1){var le=vF();return Za(b+le*(w-b+WM("1e-"+((le+"").length-1))),w)}return Zj(b,w)}var ewe=kC(function(b,w,N){return w=w.toLowerCase(),b+(N?Gee(w):w)});function Gee(b){return E8(ea(b).toLowerCase())}function $ee(b){return b=ea(b),b&&b.replace(y_,aF).replace(L6,"")}function twe(b,w,N){b=ea(b),w=hm(w);var J=b.length;N=N===t?J:Og(Rr(N),0,J);var le=N;return N-=w.length,N>=0&&b.slice(N,le)==w}function iwe(b){return b=ea(b),b&&Zi.test(b)?b.replace(_t,J6):b}function nwe(b){return b=ea(b),b&&Br.test(b)?b.replace(dm,"\\$&"):b}var rwe=kC(function(b,w,N){return b+(N?"-":"")+w.toLowerCase()}),owe=kC(function(b,w,N){return b+(N?" ":"")+w.toLowerCase()}),awe=YJ("toLowerCase");function swe(b,w,N){b=ea(b),w=Rr(w);var J=w?ff(b):0;if(!w||J>=w)return b;var le=(w-J)/2;return LF(py(le),N)+b+LF(vC(le),N)}function lwe(b,w,N){b=ea(b),w=Rr(w);var J=w?ff(b):0;return w&&J>>0,N?(b=ea(b),b&&(typeof w=="string"||w!=null&&!C8(w))&&(w=hm(w),!w&&rp(b))?O_(Ed(b),0,N):b.split(w,N)):[]}var fwe=kC(function(b,w,N){return b+(N?" ":"")+E8(w)});function gwe(b,w,N){return b=ea(b),N=N==null?0:Og(Rr(N),0,b.length),w=hm(w),b.slice(N,N+w.length)==w}function _we(b,w,N){var J=_e.templateSettings;N&&Dd(b,w,N)&&(w=t),b=ea(b),w=KF({},w,J,tee);var le=KF({},w.imports,J.imports,tee),be=$l(le),De=QI(le,be),Oe,We,Nt=0,Lt=w.interpolate||mf,Qt="__p += '",Ui=oh((w.escape||mf).source+"|"+Lt.source+"|"+(Lt===$r?Vc:mf).source+"|"+(w.evaluate||mf).source+"|$","g"),hn="//# sourceURL="+(Go.call(w,"sourceURL")?(w.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z6+"]")+` `;b.replace(Ui,function(Yn,oo,yo,gm,Td,_m){return yo||(yo=gm),Qt+=b.slice(Nt,_m).replace(TM,ej),oo&&(Oe=!0,Qt+=`' + __e(`+oo+`) + '`),Td&&(We=!0,Qt+=`'; `+Td+`; __p += '`),yo&&(Qt+=`' + ((__t = (`+yo+`)) == null ? '' : __t) + '`),Nt=_m+Yn.length,Yn}),Qt+=`'; `;var Wn=Go.call(w,"variable")&&w.variable;if(!Wn)Qt=`with (obj) { `+Qt+` } `;else if(Ga.test(Wn))throw new lr(o);Qt=(We?Qt.replace(Xn,""):Qt).replace(Po,"$1").replace(zl,"$1;"),Qt="function("+(Wn||"obj")+`) { `+(Wn?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(Oe?", __e = _.escape":"")+(We?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Qt+`return __p }`;var zr=Wee(function(){return No(be,hn+"return "+Qt).apply(t,De)});if(zr.source=Qt,x8(zr))throw zr;return zr}function vwe(b){return ea(b).toLowerCase()}function bwe(b){return ea(b).toUpperCase()}function ywe(b,w,N){if(b=ea(b),b&&(N||w===t))return rF(b);if(!b||!(w=hm(w)))return b;var J=Ed(b),le=Ed(w),be=da(J,le),De=oF(J,le)+1;return O_(J,be,De).join("")}function xwe(b,w,N){if(b=ea(b),b&&(N||w===t))return b.slice(0,uC(b)+1);if(!b||!(w=hm(w)))return b;var J=Ed(b),le=oF(J,Ed(w))+1;return O_(J,0,le).join("")}function Cwe(b,w,N){if(b=ea(b),b&&(N||w===t))return b.replace(wd,"");if(!b||!(w=hm(w)))return b;var J=Ed(b),le=da(J,Ed(w));return O_(J,le).join("")}function Swe(b,w){var N=F,J=V;if(Ja(w)){var le="separator"in w?w.separator:le;N="length"in w?Rr(w.length):N,J="omission"in w?hm(w.omission):J}b=ea(b);var be=b.length;if(rp(b)){var De=Ed(b);be=De.length}if(N>=be)return b;var Oe=N-ff(J);if(Oe<1)return J;var We=De?O_(De,0,Oe).join(""):b.slice(0,Oe);if(le===t)return We+J;if(De&&(Oe+=We.length-Oe),C8(le)){if(b.slice(Oe).search(le)){var Nt,Lt=We;for(le.global||(le=oh(le.source,ea(Bc.exec(le))+"g")),le.lastIndex=0;Nt=le.exec(Lt);)var Qt=Nt.index;We=We.slice(0,Qt===t?Oe:Qt)}}else if(b.indexOf(hm(le),Oe)!=Oe){var Ui=We.lastIndexOf(le);Ui>-1&&(We=We.slice(0,Ui))}return We+J}function wwe(b){return b=ea(b),b&&mi.test(b)?b.replace($e,aj):b}var Ewe=kC(function(b,w,N){return b+(N?" ":"")+w.toUpperCase()}),E8=YJ("toUpperCase");function qee(b,w,N){return b=ea(b),w=N?t:w,w===t?ij(b)?cj(b):X6(b):b.match(w)||[]}var Wee=Wr(function(b,w){try{return pc(b,t,w)}catch(N){return x8(N)?N:new lr(N)}}),Iwe=Bg(function(b,w){return ps(w,function(N){N=Cf(N),ch(b,N,b8(b[N],b))}),b});function Dwe(b){var w=b==null?0:b.length,N=Bn();return b=w?sa(b,function(J){if(typeof J[1]!="function")throw new hu(r);return[N(J[0]),J[1]]}):[],Wr(function(J){for(var le=-1;++leG)return[];var N=ee,J=Za(b,ee);w=Bn(w),b-=ee;for(var le=XI(J,w);++N0||w<0)?new jr(N):(b<0?N=N.takeRight(-b):b&&(N=N.drop(b)),w!==t&&(w=Rr(w),N=w<0?N.dropRight(-w):N.take(w-b)),N)},jr.prototype.takeRightWhile=function(b){return this.reverse().takeWhile(b).reverse()},jr.prototype.toArray=function(){return this.take(ee)},ap(jr.prototype,function(b,w){var N=/^(?:filter|find|map|reject)|While$/.test(w),J=/^(?:head|last)$/.test(w),le=_e[J?"take"+(w=="last"?"Right":""):w],be=J||/^find/.test(w);le&&(_e.prototype[w]=function(){var De=this.__wrapped__,Oe=J?[1]:arguments,We=De instanceof jr,Nt=Oe[0],Lt=We||wr(De),Qt=function(oo){var yo=le.apply(_e,np([oo],Oe));return J&&Ui?yo[0]:yo};Lt&&N&&typeof Nt=="function"&&Nt.length!=1&&(We=Lt=!1);var Ui=this.__chain__,hn=!!this.__actions__.length,Wn=be&&!Ui,zr=We&&!hn;if(!be&&Lt){De=zr?De:new jr(this);var Yn=b.apply(De,Oe);return Yn.__actions__.push({func:zF,args:[Qt],thisArg:t}),new fu(Yn,Ui)}return Wn&&zr?b.apply(this,Oe):(Yn=this.thru(Qt),Wn?J?Yn.value()[0]:Yn.value():Yn)})}),ps(["pop","push","shift","sort","splice","unshift"],function(b){var w=dy[b],N=/^(?:push|sort|unshift)$/.test(b)?"tap":"thru",J=/^(?:pop|shift)$/.test(b);_e.prototype[b]=function(){var le=arguments;if(J&&!this.__chain__){var be=this.value();return w.apply(wr(be)?be:[],le)}return this[N](function(De){return w.apply(wr(De)?De:[],le)})}}),ap(jr.prototype,function(b,w){var N=_e[w];if(N){var J=N.name+"";Go.call(M_,J)||(M_[J]=[]),M_[J].push({name:w,func:N})}}),M_[NF(t,x).name]=[{name:"wrapper",func:t}],jr.prototype.clone=wj,jr.prototype.reverse=Ej,jr.prototype.value=Ij,_e.prototype.at=tCe,_e.prototype.chain=iCe,_e.prototype.commit=nCe,_e.prototype.next=rCe,_e.prototype.plant=aCe,_e.prototype.reverse=sCe,_e.prototype.toJSON=_e.prototype.valueOf=_e.prototype.value=lCe,_e.prototype.first=_e.prototype.head,my&&(_e.prototype[my]=oCe),_e},gf=dj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(tl._=gf,define(function(){return gf})):pf?((pf.exports=gf)._=gf,zI._=gf):tl._=gf}).call(xI)});function ite(t,n){return Object.is(t,n)}var ql=null,hD=!1,eR=1,hh=Symbol("SIGNAL");function Yr(t){let n=ql;return ql=t,n}function vEe(){return hD}var gD={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function iR(t){if(hD)throw new Error("");if(ql===null)return;ql.consumerOnSignalRead(t);let n=ql.nextProducerIndex++;if(PC(ql),nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function oR(t){PC(t);for(let n=0;n0}function PC(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function lte(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function cte(t){let n=Object.create(yEe);n.computation=t;let e=()=>{if(nte(n),iR(n),n.value===tR)throw n.error;return n.value};return e[hh]=n,e}var N8=Symbol("UNSET"),O8=Symbol("COMPUTING"),tR=Symbol("ERRORED"),yEe=Gi(Ve({},gD),{value:N8,dirty:!0,error:null,equal:ite,producerMustRecompute(t){return t.value===N8||t.value===O8},producerRecomputeValue(t){if(t.value===O8)throw new Error("Detected cycle in computations.");let n=t.value;t.value=O8;let e=nR(t),i;try{i=t.computation()}catch(r){i=tR,t.error=r}finally{rR(t,e)}if(n!==N8&&n!==tR&&i!==tR&&t.equal(n,i)){t.value=n;return}t.value=i,t.version++}});function xEe(){throw new Error}var dte=xEe;function ute(){dte()}function mte(t){dte=t}var CEe=null;function pte(t){let n=Object.create(B8);n.value=t;let e=()=>(iR(n),n.value);return e[hh]=n,e}function sR(t,n){ote()||ute(),t.equal(t.value,n)||(t.value=n,SEe(t))}function hte(t,n){ote()||ute(),sR(t,n(t.value))}var B8=Gi(Ve({},gD),{equal:ite,value:void 0});function SEe(t){t.version++,bEe(),rte(t),CEe?.()}function fte(t,n,e){let i=Object.create(wEe);e&&(i.consumerAllowSignalWrites=!0),i.fn=t,i.schedule=n;let r=l=>{i.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function a(l){o(l)||(V8(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=L8)}let s=()=>{if(i.fn===null)return;if(vEe())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(i.dirty=!1,i.hasRun&&!oR(i))return;i.hasRun=!0;let l=nR(i);try{i.cleanupFn(),i.cleanupFn=L8,i.fn(r)}finally{rR(i,l)}};return i.ref={notify:()=>ate(i),run:s,cleanup:()=>i.cleanupFn(),destroy:()=>a(i),[hh]:i},i.ref}var L8=()=>{},wEe=Gi(Ve({},gD),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:L8});function jn(t){return typeof t=="function"}function B_(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var lR=B_(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Ey(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var Ji=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(jn(i))try{i()}catch(o){n=o instanceof lR?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{gte(o)}catch(a){n=n??[],a instanceof lR?n=[...n,...a.errors]:n.push(a)}}if(n)throw new lR(n)}}add(n){var e;if(n&&n!==this)if(this.closed)gte(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Ey(e,n)}remove(n){let{_finalizers:e}=this;e&&Ey(e,n),n instanceof t&&n._removeParent(this)}};Ji.EMPTY=(()=>{let t=new Ji;return t.closed=!0,t})();var j8=Ji.EMPTY;function cR(t){return t instanceof Ji||t&&"closed"in t&&jn(t.remove)&&jn(t.add)&&jn(t.unsubscribe)}function gte(t){jn(t)?t():t.unsubscribe()}var fh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var NC={setTimeout(t,n,...e){let{delegate:i}=NC;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=NC;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function dR(t){NC.setTimeout(()=>{let{onUnhandledError:n}=fh;if(n)n(t);else throw t})}function gh(){}var _te=H8("C",void 0,void 0);function vte(t){return H8("E",void 0,t)}function bte(t){return H8("N",t,void 0)}function H8(t,n,e){return{kind:t,value:n,error:e}}var Iy=null;function OC(t){if(fh.useDeprecatedSynchronousErrorHandling){let n=!Iy;if(n&&(Iy={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Iy;if(Iy=null,e)throw i}}else t()}function yte(t){fh.useDeprecatedSynchronousErrorHandling&&Iy&&(Iy.errorThrown=!0,Iy.error=t)}var Dy=class extends Ji{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,cR(n)&&n.add(this)):this.destination=DEe}static create(n,e,i){return new _h(n,e,i)}next(n){this.isStopped?U8(bte(n),this):this._next(n)}error(n){this.isStopped?U8(vte(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?U8(_te,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},EEe=Function.prototype.bind;function z8(t,n){return EEe.call(t,n)}var G8=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){uR(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){uR(i)}else uR(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){uR(e)}}},_h=class extends Dy{constructor(n,e,i){super();let r;if(jn(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&fh.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&z8(n.next,o),error:n.error&&z8(n.error,o),complete:n.complete&&z8(n.complete,o)}):r=n}this.destination=new G8(r)}};function uR(t){fh.useDeprecatedSynchronousErrorHandling?yte(t):dR(t)}function IEe(t){throw t}function U8(t,n){let{onStoppedNotification:e}=fh;e&&NC.setTimeout(()=>e(t,n))}var DEe={closed:!0,next:gh,error:IEe,complete:gh};var LC=typeof Symbol=="function"&&Symbol.observable||"@@observable";function _c(t){return t}function _D(...t){return $8(t)}function $8(t){return t.length===0?_c:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var mn=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=AEe(e)?e:new _h(e,i,r);return OC(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=xte(i),new i((r,o)=>{let a=new _h({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[LC](){return this}pipe(...e){return $8(e)(this)}toPromise(e){return e=xte(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function xte(t){var n;return(n=t??fh.Promise)!==null&&n!==void 0?n:Promise}function TEe(t){return t&&jn(t.next)&&jn(t.error)&&jn(t.complete)}function AEe(t){return t&&t instanceof Dy||TEe(t)&&cR(t)}function q8(t){return jn(t?.lift)}function yn(t){return n=>{if(q8(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function fn(t,n,e,i,r){return new W8(t,n,e,i,r)}var W8=class extends Dy{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function VC(){return yn((t,n)=>{let e=null;t._refCount++;let i=fn(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var j_=class extends mn{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,q8(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ji;let e=this.getSubject();n.add(this.source.subscribe(fn(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ji.EMPTY)}return n}refCount(){return VC()(this)}};var BC={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=BC;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);let r=n(o=>{e=void 0,t(o)});return new Ji(()=>e?.(r))},requestAnimationFrame(...t){let{delegate:n}=BC;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=BC;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Cte=B_(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var qe=(()=>{class t extends mn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new mR(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Cte}next(e){OC(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){OC(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){OC(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?j8:(this.currentObservers=null,o.push(e),new Ji(()=>{this.currentObservers=null,Ey(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new mn;return e.source=this,e}}return t.create=(n,e)=>new mR(n,e),t})(),mR=class extends qe{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:j8}};var Tr=class extends qe{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var vD={now(){return(vD.delegate||Date).now()},delegate:void 0};var Gg=class extends qe{constructor(n=1/0,e=1/0,i=vD){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;aSte(n)&&t()),n},clearImmediate(t){Ste(t)}};var{setImmediate:MEe,clearImmediate:FEe}=wte,yD={setImmediate(...t){let{delegate:n}=yD;return(n?.setImmediate||MEe)(...t)},clearImmediate(t){let{delegate:n}=yD;return(n?.clearImmediate||FEe)(t)},delegate:void 0};var hR=class extends z_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=yD.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(yD.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var jC=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}};jC.now=vD.now;var U_=class extends jC{constructor(n,e=jC.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}};var fR=class extends U_{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var xD=new fR(hR);var zc=new U_(z_),X8=zc;var gR=class extends z_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return i!==null&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=BC.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);let{actions:o}=n;e!=null&&e===n._scheduled&&((r=o[o.length-1])===null||r===void 0?void 0:r.id)!==e&&(BC.cancelAnimationFrame(e),n._scheduled=void 0)}};var _R=class extends U_{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,r;n=n||i.shift();do if(r=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}};var HC=new _R(gR);var ka=new mn(t=>t.complete());function vR(t){return t&&jn(t.schedule)}function Q8(t){return t[t.length-1]}function zC(t){return jn(Q8(t))?t.pop():void 0}function wf(t){return vR(Q8(t))?t.pop():void 0}function Ete(t,n){return typeof Q8(t)=="number"?t.pop():n}var Z8=function(t,n){return Z8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},Z8(t,n)};function CD(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Z8(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var mo=function(){return mo=Object.assign||function(n){for(var e,i=1,r=arguments.length;i=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function bR(t,n,e){if(e||arguments.length===2)for(var i=0,r=n.length,o;i1||l(v,x)})},y&&(r[v]=y(r[v])))}function l(v,y){try{u(i[v](y))}catch(x){_(o[0][3],x)}}function u(v){v.value instanceof Ty?Promise.resolve(v.value.v).then(p,g):_(o[0][2],v)}function p(v){l("next",v)}function g(v){l("throw",v)}function _(v,y){v(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}function kte(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Ite=="function"?Ite(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(u){o({value:u,done:s})},a)}}var UC=t=>t&&typeof t.length=="number"&&typeof t!="function";function yR(t){return jn(t?.then)}function xR(t){return jn(t[LC])}function CR(t){return Symbol.asyncIterator&&jn(t?.[Symbol.asyncIterator])}function SR(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function REe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wR=REe();function ER(t){return jn(t?.[wR])}function IR(t){return Ate(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield Ty(e.read());if(r)return yield Ty(void 0);yield yield Ty(i)}}finally{e.releaseLock()}})}function DR(t){return jn(t?.getReader)}function Ar(t){if(t instanceof mn)return t;if(t!=null){if(xR(t))return PEe(t);if(UC(t))return NEe(t);if(yR(t))return GC(t);if(CR(t))return Mte(t);if(ER(t))return OEe(t);if(DR(t))return LEe(t)}throw SR(t)}function PEe(t){return new mn(n=>{let e=t[LC]();if(jn(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function NEe(t){return new mn(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,dR)})}function OEe(t){return new mn(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Mte(t){return new mn(n=>{VEe(t,n).catch(e=>n.error(e))})}function LEe(t){return Mte(IR(t))}function VEe(t,n){var e,i,r,o;return Tte(this,void 0,void 0,function*(){try{for(e=kte(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function Uc(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function Ay(t,n=0){return yn((e,i)=>{e.subscribe(fn(i,r=>Uc(i,t,()=>i.next(r),n),()=>Uc(i,t,()=>i.complete(),n),r=>Uc(i,t,()=>i.error(r),n)))})}function TR(t,n=0){return yn((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Fte(t,n){return Ar(t).pipe(TR(n),Ay(n))}function Rte(t,n){return Ar(t).pipe(TR(n),Ay(n))}function Pte(t,n){return new mn(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function Nte(t,n){return new mn(e=>{let i;return Uc(e,n,()=>{i=t[wR](),Uc(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>jn(i?.return)&&i.return()})}function AR(t,n){if(!t)throw new Error("Iterable cannot be null");return new mn(e=>{Uc(e,n,()=>{let i=t[Symbol.asyncIterator]();Uc(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Ote(t,n){return AR(IR(t),n)}function Lte(t,n){if(t!=null){if(xR(t))return Fte(t,n);if(UC(t))return Pte(t,n);if(yR(t))return Rte(t,n);if(CR(t))return AR(t,n);if(ER(t))return Nte(t,n);if(DR(t))return Ote(t,n)}throw SR(t)}function Ur(t,n){return n?Lte(t,n):Ar(t)}function vt(...t){let n=wf(t);return Ur(t,n)}function Os(t,n){let e=jn(t)?t:()=>t,i=r=>r.error(e());return new mn(n?r=>n.schedule(i,0,r):i)}function $g(t){return!!t&&(t instanceof mn||jn(t.lift)&&jn(t.subscribe))}var vh=B_(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function $C(t,n){let e=typeof n=="object";return new Promise((i,r)=>{let o=new _h({next:a=>{i(a),o.unsubscribe()},error:r,complete:()=>{e?i(n.defaultValue):r(new vh)}});t.subscribe(o)})}function kR(t){return t instanceof Date&&!isNaN(t)}var BEe=B_(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function ky(t,n){let{first:e,each:i,with:r=jEe,scheduler:o=n??zc,meta:a=null}=kR(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&i==null)throw new TypeError("No timeout provided.");return yn((s,l)=>{let u,p,g=null,_=0,v=y=>{p=Uc(l,o,()=>{try{u.unsubscribe(),Ar(r({meta:a,lastValue:g,seen:_})).subscribe(l)}catch(x){l.error(x)}},y)};u=s.subscribe(fn(l,y=>{p?.unsubscribe(),_++,l.next(g=y),i>0&&v(i)},void 0,void 0,()=>{p?.closed||p?.unsubscribe(),g=null})),!_&&v(e!=null?typeof e=="number"?e:+e-o.now():i)})}function jEe(t){throw new BEe(t)}function st(t,n){return yn((e,i)=>{let r=0;e.subscribe(fn(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:HEe}=Array;function zEe(t,n){return HEe(n)?t(...n):t(n)}function G_(t){return st(n=>zEe(t,n))}var{isArray:UEe}=Array,{getPrototypeOf:GEe,prototype:$Ee,keys:qEe}=Object;function MR(t){if(t.length===1){let n=t[0];if(UEe(n))return{args:n,keys:null};if(WEe(n)){let e=qEe(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function WEe(t){return t&&typeof t=="object"&&GEe(t)===$Ee}function FR(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function vm(...t){let n=wf(t),e=zC(t),{args:i,keys:r}=MR(t);if(i.length===0)return Ur([],n);let o=new mn(J8(i,n,r?a=>FR(r,a):_c));return e?o.pipe(G_(e)):o}function J8(t,n,e=_c){return i=>{Vte(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let u=Ur(t[l],n),p=!1;u.subscribe(fn(i,g=>{o[l]=g,p||(p=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function Vte(t,n,e){t?Uc(e,t,n):n()}function RR(t,n,e,i,r,o,a,s){let l=[],u=0,p=0,g=!1,_=()=>{g&&!l.length&&!u&&n.complete()},v=x=>u{o&&n.next(x),u++;let I=!1;Ar(e(x,p++)).subscribe(fn(n,C=>{r?.(C),o?v(C):n.next(C)},()=>{I=!0},void 0,()=>{if(I)try{for(u--;l.length&&uy(C)):y(C)}_()}catch(C){n.error(C)}}))};return t.subscribe(fn(n,v,()=>{g=!0,_()})),()=>{s?.()}}function Ca(t,n,e=1/0){return jn(n)?Ca((i,r)=>st((o,a)=>n(i,o,r,a))(Ar(t(i,r))),e):(typeof n=="number"&&(e=n),yn((i,r)=>RR(i,r,t,e)))}function Ef(t=1/0){return Ca(_c,t)}function Bte(){return Ef(1)}function If(...t){return Bte()(Ur(t,wf(t)))}function xu(t){return new mn(n=>{Ar(t()).subscribe(n)})}function $_(...t){let n=zC(t),{args:e,keys:i}=MR(t),r=new mn(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,u=a;for(let p=0;p{g||(g=!0,u--),s[p]=_},()=>l--,void 0,()=>{(!l||!g)&&(u||o.next(i?FR(i,s):s),o.complete())}))}});return n?r.pipe(G_(n)):r}var YEe=["addListener","removeListener"],KEe=["addEventListener","removeEventListener"],XEe=["on","off"];function xn(t,n,e,i){if(jn(e)&&(i=e,e=void 0),i)return xn(t,n,e).pipe(G_(i));let[r,o]=JEe(t)?KEe.map(a=>s=>t[a](n,s,e)):QEe(t)?YEe.map(jte(t,n)):ZEe(t)?XEe.map(jte(t,n)):[];if(!r&&UC(t))return Ca(a=>xn(a,n,e))(Ar(t));if(!r)throw new TypeError("Invalid event target");return new mn(a=>{let s=(...l)=>a.next(1o(s)})}function jte(t,n){return e=>i=>t[e](n,i)}function QEe(t){return jn(t.addListener)&&jn(t.removeListener)}function ZEe(t){return jn(t.on)&&jn(t.off)}function JEe(t){return jn(t.addEventListener)&&jn(t.removeEventListener)}function gs(t=0,n,e=X8){let i=-1;return n!=null&&(vR(n)?e=n:i=n),new mn(r=>{let o=kR(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function My(t=0,n=zc){return t<0&&(t=0),gs(t,t,n)}function Cn(...t){let n=wf(t),e=Ete(t,1/0),i=t;return i.length?i.length===1?Ar(i[0]):Ef(e)(Ur(i,n)):ka}var qC=new mn(gh);var{isArray:eIe}=Array;function PR(t){return t.length===1&&eIe(t[0])?t[0]:t}function vi(t,n){return yn((e,i)=>{let r=0;e.subscribe(fn(i,o=>t.call(n,o,r++)&&i.next(o)))})}function eH(...t){return t=PR(t),t.length===1?Ar(t[0]):new mn(tIe(t))}function tIe(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i{if(e){for(let o=0;o{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let u=r;r=null,e.next(u)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(fn(e,u=>{i=!0,r=u,o||Ar(t(u)).subscribe(o=fn(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function NR(t,n=zc){return Hte(()=>gs(t,n))}function Ma(t){return yn((n,e)=>{let i=null,r=!1,o;i=n.subscribe(fn(e,void 0,void 0,a=>{o=Ar(t(a,Ma(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function zte(t,n,e,i,r){return(o,a)=>{let s=e,l=n,u=0;o.subscribe(fn(a,p=>{let g=u++;l=s?t(l,p,g):(s=!0,p),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function OR(...t){let n=zC(t);return n?_D(OR(...t),G_(n)):yn((e,i)=>{J8([e,...PR(t)])(i)})}function qg(t,n){return jn(n)?Ca(t,n,1):Ca(t,1)}function tH(t){return yn((n,e)=>{let i=!1,r=null,o=null,a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let s=r;r=null,e.next(s)}};n.subscribe(fn(e,s=>{o?.unsubscribe(),i=!0,r=s,o=fn(e,a,gh),Ar(t(s)).subscribe(o)},()=>{a(),e.complete()},void 0,()=>{r=o=null}))})}function $o(t,n=zc){return yn((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let u=o;o=null,i.next(u)}};function l(){let u=a+t,p=n.now();if(p{o=u,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function q_(t){return yn((n,e)=>{let i=!1;n.subscribe(fn(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function cn(t){return t<=0?()=>ka:yn((n,e)=>{let i=0;n.subscribe(fn(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Ute(){return yn((t,n)=>{t.subscribe(fn(n,gh))})}function bh(t){return st(()=>t)}function iH(t,n){return n?e=>If(n.pipe(cn(1),Ute()),e.pipe(iH(t))):Ca((e,i)=>Ar(t(e,i)).pipe(cn(1),bh(e)))}function Wl(t,n=zc){let e=gs(t,n);return iH(()=>e)}function Ls(t,n=_c){return t=t??iIe,yn((e,i)=>{let r,o=!0;e.subscribe(fn(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function iIe(t,n){return t===n}function LR(t=nIe){return yn((n,e)=>{let i=!1;n.subscribe(fn(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function nIe(){return new vh}function nH(t,n=1/0,e){return n=(n||0)<1?1/0:n,yn((i,r)=>RR(i,r,t,n,void 0,!0,e))}function Vs(t){return yn((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Bs(t,n){let e=arguments.length>=2;return i=>i.pipe(t?vi((r,o)=>t(r,o,i)):_c,cn(1),e?q_(n):LR(()=>new vh))}function WC(t){return t<=0?()=>ka:yn((n,e)=>{let i=[];n.subscribe(fn(e,r=>{i.push(r),t{for(let r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function rH(t,n){let e=arguments.length>=2;return i=>i.pipe(t?vi((r,o)=>t(r,o,i)):_c,WC(1),e?q_(n):LR(()=>new vh))}function oH(t=1/0){let n;t&&typeof t=="object"?n=t:n={count:t};let{count:e=1/0,delay:i,resetOnSuccess:r=!1}=n;return e<=0?_c:yn((o,a)=>{let s=0,l,u=()=>{let p=!1;l=o.subscribe(fn(a,g=>{r&&(s=0),a.next(g)},void 0,g=>{if(s++{l?(l.unsubscribe(),l=null,u()):p=!0};if(i!=null){let v=typeof i=="number"?gs(i):Ar(i(g,s)),y=fn(a,()=>{y.unsubscribe(),_()},()=>{a.complete()});v.subscribe(y)}else _()}else a.error(g)})),p&&(l.unsubscribe(),l=null,u())};u()})}function VR(t,n){return yn(zte(t,n,arguments.length>=2,!0))}function SD(t={}){let{connector:n=()=>new qe,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,u=0,p=!1,g=!1,_=()=>{s?.unsubscribe(),s=void 0},v=()=>{_(),a=l=void 0,p=g=!1},y=()=>{let x=a;v(),x?.unsubscribe()};return yn((x,I)=>{u++,!g&&!p&&_();let C=l=l??n();I.add(()=>{u--,u===0&&!g&&!p&&(s=aH(y,r))}),C.subscribe(I),!a&&u>0&&(a=new _h({next:D=>C.next(D),error:D=>{g=!0,_(),s=aH(v,e,D),C.error(D)},complete:()=>{p=!0,_(),s=aH(v,i),C.complete()}}),Ar(x).subscribe(a))})(o)}}function aH(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new _h({next:()=>{i.unsubscribe(),t()}});return Ar(n(...e)).subscribe(i)}function W_(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,SD({connector:()=>new Gg(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Fy(t){return vi((n,e)=>t<=e)}function kn(...t){let n=wf(t);return yn((e,i)=>{(n?If(t,e,n):If(t,e)).subscribe(i)})}function Wi(t,n){return yn((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(fn(i,l=>{r?.unsubscribe();let u=0,p=o++;Ar(t(l,p)).subscribe(r=fn(i,g=>i.next(n?n(l,g,p,u++):g),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Ft(t){return yn((n,e)=>{Ar(t).subscribe(fn(e,()=>e.complete(),gh)),!e.closed&&n.subscribe(e)})}function Wg(t,n=!1){return yn((e,i)=>{let r=0;e.subscribe(fn(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function ri(t,n,e){let i=jn(t)||n||e?{next:t,error:n,complete:e}:t;return i?yn((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(fn(o,l=>{var u;(u=i.next)===null||u===void 0||u.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var u;s=!1,(u=i.error)===null||u===void 0||u.call(i,l),o.error(l)},()=>{var l,u;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(u=i.finalize)===null||u===void 0||u.call(i)}))}):_c}function Gte(t,n){return yn((e,i)=>{let{leading:r=!0,trailing:o=!1}=n??{},a=!1,s=null,l=null,u=!1,p=()=>{l?.unsubscribe(),l=null,o&&(v(),u&&i.complete())},g=()=>{l=null,u&&i.complete()},_=y=>l=Ar(t(y)).subscribe(fn(i,p,g)),v=()=>{if(a){a=!1;let y=s;s=null,i.next(y),!u&&_(y)}};e.subscribe(fn(i,y=>{a=!0,s=y,!(l&&!l.closed)&&(r?v():_(y))},()=>{u=!0,!(o&&a&&l&&!l.closed)&&i.complete()}))})}function sH(t,n=zc,e){let i=gs(t,n);return Gte(()=>i,e)}var Oie="https://g.co/ng/security#xss",Kt=class extends Error{constructor(n,e){super(xP(n,e)),this.code=n}};function xP(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}var Lie=Symbol("InputSignalNode#UNSET"),rIe=Gi(Ve({},B8),{transformFn:void 0,applyValueToInputSignal(t,n){sR(t,n)}});function Vie(t,n){let e=Object.create(rIe);e.value=t,e.transformFn=n?.transform;function i(){if(iR(e),e.value===Lie)throw new Kt(-950,!1);return e.value}return i[hh]=e,i}function jD(t){return{toString:t}.toString()}var BR="__parameters__";function oIe(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function Bie(t,n,e){return jD(()=>{let i=oIe(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,u,p){let g=l.hasOwnProperty(BR)?l[BR]:Object.defineProperty(l,BR,{value:[]})[BR];for(;g.length<=p;)g.push(null);return(g[p]=g[p]||[]).push(a),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var es=globalThis;function va(t){for(let n in t)if(t[n]===va)return n;throw Error("Could not find renamed property on target object.")}function aIe(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ad(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ad).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(` `);return e===-1?n:n.substring(0,e)}function CH(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var sIe=va({__forward_ref__:va});function fr(t){return t.__forward_ref__=fr,t.toString=function(){return Ad(this())},t}function vc(t){return jie(t)?t():t}function jie(t){return typeof t=="function"&&t.hasOwnProperty(sIe)&&t.__forward_ref__===fr}function Ce(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ft(t){return{providers:t.providers||[],imports:t.imports||[]}}function CP(t){return $te(t,zie)||$te(t,Uie)}function Hie(t){return CP(t)!==null}function $te(t,n){return t.hasOwnProperty(n)?t[n]:null}function lIe(t){let n=t&&(t[zie]||t[Uie]);return n||null}function qte(t){return t&&(t.hasOwnProperty(Wte)||t.hasOwnProperty(cIe))?t[Wte]:null}var zie=va({\u0275prov:va}),Wte=va({\u0275inj:va}),Uie=va({ngInjectableDef:va}),cIe=va({ngInjectorDef:va}),ke=class{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=Ce({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Gie(t){return t&&!!t.\u0275providers}var dIe=va({\u0275cmp:va}),uIe=va({\u0275dir:va}),mIe=va({\u0275pipe:va}),pIe=va({\u0275mod:va}),JR=va({\u0275fac:va}),wD=va({__NG_ELEMENT_ID__:va}),Yte=va({__NG_ENV_ID__:va});function Su(t){return typeof t=="string"?t:t==null?"":String(t)}function hIe(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Su(t)}function fIe(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Kt(-200,t)}function N7(t,n){throw new Kt(-201,!1)}var eo=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(eo||{}),SH;function $ie(){return SH}function Cu(t){let n=SH;return SH=t,n}function qie(t,n,e){let i=CP(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&eo.Optional)return null;if(n!==void 0)return n;N7(t,"Injector")}var gIe={},DD=gIe,wH="__NG_DI_FLAG__",eP="ngTempTokenPath",_Ie="ngTokenPath",vIe=/\n/gm,bIe="\u0275",Kte="__source",ZC;function yIe(){return ZC}function Y_(t){let n=ZC;return ZC=t,n}function xIe(t,n=eo.Default){if(ZC===void 0)throw new Kt(-203,!1);return ZC===null?qie(t,void 0,n):ZC.get(t,n&eo.Optional?null:void 0,n)}function ae(t,n=eo.Default){return($ie()||xIe)(vc(t),n)}function Me(t,n=eo.Default){return ae(t,SP(n))}function SP(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function EH(t){let n=[];for(let e=0;e ");else if(typeof n=="object"){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+(typeof s=="string"?JSON.stringify(s):Ad(s)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(vIe,` `)}`}var Iu=Wie(Bie("Optional"),8);var bm=Wie(Bie("SkipSelf"),4);function Oy(t,n){let e=t.hasOwnProperty(JR);return e?t[JR]:null}function EIe(t,n,e){if(t.length!==n.length)return!1;for(let i=0;iArray.isArray(e)?O7(e,n):n(e))}function Yie(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function tP(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function DIe(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function wP(t,n,e){let i=HD(t,n);return i>=0?t[i|1]=e:(i=~i,TIe(t,i,n,e)),i}function lH(t,n){let e=HD(t,n);if(e>=0)return t[e|1]}function HD(t,n){return AIe(t,n,1)}function AIe(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<n){a=o-1;break}}}for(;o-1){let o;for(;++ro?g="":g=r[p+1].toLowerCase(),i&2&&u!==g){if(yh(i))return!1;a=!0}}}}return yh(i)||a}function yh(t){return(t&1)===0}function NIe(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!yh(a)&&(n+=Qte(o,r),r=""),i=a,o=o||!yh(i);e++}return r!==""&&(n+=Qte(o,r)),n}function HIe(t){return t.map(jIe).join(",")}function zIe(t){let n=[],e=[],i=1,r=2;for(;i{let n=rne(t),e=Gi(Ve({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qie.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Af.Emulated,styles:t.styles||wu,_:null,schemas:t.schemas||null,tView:null,id:""});one(e);let i=t.dependencies;return e.directiveDefs=Jte(i,!1),e.pipeDefs=Jte(i,!0),e.id=$Ie(e),e})}function UIe(t){return Kg(t)||V7(t)}function GIe(t){return t!==null}function gt(t){return jD(()=>({type:t.type,bootstrap:t.bootstrap||wu,declarations:t.declarations||wu,imports:t.imports||wu,exports:t.exports||wu,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Zte(t,n){if(t==null)return Yg;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s=ve.None;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o):(o=r,a=r),n?(e[o]=s!==ve.None?[i,s]:i,n[o]=a):e[o]=i}return e}function ze(t){return jD(()=>{let n=rne(t);return one(n),n})}function oi(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Kg(t){return t[dIe]||null}function V7(t){return t[uIe]||null}function tne(t){return t[mIe]||null}function ine(t){let n=Kg(t)||V7(t)||tne(t);return n!==null?n.standalone:!1}function nne(t,n){let e=t[pIe]||null;if(!e&&n===!0)throw new Error(`Type ${Ad(t)} does not have '\u0275mod' property.`);return e}function rne(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Yg,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||wu,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Zte(t.inputs,n),outputs:Zte(t.outputs),debugInfo:null}}function one(t){t.features?.forEach(n=>n(t))}function Jte(t,n){if(!t)return null;let e=n?tne:UIe;return()=>(typeof t=="function"?t():t).map(i=>e(i)).filter(GIe)}function $Ie(t){let n=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of e)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function $y(t){return{\u0275providers:t}}function qIe(...t){return{\u0275providers:ane(!0,t),\u0275fromNgModule:!0}}function ane(t,...n){let e=[],i=new Set,r,o=a=>{e.push(a)};return O7(n,a=>{let s=a;DH(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&sne(r,o),e}function sne(t,n){for(let e=0;e{n(o,i)})}}function DH(t,n,e,i){if(t=vc(t),!t)return!1;let r=null,o=qte(t),a=!o&&Kg(t);if(!o&&!a){let l=t.ngModule;if(o=qte(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let u of l)DH(u,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let u;try{O7(o.imports,p=>{DH(p,n,e,i)&&(u||=[],u.push(p))})}finally{}u!==void 0&&sne(u,n)}if(!s){let u=Oy(r)||(()=>new r);n({provide:r,useFactory:u,deps:wu},r),n({provide:Xie,useValue:r,multi:!0},r),n({provide:eS,useValue:()=>ae(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let u=t;B7(l,p=>{n(p,u)})}}else return!1;return r!==t&&t.providers!==void 0}function B7(t,n){for(let e of t)Gie(e)&&(e=e.\u0275providers),Array.isArray(e)?B7(e,n):n(e)}var WIe=va({provide:String,useValue:va});function lne(t){return t!==null&&typeof t=="object"&&WIe in t}function YIe(t){return!!(t&&t.useExisting)}function KIe(t){return!!(t&&t.useFactory)}function tS(t){return typeof t=="function"}function XIe(t){return!!t.useClass}var EP=new ke(""),qR={},QIe={},cH;function IP(){return cH===void 0&&(cH=new iP),cH}var Yl=class{},AD=class extends Yl{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,AH(n,a=>this.processProvider(a)),this.records.set(Kie,YC(void 0,this)),r.has("environment")&&this.records.set(Yl,YC(void 0,this));let o=this.records.get(EP);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Xie,wu,eo.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let n=Yr(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Yr(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();let e=Y_(this),i=Cu(void 0),r;try{return n()}finally{Y_(e),Cu(i)}}get(n,e=DD,i=eo.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Yte))return n[Yte](this);i=SP(i);let r,o=Y_(this),a=Cu(void 0);try{if(!(i&eo.SkipSelf)){let l=this.records.get(n);if(l===void 0){let u=iDe(n)&&CP(n);u&&this.injectableDefInScope(u)?l=YC(TH(n),qR):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l)}let s=i&eo.Self?IP():this.parent;return e=i&eo.Optional&&e===DD?null:e,s.get(n,e)}catch(s){if(s.name==="NullInjectorError"){if((s[eP]=s[eP]||[]).unshift(Ad(n)),o)throw s;return SIe(s,n,"R3InjectorError",this.source)}else throw s}finally{Cu(a),Y_(o)}}resolveInjectorInitializers(){let n=Yr(null),e=Y_(this),i=Cu(void 0),r;try{let o=this.get(eS,wu,eo.Self);for(let a of o)a()}finally{Y_(e),Cu(i),Yr(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push(Ad(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Kt(205,!1)}processProvider(n){n=vc(n);let e=tS(n)?n:vc(n&&n.provide),i=JIe(n);if(!tS(n)&&n.multi===!0){let r=this.records.get(e);r||(r=YC(void 0,qR,!0),r.factory=()=>EH(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){let i=Yr(null);try{return e.value===qR&&(e.value=QIe,e.value=e.factory()),typeof e.value=="object"&&e.value&&tDe(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Yr(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=vc(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function TH(t){let n=CP(t),e=n!==null?n.factory:Oy(t);if(e!==null)return e;if(t instanceof ke)throw new Kt(204,!1);if(t instanceof Function)return ZIe(t);throw new Kt(204,!1)}function ZIe(t){if(t.length>0)throw new Kt(204,!1);let e=lIe(t);return e!==null?()=>e.factory(t):()=>new t}function JIe(t){if(lne(t))return YC(void 0,t.useValue);{let n=cne(t);return YC(n,qR)}}function cne(t,n,e){let i;if(tS(t)){let r=vc(t);return Oy(r)||TH(r)}else if(lne(t))i=()=>vc(t.useValue);else if(KIe(t))i=()=>t.useFactory(...EH(t.deps||[]));else if(YIe(t))i=()=>ae(vc(t.useExisting));else{let r=vc(t&&(t.useClass||t.provide));if(eDe(t))i=()=>new r(...EH(t.deps));else return Oy(r)||TH(r)}return i}function YC(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function eDe(t){return!!t.deps}function tDe(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function iDe(t){return typeof t=="function"||typeof t=="object"&&t instanceof ke}function AH(t,n){for(let e of t)Array.isArray(e)?AH(e,n):e&&Gie(e)?AH(e.\u0275providers,n):n(e)}function Du(t,n){t instanceof AD&&t.assertNotDestroyed();let e,i=Y_(t),r=Cu(void 0);try{return n()}finally{Y_(i),Cu(r)}}function dne(){return $ie()!==void 0||yIe()!=null}function DP(t){if(!dne())throw new Kt(-203,!1)}function nDe(t){let n=es.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function rDe(t){return typeof t=="function"}var Ff=0,yr=1,or=2,bc=3,Ch=4,ym=5,iS=6,kD=7,Gc=8,nS=9,Sh=10,Fa=11,MD=12,eie=13,lS=14,pp=15,zD=16,KC=17,Xg=18,TP=19,une=20,K_=21,WR=22,Ly=23,yc=25,j7=1;var Vy=7,nP=8,rS=9,$c=10,H7=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(H7||{});function Py(t){return Array.isArray(t)&&typeof t[j7]=="object"}function Jg(t){return Array.isArray(t)&&t[j7]===!0}function z7(t){return(t.flags&4)!==0}function AP(t){return t.componentOffset>-1}function kP(t){return(t.flags&1)===1}function Qg(t){return!!t.template}function oDe(t){return(t[or]&512)!==0}var kH=class{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function mne(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}function Oi(){return pne}function pne(t){return t.type.prototype.ngOnChanges&&(t.setInput=sDe),aDe}Oi.ngInherit=!0;function aDe(){let t=fne(this),n=t?.current;if(n){let e=t.previous;if(e===Yg)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function sDe(t,n,e,i,r){let o=this.declaredInputs[i],a=fne(t)||lDe(t,{previous:Yg,current:null}),s=a.current||(a.current={}),l=a.previous,u=l[o];s[o]=new kH(u&&u.currentValue,e,l===Yg),mne(t,n,r,e)}var hne="__ngSimpleChanges__";function fne(t){return t[hne]||null}function lDe(t,n){return t[hne]=n}var tie=null;var Df=function(t,n,e){tie?.(t,n,e)},gne="svg",cDe="math",dDe=!1;function uDe(){return dDe}function kf(t){for(;Array.isArray(t);)t=t[Ff];return t}function mDe(t){for(;Array.isArray(t);){if(typeof t[j7]=="object")return t;t=t[Ff]}return null}function _ne(t,n){return kf(n[t])}function hp(t,n){return kf(n[t.index])}function U7(t,n){return t.data[n]}function G7(t,n){return t[n]}function Z_(t,n){let e=n[t];return Py(e)?e:e[Ff]}function pDe(t){return(t[or]&4)===4}function $7(t){return(t[or]&128)===128}function hDe(t){return Jg(t[bc])}function oS(t,n){return n==null?null:t[n]}function vne(t){t[KC]=0}function fDe(t){t[or]&1024||(t[or]|=1024,$7(t)&&FD(t))}function gDe(t,n){for(;t>0;)n=n[lS],t--;return n}function q7(t){return!!(t[or]&9216||t[Ly]?.dirty)}function MH(t){t[Sh].changeDetectionScheduler?.notify(1),q7(t)?FD(t):t[or]&64&&(uDe()?(t[or]|=1024,FD(t)):t[Sh].changeDetectionScheduler?.notify())}function FD(t){t[Sh].changeDetectionScheduler?.notify();let n=RD(t);for(;n!==null&&!(n[or]&8192||(n[or]|=8192,!$7(n)));)n=RD(n)}function bne(t,n){if((t[or]&256)===256)throw new Kt(911,!1);t[K_]===null&&(t[K_]=[]),t[K_].push(n)}function _De(t,n){if(t[K_]===null)return;let e=t[K_].indexOf(n);e!==-1&&t[K_].splice(e,1)}function RD(t){let n=t[bc];return Jg(n)?n[bc]:n}var kr={lFrame:Ine(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function vDe(){return kr.lFrame.elementDepthCount}function bDe(){kr.lFrame.elementDepthCount++}function yDe(){kr.lFrame.elementDepthCount--}function yne(){return kr.bindingsEnabled}function xne(){return kr.skipHydrationRootTNode!==null}function xDe(t){return kr.skipHydrationRootTNode===t}function CDe(){kr.skipHydrationRootTNode=null}function On(){return kr.lFrame.lView}function Pa(){return kr.lFrame.tView}function W(t){return kr.lFrame.contextLView=t,t[Gc]}function Y(t){return kr.lFrame.contextLView=null,t}function xc(){let t=Cne();for(;t!==null&&t.type===64;)t=t.parent;return t}function Cne(){return kr.lFrame.currentTNode}function SDe(){let t=kr.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function qy(t,n){let e=kr.lFrame;e.currentTNode=t,e.isParent=n}function W7(){return kr.lFrame.isParent}function Y7(){kr.lFrame.isParent=!1}function wDe(){return kr.lFrame.contextLView}function Wy(){let t=kr.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function K7(){return kr.lFrame.bindingIndex}function EDe(t){return kr.lFrame.bindingIndex=t}function J_(){return kr.lFrame.bindingIndex++}function UD(t){let n=kr.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function IDe(){return kr.lFrame.inI18n}function DDe(t,n){let e=kr.lFrame;e.bindingIndex=e.bindingRootIndex=t,FH(n)}function TDe(){return kr.lFrame.currentDirectiveIndex}function FH(t){kr.lFrame.currentDirectiveIndex=t}function X7(t){let n=kr.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Sne(){return kr.lFrame.currentQueryIndex}function Q7(t){kr.lFrame.currentQueryIndex=t}function ADe(t){let n=t[yr];return n.type===2?n.declTNode:n.type===1?t[ym]:null}function wne(t,n,e){if(e&eo.SkipSelf){let r=n,o=t;for(;r=r.parent,r===null&&!(e&eo.Host);)if(r=ADe(o),r===null||(o=o[lS],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=kr.lFrame=Ene();return i.currentTNode=n,i.lView=t,!0}function Z7(t){let n=Ene(),e=t[yr];kr.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Ene(){let t=kr.lFrame,n=t===null?null:t.child;return n===null?Ine(t):n}function Ine(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function Dne(){let t=kr.lFrame;return kr.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Tne=Dne;function J7(){let t=Dne();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function kDe(t){return(kr.lFrame.contextLView=gDe(t,kr.lFrame.contextLView))[Gc]}function Eh(){return kr.lFrame.selectedIndex}function By(t){kr.lFrame.selectedIndex=t}function cS(){let t=kr.lFrame;return U7(t.tView,t.selectedIndex)}function Na(){kr.lFrame.currentNamespace=gne}function e0(){MDe()}function MDe(){kr.lFrame.currentNamespace=null}function FDe(){return kr.lFrame.currentNamespace}var Ane=!0;function MP(){return Ane}function FP(t){Ane=t}function RDe(t,n,e){let{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){let a=pne(n);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function RP(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[KC]+=65536),(s>14>16&&(t[or]&3)===n&&(t[or]+=16384,iie(s,o)):iie(s,o)}var JC=-1,jy=class{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function NDe(t){return t instanceof jy}function ODe(t){return(t.flags&8)!==0}function LDe(t){return(t.flags&16)!==0}function Mne(t){return t!==JC}function rP(t){return t&32767}function VDe(t){return t>>16}function oP(t,n){let e=VDe(t),i=n;for(;e>0;)i=i[lS],e--;return i}var RH=!0;function aP(t){let n=RH;return RH=t,n}var BDe=256,Fne=BDe-1,Rne=5,jDe=0,Tf={};function HDe(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(wD)&&(i=e[wD]),i==null&&(i=e[wD]=jDe++);let r=i&Fne,o=1<>Rne)]|=o}function sP(t,n){let e=Pne(t,n);if(e!==-1)return e;let i=n[yr];i.firstCreatePass&&(t.injectorIndex=n.length,uH(i.data,t),uH(n,null),uH(i.blueprint,null));let r=ez(t,n),o=t.injectorIndex;if(Mne(r)){let a=rP(r),s=oP(r,n),l=s[yr].data;for(let u=0;u<8;u++)n[o+u]=s[a+u]|l[a+u]}return n[o+8]=r,o}function uH(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Pne(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ez(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=Bne(r),i===null)return JC;if(e++,r=r[lS],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return JC}function PH(t,n,e){HDe(t,n,e)}function zDe(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,g=i?s:s+p,_=r?s+p:u;for(let v=g;v<_;v++){let y=a[v];if(v=l&&y.type===e)return v}if(r){let v=a[l];if(v&&Qg(v)&&v.type===e)return l}return null}function Hy(t,n,e,i){let r=t[e],o=n.data;if(NDe(r)){let a=r;a.resolving&&fIe(hIe(o[e]));let s=aP(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?Cu(a.injectImpl):null,p=wne(t,i,eo.Default);try{r=t[e]=a.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&RDe(e,o[e],n)}finally{u!==null&&Cu(u),aP(s),a.resolving=!1,Tne()}}return r}function GDe(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(wD)?t[wD]:void 0;return typeof n=="number"?n>=0?n&Fne:$De:n}function nie(t,n,e){let i=1<>Rne)]&i)}function rie(t,n){return!(t&eo.Self)&&!(t&eo.Host&&n)}var Ny=class{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return Lne(this._tNode,this._lView,n,SP(i),e)}};function $De(){return new Ny(xc(),On())}function an(t){return jD(()=>{let n=t.prototype.constructor,e=n[JR]||NH(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[JR]||NH(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function NH(t){return jie(t)?()=>{let n=NH(vc(t));return n&&n()}:Oy(t)}function qDe(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[or]&2048&&!(a[or]&512);){let s=Vne(o,a,e,i|eo.Self,Tf);if(s!==Tf)return s;let l=o.parent;if(!l){let u=a[une];if(u){let p=u.get(e,Tf,i);if(p!==Tf)return p}l=Bne(a),a=a[lS]}o=l}return r}function Bne(t){let n=t[yr],e=n.type;return e===2?n.declTNode:e===1?t[ym]:null}function Sa(t){return zDe(xc(),t)}function oie(t,n=null,e=null,i){let r=jne(t,n,e,i);return r.resolveInjectorInitializers(),r}function jne(t,n=null,e=null,i,r=new Set){let o=[e||wu,qIe(t)];return i=i||(typeof t=="object"?void 0:Ad(t)),new AD(o,n||IP(),i||null,r)}var ao=(()=>{class t{static{this.THROW_IF_NOT_FOUND=DD}static{this.NULL=new iP}static create(e,i){if(Array.isArray(e))return oie({name:""},i,e,"");{let r=e.name??"";return oie({name:r},e.parent,e.providers,r)}}static{this.\u0275prov=Ce({token:t,providedIn:"any",factory:()=>ae(Kie)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();var WDe="ngOriginalError";function mH(t){return t[WDe]}var Sl=class{constructor(){this._console=console}handleError(n){let e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&mH(n);for(;e&&mH(e);)e=mH(e);return e||null}},Hne=new ke("",{providedIn:"root",factory:()=>Me(Sl).handleError.bind(void 0)}),ev=(()=>{class t{static{this.__NG_ELEMENT_ID__=YDe}static{this.__NG_ENV_ID__=e=>e}}return t})(),OH=class extends ev{constructor(n){super(),this._lView=n}onDestroy(n){return bne(this._lView,n),()=>_De(this._lView,n)}};function YDe(){return new OH(On())}var LH=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=Me(Sl,{optional:!0}),this.destroyRef=Me(ev),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new Kt(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?.indexOf(n);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed)throw new Kt(953,!1);if(this.listeners===null)return;let e=Yr(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{Yr(e)}}};function PP(t){return new LH}function aie(t,n){return Vie(t,n)}function KDe(t){return Vie(Lie,t)}var Yy=(aie.required=KDe,aie);function XDe(){return dS(xc(),On())}function dS(t,n){return new Xe(hp(t,n))}var Xe=(()=>{class t{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=XDe}}return t})();function QDe(t){return t instanceof Xe?t.nativeElement:t}var VH=class extends qe{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,dne()&&(this.destroyRef=Me(ev,{optional:!0})??void 0)}emit(n){let e=Yr(null);try{super.next(n)}finally{Yr(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=pH(o),r&&(r=pH(r)),a&&(a=pH(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof Ji&&n.add(s),s}};function pH(t){return n=>{setTimeout(t,void 0,n)}}var Ae=VH;function ZDe(){return this._results[Symbol.iterator]()}var js=class t{get changes(){return this._changes??=new Ae}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=ZDe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=IIe(n);(this._changesDetected=!EIe(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zne(t){return(t.flags&128)===128}var Une=new Map,JDe=0;function eTe(){return JDe++}function tTe(t){Une.set(t[TP],t)}function iTe(t){Une.delete(t[TP])}var sie="__ngContext__";function X_(t,n){Py(n)?(t[sie]=n[TP],tTe(n)):t[sie]=n}function Gne(t){return qne(t[MD])}function $ne(t){return qne(t[Ch])}function qne(t){for(;t!==null&&!Jg(t);)t=t[Ch];return t}var BH;function Wne(t){BH=t}function Yne(){if(BH!==void 0)return BH;if(typeof document<"u")return document;throw new Kt(210,!1)}var uS=new ke("",{providedIn:"root",factory:()=>nTe}),nTe="ng",tz=new ke(""),Oa=new ke("",{providedIn:"platform",factory:()=>"unknown"});var Zn=new ke(""),GD=new ke("",{providedIn:"root",factory:()=>Yne().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rTe="h",oTe="b";var aTe=()=>null;function iz(t,n,e=!1){return aTe(t,n,e)}var Kne=!1,sTe=new ke("",{providedIn:"root",factory:()=>Kne});var jR;function lTe(){if(jR===void 0&&(jR=null,es.trustedTypes))try{jR=es.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return jR}function NP(t){return lTe()?.createHTML(t)||t}var HR;function Xne(){if(HR===void 0&&(HR=null,es.trustedTypes))try{HR=es.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return HR}function lie(t){return Xne()?.createHTML(t)||t}function cie(t){return Xne()?.createScriptURL(t)||t}var Zg=class{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Oie})`}},jH=class extends Zg{getTypeName(){return"HTML"}},HH=class extends Zg{getTypeName(){return"Style"}},zH=class extends Zg{getTypeName(){return"Script"}},UH=class extends Zg{getTypeName(){return"URL"}},GH=class extends Zg{getTypeName(){return"ResourceURL"}};function fp(t){return t instanceof Zg?t.changingThisBreaksApplicationSecurity:t}function t0(t,n){let e=cTe(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Oie})`)}return e===n}function cTe(t){return t instanceof Zg&&t.getTypeName()||null}function Qne(t){return new jH(t)}function Zne(t){return new HH(t)}function Jne(t){return new zH(t)}function ere(t){return new UH(t)}function tre(t){return new GH(t)}function dTe(t){let n=new qH(t);return uTe()?new $H(n):n}var $H=class{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(NP(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}},qH=class{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=NP(n),e}};function uTe(){try{return!!new window.DOMParser().parseFromString(NP(""),"text/html")}catch{return!1}}var mTe=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function OP(t){return t=String(t),t.match(mTe)?t:"unsafe:"+t}function i0(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function $D(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var ire=i0("area,br,col,hr,img,wbr"),nre=i0("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rre=i0("rp,rt"),pTe=$D(rre,nre),hTe=$D(nre,i0("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),fTe=$D(rre,i0("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),die=$D(ire,hTe,fTe,pTe),ore=i0("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gTe=i0("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),_Te=i0("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),vTe=$D(ore,gTe,_Te),bTe=i0("script,style,template"),WH=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=CTe(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=xTe(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=uie(n).toLowerCase();if(!die.hasOwnProperty(e))return this.sanitizedSomething=!0,!bTe.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=uie(n).toLowerCase();die.hasOwnProperty(e)&&!ire.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(mie(n))}};function yTe(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function xTe(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw are(n);return n}function CTe(t){let n=t.firstChild;if(n&&yTe(t,n))throw are(n);return n}function uie(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function are(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var STe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wTe=/([^\#-~ |!])/g;function mie(t){return t.replace(/&/g,"&").replace(STe,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(wTe,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var zR;function nz(t,n){let e=null;try{zR=zR||dTe(t);let i=n?String(n):"";e=zR.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=zR.getInertBodyElement(i)}while(i!==o);let s=new WH().sanitizeChildren(pie(e)||e);return NP(s)}finally{if(e){let i=pie(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function pie(t){return"content"in t&&ETe(t)?t.content:null}function ETe(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var _s=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(_s||{});function qc(t){let n=rz();return n?lie(n.sanitize(_s.HTML,t)||""):t0(t,"HTML")?lie(fp(t)):nz(Yne(),Su(t))}function qo(t){let n=rz();return n?n.sanitize(_s.URL,t)||"":t0(t,"URL")?fp(t):OP(Su(t))}function tv(t){let n=rz();if(n)return cie(n.sanitize(_s.RESOURCE_URL,t)||"");if(t0(t,"ResourceURL"))return cie(fp(t));throw new Kt(904,!1)}function ITe(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?tv:qo}function sre(t,n,e){return ITe(n,e)(t)}function rz(){let t=On();return t&&t[Sh].sanitizer}var DTe=/^>|^->||--!>|)/g,ATe="\u200B$1\u200B";function kTe(t){return t.replace(DTe,n=>n.replace(TTe,ATe))}function Rf(t){return t.ownerDocument.defaultView}function qD(t){return t.ownerDocument}function lre(t){return t instanceof Function?t():t}function MTe(t){return(t??Me(ao)).get(Oa)==="browser"}var Mf=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Mf||{}),FTe;function oz(t,n){return FTe(t,n)}function XC(t,n,e,i,r){if(i!=null){let o,a=!1;Jg(i)?o=i:Py(i)&&(a=!0,i=i[Ff]);let s=kf(i);t===0&&e!==null?r==null?pre(n,e,s):lP(n,e,s,r||null,!0):t===1&&e!==null?lP(n,e,s,r||null,!0):t===2?YTe(n,s,a):t===3&&n.destroyNode(s),o!=null&&XTe(n,t,o,e,r)}}function RTe(t,n){return t.createText(n)}function PTe(t,n,e){t.setValue(n,e)}function NTe(t,n){return t.createComment(kTe(n))}function cre(t,n,e){return t.createElement(n,e)}function OTe(t,n){dre(t,n),n[Ff]=null,n[ym]=null}function LTe(t,n,e,i,r,o){i[Ff]=r,i[ym]=n,BP(t,i,e,1,r,o)}function dre(t,n){n[Sh].changeDetectionScheduler?.notify(1),BP(t,n,n[Fa],2,null,null)}function VTe(t){let n=t[MD];if(!n)return hH(t[yr],t);for(;n;){let e=null;if(Py(n))e=n[MD];else{let i=n[$c];i&&(e=i)}if(!e){for(;n&&!n[Ch]&&n!==t;)Py(n)&&hH(n[yr],n),n=n[bc];n===null&&(n=t),Py(n)&&hH(n[yr],n),e=n&&n[Ch]}n=e}}function BTe(t,n,e,i){let r=$c+i,o=e.length;i>0&&(e[r-1][Ch]=n),i0&&(t[e-1][Ch]=i[Ch]);let o=tP(t,$c+n);OTe(i[yr],i);let a=o[Xg];a!==null&&a.detachView(o[yr]),i[bc]=null,i[Ch]=null,i[or]&=-129}return i}function LP(t,n){if(!(n[or]&256)){let e=n[Fa];e.destroyNode&&BP(t,n,e,3,null,null),VTe(n)}}function hH(t,n){if(n[or]&256)return;let e=Yr(null);try{n[or]&=-129,n[or]|=256,n[Ly]&&V8(n[Ly]),zTe(t,n),HTe(t,n),n[yr].type===1&&n[Fa].destroy();let i=n[zD];if(i!==null&&Jg(n[bc])){i!==n[bc]&&ure(i,n);let r=n[Xg];r!==null&&r.detachView(t)}iTe(n)}finally{Yr(e)}}function HTe(t,n){let e=t.cleanup,i=n[kD];if(e!==null)for(let o=0;o=0?i[a]():i[-a].unsubscribe(),o+=2}else{let a=i[e[o+1]];e[o].call(a)}i!==null&&(n[kD]=null);let r=n[K_];if(r!==null){n[K_]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[i.directiveStart+r];if(o===Af.None||o===Af.Emulated)return null}return hp(i,e)}}function lP(t,n,e,i,r){t.insertBefore(n,e,i,r)}function pre(t,n,e){t.appendChild(n,e)}function hie(t,n,e,i,r){i!==null?lP(t,n,e,i,r):pre(t,n,e)}function GTe(t,n,e,i){t.removeChild(n,e,i)}function az(t,n){return t.parentNode(n)}function $Te(t,n){return t.nextSibling(n)}function hre(t,n,e){return WTe(t,n,e)}function qTe(t,n,e){return t.type&40?hp(t,e):null}var WTe=qTe,fie;function VP(t,n,e,i){let r=mre(t,i,n),o=n[Fa],a=i.parent||n[ym],s=hre(a,i,n);if(r!=null)if(Array.isArray(e))for(let l=0;lyc&&bre(t,n,yc,!1),Df(a?2:0,r),e(i,r)}finally{By(o),Df(a?3:1,r)}}function lz(t,n,e){if(z7(n)){let i=Yr(null);try{let r=n.directiveStart,o=n.directiveEnd;for(let a=r;anull;function o2e(t,n,e,i){let r=Tre(n);r.push(e),t.firstCreatePass&&Are(t).push(i,r.length-1)}function a2e(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return xne()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function gie(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;let a=n[o];if(a===void 0)continue;i??={};let s,l=ve.None;Array.isArray(a)?(s=a[0],l=a[1]):s=a;let u=o;if(r!==null){if(!r.hasOwnProperty(o))continue;u=r[o]}t===0?_ie(i,e,u,s,l):_ie(i,e,u,s)}return i}function _ie(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],r!==void 0&&o.push(r)}function s2e(t,n,e){let i=n.directiveStart,r=n.directiveEnd,o=t.data,a=n.attrs,s=[],l=null,u=null;for(let p=i;p0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function m2e(t,n,e,i){let r=e.directiveStart,o=e.directiveEnd;AP(e)&&b2e(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||sP(e,n),X_(i,n);let a=e.initialInputs;for(let s=r;s{FD(t.lView)},consumerOnSignalRead(){this.lView[Ly]=this}}),Nre=100;function Ore(t,n=!0,e=0){let i=t[Sh],r=i.rendererFactory,o=!1;o||r.begin?.();try{F2e(t,e)}catch(a){throw n&&Mre(t,a),a}finally{o||(r.end?.(),i.inlineEffectRunner?.flush())}}function F2e(t,n){QH(t,n);let e=0;for(;q7(t);){if(e===Nre)throw new Kt(103,!1);e++,QH(t,1)}}function R2e(t,n,e,i){let r=n[or];if((r&256)===256)return;let o=!1;!o&&n[Sh].inlineEffectRunner?.flush(),Z7(n);let a=null,s=null;!o&&P2e(t)&&(s=T2e(n),a=nR(s));try{vne(n),EDe(t.bindingStartIndex),e!==null&&Cre(t,n,e,2,i);let l=(r&3)===3;if(!o)if(l){let g=t.preOrderCheckHooks;g!==null&&YR(n,g,null)}else{let g=t.preOrderHooks;g!==null&&KR(n,g,0,null),dH(n,0)}if(N2e(n),Lre(n,0),t.contentQueries!==null&&Dre(t,n),!o)if(l){let g=t.contentCheckHooks;g!==null&&YR(n,g)}else{let g=t.contentHooks;g!==null&&KR(n,g,1),dH(n,1)}JTe(t,n);let u=t.components;u!==null&&Bre(n,u,0);let p=t.viewQuery;if(p!==null&&XH(2,p,i),!o)if(l){let g=t.viewCheckHooks;g!==null&&YR(n,g)}else{let g=t.viewHooks;g!==null&&KR(n,g,2),dH(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[WR]){for(let g of n[WR])g();n[WR]=null}o||(n[or]&=-73)}catch(l){throw FD(n),l}finally{s!==null&&(rR(s,a),k2e(s)),J7()}}function P2e(t){return t.type!==2}function Lre(t,n){for(let e=Gne(t);e!==null;e=$ne(e))for(let i=$c;i-1&&(PD(n,i),tP(e,i))}this._attachedToViewContainer=!1}LP(this._lView[yr],this._lView)}onDestroy(n){bne(this._lView,n)}markForCheck(){fz(this._cdRefInjectingView||this._lView)}detach(){this._lView[or]&=-129}reattach(){MH(this._lView),this._lView[or]|=128}detectChanges(){this._lView[or]|=1024,Ore(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Kt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,dre(this._lView[yr],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Kt(902,!1);this._appRef=n,MH(this._lView)}},Mn=(()=>{class t{static{this.__NG_ELEMENT_ID__=B2e}}return t})(),L2e=Mn,V2e=class extends L2e{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){let r=UP(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:i});return new zy(r)}};function B2e(){return $P(xc(),On())}function $P(t,n){return t.type&4?new V2e(n,t,dS(t,n)):null}var fNt=new RegExp(`^(\\d+)*(${oTe}|${rTe})*(.*)`);var j2e=()=>null;function OD(t,n){return j2e(t,n)}var aS=class{},ZH=class{},dP=class{};function H2e(t){let n=Error(`No component factory found for ${Ad(t)}.`);return n[z2e]=t,n}var z2e="ngComponent";var JH=class{resolveComponentFactory(n){throw H2e(n)}},xm=(()=>{class t{static{this.NULL=new JH}}return t})(),wh=class{},Sc=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>U2e()}}return t})();function U2e(){let t=On(),n=xc(),e=Z_(n.index,t);return(Py(e)?e:t)[Fa]}var G2e=(()=>{class t{static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>null})}}return t})(),fH={};var vie=new Set;function Pf(t){vie.has(t)||(vie.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function bie(...t){}function $2e(){let t=typeof es.requestAnimationFrame=="function",n=es[t?"requestAnimationFrame":"setTimeout"],e=es[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){let i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}var ht=class t{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ae(!1),this.onMicrotaskEmpty=new Ae(!1),this.onStable=new Ae(!1),this.onError=new Ae(!1),typeof Zone>"u")throw new Kt(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=$2e().nativeRequestAnimationFrame,Y2e(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new Kt(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new Kt(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,q2e,bie,bie);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},q2e={};function gz(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function W2e(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(es,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,e7(t),t.isCheckStableRunning=!0,gz(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),e7(t))}function Y2e(t){let n=()=>{W2e(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,s)=>{if(K2e(s))return e.invokeTask(r,o,a,s);try{return yie(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),xie(t)}},onInvoke:(e,i,r,o,a,s,l)=>{try{return yie(t),e.invoke(r,o,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),xie(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,e7(t),gz(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function e7(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function yie(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xie(t){t._nesting--,gz(t)}var t7=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ae,this.onMicrotaskEmpty=new Ae,this.onStable=new Ae,this.onError=new Ae}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function K2e(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}function X2e(t="zone.js",n){return t==="noop"?new t7:t==="zone.js"?new ht(n):t}var QC=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(QC||{}),Q2e={destroy(){}};function qP(t,n){!n&&DP(qP);let e=n?.injector??Me(ao);if(!MTe(e))return Q2e;Pf("NgAfterNextRender");let i=e.get(_z),r=i.handler??=new n7,o=n?.phase??QC.MixedReadWrite,a=()=>{r.unregister(l),s()},s=e.get(ev).onDestroy(a),l=Du(e,()=>new i7(o,()=>{a(),t()}));return r.register(l),{destroy:a}}var i7=class{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=Me(ht),this.errorHandler=Me(Sl,{optional:!0}),Me(aS,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}},n7=class{constructor(){this.executingCallbacks=!1,this.buckets={[QC.EarlyRead]:new Set,[QC.Write]:new Set,[QC.MixedReadWrite]:new Set,[QC.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(let n of Object.values(this.buckets))for(let e of n)e.invoke();this.executingCallbacks=!1;for(let n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(let n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}},_z=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>new t})}}return t})();function uP(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&_re(t,e,o.join(" "))}}function rAe(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static{this.__NG_ELEMENT_ID__=aAe}}return t})();function aAe(){let t=xc();return Hre(t,On())}var sAe=Er,jre=class extends sAe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return dS(this._hostTNode,this._hostLView)}get injector(){return new Ny(this._hostTNode,this._hostLView)}get parentInjector(){let n=ez(this._hostTNode,this._hostLView);if(Mne(n)){let e=oP(n,this._hostLView),i=rP(n),r=e[yr].data[i+8];return new Ny(r,e)}else return new Ny(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=Sie(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-$c}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=OD(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,ND(this._hostTNode,a)),s}createComponent(n,e,i,r,o){let a=n&&!rDe(n),s;if(a)s=e;else{let y=e||{};s=y.index,i=y.injector,r=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}let l=a?n:new Uy(Kg(n)),u=i||this.parentInjector;if(!o&&l.ngModule==null){let x=(a?u:this.parentInjector).get(Yl,null);x&&(o=x)}let p=Kg(l.componentType??{}),g=OD(this._lContainer,p?.id??null),_=g?.firstChild??null,v=l.create(u,r,_,o);return this.insertImpl(v.hostView,s,ND(this._hostTNode,g)),v}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(hDe(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[bc],u=new jre(l,l[ym],l[bc]);u.detach(u.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return GP(a,r,o,i),n.attachToViewContainerRef(),Yie(gH(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=Sie(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=PD(this._lContainer,e);i&&(tP(gH(this._lContainer),e),LP(i[yr],i))}detach(n){let e=this._adjustIndex(n,-1),i=PD(this._lContainer,e);return i&&tP(gH(this._lContainer),e)!=null?new zy(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function Sie(t){return t[nP]}function gH(t){return t[nP]||(t[nP]=[])}function Hre(t,n){let e,i=n[t.index];return Jg(i)?e=i:(e=Ire(i,n,null,t),n[t.index]=e,HP(n,e)),cAe(e,n,t,i),new jre(e,t,n)}function lAe(t,n){let e=t[Fa],i=e.createComment(""),r=hp(n,t),o=az(e,r);return lP(e,o,i,$Te(e,r),!1),i}var cAe=mAe,dAe=()=>!1;function uAe(t,n,e){return dAe(t,n,e)}function mAe(t,n,e,i){if(t[Vy])return;let r;e.type&8?r=kf(i):r=lAe(n,e),t[Vy]=r}var a7=class t{constructor(n){this.queryList=n,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},s7=class t{constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let u=o[s+1],p=n[-l];for(let g=$c;gn.trim())}function Gre(t,n,e){t.queries===null&&(t.queries=new l7),t.queries.track(new c7(n,e))}function xAe(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function vz(t,n){return t.queries.getByIndex(n)}function CAe(t,n){let e=t[yr],i=vz(e,n);return i.crossesNgTemplate?d7(e,t,n,[]):zre(e,t,i,n)}function WP(t){return typeof t=="function"&&t[hh]!==void 0}function iv(t,n){Pf("NgSignals");let e=pte(t),i=e[hh];return n?.equal&&(i.equal=n.equal),e.set=r=>sR(i,r),e.update=r=>hte(i,r),e.asReadonly=SAe.bind(e),e}function SAe(){let t=this[hh];if(t.readonlyFn===void 0){let n=()=>this();n[hh]=t,t.readonlyFn=n}return t.readonlyFn}function $re(t){return WP(t)&&typeof t.set=="function"}function wAe(t){let n=[],e=new Map;function i(r){let o=e.get(r);if(!o){let a=t(r);e.set(r,o=a.then(TAe))}return o}return hP.forEach((r,o)=>{let a=[];r.templateUrl&&a.push(i(r.templateUrl).then(u=>{r.template=u}));let s=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=s,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let u=r.styles.length,p=r.styleUrls;r.styleUrls.forEach((g,_)=>{s.push(""),a.push(i(g).then(v=>{s[u+_]=v,p.splice(p.indexOf(g),1),p.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&a.push(i(r.styleUrl).then(u=>{s.push(u),r.styleUrl=void 0}));let l=Promise.all(a).then(()=>AAe(o));n.push(l)}),IAe(),Promise.all(n).then(()=>{})}var hP=new Map,EAe=new Set;function IAe(){let t=hP;return hP=new Map,t}function DAe(){return hP.size===0}function TAe(t){return typeof t=="string"?t:t.text()}function AAe(t){EAe.delete(t)}function kAe(t){return Object.getPrototypeOf(t.prototype).constructor}function qt(t){let n=kAe(t.type),e=!0,i=[t];for(;n;){let r;if(Qg(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Kt(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=UR(t.inputs),a.inputTransforms=UR(t.inputTransforms),a.declaredInputs=UR(t.declaredInputs),a.outputs=UR(t.outputs);let s=r.hostBindings;s&&NAe(t,s);let l=r.viewQuery,u=r.contentQueries;if(l&&RAe(t,l),u&&PAe(t,u),MAe(t,r),aIe(t.outputs,r.outputs),Qg(r)&&r.data.animation){let p=t.data;p.animation=(p.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=TD(r.hostAttrs,e=TD(e,r.hostAttrs))}}function UR(t){return t===Yg?{}:t===wu?[]:t}function RAe(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function PAe(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function NAe(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function qre(t){let n=e=>{let i=(Array.isArray(t)?t:t()).map(r=>typeof r=="function"?{directive:vc(r),inputs:Yg,outputs:Yg}:{directive:vc(r.directive),inputs:wie(r.inputs),outputs:wie(r.outputs)});e.hostDirectives===null?(e.findHostDirectiveDefs=Wre,e.hostDirectives=i):e.hostDirectives.unshift(...i)};return n.ngInherit=!0,n}function Wre(t,n,e){if(t.hostDirectives!==null)for(let i of t.hostDirectives){let r=V7(i.directive);OAe(r.declaredInputs,i.inputs),Wre(r,n,e),e.set(r,i),n.push(r)}}function wie(t){if(t===void 0||t.length===0)return Yg;let n={};for(let e=0;ee()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},gP=class extends LD{constructor(n){super(),this.moduleType=n}create(n){return new fP(this.moduleType,n,[])}};function LAe(t,n,e){return new fP(t,n,e)}var u7=class extends Q_{constructor(n){super(),this.componentFactoryResolver=new mP(this),this.instance=null;let e=new AD([...n.providers,{provide:Q_,useValue:this},{provide:xm,useValue:this.componentFactoryResolver}],n.parent||IP(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function YP(t,n,e=null){return new u7({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var nv=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Tr(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Yre(t){return bz(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function VAe(t,n){if(Array.isArray(t))for(let e=0;e>17&32767}function WAe(t){return(t&2)==2}function YAe(t,n){return t&131071|n<<17}function m7(t){return t|2}function sS(t){return(t&131068)>>2}function _H(t,n){return t&-131069|n<<2}function KAe(t){return(t&1)===1}function p7(t){return t|1}function XAe(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=Gy(a),l=sS(a);t[i]=e;let u=!1,p;if(Array.isArray(e)){let g=e;p=g[1],(p===null||HD(g,p)>0)&&(u=!0)}else p=e;if(r)if(l!==0){let _=Gy(t[s+1]);t[i+1]=GR(_,s),_!==0&&(t[_+1]=_H(t[_+1],i)),t[s+1]=YAe(t[s+1],i)}else t[i+1]=GR(s,0),s!==0&&(t[s+1]=_H(t[s+1],i)),s=i;else t[i+1]=GR(l,0),s===0?s=i:t[l+1]=_H(t[l+1],i),l=i;u&&(t[i+1]=m7(t[i+1])),Eie(t,p,i,!0),Eie(t,p,i,!1),QAe(n,p,t,i,o),a=GR(s,l),o?n.classBindings=a:n.styleBindings=a}function QAe(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&HD(o,n)>=0&&(e[i+1]=p7(e[i+1]))}function Eie(t,n,e,i){let r=t[e+1],o=n===null,a=i?Gy(r):sS(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],u=t[a+1];ZAe(l,n)&&(s=!0,t[a+1]=i?p7(u):m7(u)),a=i?Gy(u):sS(u)}s&&(t[e+1]=i?m7(r):p7(r))}function ZAe(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?HD(t,n)>=0:!1}var xh={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JAe(t){return t.substring(xh.key,xh.keyEnd)}function eke(t){return tke(t),Qre(t,Zre(t,0,xh.textEnd))}function Qre(t,n){let e=xh.textEnd;return e===n?-1:(n=xh.keyEnd=ike(t,xh.key=n,e),Zre(t,n,e))}function tke(t){xh.key=0,xh.keyEnd=0,xh.value=0,xh.valueEnd=0,xh.textEnd=t.length}function Zre(t,n,e){for(;n32;)n++;return n}function f(t,n,e){let i=On(),r=J_();if(Eu(i,r,n)){let o=Pa(),a=cS();WD(o,a,i,t,n,i[Fa],e,!1)}return f}function h7(t,n,e,i,r){let o=n.inputs,a=r?"class":"style";pz(t,e,o[a],a,i)}function Vo(t,n,e){return eoe(t,n,e,!1),Vo}function yt(t,n){return eoe(t,n,null,!0),yt}function In(t){toe(lke,Jre,t,!0)}function Jre(t,n){for(let e=eke(n);e>=0;e=Qre(n,e))wP(t,JAe(n),!0)}function eoe(t,n,e,i){let r=On(),o=Pa(),a=UD(2);if(o.firstUpdatePass&&noe(o,t,a,i),n!==Cc&&Eu(r,a,n)){let s=o.data[Eh()];roe(o,s,r,r[Fa],t,r[a+1]=dke(n,e),i,a)}}function toe(t,n,e,i){let r=Pa(),o=UD(2);r.firstUpdatePass&&noe(r,null,o,i);let a=On();if(e!==Cc&&Eu(a,o,e)){let s=r.data[Eh()];if(ooe(s,i)&&!ioe(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=CH(l,e||"")),h7(r,s,a,e,i)}else cke(r,s,a,a[Fa],a[o+1],a[o+1]=ske(t,n,e),i,o)}}function ioe(t,n){return n>=t.expandoStartIndex}function noe(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Eh()],a=ioe(t,e);ooe(o,i)&&n===null&&!a&&(n=!1),n=nke(r,o,n,i),XAe(r,o,n,e,a,i)}}function nke(t,n,e,i){let r=X7(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=vH(null,t,n,e,i),e=BD(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=vH(r,t,n,e,i),o===null){let l=rke(t,n,i);l!==void 0&&Array.isArray(l)&&(l=vH(null,t,n,l[1],i),l=BD(l,n.attrs,i),oke(t,n,i,l))}else o=ake(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function rke(t,n,e){let i=e?n.classBindings:n.styleBindings;if(sS(i)!==0)return t[Gy(i)]}function oke(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[Gy(r)]=i}function ake(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],u=Array.isArray(l),p=u?l[1]:l,g=p===null,_=e[r+1];_===Cc&&(_=g?wu:void 0);let v=g?lH(_,i):p===i?_:void 0;if(u&&!_P(v)&&(v=lH(l,i)),_P(v)&&(s=v,a))return s;let y=t[r+1];r=a?Gy(y):sS(y)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=lH(l,i))}return s}function _P(t){return t!==void 0}function dke(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Ad(fp(t)))),t}function ooe(t,n){return(t.flags&(n?8:16))!==0}function Cm(t,n,e){let i=On(),r=yz(i,t,n,e);toe(wP,Jre,r,!0)}var f7=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function bH(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function uke(t,n,e){let i,r,o=0,a=t.length-1;if(Array.isArray(n)){let s=n.length-1;for(;o<=a&&o<=s;){let l=t.at(o),u=n[o],p=bH(o,l,o,u,e);if(p!==0){p<0&&t.updateValue(o,u),o++;continue}let g=t.at(a),_=n[s],v=bH(a,g,s,_,e);if(v!==0){v<0&&t.updateValue(a,_),a--,s--;continue}let y=e(o,l),x=e(a,g),I=e(o,u);if(Object.is(I,x)){let C=e(s,_);Object.is(C,y)?(t.swap(o,a),t.updateValue(a,_),s--,a--):t.move(a,o),t.updateValue(o,u),o++;continue}if(i??=new vP,r??=Tie(t,o,a,e),g7(t,i,o,I))t.updateValue(o,u),o++,a++;else if(r.has(I))i.set(y,t.detach(o)),a--;else{let C=t.create(o,n[o]);t.attach(o,C),o++,a++}}for(;o<=s;)Die(t,i,e,o,n[o]),o++}else if(n!=null){let s=n[Symbol.iterator](),l=s.next();for(;!l.done&&o<=a;){let u=t.at(o),p=l.value,g=bH(o,u,o,p,e);if(g!==0)g<0&&t.updateValue(o,p),o++,l=s.next();else{i??=new vP,r??=Tie(t,o,a,e);let _=e(o,p);if(g7(t,i,o,_))t.updateValue(o,p),o++,a++,l=s.next();else if(!r.has(_))t.attach(o,t.create(o,p)),o++,a++,l=s.next();else{let v=e(o,u);i.set(v,t.detach(o)),a--}}}for(;!l.done;)Die(t,i,e,t.length,l.value),l=s.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(s=>{t.destroy(s)})}function g7(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function Die(t,n,e,i,r){if(g7(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function Tie(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var vP=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function Xt(t,n,e){Pf("NgControlFlow");let i=On(),r=J_(),o=y7(i,yc+t),a=0;if(Eu(i,r,n)){let s=Yr(null);try{if(Rre(o,a),n!==-1){let l=x7(i[yr],yc+n),u=OD(o,l.tView.ssrId),p=UP(i,l,e,{dehydratedView:u});GP(o,p,a,ND(l,u))}}finally{Yr(s)}}else{let s=Fre(o,a);s!==void 0&&(s[Gc]=e)}}var _7=class{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-$c}};function kd(t,n){return n}var v7=class{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function Md(t,n,e,i,r,o,a,s,l,u,p,g,_){Pf("NgControlFlow");let v=l!==void 0,y=On(),x=s?a.bind(y[pp][Gc]):a,I=new v7(v,x);y[yc+t]=I,k(t+1,n,e,i,r,o),v&&k(t+2,l,u,p,g,_)}var b7=class extends f7{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-$c}at(n){return this.getLView(n)[Gc].$implicit}attach(n,e){let i=e[iS];this.needsIndexUpdate||=n!==this.length,GP(this.lContainer,e,n,ND(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,mke(this.lContainer,n)}create(n,e){let i=OD(this.lContainer,this.templateTNode.tView.ssrId);return UP(this.hostLView,this.templateTNode,new _7(this.lContainer,e,n),{dehydratedView:i})}destroy(n){LP(n[yr],n)}updateValue(n,e){this.getLView(n)[Gc].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n(FP(!0),cre(i,r,FDe()));function gke(t,n,e,i,r){let o=n.consts,a=oS(o,i),s=mS(n,t,8,"ng-container",a);a!==null&&uP(s,a,!0);let l=oS(o,r);return mz(n,e,s,l),n.queries!==null&&n.queries.elementStart(n,s),s}function he(t,n,e){let i=On(),r=Pa(),o=t+yc,a=r.firstCreatePass?gke(o,r,i,n,e):r.data[o];qy(a,!0);let s=_ke(r,i,a,t);return i[o]=s,MP()&&VP(r,i,s,a),X_(s,i),kP(a)&&(cz(r,i,a),lz(r,a,i)),e!=null&&dz(i,a),he}function fe(){let t=xc(),n=Pa();return W7()?Y7():(t=t.parent,qy(t,!1)),n.firstCreatePass&&(RP(n,t),z7(t)&&n.queries.elementEnd(t)),fe}function dn(t,n,e){return he(t,n,e),fe(),dn}var _ke=(t,n,e,i)=>(FP(!0),NTe(n[Fa],""));function ie(){return On()}function La(t,n,e){let i=On(),r=J_();if(Eu(i,r,n)){let o=Pa(),a=cS();WD(o,a,i,t,n,i[Fa],e,!0)}return La}function Xy(t,n,e){let i=On(),r=J_();if(Eu(i,r,n)){let o=Pa(),a=cS(),s=X7(o.data),l=kre(s,a,i);WD(o,a,i,t,n,l,e,!0)}return Xy}var Ry=void 0;function vke(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var bke=["en",[["a","p"],["AM","PM"],Ry],[["AM","PM"],Ry,Ry],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ry,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ry,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ry,"{1} 'at' {0}",Ry],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",vke],ED={};function aoe(t,n,e){typeof n!="string"&&(e=n,n=t[Ra.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),ED[n]=t,e&&(ED[n][Ra.ExtraData]=e)}function Tu(t){let n=yke(t),e=Aie(n);if(e)return e;let i=n.split("-")[0];if(e=Aie(i),e)return e;if(i==="en")return bke;throw new Kt(701,!1)}function Aie(t){return t in ED||(ED[t]=es.ng&&es.ng.common&&es.ng.common.locales&&es.ng.common.locales[t]),ED[t]}var Ra=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ra||{});function yke(t){return t.toLowerCase().replace(/_/g,"-")}var bP="en-US",xke="USD";var Cke=bP;function Ske(t){typeof t=="string"&&(Cke=t.toLowerCase().replace(/_/g,"-"))}function $(t,n,e,i){let r=On(),o=Pa(),a=xc();return xz(o,r,r[Fa],a,t,n,i),$}function Qy(t,n){let e=xc(),i=On(),r=Pa(),o=X7(r.data),a=kre(o,e,i);return xz(r,i,a,e,t,n),Qy}function wke(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function xz(t,n,e,i,r,o,a){let s=kP(i),u=t.firstCreatePass&&Are(t),p=n[Gc],g=Tre(n),_=!0;if(i.type&3||a){let x=hp(i,n),I=a?a(x):x,C=g.length,D=a?M=>a(kf(M[i.index])):i.index,A=null;if(!a&&s&&(A=wke(t,n,r,i.index)),A!==null){let M=A.__ngLastListenerFn__||A;M.__ngNextListenerFn__=o,A.__ngLastListenerFn__=o,_=!1}else{o=Mie(i,n,p,o,!1);let M=e.listen(I,r,o);g.push(o,M),u&&u.push(r,D,C,C+1)}}else o=Mie(i,n,p,o,!1);let v=i.outputs,y;if(_&&v!==null&&(y=v[r])){let x=y.length;if(x)for(let I=0;I-1?Z_(t.index,n):n;fz(s);let l=kie(n,e,i,a),u=o.__ngNextListenerFn__;for(;u;)l=kie(n,e,u,a)&&l,u=u.__ngNextListenerFn__;return r&&l===!1&&a.preventDefault(),l}}function S(t=1){return kDe(t)}function Eke(t,n){let e=null,i=OIe(t);for(let r=0;r=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}function je(t){let n=wDe();return G7(n,yc+t)}function h(t,n=""){let e=On(),i=Pa(),r=t+yc,o=i.firstCreatePass?mS(i,r,1,n,null):i.data[r],a=Dke(i,e,o,n,t);e[r]=a,MP()&&VP(i,e,a,o),qy(o,!1)}var Dke=(t,n,e,i,r)=>(FP(!0),RTe(n[Fa],i));function U(t){return ue("",t,""),U}function ue(t,n,e){let i=On(),r=yz(i,t,n,e);return r!==Cc&&zP(i,Eh(),r),ue}function Do(t,n,e,i,r){let o=On(),a=GAe(o,t,n,e,i,r);return a!==Cc&&zP(o,Eh(),a),Do}function KD(t,n,e,i,r,o,a){let s=On(),l=$Ae(s,t,n,e,i,r,o,a);return l!==Cc&&zP(s,Eh(),l),KD}function Ih(t,n,e,i,r,o,a,s,l){let u=On(),p=qAe(u,t,n,e,i,r,o,a,s,l);return p!==Cc&&zP(u,Eh(),p),Ih}function en(t,n,e){$re(n)&&(n=n());let i=On(),r=J_();if(Eu(i,r,n)){let o=Pa(),a=cS();WD(o,a,i,t,n,i[Fa],e,!1)}return en}function nn(t,n){let e=$re(t);return e&&t.set(n),e}function tn(t,n){let e=On(),i=Pa(),r=xc();return xz(i,e,e[Fa],r,t,n),tn}function Tke(t,n,e){let i=Pa();if(i.firstCreatePass){let r=Qg(t);C7(e,i.data,i.blueprint,r,!0),C7(n,i.data,i.blueprint,r,!1)}}function C7(t,n,e,i,r){if(t=vc(t),Array.isArray(t))for(let o=0;o>20;if(tS(t)||!t.multi){let v=new jy(u,r,E),y=xH(l,n,r?p:p+_,g);y===-1?(PH(sP(s,a),o,l),yH(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(v),a.push(v)):(e[y]=v,a[y]=v)}else{let v=xH(l,n,p+_,g),y=xH(l,n,p,p+_),x=v>=0&&e[v],I=y>=0&&e[y];if(r&&!I||!r&&!x){PH(sP(s,a),o,l);let C=Mke(r?kke:Ake,e.length,r,i,u);!r&&I&&(e[y].providerFactory=C),yH(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(C),a.push(C)}else{let C=loe(e[r?y:v],u,!r&&i);yH(o,t,v>-1?v:y,C)}!r&&i&&I&&e[y].componentProviders++}}}function yH(t,n,e,i){let r=tS(n),o=XIe(n);if(r||o){let l=(o?vc(n.useClass):n).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let p=u.indexOf(e);p===-1?u.push(e,[i,l]):u[p+1].push(i,l)}else u.push(e,l)}}}function loe(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function xH(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>Tke(i,r?r(t):t,n)}}var Fke=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=ane(!1,e.type),r=i.length>0?YP([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=Ce({token:t,providedIn:"environment",factory:()=>new t(ae(Yl))})}}return t})();function Dt(t){Pf("NgStandalone"),t.getStandaloneInjector=n=>n.get(Fke).getOrCreateStandaloneInjector(t)}function Wo(t,n,e){let i=Wy()+t,r=On();return r[i]===Cc?YD(r,i,e?n.call(e):n()):BAe(r,i)}function Le(t,n,e,i){return uoe(On(),Wy(),t,n,e,i)}function so(t,n,e,i,r){return moe(On(),Wy(),t,n,e,i,r)}function coe(t,n,e,i,r,o){return Rke(On(),Wy(),t,n,e,i,r,o)}function doe(t,n,e,i,r,o,a){return Pke(On(),Wy(),t,n,e,i,r,o,a)}function KP(t,n){let e=t[n];return e===Cc?void 0:e}function uoe(t,n,e,i,r,o){let a=n+e;return Eu(t,a,r)?YD(t,a+1,o?i.call(o,r):i(r)):KP(t,a+1)}function moe(t,n,e,i,r,o,a){let s=n+e;return VD(t,s,r,o)?YD(t,s+2,a?i.call(a,r,o):i(r,o)):KP(t,s+2)}function Rke(t,n,e,i,r,o,a,s){let l=n+e;return Kre(t,l,r,o,a)?YD(t,l+3,s?i.call(s,r,o,a):i(r,o,a)):KP(t,l+3)}function Pke(t,n,e,i,r,o,a,s,l){let u=n+e;return Xre(t,u,r,o,a,s)?YD(t,u+4,l?i.call(l,r,o,a,s):i(r,o,a,s)):KP(t,u+4)}function ce(t,n){let e=Pa(),i,r=t+yc;e.firstCreatePass?(i=Nke(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];let o=i.factory||(i.factory=Oy(i.type,!0)),a,s=Cu(E);try{let l=aP(!1),u=o();return aP(l),Ike(e,On(),r,u),u}finally{Cu(s)}}function Nke(t,n){if(n)for(let e=n.length-1;e>=0;e--){let i=n[e];if(t===i.name)return i}}function xe(t,n,e){let i=t+yc,r=On(),o=G7(r,i);return poe(r,i)?uoe(r,Wy(),n,o.transform,e,o):o.transform(e)}function Bt(t,n,e,i){let r=t+yc,o=On(),a=G7(o,r);return poe(o,r)?moe(o,Wy(),n,a.transform,e,i,a):a.transform(e,i)}function poe(t,n){return t[yr].data[n].pure}function Ii(t,n){return $P(t,n)}var $R=null;function Oke(t){$R!==null&&(t.defaultEncapsulation!==$R.defaultEncapsulation||t.preserveWhitespaces!==$R.preserveWhitespaces)||($R=t)}var XP=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();var Cz=new ke(""),XD=new ke(""),QP=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Sz||(Lke(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ht.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static{this.\u0275fac=function(i){return new(i||t)(ae(ht),ae(ZP),ae(XD))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),ZP=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Sz?.findTestabilityInTree(this,e,i)??null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function Lke(t){Sz=t}var Sz;function rv(t){return!!t&&typeof t.then=="function"}function wz(t){return!!t&&typeof t.subscribe=="function"}var gp=new ke(""),hoe=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=Me(gp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=r();if(rv(o))e.push(o);else if(wz(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),JP=new ke("");function Vke(){mte(()=>{throw new Kt(600,!1)})}function Bke(t){return t.isBoundToModule}function jke(t,n,e){try{let i=e();return rv(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}function foe(t,n){return Array.isArray(n)?n.reduce(foe,t):Ve(Ve({},t),n)}var Wc=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Me(Hne),this.afterRenderEffectManager=Me(_z),this.externalTestViews=new Set,this.beforeRender=new qe,this.afterTick=new qe,this.componentTypes=[],this.components=[],this.isStable=Me(nv).hasPendingTasks.pipe(st(e=>!e)),this._injector=Me(Yl)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){let r=e instanceof dP;if(!this._injector.get(hoe).done){let _=!r&&ine(e),v=!1;throw new Kt(405,v)}let a;r?a=e:a=this._injector.get(xm).resolveComponentFactory(e),this.componentTypes.push(a.componentType);let s=Bke(a)?void 0:this._injector.get(Q_),l=i||a.selector,u=a.create(ao.NULL,[],l,s),p=u.location.nativeElement,g=u.injector.get(Cz,null);return g?.registerApplication(p),u.onDestroy(()=>{this.detachView(u.hostView),ZR(this.components,u),g?.unregisterApplication(p)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new Kt(101,!1);let i=Yr(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,Yr(i)}}detectChangesInAttachedViews(e){let i=0,r=this.afterRenderEffectManager;for(;;){if(i===Nre)throw new Kt(103,!1);if(e){let o=i===0;this.beforeRender.next(o);for(let{_lView:a,notifyErrorHandler:s}of this._views)Hke(a,o,s)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>w7(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>w7(o))))break}}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;ZR(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);let i=this._injector.get(JP,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>ZR(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Kt(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ZR(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function Hke(t,n,e){!n&&!w7(t)||zke(t,e,n)}function w7(t){return q7(t)}function zke(t,n,e){let i;e?(i=0,t[or]|=1024):t[or]&64?i=0:i=1,Ore(t,n,i)}var E7=class{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},e3=(()=>{class t{compileModuleSync(e){return new gP(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let i=this.compileModuleSync(e),r=nne(e),o=lre(r.declarations).reduce((a,s)=>{let l=Kg(s);return l&&a.push(new Uy(l)),a},[]);return new E7(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uke=new ke("");function Gke(t,n,e){let i=new gP(e);return Promise.resolve(i)}function Fie(t){for(let n=t.length-1;n>=0;n--)if(t[n]!==void 0)return t[n]}var $ke=(()=>{class t{constructor(){this.zone=Me(ht),this.applicationRef=Me(Wc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function qke(t){return[{provide:ht,useFactory:t},{provide:eS,multi:!0,useFactory:()=>{let n=Me($ke,{optional:!0});return()=>n.initialize()}},{provide:eS,multi:!0,useFactory:()=>{let n=Me(Kke);return()=>{n.initialize()}}},{provide:Hne,useFactory:Wke}]}function Wke(){let t=Me(ht),n=Me(Sl);return e=>t.runOutsideAngular(()=>n.handleError(e))}function Yke(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var Kke=(()=>{class t{constructor(){this.subscription=new Ji,this.initialized=!1,this.zone=Me(ht),this.pendingTasks=Me(nv)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ht.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ht.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Xke(){return typeof $localize<"u"&&$localize.locale||bP}var Dh=new ke("",{providedIn:"root",factory:()=>Me(Dh,eo.Optional|eo.SkipSelf)||Xke()}),goe=new ke("",{providedIn:"root",factory:()=>xke});var _oe=new ke(""),voe=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){let r=X2e(i?.ngZone,Yke({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{let o=LAe(e.moduleType,this.injector,qke(()=>r)),a=o.injector.get(Sl,null);return r.runOutsideAngular(()=>{let s=r.onError.subscribe({next:l=>{a.handleError(l)}});o.onDestroy(()=>{ZR(this._modules,o),s.unsubscribe()})}),jke(a,r,()=>{let s=o.injector.get(hoe);return s.runInitializers(),s.donePromise.then(()=>{let l=o.injector.get(Dh,bP);return Ske(l||bP),this._moduleDoBootstrap(o),o})})})}bootstrapModule(e,i=[]){let r=foe({},i);return Gke(this.injector,r,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){let i=e.injector.get(Wc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(i);else throw new Kt(-403,!1);this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Kt(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let e=this._injector.get(_oe,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||t)(ae(ao))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),ID=null,boe=new ke("");function Qke(t){if(ID&&!ID.get(boe,!1))throw new Kt(400,!1);Vke(),ID=t;let n=t.get(voe);return eMe(t),n}function Ez(t,n,e=[]){let i=`Platform: ${n}`,r=new ke(i);return(o=[])=>{let a=yoe();if(!a||a.injector.get(boe,!1)){let s=[...e,...o,{provide:r,useValue:!0}];t?t(s):Qke(Zke(s,i))}return Jke(r)}}function Zke(t=[],n){return ao.create({name:n,providers:[{provide:EP,useValue:"platform"},{provide:_oe,useValue:new Set([()=>ID=null])},...t]})}function Jke(t){let n=yoe();if(!n)throw new Kt(401,!1);return n}function yoe(){return ID?.get(voe)??null}function eMe(t){t.get(tz,null)?.forEach(e=>e())}function xoe(){return!1}var Di=(()=>{class t{static{this.__NG_ELEMENT_ID__=tMe}}return t})();function tMe(t){return iMe(xc(),On(),(t&16)===16)}function iMe(t,n,e){if(AP(t)&&!e){let i=Z_(t.index,n);return new zy(i,i)}else if(t.type&47){let i=n[pp];return new zy(i,n)}return null}var I7=class{constructor(){}supports(n){return Yre(n)}create(n){return new D7(n)}},nMe=(t,n)=>n,D7=class{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||nMe}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new T7(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new yP),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new yP),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},T7=class{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},A7=class{constructor(){this._head=null,this._tail=null}add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},yP=class{constructor(){this.map=new Map}put(n){let e=n.trackById,i=this.map.get(e);i||(i=new A7,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Rie(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let r=this._records.get(n);this._maybeAddToChanges(r,e);let o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}let i=new F7(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}},F7=class{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Pie(){return new Nf([new I7])}var Nf=(()=>{class t{static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:Pie})}constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Pie()),deps:[[t,new bm,new Iu]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new Kt(901,!1)}}return t})();function Nie(){return new t3([new k7])}var t3=(()=>{class t{static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:Nie})}constructor(e){this.factories=e}static create(e,i){if(i){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Nie()),deps:[[t,new bm,new Iu]]}}find(e){let i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Kt(901,!1)}}return t})();var Coe=Ez(null,"core",[]),Soe=(()=>{class t{constructor(e){}static{this.\u0275fac=function(i){return new(i||t)(ae(Wc))}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();function at(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Gr(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function ov(t,n){Pf("NgSignals");let e=cte(t);return n?.equal&&(e[hh].equal=n.equal),e}function i3(t){let n=Yr(null);try{return t()}finally{Yr(n)}}var rMe=new ke("",{providedIn:"root",factory:()=>Me(oMe)}),oMe=(()=>{class t{static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>new R7})}}return t})(),R7=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Me(nv),this.taskId=null}scheduleEffect(n){if(this.enqueue(n),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(n){let e=n.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||(this.queuedEffectCount++,i.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},P7=class{constructor(n,e,i,r,o,a){this.scheduler=n,this.effectFn=e,this.creationZone=i,this.injector=o,this.watcher=fte(s=>this.runEffect(s),()=>this.schedule(),a),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(n){try{this.effectFn(n)}catch(e){this.injector.get(Sl,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function _p(t,n){Pf("NgSignals"),!n?.injector&&DP(_p);let e=n?.injector??Me(ao),i=n?.manualCleanup!==!0?e.get(ev):null,r=new P7(e.get(rMe),t,typeof Zone>"u"?null:Zone.current,i,e,n?.allowSignalWrites??!1),o=e.get(Di,null,{optional:!0});return!o||!(o._lView[or]&8)?r.watcher.notify():(o._lView[WR]??=[]).push(r.watcher.notify),r}function Iz(t,n){let e=Kg(t),i=n.elementInjector||IP();return new Uy(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function woe(t){let n=Kg(t);if(!n)return null;let e=new Uy(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var Poe=null;function Of(){return Poe}function Noe(t){Poe??=t}var u3=class{};var ni=new ke(""),Bz=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(aMe),providedIn:"platform"})}}return t})(),Ooe=new ke(""),aMe=(()=>{class t extends Bz{constructor(){super(),this._doc=Me(ni),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Of().getBaseHref(this._doc)}onPopState(e){let i=Of().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Of().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>new t,providedIn:"platform"})}}return t})();function jz(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function Eoe(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,i=e-(t[e-1]==="/"?1:0);return t.slice(0,i)+t.slice(e)}function r0(t){return t&&t[0]!=="?"?"?"+t:t}var a0=(()=>{class t{historyGo(e){throw new Error("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(Hz),providedIn:"root"})}}return t})(),Loe=new ke(""),Hz=(()=>{class t extends a0{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Me(ni).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return jz(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+r0(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+r0(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+r0(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(Bz),ae(Loe,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Voe=(()=>{class t extends a0{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=jz(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+r0(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+r0(o));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(Bz),ae(Loe,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),Lf=(()=>{class t{constructor(e){this._subject=new Ae,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=cMe(Eoe(Ioe(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+r0(i))}normalize(e){return t.stripTrailingSlash(lMe(this._basePath,Ioe(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+r0(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+r0(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static{this.normalizeQueryParams=r0}static{this.joinWithSlash=jz}static{this.stripTrailingSlash=Eoe}static{this.\u0275fac=function(i){return new(i||t)(ae(a0))}}static{this.\u0275prov=Ce({token:t,factory:()=>sMe(),providedIn:"root"})}}return t})();function sMe(){return new Lf(ae(a0))}function lMe(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function Ioe(t){return t.replace(/\/index.html$/,"")}function cMe(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Boe={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},g3=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(g3||{});var Rd=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Rd||{}),ya=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(ya||{}),Sm=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Sm||{}),nl={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function dMe(t){return Tu(t)[Ra.LocaleId]}function uMe(t,n,e){let i=Tu(t),r=[i[Ra.DayPeriodsFormat],i[Ra.DayPeriodsStandalone]],o=bp(r,n);return bp(o,e)}function mMe(t,n,e){let i=Tu(t),r=[i[Ra.DaysFormat],i[Ra.DaysStandalone]],o=bp(r,n);return bp(o,e)}function pMe(t,n,e){let i=Tu(t),r=[i[Ra.MonthsFormat],i[Ra.MonthsStandalone]],o=bp(r,n);return bp(o,e)}function hMe(t,n){let i=Tu(t)[Ra.Eras];return bp(i,n)}function n3(t,n){let e=Tu(t);return bp(e[Ra.DateFormat],n)}function r3(t,n){let e=Tu(t);return bp(e[Ra.TimeFormat],n)}function o3(t,n){let i=Tu(t)[Ra.DateTimeFormat];return bp(i,n)}function vp(t,n){let e=Tu(t),i=e[Ra.NumberSymbols][n];if(typeof i>"u"){if(n===nl.CurrencyDecimal)return e[Ra.NumberSymbols][nl.Decimal];if(n===nl.CurrencyGroup)return e[Ra.NumberSymbols][nl.Group]}return i}function zz(t,n){return Tu(t)[Ra.NumberFormats][n]}function fMe(t){return Tu(t)[Ra.Currencies]}function joe(t){if(!t[Ra.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ra.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function gMe(t){let n=Tu(t);return joe(n),(n[Ra.ExtraData][2]||[]).map(i=>typeof i=="string"?Dz(i):[Dz(i[0]),Dz(i[1])])}function _Me(t,n,e){let i=Tu(t);joe(i);let r=[i[Ra.ExtraData][0],i[Ra.ExtraData][1]],o=bp(r,n)||[];return bp(o,e)||[]}function bp(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Dz(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}function vMe(t,n,e="en"){let i=fMe(e)[t]||Boe[t]||[],r=i[1];return n==="narrow"&&typeof r=="string"?r:i[0]||t}var bMe=2;function yMe(t){let n,e=Boe[t];return e&&(n=e[2]),typeof n=="number"?n:bMe}var xMe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,a3={},CMe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,o0=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(o0||{}),Ko=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Ko||{}),Yo=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Yo||{});function SMe(t,n,e,i){let r=FMe(t);n=n0(e,n)||n;let a=[],s;for(;n;)if(s=CMe.exec(n),s){a=a.concat(s.slice(1));let p=a.pop();if(!p)break;n=p}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=zoe(i,l),r=MMe(r,i,!0));let u="";return a.forEach(p=>{let g=AMe(p);u+=g?g(r,e,l):p==="''"?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function m3(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function n0(t,n){let e=dMe(t);if(a3[e]??={},a3[e][n])return a3[e][n];let i="";switch(n){case"shortDate":i=n3(t,Sm.Short);break;case"mediumDate":i=n3(t,Sm.Medium);break;case"longDate":i=n3(t,Sm.Long);break;case"fullDate":i=n3(t,Sm.Full);break;case"shortTime":i=r3(t,Sm.Short);break;case"mediumTime":i=r3(t,Sm.Medium);break;case"longTime":i=r3(t,Sm.Long);break;case"fullTime":i=r3(t,Sm.Full);break;case"short":let r=n0(t,"shortTime"),o=n0(t,"shortDate");i=s3(o3(t,Sm.Short),[r,o]);break;case"medium":let a=n0(t,"mediumTime"),s=n0(t,"mediumDate");i=s3(o3(t,Sm.Medium),[a,s]);break;case"long":let l=n0(t,"longTime"),u=n0(t,"longDate");i=s3(o3(t,Sm.Long),[l,u]);break;case"full":let p=n0(t,"fullTime"),g=n0(t,"fullDate");i=s3(o3(t,Sm.Full),[p,g]);break}return i&&(a3[e][n]=i),i}function s3(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Th(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===Ko.Hours)s===0&&e===-12&&(s=12);else if(t===Ko.FractionalSeconds)return wMe(s,n);let l=vp(a,nl.MinusSign);return Th(s,n,l,i,r)}}function EMe(t,n){switch(t){case Ko.FullYear:return n.getFullYear();case Ko.Month:return n.getMonth();case Ko.Date:return n.getDate();case Ko.Hours:return n.getHours();case Ko.Minutes:return n.getMinutes();case Ko.Seconds:return n.getSeconds();case Ko.FractionalSeconds:return n.getMilliseconds();case Ko.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function wa(t,n,e=Rd.Format,i=!1){return function(r,o){return IMe(r,o,t,n,e,i)}}function IMe(t,n,e,i,r,o){switch(e){case Yo.Months:return pMe(n,r,i)[t.getMonth()];case Yo.Days:return mMe(n,r,i)[t.getDay()];case Yo.DayPeriods:let a=t.getHours(),s=t.getMinutes();if(o){let u=gMe(n),p=_Me(n,r,i),g=u.findIndex(_=>{if(Array.isArray(_)){let[v,y]=_,x=a>=v.hours&&s>=v.minutes,I=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case o0.Short:return(r>=0?"+":"")+Th(a,2,o)+Th(Math.abs(r%60),2,o);case o0.ShortGMT:return"GMT"+(r>=0?"+":"")+Th(a,1,o);case o0.Long:return"GMT"+(r>=0?"+":"")+Th(a,2,o)+":"+Th(Math.abs(r%60),2,o);case o0.Extended:return i===0?"Z":(r>=0?"+":"")+Th(a,2,o)+":"+Th(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}var DMe=0,d3=4;function TMe(t){let n=m3(t,DMe,1).getDay();return m3(t,0,1+(n<=d3?d3:d3+7)-n)}function Hoe(t){let n=t.getDay(),e=n===0?-3:d3-n;return m3(t.getFullYear(),t.getMonth(),t.getDate()+e)}function Tz(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=Hoe(e),a=TMe(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Th(r,t,vp(i,nl.MinusSign))}}function c3(t,n=!1){return function(e,i){let o=Hoe(e).getFullYear();return Th(o,t,vp(i,nl.MinusSign),n)}}var Az={};function AMe(t){if(Az[t])return Az[t];let n;switch(t){case"G":case"GG":case"GGG":n=wa(Yo.Eras,ya.Abbreviated);break;case"GGGG":n=wa(Yo.Eras,ya.Wide);break;case"GGGGG":n=wa(Yo.Eras,ya.Narrow);break;case"y":n=il(Ko.FullYear,1,0,!1,!0);break;case"yy":n=il(Ko.FullYear,2,0,!0,!0);break;case"yyy":n=il(Ko.FullYear,3,0,!1,!0);break;case"yyyy":n=il(Ko.FullYear,4,0,!1,!0);break;case"Y":n=c3(1);break;case"YY":n=c3(2,!0);break;case"YYY":n=c3(3);break;case"YYYY":n=c3(4);break;case"M":case"L":n=il(Ko.Month,1,1);break;case"MM":case"LL":n=il(Ko.Month,2,1);break;case"MMM":n=wa(Yo.Months,ya.Abbreviated);break;case"MMMM":n=wa(Yo.Months,ya.Wide);break;case"MMMMM":n=wa(Yo.Months,ya.Narrow);break;case"LLL":n=wa(Yo.Months,ya.Abbreviated,Rd.Standalone);break;case"LLLL":n=wa(Yo.Months,ya.Wide,Rd.Standalone);break;case"LLLLL":n=wa(Yo.Months,ya.Narrow,Rd.Standalone);break;case"w":n=Tz(1);break;case"ww":n=Tz(2);break;case"W":n=Tz(1,!0);break;case"d":n=il(Ko.Date,1);break;case"dd":n=il(Ko.Date,2);break;case"c":case"cc":n=il(Ko.Day,1);break;case"ccc":n=wa(Yo.Days,ya.Abbreviated,Rd.Standalone);break;case"cccc":n=wa(Yo.Days,ya.Wide,Rd.Standalone);break;case"ccccc":n=wa(Yo.Days,ya.Narrow,Rd.Standalone);break;case"cccccc":n=wa(Yo.Days,ya.Short,Rd.Standalone);break;case"E":case"EE":case"EEE":n=wa(Yo.Days,ya.Abbreviated);break;case"EEEE":n=wa(Yo.Days,ya.Wide);break;case"EEEEE":n=wa(Yo.Days,ya.Narrow);break;case"EEEEEE":n=wa(Yo.Days,ya.Short);break;case"a":case"aa":case"aaa":n=wa(Yo.DayPeriods,ya.Abbreviated);break;case"aaaa":n=wa(Yo.DayPeriods,ya.Wide);break;case"aaaaa":n=wa(Yo.DayPeriods,ya.Narrow);break;case"b":case"bb":case"bbb":n=wa(Yo.DayPeriods,ya.Abbreviated,Rd.Standalone,!0);break;case"bbbb":n=wa(Yo.DayPeriods,ya.Wide,Rd.Standalone,!0);break;case"bbbbb":n=wa(Yo.DayPeriods,ya.Narrow,Rd.Standalone,!0);break;case"B":case"BB":case"BBB":n=wa(Yo.DayPeriods,ya.Abbreviated,Rd.Format,!0);break;case"BBBB":n=wa(Yo.DayPeriods,ya.Wide,Rd.Format,!0);break;case"BBBBB":n=wa(Yo.DayPeriods,ya.Narrow,Rd.Format,!0);break;case"h":n=il(Ko.Hours,1,-12);break;case"hh":n=il(Ko.Hours,2,-12);break;case"H":n=il(Ko.Hours,1);break;case"HH":n=il(Ko.Hours,2);break;case"m":n=il(Ko.Minutes,1);break;case"mm":n=il(Ko.Minutes,2);break;case"s":n=il(Ko.Seconds,1);break;case"ss":n=il(Ko.Seconds,2);break;case"S":n=il(Ko.FractionalSeconds,1);break;case"SS":n=il(Ko.FractionalSeconds,2);break;case"SSS":n=il(Ko.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=l3(o0.Short);break;case"ZZZZZ":n=l3(o0.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=l3(o0.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=l3(o0.Long);break;default:return null}return Az[t]=n,n}function zoe(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function kMe(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function MMe(t,n,e){let i=e?-1:1,r=t.getTimezoneOffset(),o=zoe(n,r);return kMe(t,i*(o-r))}function FMe(t){if(Doe(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return m3(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(xMe))return RMe(i)}let n=new Date(t);if(!Doe(n))throw new Error(`Unable to convert "${t}" into a date`);return n}function RMe(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),u=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,u),n}function Doe(t){return t instanceof Date&&!isNaN(t.valueOf())}var PMe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Toe=22,p3=".",QD="0",NMe=";",OMe=",",kz="#",Aoe="\xA4",LMe="%";function Uz(t,n,e,i,r,o,a=!1){let s="",l=!1;if(!isFinite(t))s=vp(e,nl.Infinity);else{let u=zMe(t);a&&(u=HMe(u));let p=n.minInt,g=n.minFrac,_=n.maxFrac;if(o){let D=o.match(PMe);if(D===null)throw new Error(`${o} is not a valid digit info`);let A=D[1],M=D[3],R=D[5];A!=null&&(p=Mz(A)),M!=null&&(g=Mz(M)),R!=null?_=Mz(R):M!=null&&g>_&&(_=g)}UMe(u,g,_);let v=u.digits,y=u.integerLen,x=u.exponent,I=[];for(l=v.every(D=>!D);y0?I=v.splice(y,v.length):(I=v,v=[0]);let C=[];for(v.length>=n.lgSize&&C.unshift(v.splice(-n.lgSize,v.length).join(""));v.length>n.gSize;)C.unshift(v.splice(-n.gSize,v.length).join(""));v.length&&C.unshift(v.join("")),s=C.join(vp(e,i)),I.length&&(s+=vp(e,r)+I.join("")),x&&(s+=vp(e,nl.Exponential)+"+"+x)}return t<0&&!l?s=n.negPre+s+n.negSuf:s=n.posPre+s+n.posSuf,s}function VMe(t,n,e,i,r){let o=zz(n,g3.Currency),a=Gz(o,vp(n,nl.MinusSign));return a.minFrac=yMe(i),a.maxFrac=a.minFrac,Uz(t,a,n,nl.CurrencyGroup,nl.CurrencyDecimal,r).replace(Aoe,e).replace(Aoe,"").trim()}function BMe(t,n,e){let i=zz(n,g3.Percent),r=Gz(i,vp(n,nl.MinusSign));return Uz(t,r,n,nl.Group,nl.Decimal,e,!0).replace(new RegExp(LMe,"g"),vp(n,nl.PercentSign))}function jMe(t,n,e){let i=zz(n,g3.Decimal),r=Gz(i,vp(n,nl.MinusSign));return Uz(t,r,n,nl.Group,nl.Decimal,e)}function Gz(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(NMe),r=i[0],o=i[1],a=r.indexOf(p3)!==-1?r.split(p3):[r.substring(0,r.lastIndexOf(QD)+1),r.substring(r.lastIndexOf(QD)+1)],s=a[0],l=a[1]||"";e.posPre=s.substring(0,s.indexOf(kz));for(let p=0;p-1&&(n=n.replace(p3,"")),(o=n.search(/e/i))>0?(r<0&&(r=o),r+=+n.slice(o+1),n=n.substring(0,o)):r<0&&(r=n.length),o=0;n.charAt(o)===QD;o++);if(o===(s=n.length))i=[0],r=1;else{for(s--;n.charAt(s)===QD;)s--;for(r-=o,i=[],a=0;o<=s;o++,a++)i[a]=Number(n.charAt(o))}return r>Toe&&(i=i.splice(0,Toe-1),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}function UMe(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(n,r),e),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let g=a;g=5)if(a-1<0){for(let g=0;g>a;g--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=u?y.pop():l=!1),_>=10?1:0},0);p&&(i.unshift(p),t.integerLen++)}function Mz(t){let n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function Uoe(t,n,e){return aoe(t,n,e)}function _3(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var Fz=/\s+/,koe=[],ji=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=koe,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(Fz):koe}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Fz):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(Fz).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Sc))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngClass",""]],inputs:{klass:[ve.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return t})();var Rz=class{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Vt=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(r.previousIndex==null)i.createEmbeddedView(this._template,new Rz(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(o===null?void 0:o);else if(o!==null){let s=i.get(o);i.move(s,a),Moe(s,r)}});for(let r=0,o=i.length;r{let o=i.get(r.currentIndex);Moe(o,r)})}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Mn),E(Nf))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return t})();function Moe(t,n){t.context.$implicit=n.item}var Ee=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Pz,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){Foe("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){Foe("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return t})(),Pz=class{constructor(){this.$implicit=null,this.ngIf=null}};function Foe(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ad(n)}'.`)}var GMe=!0,h3=class{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}},vs=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let i=GMe?e===this._ngSwitch:e==this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let i of this._defaultViews)i.enforceState(e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return t})(),rl=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new h3(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Mn),E(vs,9))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return t})(),v3=(()=>{class t{constructor(e,i,r){r._addDefault(new h3(e,i))}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Mn),E(vs,9))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return t})();var av=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){let[r,o]=e.split("."),a=r.indexOf("-")===-1?void 0:Mf.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(t3),E(Sc))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return t})(),ta=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static{this.\u0275fac=function(i){return new(i||t)(E(Er))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Oi]})}}return t})();function Zy(t,n){return new Kt(2100,!1)}var Nz=class{createSubscription(n,e){return i3(()=>n.subscribe({next:e,error:i=>{throw i}}))}dispose(n){i3(()=>n.unsubscribe())}},Oz=class{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}},$Me=new Oz,qMe=new Nz,Ea=(()=>{class t{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(rv(e))return $Me;if(wz(e))return qMe;throw Zy(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(E(Di,16))}}static{this.\u0275pipe=oi({name:"async",type:t,pure:!1,standalone:!0})}}return t})(),b3=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Zy(t,e);return e.toLowerCase()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"lowercase",type:t,pure:!0,standalone:!0})}}return t})();var Goe=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw Zy(t,e);return e.toUpperCase()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"uppercase",type:t,pure:!0,standalone:!0})}}return t})(),WMe="mediumDate",YMe=new ke(""),KMe=new ke(""),rn=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??WMe,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return SMe(e,a,o||this.locale,s)}catch(a){throw Zy(t,a.message)}}static{this.\u0275fac=function(i){return new(i||t)(E(Dh,16),E(YMe,24),E(KMe,24))}}static{this.\u0275pipe=oi({name:"date",type:t,pure:!0,standalone:!0})}}return t})();function XMe(t,n){return{key:t,value:n}}var $oe=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=Roe}transform(e,i=Roe){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let r=this.differ.diff(e),o=i!==this.compareFn;return r&&(this.keyValues=[],r.forEachItem(a=>{this.keyValues.push(XMe(a.key,a.currentValue))})),(r||o)&&(this.keyValues.sort(i),this.compareFn=i),this.keyValues}static{this.\u0275fac=function(i){return new(i||t)(E(t3,16))}}static{this.\u0275pipe=oi({name:"keyvalue",type:t,pure:!1,standalone:!0})}}return t})();function Roe(t,n){let e=t.key,i=n.key;if(e===i)return 0;if(e===void 0)return 1;if(i===void 0)return-1;if(e===null)return 1;if(i===null)return-1;if(typeof e=="string"&&typeof i=="string")return e{class t{constructor(e){this._locale=e}transform(e,i,r){if(!$z(e))return null;r||=this._locale;try{let o=qz(e);return jMe(o,r,i)}catch(o){throw Zy(t,o.message)}}static{this.\u0275fac=function(i){return new(i||t)(E(Dh,16))}}static{this.\u0275pipe=oi({name:"number",type:t,pure:!0,standalone:!0})}}return t})(),Woe=(()=>{class t{constructor(e){this._locale=e}transform(e,i,r){if(!$z(e))return null;r||=this._locale;try{let o=qz(e);return BMe(o,r,i)}catch(o){throw Zy(t,o.message)}}static{this.\u0275fac=function(i){return new(i||t)(E(Dh,16))}}static{this.\u0275pipe=oi({name:"percent",type:t,pure:!0,standalone:!0})}}return t})(),Yoe=(()=>{class t{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",o,a){if(!$z(e))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let s=i||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?s=vMe(s,r==="symbol"?"wide":"narrow",a):s=r);try{let l=qz(e);return VMe(l,a,s,i,o)}catch(l){throw Zy(t,l.message)}}static{this.\u0275fac=function(i){return new(i||t)(E(Dh,16),E(goe,16))}}static{this.\u0275pipe=oi({name:"currency",type:t,pure:!0,standalone:!0})}}return t})();function $z(t){return!(t==null||t===""||t!==t)}function qz(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var po=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})(),Wz="browser",QMe="server";function Pd(t){return t===Wz}function y3(t){return t===QMe}var Koe=(()=>{class t{static{this.\u0275prov=Ce({token:t,providedIn:"root",factory:()=>Pd(Me(Oa))?new Lz(Me(ni),window):new Vz})}}return t})(),Lz=class{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=ZMe(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}};function ZMe(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;for(;r;){let o=r.shadowRoot;if(o){let a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}var Vz=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},pS=class{};var ZD=class{},C3=class{},bs=class t{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` `).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Kz=class{encodeKey(n){return Xoe(n)}encodeValue(n){return Xoe(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function tFe(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var iFe=/%(\d[a-f0-9])/gi,nFe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Xoe(t){return encodeURIComponent(t).replace(iFe,(n,e)=>nFe[e]??n)}function x3(t){return`${t}`}var $a=class t{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Kz,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=tFe(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(x3):[x3(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(x3(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(x3(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var Xz=class{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function rFe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Qoe(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Zoe(t){return typeof Blob<"u"&&t instanceof Blob}function Joe(t){return typeof FormData<"u"&&t instanceof FormData}function oFe(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Jy=class t{constructor(n,e,i,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase();let o;if(rFe(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new bs,this.context??=new Xz,!this.params)this.params=new $a,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":s_.set(v,n.setHeaders[v]),u)),n.setParams&&(p=Object.keys(n.setParams).reduce((_,v)=>_.set(v,n.setParams[v]),p)),new t(e,i,a,{params:p,headers:u,context:g,reportProgress:l,responseType:r,withCredentials:s,transferCache:o})}},s0=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(s0||{}),JD=class{constructor(n,e=S3.Ok,i="OK"){this.headers=n.headers||new bs,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},Qz=class t extends JD{constructor(n={}){super(n),this.type=s0.ResponseHeader}clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},e1=class t extends JD{constructor(n={}){super(n),this.type=s0.Response,this.body=n.body!==void 0?n.body:null}clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},l0=class extends JD{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},S3=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(S3||{});function Yz(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var sn=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Jy)o=e;else{let l;r.headers instanceof bs?l=r.headers:l=new bs(r.headers);let u;r.params&&(r.params instanceof $a?u=r.params:u=new $a({fromObject:r.params})),o=new Jy(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=vt(o).pipe(qg(l=>this.handler.handle(l)));if(e instanceof Jy||r.observe==="events")return a;let s=a.pipe(vi(l=>l instanceof e1));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(st(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(st(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(st(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return s.pipe(st(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new $a().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Yz(r,i))}post(e,i,r={}){return this.request("POST",e,Yz(r,i))}put(e,i,r={}){return this.request("PUT",e,Yz(r,i))}static{this.\u0275fac=function(i){return new(i||t)(ae(ZD))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function nae(t,n){return n(t)}function aFe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}function sFe(t,n,e){return(i,r)=>Du(e,()=>n(i,o=>t(o,r)))}var eT=new ke(""),Zz=new ke(""),lFe=new ke(""),cFe=new ke("");function dFe(){let t=null;return(n,e)=>{t===null&&(t=(Me(eT,{optional:!0})??[]).reduceRight(aFe,nae));let i=Me(nv),r=i.add();return t(n,e).pipe(Vs(()=>i.remove(r)))}}var eae=(()=>{class t extends ZD{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=Me(nv);let r=Me(cFe,{optional:!0});this.backend=r??e}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Zz),...this.injector.get(lFe,[])]));this.chain=r.reduceRight((o,a)=>sFe(o,a,this.injector),nae)}let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Vs(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||t)(ae(C3),ae(Yl))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();var uFe=/^\)\]\}',?\n/;function mFe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var tae=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Kt(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Ur(i.\u0275loadImpl()):vt(null)).pipe(Wi(()=>new mn(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((x,I)=>a.setRequestHeader(x,I.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let x=e.detectContentTypeHeader();x!==null&&a.setRequestHeader("Content-Type",x)}if(e.responseType){let x=e.responseType.toLowerCase();a.responseType=x!=="json"?x:"text"}let s=e.serializeBody(),l=null,u=()=>{if(l!==null)return l;let x=a.statusText||"OK",I=new bs(a.getAllResponseHeaders()),C=mFe(a)||e.url;return l=new Qz({headers:I,status:a.status,statusText:x,url:C}),l},p=()=>{let{headers:x,status:I,statusText:C,url:D}=u(),A=null;I!==S3.NoContent&&(A=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=A?S3.Ok:0);let M=I>=200&&I<300;if(e.responseType==="json"&&typeof A=="string"){let R=A;A=A.replace(uFe,"");try{A=A!==""?JSON.parse(A):null}catch(j){A=R,M&&(M=!1,A={error:j,text:A})}}M?(o.next(new e1({body:A,headers:x,status:I,statusText:C,url:D||void 0})),o.complete()):o.error(new l0({error:A,headers:x,status:I,statusText:C,url:D||void 0}))},g=x=>{let{url:I}=u(),C=new l0({error:x,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});o.error(C)},_=!1,v=x=>{_||(o.next(u()),_=!0);let I={type:s0.DownloadProgress,loaded:x.loaded};x.lengthComputable&&(I.total=x.total),e.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),o.next(I)},y=x=>{let I={type:s0.UploadProgress,loaded:x.loaded};x.lengthComputable&&(I.total=x.total),o.next(I)};return a.addEventListener("load",p),a.addEventListener("error",g),a.addEventListener("timeout",g),a.addEventListener("abort",g),e.reportProgress&&(a.addEventListener("progress",v),s!==null&&a.upload&&a.upload.addEventListener("progress",y)),a.send(s),o.next({type:s0.Sent}),()=>{a.removeEventListener("error",g),a.removeEventListener("abort",g),a.removeEventListener("load",p),a.removeEventListener("timeout",g),e.reportProgress&&(a.removeEventListener("progress",v),s!==null&&a.upload&&a.upload.removeEventListener("progress",y)),a.readyState!==a.DONE&&a.abort()}})))}static{this.\u0275fac=function(i){return new(i||t)(ae(pS))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),rae=new ke(""),pFe="XSRF-TOKEN",hFe=new ke("",{providedIn:"root",factory:()=>pFe}),fFe="X-XSRF-TOKEN",gFe=new ke("",{providedIn:"root",factory:()=>fFe}),w3=class{},_Fe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_3(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(Oa),ae(hFe))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function vFe(t,n){let e=t.url.toLowerCase();if(!Me(rae)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=Me(w3).getToken(),r=Me(gFe);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var oae=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(oae||{});function bFe(t,n){return{\u0275kind:t,\u0275providers:n}}function yFe(...t){let n=[sn,tae,eae,{provide:ZD,useExisting:eae},{provide:C3,useExisting:tae},{provide:Zz,useValue:vFe,multi:!0},{provide:rae,useValue:!0},{provide:w3,useClass:_Fe}];for(let e of t)n.push(...e.\u0275providers);return $y(n)}var iae=new ke("");function xFe(){return bFe(oae.LegacyInterceptors,[{provide:iae,useFactory:dFe},{provide:Zz,useExisting:iae,multi:!0}])}var aae=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[yFe(xFe())]})}}return t})();var tU=class extends u3{constructor(){super(...arguments),this.supportsDOMEvents=!0}},iU=class t extends tU{static makeCurrent(){Noe(new t)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=CFe();return e==null?null:SFe(e)}resetBaseElement(){tT=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return _3(document.cookie,n)}},tT=null;function CFe(){return tT=tT||document.querySelector("base"),tT?tT.getAttribute("href"):null}function SFe(t){return new URL(t,document.baseURI).pathname}var nU=class{addToWindow(n){es.getAngularTestability=(i,r=!0)=>{let o=n.findTestabilityInTree(i,r);if(o==null)throw new Kt(5103,!1);return o},es.getAllAngularTestabilities=()=>n.getAllTestabilities(),es.getAllAngularRootElements=()=>n.getAllRootElements();let e=i=>{let r=es.getAllAngularTestabilities(),o=r.length,a=function(){o--,o==0&&i()};r.forEach(s=>{s.whenStable(a)})};es.frameworkStabilizers||(es.frameworkStabilizers=[]),es.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,i){if(e==null)return null;let r=n.getTestability(e);return r??(i?Of().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},wFe=(()=>{class t{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),rU=new ke(""),cae=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new Kt(5101,!1);return this._eventNameToPlugin.set(e,i),i}static{this.\u0275fac=function(i){return new(i||t)(ae(rU),ae(ht))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),E3=class{constructor(n){this._doc=n}},Jz="ng-app-id",dae=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=y3(o),this.resetHostNodes()}addStyles(e){for(let i of e)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(e){for(let i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){let i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Jz}="${this.appId}"]`);if(e?.length){let i=new Map;return e.forEach(r=>{r.textContent!=null&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){let r=this.styleRef;if(r.has(e)){let o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){let r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(Jz),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Jz,this.appId),e.appendChild(a),a}}addStyleToHost(e,i){let r=this.getStyleElement(e,i),o=this.styleRef,a=o.get(i)?.elements;a?a.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(uS),ae(GD,8),ae(Oa))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),eU={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},lU=/%COMP%/g,uae="%COMP%",EFe=`_nghost-${uae}`,IFe=`_ngcontent-${uae}`,DFe=!0,TFe=new ke("",{providedIn:"root",factory:()=>DFe});function AFe(t){return IFe.replace(lU,t)}function kFe(t){return EFe.replace(lU,t)}function mae(t,n){return n.map(e=>e.replace(lU,t))}var I3=(()=>{class t{constructor(e,i,r,o,a,s,l,u=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=y3(s),this.defaultRenderer=new iT(e,a,l,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Af.ShadowDom&&(i=Gi(Ve({},i),{encapsulation:Af.Emulated}));let r=this.getOrCreateRenderer(e,i);return r instanceof D3?r.applyToHost(e):r instanceof nT&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(i.encapsulation){case Af.Emulated:o=new D3(l,u,i,this.appId,p,a,s,g);break;case Af.ShadowDom:return new oU(l,u,e,i,a,s,this.nonce,g);default:o=new nT(l,u,i,p,a,s,g);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||t)(ae(cae),ae(dae),ae(uS),ae(TFe),ae(ni),ae(Oa),ae(ht),ae(GD))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),iT=class{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(eU[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(sae(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(sae(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new Kt(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=eU[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=eU[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Mf.DashCase|Mf.Important)?n.style.setProperty(e,i,r&Mf.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Mf.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if(typeof n=="string"&&(n=Of().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function sae(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var oU=class extends iT{constructor(n,e,i,r,o,a,s,l){super(n,o,a,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=mae(r.id,r.styles);for(let p of u){let g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=p,this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},nT=class extends iT{constructor(n,e,i,r,o,a,s,l){super(n,o,a,s),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?mae(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},D3=class extends nT{constructor(n,e,i,r,o,a,s,l){let u=r+"-"+i.id;super(n,e,i,o,a,s,l,u),this.contentAttr=AFe(u),this.hostAttr=kFe(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}},MFe=(()=>{class t extends E3{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),lae=["alt","control","meta","shift"],FFe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},RFe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},PFe=(()=>{class t extends E3{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r){let o=t.parseEventName(i),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Of().onAndCancel(e,o.domEventName,a))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),lae.forEach(u=>{let p=i.indexOf(u);p>-1&&(i.splice(p,1),a+=u+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=FFe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),lae.forEach(a=>{if(a!==r){let s=RFe[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(i){return new(i||t)(ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function NFe(){iU.makeCurrent()}function OFe(){return new Sl}function LFe(){return Wne(document),document}var VFe=[{provide:Oa,useValue:Wz},{provide:tz,useValue:NFe,multi:!0},{provide:ni,useFactory:LFe,deps:[]}],pae=Ez(Coe,"browser",VFe),BFe=new ke(""),jFe=[{provide:XD,useClass:nU,deps:[]},{provide:Cz,useClass:QP,deps:[ht,ZP,XD]},{provide:QP,useClass:QP,deps:[ht,ZP,XD]}],HFe=[{provide:EP,useValue:"root"},{provide:Sl,useFactory:OFe,deps:[]},{provide:rU,useClass:MFe,multi:!0,deps:[ni,ht,Oa]},{provide:rU,useClass:PFe,multi:!0,deps:[ni]},I3,dae,cae,{provide:wh,useExisting:I3},{provide:pS,useClass:wFe,deps:[]},[]],hae=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:uS,useValue:e.appId}]}}static{this.\u0275fac=function(i){return new(i||t)(ae(BFe,12))}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[...HFe,...jFe],imports:[po,Soe]})}}return t})();var fae=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(i){return new(i||t)(ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function zFe(t,n){if(typeof COMPILED>"u"||!COMPILED){let e=es.ng=es.ng||{};e[t]=n}}var aU=class{constructor(n,e){this.msPerTick=n,this.numTicks=e}},sU=class{constructor(n){this.appRef=n.injector.get(Wc)}timeChangeDetection(n){let e=n&&n.record,i="Change Detection";e&&"profile"in console&&typeof console.profile=="function"&&console.profile(i);let r=performance.now(),o=0;for(;o<5||performance.now()-r<500;)this.appRef.tick(),o++;let a=performance.now();e&&"profileEnd"in console&&typeof console.profileEnd=="function"&&console.profileEnd(i);let s=(a-r)/o;return console.log(`ran ${o} change detection cycles`),console.log(`${s.toFixed(2)} ms per check`),new aU(s,o)}},UFe="profiler";function gae(t){return zFe(UFe,new sU(t)),t}var Kl=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=ae(GFe),r},providedIn:"root"})}}return t})(),GFe=(()=>{class t extends Kl{constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case _s.NONE:return i;case _s.HTML:return t0(i,"HTML")?fp(i):nz(this._doc,String(i)).toString();case _s.STYLE:return t0(i,"Style")?fp(i):i;case _s.SCRIPT:if(t0(i,"Script"))return fp(i);throw new Kt(5200,!1);case _s.URL:return t0(i,"URL")?fp(i):OP(String(i));case _s.RESOURCE_URL:if(t0(i,"ResourceURL"))return fp(i);throw new Kt(5201,!1);default:throw new Kt(5202,!1)}}bypassSecurityTrustHtml(e){return Qne(e)}bypassSecurityTrustStyle(e){return Zne(e)}bypassSecurityTrustScript(e){return Jne(e)}bypassSecurityTrustUrl(e){return ere(e)}bypassSecurityTrustResourceUrl(e){return tre(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var m0i=gc(vae());var hr=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(hr||{}),Vf="*";function Bo(t,n){return{type:hr.Trigger,name:t,definitions:n,options:{}}}function xr(t,n=null){return{type:hr.Animate,styles:n,timings:t}}function oT(t,n=null){return{type:hr.Group,steps:t,options:n}}function bae(t,n=null){return{type:hr.Sequence,steps:t,options:n}}function $i(t){return{type:hr.Style,styles:t,offset:null}}function cr(t,n,e){return{type:hr.State,name:t,styles:n,options:e}}function cv(t){return{type:hr.Keyframes,steps:t}}function gr(t,n,e=null){return{type:hr.Transition,expr:t,animation:n,options:e}}function t1(t=null){return{type:hr.AnimateChild,options:t}}function i1(t,n,e=null){return{type:hr.Query,selector:t,animation:n,options:e}}var lv=class{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},rT=class{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},T3="!";function yae(t){return new Kt(3e3,!1)}function $Fe(){return new Kt(3100,!1)}function qFe(){return new Kt(3101,!1)}function WFe(t){return new Kt(3001,!1)}function YFe(t){return new Kt(3003,!1)}function KFe(t){return new Kt(3004,!1)}function XFe(t,n){return new Kt(3005,!1)}function QFe(){return new Kt(3006,!1)}function ZFe(){return new Kt(3007,!1)}function JFe(t,n){return new Kt(3008,!1)}function eRe(t){return new Kt(3002,!1)}function tRe(t,n,e,i,r){return new Kt(3010,!1)}function iRe(){return new Kt(3011,!1)}function nRe(){return new Kt(3012,!1)}function rRe(){return new Kt(3200,!1)}function oRe(){return new Kt(3202,!1)}function aRe(){return new Kt(3013,!1)}function sRe(t){return new Kt(3014,!1)}function lRe(t){return new Kt(3015,!1)}function cRe(t){return new Kt(3016,!1)}function dRe(t,n){return new Kt(3404,!1)}function uRe(t){return new Kt(3502,!1)}function mRe(t){return new Kt(3503,!1)}function pRe(){return new Kt(3300,!1)}function hRe(t){return new Kt(3504,!1)}function fRe(t){return new Kt(3301,!1)}function gRe(t,n){return new Kt(3302,!1)}function _Re(t){return new Kt(3303,!1)}function vRe(t,n){return new Kt(3400,!1)}function bRe(t){return new Kt(3401,!1)}function yRe(t){return new Kt(3402,!1)}function xRe(t,n){return new Kt(3505,!1)}function dv(t){switch(t.length){case 0:return new lv;case 1:return t[0];default:return new rT(t)}}function Pae(t,n,e=new Map,i=new Map){let r=[],o=[],a=-1,s=null;if(n.forEach(l=>{let u=l.get("offset"),p=u==a,g=p&&s||new Map;l.forEach((_,v)=>{let y=v,x=_;if(v!=="offset")switch(y=t.normalizePropertyName(y,r),x){case T3:x=e.get(v);break;case Vf:x=i.get(v);break;default:x=t.normalizeStyleValue(v,y,x,r);break}g.set(y,x)}),p||o.push(g),s=g,a=u}),r.length)throw uRe(r);return o}function RU(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&uU(e,"start",t)));break;case"done":t.onDone(()=>i(e&&uU(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&uU(e,"destroy",t)));break}}function uU(t,n,e){let i=e.totalTime,r=!!e.disabled,o=PU(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o}function PU(t,n,e,i,r="",o=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Em(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function xae(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var CRe=typeof document>"u"?null:document.documentElement;function NU(t){let n=t.parentNode||t.host||null;return n===CRe?null:n}function SRe(t){return t.substring(1,6)=="ebkit"}var n1=null,Cae=!1;function wRe(t){n1||(n1=ERe()||{},Cae=n1.style?"WebkitAppearance"in n1.style:!1);let n=!0;return n1.style&&!SRe(t)&&(n=t in n1.style,!n&&Cae&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in n1.style)),n}function ERe(){return typeof document<"u"?document.body:null}function Nae(t,n){for(;n;){if(n===t)return!0;n=NU(n)}return!1}function Oae(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var OU=(()=>{class t{validateStyleProperty(e){return wRe(e)}matchesElement(e,i){return!1}containsElement(e,i){return Nae(e,i)}getParentElement(e){return NU(e)}query(e,i,r){return Oae(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,s=[],l){return new lv(r,o)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),a1=class{static{this.NOOP=new OU}},s1=class{};var IRe=1e3,Lae="{{",DRe="}}",Vae="ng-enter",_U="ng-leave",A3="ng-trigger",P3=".ng-trigger",Sae="ng-animating",vU=".ng-animating";function c0(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:bU(parseFloat(n[1]),n[2])}function bU(t,n){switch(n){case"s":return t*IRe;default:return t}}function N3(t,n,e){return t.hasOwnProperty("duration")?t:TRe(t,n,e)}function TRe(t,n,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,a="";if(typeof t=="string"){let s=t.match(i);if(s===null)return n.push(yae(t)),{duration:0,delay:0,easing:""};r=bU(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=bU(parseFloat(l),s[4]));let u=s[5];u&&(a=u)}else r=t;if(!e){let s=!1,l=n.length;r<0&&(n.push($Fe()),s=!0),o<0&&(n.push(qFe()),s=!0),s&&n.splice(l,0,yae(t))}return{duration:r,delay:o,easing:a}}function ARe(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function Bf(t,n,e){n.forEach((i,r)=>{let o=LU(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function o1(t,n){n.forEach((e,i)=>{let r=LU(i);t.style[r]=""})}function aT(t){return Array.isArray(t)?t.length==1?t[0]:bae(t):t}function kRe(t,n,e){let i=n.params||{},r=Bae(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(WFe(o))})}var yU=new RegExp(`${Lae}\\s*(.+?)\\s*${DRe}`,"g");function Bae(t){let n=[];if(typeof t=="string"){let e;for(;e=yU.exec(t);)n.push(e[1]);yU.lastIndex=0}return n}function lT(t,n,e){let i=`${t}`,r=i.replace(yU,(o,a)=>{let s=n[a];return s==null&&(e.push(YFe(a)),s=""),s.toString()});return r==i?t:r}var MRe=/-+([a-z0-9])/g;function LU(t){return t.replace(MRe,(...n)=>n[1].toUpperCase())}function FRe(t,n){return t===0||n===0}function RRe(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(s,VU(t,s)))}}return n}function wm(t,n,e){switch(n.type){case hr.Trigger:return t.visitTrigger(n,e);case hr.State:return t.visitState(n,e);case hr.Transition:return t.visitTransition(n,e);case hr.Sequence:return t.visitSequence(n,e);case hr.Group:return t.visitGroup(n,e);case hr.Animate:return t.visitAnimate(n,e);case hr.Keyframes:return t.visitKeyframes(n,e);case hr.Style:return t.visitStyle(n,e);case hr.Reference:return t.visitReference(n,e);case hr.AnimateChild:return t.visitAnimateChild(n,e);case hr.AnimateRef:return t.visitAnimateRef(n,e);case hr.Query:return t.visitQuery(n,e);case hr.Stagger:return t.visitStagger(n,e);default:throw KFe(n.type)}}function VU(t,n){return window.getComputedStyle(t)[n]}var PRe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),O3=class extends s1{normalizePropertyName(n,e){return LU(n)}normalizeStyleValue(n,e,i,r){let o="",a=i.toString().trim();if(PRe.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(XFe(n,i))}return a+o}};var L3="*";function NRe(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>ORe(i,e,n)):e.push(t),e}function ORe(t,n,e){if(t[0]==":"){let l=LRe(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(lRe(t)),n;let r=i[1],o=i[2],a=i[3];n.push(wae(r,a));let s=r==L3&&a==L3;o[0]=="<"&&!s&&n.push(wae(a,r))}function LRe(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var k3=new Set(["true","1"]),M3=new Set(["false","0"]);function wae(t,n){let e=k3.has(t)||M3.has(t),i=k3.has(n)||M3.has(n);return(r,o)=>{let a=t==L3||t==r,s=n==L3||n==o;return!a&&e&&typeof r=="boolean"&&(a=r?k3.has(t):M3.has(t)),!s&&i&&typeof o=="boolean"&&(s=o?k3.has(n):M3.has(n)),a&&s}}var jae=":self",VRe=new RegExp(`s*${jae}s*,?`,"g");function Hae(t,n,e,i){return new xU(t).build(n,e,i)}var Eae="",xU=class{constructor(n){this._driver=n}build(n,e,i){let r=new CU(e);return this._resetContextStyleTimingState(r),wm(this,aT(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=Eae,n.collectedStyles=new Map,n.collectedStyles.set(Eae,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return n.name.charAt(0)=="@"&&e.errors.push(QFe()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==hr.State){let l=s,u=l.name;u.toString().split(/\s*,\s*/).forEach(p=>{l.name=p,o.push(this.visitState(l,e))}),l.name=u}else if(s.type==hr.Transition){let l=this.visitTransition(s,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(ZFe())}),{type:hr.Trigger,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{Bae(l).forEach(u=>{a.hasOwnProperty(u)||o.add(u)})})}),o.size&&e.errors.push(JFe(n.name,[...o.values()]))}return{type:hr.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=wm(this,aT(n.animation),e),r=NRe(n.expr,e.errors);return{type:hr.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:r1(n.options)}}visitSequence(n,e){return{type:hr.Sequence,steps:n.steps.map(i=>wm(this,i,e)),options:r1(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(a=>{e.currentTime=i;let s=wm(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:hr.Group,steps:o,options:r1(n.options)}}visitAnimate(n,e){let i=zRe(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:$i({});if(o.type==hr.Keyframes)r=this.visitKeyframes(o,e);else{let a=n.styles,s=!1;if(!a){s=!0;let u={};i.easing&&(u.easing=i.easing),a=$i(u)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:hr.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)typeof s=="string"?s===Vf?i.push(s):e.errors.push(eRe(s)):i.push(new Map(Object.entries(s)));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(Lae)>=0){o=!0;break}}}),{type:hr.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),p=u.get(l),g=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(e.errors.push(tRe(l,p.startTime,p.endTime,o,r)),g=!1),o=p.startTime),g&&u.set(l,{startTime:o,endTime:r}),e.options&&kRe(s,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:hr.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(iRe()),i;let r=1,o=0,a=[],s=!1,l=!1,u=0,p=n.steps.map(C=>{let D=this._makeStyleAst(C,e),A=D.offset!=null?D.offset:HRe(D.styles),M=0;return A!=null&&(o++,M=D.offset=A),l=l||M<0||M>1,s=s||M0&&o{let A=_>0?D==v?1:_*D:a[D],M=A*I;e.currentTime=y+x.delay+M,x.duration=M,this._validateStyleAst(C,e),C.offset=A,i.styles.push(C)}),i}visitReference(n,e){return{type:hr.Reference,animation:wm(this,aT(n.animation),e),options:r1(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:hr.AnimateChild,options:r1(n.options)}}visitAnimateRef(n,e){return{type:hr.AnimateRef,animation:this.visitReference(n.animation,e),options:r1(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,a]=BRe(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,Em(e.collectedStyles,e.currentQuerySelector,new Map);let s=wm(this,aT(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:hr.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:r1(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(aRe());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:N3(n.timings,e.errors,!0);return{type:hr.Stagger,animation:wm(this,aT(n.animation),e),timings:i,options:null}}};function BRe(t){let n=!!t.split(/\s*,\s*/).find(e=>e==jae);return n&&(t=t.replace(VRe,"")),t=t.replace(/@\*/g,P3).replace(/@\w+/g,e=>P3+"-"+e.slice(1)).replace(/:animating/g,vU),[t,n]}function jRe(t){return t?Ve({},t):null}var CU=class{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function HRe(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function zRe(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=N3(t,n).duration;return mU(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=mU(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=N3(e,n);return mU(r.duration,r.delay,r.easing)}function r1(t){return t?(t=Ve({},t),t.params&&(t.params=jRe(t.params))):t={},t}function mU(t,n,e){return{duration:t,delay:n,easing:e}}function BU(t,n,e,i,r,o,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var cT=class{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},URe=1,GRe=":enter",$Re=new RegExp(GRe,"g"),qRe=":leave",WRe=new RegExp(qRe,"g");function zae(t,n,e,i,r,o=new Map,a=new Map,s,l,u=[]){return new SU().buildKeyframes(t,n,e,i,r,o,a,s,l,u)}var SU=class{buildKeyframes(n,e,i,r,o,a,s,l,u,p=[]){u=u||new cT;let g=new wU(n,e,u,r,o,p,[]);g.options=l;let _=l.delay?c0(l.delay):0;g.currentTimeline.delayNextStep(_),g.currentTimeline.setStyles([a],null,g.errors,l),wm(this,i,g);let v=g.timelines.filter(y=>y.containsAnimation());if(v.length&&s.size){let y;for(let x=v.length-1;x>=0;x--){let I=v[x];if(I.element===e){y=I;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([s],null,g.errors,l)}return v.length?v.map(y=>y.buildKeyframes()):[BU(e,[],[],[],0,_,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let a=typeof o=="number"?o:c0(lT(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,a=i.duration!=null?c0(i.duration):null,s=i.delay!=null?c0(i.delay):null;return a!==0&&n.forEach(l=>{let u=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,u.duration+u.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),wm(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==hr.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=V3);let a=c0(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>wm(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?c0(n.options.delay):0;n.steps.forEach(a=>{let s=e.createSubContext(n.options);o&&s.delayNextStep(o),wm(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?lT(i,e.params,e.errors):i;return N3(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==hr.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{let u=l.offset||0;s.forwardTime(u*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?c0(r.delay):0;o&&(e.previousNode.type===hr.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=V3);let a=i,s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((u,p)=>{e.currentQueryIndex=p;let g=e.createSubContext(n.options,u);o&&g.delayNextStep(o),u===e.element&&(l=g.currentTimeline),wm(this,n.animation,g),g.currentTimeline.applyStylesToKeyframe();let _=g.currentTimeline.currentTime;a=Math.max(a,_)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime;break}let p=e.currentTimeline;l&&p.delayNextStep(l);let g=p.currentTime;wm(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-g+(r.startTime-i.currentTimeline.startTime)}},V3={},wU=class t{constructor(n,e,i,r,o,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=V3,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new B3(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=c0(i.duration)),i.delay!=null&&(r.delay=c0(i.delay));let o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=lT(o[s],a,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=V3,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new EU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=n.replace($Re,"."+this._enterClassName),n=n.replace(WRe,"."+this._leaveClassName);let l=i!=1,u=this._driver.query(this.element,n,l);i!==0&&(u=i<0?u.slice(u.length+i,u.length):u.slice(0,i)),s.push(...u)}return!o&&s.length==0&&a.push(sRe(e)),s}},B3=class t{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=URe,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Vf),this._currentKeyframe.set(e,Vf);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=YRe(n,this._globalTimelineStyles);for(let[s,l]of a){let u=lT(l,o,i);this._pendingStyles.set(s,u),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Vf),this._updateStyle(s,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let u=new Map([...this._backFill,...s]);u.forEach((p,g)=>{p===T3?n.add(g):p===Vf&&e.add(g)}),i||u.set("offset",l/this.duration),r.push(u)});let o=[...n.values()],a=[...e.values()];if(i){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return BU(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},EU=class extends B3{constructor(n,e,i,r,o,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),o.push(l);let u=new Map(n[0]);u.set("offset",Iae(s)),o.push(u);let p=n.length-1;for(let g=1;g<=p;g++){let _=new Map(n[g]),v=_.get("offset"),y=e+v*i;_.set("offset",Iae(y/a)),o.push(_)}i=a,e=0,r="",n=o}return BU(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function Iae(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function YRe(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,Vf)}else for(let[o,a]of r)e.set(o,a)}),e}function Dae(t,n,e,i,r,o,a,s,l,u,p,g,_){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:p,totalTime:g,errors:_}}var pU={},j3=class{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return KRe(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,a,s,l,u,p){let g=[],_=this.ast.options&&this.ast.options.params||pU,v=s&&s.params||pU,y=this.buildStyles(i,v,g),x=l&&l.params||pU,I=this.buildStyles(r,x,g),C=new Set,D=new Map,A=new Map,M=r==="void",R={params:Uae(x,_),delay:this.ast.options?.delay},j=p?[]:zae(n,e,this.ast.animation,o,a,y,I,R,u,g),K=0;return j.forEach(F=>{K=Math.max(F.duration+F.delay,K)}),g.length?Dae(e,this._triggerName,i,r,M,y,I,[],[],D,A,K,g):(j.forEach(F=>{let V=F.element,Q=Em(D,V,new Set);F.preStyleProps.forEach(re=>Q.add(re));let te=Em(A,V,new Set);F.postStyleProps.forEach(re=>te.add(re)),V!==e&&C.add(V)}),Dae(e,this._triggerName,i,r,M,y,I,j,[...C.values()],D,A,K))}};function KRe(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function Uae(t,n){let e=Ve({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var IU=class{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=Uae(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=lT(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}};function XRe(t,n,e){return new DU(t,n,e)}var DU=class{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new IU(r.style,o,i))}),Tae(this.states,"true","1"),Tae(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new j3(n,r,this.states))}),this.fallbackTransition=QRe(n,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(a=>a.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function QRe(t,n,e){let i=[(a,s)=>!0],r={type:hr.Sequence,steps:[],options:null},o={type:hr.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new j3(t,o,n)}function Tae(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var ZRe=new cT,TU=class{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){let i=[],r=[],o=Hae(this._driver,e,i,r);if(i.length)throw mRe(i);r.length&&void 0,this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=Pae(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),a,s=new Map;if(o?(a=zae(this._driver,e,o,Vae,_U,new Map,new Map,i,ZRe,r),a.forEach(p=>{let g=Em(s,p.element,new Map);p.postStyleProps.forEach(_=>g.set(_,null))})):(r.push(pRe()),a=[]),r.length)throw hRe(r);s.forEach((p,g)=>{p.forEach((_,v)=>{p.set(v,this._driver.computeStyle(g,v,Vf))})});let l=a.map(p=>{let g=s.get(p.element);return this._buildPlayer(p,new Map,g)}),u=dv(l);return this._playersById.set(n,u),u.onDestroy(()=>this.destroy(n)),this.players.push(u),u}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw fRe(n);return e}listen(n,e,i,r){let o=PU(e,"","","");return RU(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let a=r[0]||{};this.create(n,e,a);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},Aae="ng-animate-queued",JRe=".ng-animate-queued",hU="ng-animate-disabled",ePe=".ng-animate-disabled",tPe="ng-star-inserted",iPe=".ng-star-inserted",nPe=[],Gae={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rPe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ah="__ng_removed",dT=class{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=aPe(r),i){let o=n,{value:a}=o,s=ZF(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},sT="void",fU=new dT(sT),AU=class{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,xp(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw gRe(i,e);if(i==null||i.length==0)throw _Re(e);if(!sPe(i))throw vRe(i,e);let o=Em(this._elementListeners,n,[]),a={name:e,phase:i,callback:r};o.push(a);let s=Em(this._engine.statesByElement,n,new Map);return s.has(e)||(xp(n,A3),xp(n,A3+"-"+e),s.set(e,fU)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw bRe(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),a=new uT(this.id,e,n),s=this._engine.statesByElement.get(n);s||(xp(n,A3),xp(n,A3+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e),u=new dT(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s.set(e,u),l||(l=fU),!(u.value===sT)&&l.value===u.value){if(!dPe(l.params,u.params)){let x=[],I=o.matchStyles(l.value,l.params,x),C=o.matchStyles(u.value,u.params,x);x.length?this._engine.reportError(x):this._engine.afterFlush(()=>{o1(n,I),Bf(n,C)})}return}let _=Em(this._engine.playersByElement,n,[]);_.forEach(x=>{x.namespaceId==this.id&&x.triggerName==e&&x.queued&&x.destroy()});let v=o.matchTransition(l.value,u.value,n,u.params),y=!1;if(!v){if(!r)return;v=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:v,fromState:l,toState:u,player:a,isFallbackTransition:y}),y||(xp(n,Aae),a.onStart(()=>{fS(n,Aae)})),a.onDone(()=>{let x=this.players.indexOf(a);x>=0&&this.players.splice(x,1);let I=this._engine.playersByElement.get(n);if(I){let C=I.indexOf(a);C>=0&&I.splice(C,1)}}),this.players.push(a),_.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,P3,!0);i.forEach(r=>{if(r[Ah])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),a=new Map;if(o){let s=[];if(o.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let p=this.trigger(n,u,sT,r);p&&s.push(p)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&dv(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,u=i.get(a)||fU,p=new dT(sT),g=new uT(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:u,toState:p,player:g,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Ah];(!o||o===Gae)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){xp(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){let l=PU(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,RU(i.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},kU=class{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,r){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,a)=>{}}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new AU(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let u=i.indexOf(l);i.splice(u+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(F3(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!F3(e))return;let o=e[Ah];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),xp(n,hU)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),fS(n,hU))}removeNode(n,e,i){if(F3(e)){this.scheduler?.notify();let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Ah]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return F3(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,P3,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,vU,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return dv(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Ah];if(e&&e.setForRemoval){if(n[Ah]=Gae,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(hU)&&this.markElementAsDisabled(n,!1),this.driver.query(n,ePe,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?dv(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw yRe(n)}_flushAnimations(n,e){let i=new cT,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,p=new Set;this.disabledNodes.forEach(G=>{p.add(G);let X=this.driver.query(G,JRe,!0);for(let z=0;z{let z=Vae+x++;y.set(X,z),G.forEach(ee=>xp(ee,z))});let I=[],C=new Set,D=new Set;for(let G=0;GC.add(ee)):D.add(X))}let A=new Map,M=Fae(_,Array.from(C));M.forEach((G,X)=>{let z=_U+x++;A.set(X,z),G.forEach(ee=>xp(ee,z))}),n.push(()=>{v.forEach((G,X)=>{let z=y.get(X);G.forEach(ee=>fS(ee,z))}),M.forEach((G,X)=>{let z=A.get(X);G.forEach(ee=>fS(ee,z))}),I.forEach(G=>{this.processLeaveNode(G)})});let R=[],j=[];for(let G=this._namespaceList.length-1;G>=0;G--)this._namespaceList[G].drainQueuedTransitions(e).forEach(z=>{let ee=z.player,pe=z.element;if(R.push(ee),this.collectedEnterElements.length){let Re=pe[Ah];if(Re&&Re.setForMove){if(Re.previousTriggersValues&&Re.previousTriggersValues.has(z.triggerName)){let et=Re.previousTriggersValues.get(z.triggerName),It=this.statesByElement.get(z.element);if(It&&It.has(z.triggerName)){let kt=It.get(z.triggerName);kt.value=et,It.set(z.triggerName,kt)}}ee.destroy();return}}let me=!g||!this.driver.containsElement(g,pe),ye=A.get(pe),se=y.get(pe),de=this._buildInstruction(z,i,se,ye,me);if(de.errors&&de.errors.length){j.push(de);return}if(me){ee.onStart(()=>o1(pe,de.fromStyles)),ee.onDestroy(()=>Bf(pe,de.toStyles)),r.push(ee);return}if(z.isFallbackTransition){ee.onStart(()=>o1(pe,de.fromStyles)),ee.onDestroy(()=>Bf(pe,de.toStyles)),r.push(ee);return}let Te=[];de.timelines.forEach(Re=>{Re.stretchStartingKeyframe=!0,this.disabledNodes.has(Re.element)||Te.push(Re)}),de.timelines=Te,i.append(pe,de.timelines);let Ie={instruction:de,player:ee,element:pe};a.push(Ie),de.queriedElements.forEach(Re=>Em(s,Re,[]).push(ee)),de.preStyleProps.forEach((Re,et)=>{if(Re.size){let It=l.get(et);It||l.set(et,It=new Set),Re.forEach((kt,ii)=>It.add(ii))}}),de.postStyleProps.forEach((Re,et)=>{let It=u.get(et);It||u.set(et,It=new Set),Re.forEach((kt,ii)=>It.add(ii))})});if(j.length){let G=[];j.forEach(X=>{G.push(xRe(X.triggerName,X.errors))}),R.forEach(X=>X.destroy()),this.reportError(G)}let K=new Map,F=new Map;a.forEach(G=>{let X=G.element;i.has(X)&&(F.set(X,X),this._beforeAnimationBuild(G.player.namespaceId,G.instruction,K))}),r.forEach(G=>{let X=G.element;this._getPreviousPlayers(X,!1,G.namespaceId,G.triggerName,null).forEach(ee=>{Em(K,X,[]).push(ee),ee.destroy()})});let V=I.filter(G=>Rae(G,l,u)),Q=new Map;Mae(Q,this.driver,D,u,Vf).forEach(G=>{Rae(G,l,u)&&V.push(G)});let re=new Map;v.forEach((G,X)=>{Mae(re,this.driver,new Set(G),l,T3)}),V.forEach(G=>{let X=Q.get(G),z=re.get(G);Q.set(G,new Map([...X?.entries()??[],...z?.entries()??[]]))});let O=[],B=[],q={};a.forEach(G=>{let{element:X,player:z,instruction:ee}=G;if(i.has(X)){if(p.has(X)){z.onDestroy(()=>Bf(X,ee.toStyles)),z.disabled=!0,z.overrideTotalTime(ee.totalTime),r.push(z);return}let pe=q;if(F.size>1){let ye=X,se=[];for(;ye=ye.parentNode;){let de=F.get(ye);if(de){pe=de;break}se.push(ye)}se.forEach(de=>F.set(de,pe))}let me=this._buildAnimation(z.namespaceId,ee,K,o,re,Q);if(z.setRealPlayer(me),pe===q)O.push(z);else{let ye=this.playersByElement.get(pe);ye&&ye.length&&(z.parentPlayer=dv(ye)),r.push(z)}}else o1(X,ee.fromStyles),z.onDestroy(()=>Bf(X,ee.toStyles)),B.push(z),p.has(X)&&r.push(z)}),B.forEach(G=>{let X=o.get(G.element);if(X&&X.length){let z=dv(X);G.setRealPlayer(z)}}),r.forEach(G=>{G.parentPlayer?G.syncPlayerEvents(G.parentPlayer):G.destroy()});for(let G=0;G!me.destroyed);pe.length?lPe(this,X,pe):this.processLeaveNode(X)}return I.length=0,O.forEach(G=>{this.players.push(G),G.onDone(()=>{G.destroy();let X=this.players.indexOf(G);this.players.splice(X,1)}),G.play()}),O}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(n);s&&(a=s)}else{let s=this.playersByElement.get(n);if(s){let l=!o||o==sT;s.forEach(u=>{u.queued||!l&&u.triggerName!=r||a.push(u)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let u=l.element,p=u!==o,g=Em(i,u,[]);this._getPreviousPlayers(u,p,a,s,e.toState).forEach(v=>{let y=v.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),v.destroy(),g.push(v)})}o1(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,a){let s=e.triggerName,l=e.element,u=[],p=new Set,g=new Set,_=e.timelines.map(y=>{let x=y.element;p.add(x);let I=x[Ah];if(I&&I.removedBeforeQueried)return new lv(y.duration,y.delay);let C=x!==l,D=cPe((i.get(x)||nPe).map(K=>K.getRealPlayer())).filter(K=>{let F=K;return F.element?F.element===x:!1}),A=o.get(x),M=a.get(x),R=Pae(this._normalizer,y.keyframes,A,M),j=this._buildPlayer(y,R,D);if(y.subTimeline&&r&&g.add(x),C){let K=new uT(n,s,x);K.setRealPlayer(j),u.push(K)}return j});u.forEach(y=>{Em(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>oPe(this.playersByQueriedElement,y.element,y))}),p.forEach(y=>xp(y,Sae));let v=dv(_);return v.onDestroy(()=>{p.forEach(y=>fS(y,Sae)),Bf(l,e.toStyles)}),g.forEach(y=>{Em(r,y,[]).push(v)}),v}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new lv(n.duration,n.delay)}},uT=class{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new lv,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>RU(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){Em(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function oPe(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function aPe(t){return t??null}function F3(t){return t&&t.nodeType===1}function sPe(t){return t=="start"||t=="done"}function kae(t,n){let e=t.style.display;return t.style.display=n??"none",e}function Mae(t,n,e,i,r){let o=[];e.forEach(l=>o.push(kae(l)));let a=[];i.forEach((l,u)=>{let p=new Map;l.forEach(g=>{let _=n.computeStyle(u,g,r);p.set(g,_),(!_||_.length==0)&&(u[Ah]=rPe,a.push(u))}),t.set(u,p)});let s=0;return e.forEach(l=>kae(l,o[s++])),a}function Fae(t,n){let e=new Map;if(t.forEach(s=>e.set(s,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function a(s){if(!s)return i;let l=o.get(s);if(l)return l;let u=s.parentNode;return e.has(u)?l=u:r.has(u)?l=i:l=a(u),o.set(s,l),l}return n.forEach(s=>{let l=a(s);l!==i&&e.get(l).push(s)}),e}function xp(t,n){t.classList?.add(n)}function fS(t,n){t.classList?.remove(n)}function lPe(t,n,e){dv(e).onDone(()=>t.processLeaveNode(n))}function cPe(t){let n=[];return $ae(t,n),n}function $ae(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}var gS=class{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,a)=>{},this._transitionEngine=new kU(n.body,e,i,r),this._timelineEngine=new TU(n.body,e,i),this._transitionEngine.onRemovalComplete=(o,a)=>this.onRemovalComplete(o,a)}registerTrigger(n,e,i,r,o){let a=n+"-"+r,s=this._triggerCache[a];if(!s){let l=[],u=[],p=Hae(this._driver,o,l,u);if(l.length)throw dRe(r,l);u.length&&void 0,s=XRe(r,p,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,a]=xae(i),s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[a,s]=xae(i);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function uPe(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=gU(n[0]),n.length>1&&(i=gU(n[n.length-1]))):n instanceof Map&&(e=gU(n)),e||i?new MU(t,e,i):null}var MU=class t{static{this.initialStylesByElement=new WeakMap}constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(n);r||t.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Bf(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Bf(this._element,this._initialStyles),this._endStyles&&(Bf(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(o1(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(o1(this._element,this._endStyles),this._endStyles=null),Bf(this._element,this._initialStyles),this._state=3)}};function gU(t){let n=null;return t.forEach((e,i)=>{mPe(i)&&(n=n||new Map,n.set(i,e))}),n}function mPe(t){return t==="display"||t==="position"}var H3=class{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:VU(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},z3=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return Nae(n,e)}getParentElement(n){return NU(n)}query(n,e,i){return Oae(n,e,i)}computeStyle(n,e,i){return VU(n,e)}animate(n,e,i,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:i,delay:r,fill:s};o&&(l.easing=o);let u=new Map,p=a.filter(v=>v instanceof H3);FRe(i,r)&&p.forEach(v=>{v.currentSnapshot.forEach((y,x)=>u.set(x,y))});let g=ARe(e).map(v=>new Map(v));g=RRe(n,g,u);let _=uPe(n,g);return new H3(n,g,l,_)}};var R3="@",qae="@.disabled",U3=class{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==R3&&e==qae?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},FU=class extends U3{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==R3?e.charAt(1)=="."&&e==qae?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if(e.charAt(0)==R3){let r=pPe(n),o=e.slice(1),a="";return o.charAt(0)!=R3&&([o,a]=hPe(o)),this.engine.listen(this.namespaceId,r,o,a,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,i,s)})}return this.delegate.listen(n,e,i)}};function pPe(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function hPe(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var G3=class{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{let a=o?.parentNode(r);a&&o.removeChild(a,r)}}createRenderer(n,e){let i="",r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let u=this._rendererCache,p=u.get(r);if(!p){let g=()=>u.delete(r);p=new U3(i,r,this.engine,g),u.set(r,p)}return p}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(o,a,n,u.name,u)};return e.data.animation.forEach(s),new FU(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var gPe=(()=>{class t extends gS{constructor(e,i,r){super(e,i,r,Me(aS,{optional:!0}))}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(a1),ae(s1))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function _Pe(){return new O3}function vPe(t,n,e){return new G3(t,n,e)}var Yae=[{provide:s1,useFactory:_Pe},{provide:gS,useClass:gPe},{provide:wh,useFactory:vPe,deps:[I3,gS,ht]}],Wae=[{provide:a1,useFactory:()=>new z3},{provide:Zn,useValue:"BrowserAnimations"},...Yae],bPe=[{provide:a1,useClass:OU},{provide:Zn,useValue:"NoopAnimations"},...Yae],Kae=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?bPe:Wae}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:Wae,imports:[hae]})}}return t})();var nse=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(i){return new(i||t)(E(Sc),E(Xe))}}static{this.\u0275dir=ze({type:t})}}return t})(),rse=(()=>{class t extends nse{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,features:[qt]})}}return t})(),ys=new ke("");var yPe={provide:ys,useExisting:fr(()=>Gt),multi:!0};function xPe(){let t=Of()?Of().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var CPe=new ke(""),Gt=(()=>{class t extends nse{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!xPe())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Sc),E(Xe),E(CPe,8))}}static{this.\u0275dir=ze({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&$("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[Zt([yPe]),qt]})}}return t})();function mv(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function ose(t){return t!=null&&typeof t.length=="number"}var wl=new ke(""),c1=new ke(""),SPe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Se=class{static min(n){return ase(n)}static max(n){return sse(n)}static required(n){return lse(n)}static requiredTrue(n){return wPe(n)}static email(n){return EPe(n)}static minLength(n){return IPe(n)}static maxLength(n){return cse(n)}static pattern(n){return DPe(n)}static nullValidator(n){return q3(n)}static compose(n){return fse(n)}static composeAsync(n){return gse(n)}};function ase(t){return n=>{if(mv(n.value)||mv(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(mv(n.value)||mv(t))return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function lse(t){return mv(t.value)?{required:!0}:null}function wPe(t){return t.value===!0?null:{required:!0}}function EPe(t){return mv(t.value)||SPe.test(t.value)?null:{email:!0}}function IPe(t){return n=>mv(n.value)||!ose(n.value)?null:n.value.lengthose(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function DPe(t){if(!t)return q3;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(mv(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function q3(t){return null}function dse(t){return t!=null}function use(t){return rv(t)?Ur(t):t}function mse(t){let n={};return t.forEach(e=>{n=e!=null?Ve(Ve({},n),e):n}),Object.keys(n).length===0?null:n}function pse(t,n){return n.map(e=>e(t))}function TPe(t){return!t.validate}function hse(t){return t.map(n=>TPe(n)?n:e=>n.validate(e))}function fse(t){if(!t)return null;let n=t.filter(dse);return n.length==0?null:function(e){return mse(pse(e,n))}}function zU(t){return t!=null?fse(hse(t)):null}function gse(t){if(!t)return null;let n=t.filter(dse);return n.length==0?null:function(e){let i=pse(e,n).map(use);return $_(i).pipe(st(mse))}}function UU(t){return t!=null?gse(hse(t)):null}function Xae(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function _se(t){return t._rawValidators}function vse(t){return t._rawAsyncValidators}function jU(t){return t?Array.isArray(t)?t:[t]:[]}function W3(t,n){return Array.isArray(t)?t.includes(n):t===n}function Qae(t,n){let e=jU(n);return jU(t).forEach(r=>{W3(e,r)||e.push(r)}),e}function Zae(t,n){return jU(n).filter(e=>!W3(t,e))}var Y3=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=zU(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=UU(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Nd=class extends Y3{get formDirective(){return null}get path(){return null}},Yc=class extends Y3{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},K3=class{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},APe={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},FOt=Gi(Ve({},APe),{"[class.ng-submitted]":"isSubmitted"}),it=(()=>{class t extends K3{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Yc,2))}}static{this.\u0275dir=ze({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&yt("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[qt]})}}return t})(),pt=(()=>{class t extends K3{constructor(e){super(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Nd,10))}}static{this.\u0275dir=ze({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&yt("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[qt]})}}return t})();var mT="VALID",$3="INVALID",_S="PENDING",pT="DISABLED";function GU(t){return(eN(t)?t.validators:t)||null}function kPe(t){return Array.isArray(t)?zU(t):t||null}function $U(t,n){return(eN(n)?n.asyncValidators:t)||null}function MPe(t){return Array.isArray(t)?UU(t):t||null}function eN(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function bse(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new Kt(1e3,"");if(!i[e])throw new Kt(1001,"")}function yse(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new Kt(1002,"")})}var vS=class{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===mT}get invalid(){return this.status===$3}get pending(){return this.status==_S}get disabled(){return this.status===pT}get enabled(){return this.status!==pT}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Qae(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Qae(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Zae(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Zae(n,this._rawAsyncValidators))}hasValidator(n){return W3(this._rawValidators,n)}hasAsyncValidator(n){return W3(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=_S,n.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=pT,this.errors=null,this._forEachChild(i=>{i.disable(Gi(Ve({},n),{onlySelf:!0}))}),this._updateValue(),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Gi(Ve({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=mT,this._forEachChild(i=>{i.enable(Gi(Ve({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Gi(Ve({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mT||this.status===_S)&&this._runAsyncValidator(n.emitEvent)),n.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pT:mT}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=_S,this._hasOwnPendingAsyncValidator=!0;let e=use(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Ae,this.statusChanges=new Ae}_calculateStatus(){return this._allControlsDisabled()?pT:this.errors?$3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_S)?_S:this._anyControlsHaveStatus($3)?$3:mT}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){eN(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=kPe(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=MPe(this._rawAsyncValidators)}},l1=class extends vS{constructor(n,e,i){super(GU(e),$U(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){yse(this,!0,n),Object.keys(n).forEach(i=>{bse(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var tN=l1;var HU=class extends l1{};var bS=new ke("CallSetDisabledState",{providedIn:"root",factory:()=>iN}),iN="always";function nN(t,n){return[...n.path,t]}function fT(t,n,e=iN){qU(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),RPe(t,n),NPe(t,n),PPe(t,n),FPe(t,n)}function X3(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Z3(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Q3(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function FPe(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function qU(t,n){let e=_se(t);n.validator!==null?t.setValidators(Xae(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=vse(t);n.asyncValidator!==null?t.setAsyncValidators(Xae(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();Q3(n._rawValidators,r),Q3(n._rawAsyncValidators,r)}function Z3(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=_se(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=vse(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return Q3(n._rawValidators,i),Q3(n._rawAsyncValidators,i),e}function RPe(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&xse(t,n)})}function PPe(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&xse(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function xse(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function NPe(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function Cse(t,n){t==null,qU(t,n)}function OPe(t,n){return Z3(t,n)}function WU(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function LPe(t){return Object.getPrototypeOf(t.constructor)===rse}function Sse(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function YU(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Gt?e=o:LPe(o)?i=o:r=o}),r||i||e||null}function VPe(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var BPe={provide:Nd,useExisting:fr(()=>kh)},hT=Promise.resolve(),kh=(()=>{class t extends Nd{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ae,this.form=new l1({},zU(e),UU(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){hT.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),fT(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){hT.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){hT.then(()=>{let i=this._findContainer(e.path),r=new l1({});Cse(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){hT.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){hT.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Sse(this.form,this._directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static{this.\u0275fac=function(i){return new(i||t)(E(wl,10),E(c1,10),E(bS,8))}}static{this.\u0275dir=ze({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&$("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[ve.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Zt([BPe]),qt]})}}return t})();function Jae(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function ese(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var uv=class extends vS{constructor(n=null,e,i){super(GU(e),$U(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),eN(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ese(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Jae(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Jae(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){ese(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Oo=uv,jPe=t=>t instanceof uv,HPe=(()=>{class t extends Nd{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return nN(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,features:[qt]})}}return t})();var zPe={provide:Yc,useExisting:fr(()=>Va)},tse=Promise.resolve(),Va=(()=>{class t extends Yc{constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new uv,this._registered=!1,this.name="",this.update=new Ae,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=YU(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),WU(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fT(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tse.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&at(i);tse.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?nN(e,this._parent):[e]}static{this.\u0275fac=function(i){return new(i||t)(E(Nd,9),E(wl,10),E(c1,10),E(ys,10),E(Di,8),E(bS,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ve.None,"disabled","isDisabled"],model:[ve.None,"ngModel","model"],options:[ve.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Zt([zPe]),qt,Oi]})}}return t})(),zt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return t})(),UPe={provide:ys,useExisting:fr(()=>gT),multi:!0},gT=(()=>{class t extends rse{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&$("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[Zt([UPe]),qt]})}}return t})();var KU=new ke(""),GPe={provide:Yc,useExisting:fr(()=>Od)},Od=(()=>{class t extends Yc{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new Ae,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=YU(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&X3(i,this,!1),fT(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}WU(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&X3(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(i){return new(i||t)(E(wl,10),E(c1,10),E(ys,10),E(KU,8),E(bS,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","formControl",""]],inputs:{form:[ve.None,"formControl","form"],isDisabled:[ve.None,"disabled","isDisabled"],model:[ve.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Zt([GPe]),qt,Oi]})}}return t})(),$Pe={provide:Nd,useExisting:fr(()=>dt)},dt=(()=>{class t extends Nd{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ae,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z3(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return fT(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){X3(e.control||null,e,!1),VPe(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,Sse(this.form,this.directives),this.ngSubmit.emit(e),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(X3(i||null,e),jPe(r)&&(fT(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);Cse(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&OPe(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qU(this.form,this),this._oldForm&&Z3(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(i){return new(i||t)(E(wl,10),E(c1,10),E(bS,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&$("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[ve.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Zt([$Pe]),qt,Oi]})}}return t})(),qPe={provide:Nd,useExisting:fr(()=>xs)},xs=(()=>{class t extends HPe{constructor(e,i,r){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){wse(this._parent)}static{this.\u0275fac=function(i){return new(i||t)(E(Nd,13),E(wl,10),E(c1,10))}}static{this.\u0275dir=ze({type:t,selectors:[["","formGroupName",""]],inputs:{name:[ve.None,"formGroupName","name"]},features:[Zt([qPe]),qt]})}}return t})(),WPe={provide:Nd,useExisting:fr(()=>Au)},Au=(()=>{class t extends Nd{constructor(e,i,r){super(),this.name=null,this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return nN(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){wse(this._parent)}static{this.\u0275fac=function(i){return new(i||t)(E(Nd,13),E(wl,10),E(c1,10))}}static{this.\u0275dir=ze({type:t,selectors:[["","formArrayName",""]],inputs:{name:[ve.None,"formArrayName","name"]},features:[Zt([WPe]),qt]})}}return t})();function wse(t){return!(t instanceof xs)&&!(t instanceof dt)&&!(t instanceof Au)}var YPe={provide:Yc,useExisting:fr(()=>Tt)},Tt=(()=>{class t extends Yc{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new Ae,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=YU(this,o)}ngOnChanges(e){this._added||this._setUpControl(),WU(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return nN(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(i){return new(i||t)(E(Nd,13),E(wl,10),E(c1,10),E(ys,10),E(KU,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","formControlName",""]],inputs:{name:[ve.None,"formControlName","name"],isDisabled:[ve.None,"disabled","isDisabled"],model:[ve.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Zt([YPe]),qt,Oi]})}}return t})();function KPe(t){return typeof t=="number"?t:parseInt(t,10)}function Ese(t){return typeof t=="number"?t:parseFloat(t)}var rN=(()=>{class t{constructor(){this._validator=q3}ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):q3,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,features:[Oi]})}}return t})(),XPe={provide:wl,useExisting:fr(()=>XU),multi:!0},XU=(()=>{class t extends rN{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>Ese(e),this.createValidator=e=>sse(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&xt("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[Zt([XPe]),qt]})}}return t})(),QPe={provide:wl,useExisting:fr(()=>QU),multi:!0},QU=(()=>{class t extends rN{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>Ese(e),this.createValidator=e=>ase(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&xt("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[Zt([QPe]),qt]})}}return t})(),ZPe={provide:wl,useExisting:fr(()=>Jn),multi:!0};var Jn=(()=>{class t extends rN{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=at,this.createValidator=e=>lse}enabled(e){return e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&xt("required",r._enabled?"":null)},inputs:{required:"required"},features:[Zt([ZPe]),qt]})}}return t})();var JPe={provide:wl,useExisting:fr(()=>wc),multi:!0},wc=(()=>{class t extends rN{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>KPe(e),this.createValidator=e=>cse(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&xt("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Zt([JPe]),qt]})}}return t})();var Ise=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})(),J3=class extends vS{constructor(n,e,i){super(GU(e),$U(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){yse(this,!1,n),n.forEach((i,r)=>{bse(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}},Dse=J3;function ise(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var oN=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return ise(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new l1(r,o)}record(e,i=null){let r=this._reduceControls(e);return new HU(r,i)}control(e,i,r){let o={};return this.useNonNullable?(ise(i)?o=i:(o.validators=i,o.asyncValidators=r),new uv(e,Gi(Ve({},o),{nonNullable:!0}))):new uv(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new J3(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof uv)return e;if(e instanceof vS)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ti=(()=>{class t extends oN{group(e,i=null){return super.group(e,i)}control(e,i,r){return super.control(e,i,r)}array(e,i,r){return super.array(e,i,r)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _T=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:bS,useValue:e.callSetDisabledState??iN}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Ise]})}}return t})(),vT=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:KU,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:bS,useValue:e.callSetDisabledState??iN}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Ise]})}}return t})();var aN=class{validateSignature(n){return Promise.resolve(null)}validateAtHash(n){return Promise.resolve(!0)}},sN=class{};var bT=class{},e3e=(()=>{class t extends bT{now(){return Date.now()}new(){return new Date}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();var lN=class{},xS=class{},t3e=(()=>{class t{constructor(){this.data=new Map}getItem(e){return this.data.get(e)}removeItem(e){this.data.delete(e)}setItem(e,i){this.data.set(e,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();var yT=class{constructor(n){this.type=n}},Ec=class extends yT{constructor(n,e=null){super(n),this.info=e}},Mh=class extends yT{constructor(n,e=null){super(n),this.info=e}},Ba=class extends yT{constructor(n,e,i=null){super(n),this.reason=e,this.params=i}};function Tse(t){let n=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function JU(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var yS=class{constructor(n){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.skipExpirationChecks=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=e=>{location.href=e},n&&Object.assign(this,n)}},d1=class{encodeKey(n){return encodeURIComponent(n)}encodeValue(n){return encodeURIComponent(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}},cN=class{},dN=class{validateAtHash(n){return Mt(this,null,function*(){let e=this.inferHashAlgorithm(n.idTokenHeader),i=yield this.calcHash(n.accessToken,e),r=i.substr(0,i.length/2),o=JU(r),a=n.idTokenClaims.at_hash.replace(/=/g,"");return o!==a&&(console.error("exptected at_hash: "+o),console.error("actual at_hash: "+a)),o===a})}inferHashAlgorithm(n){let e=n.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}},Ase=(()=>{class t{getHashFragmentParams(e){let i=e||window.location.hash;if(i=decodeURIComponent(i),i.indexOf("#")!==0)return{};let r=i.indexOf("?");return r>-1?i=i.substr(r+1):i=i.substr(1),this.parseQueryString(i)}parseQueryString(e){let i={},r,o,a,s,l,u;if(e===null)return i;let p=e.split("&");for(let g=0;g=64;){for(o=n[0],a=n[1],s=n[2],l=n[3],u=n[4],p=n[5],g=n[6],_=n[7],y=0;y<16;y++)x=i+y*4,t[y]=(e[x]&255)<<24|(e[x+1]&255)<<16|(e[x+2]&255)<<8|e[x+3]&255;for(y=16;y<64;y++)v=t[y-2],I=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,v=t[y-15],C=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3,t[y]=(I+t[y-7]|0)+(C+t[y-16]|0);for(y=0;y<64;y++)I=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&g)|0)+(_+(n3e[y]+t[y]|0)|0)|0,C=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&s^a&s)|0,_=g,g=p,p=u,u=l+I|0,l=s,s=a,a=o,o=I+C|0;n[0]+=o,n[1]+=a,n[2]+=s,n[3]+=l,n[4]+=u,n[5]+=p,n[6]+=g,n[7]+=_,i+=64,r-=64}return i}var e9=class{constructor(){this.digestLength=kse,this.blockSize=i3e,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let n=0;n0){for(;this.bufferLength<64&&e>0;)this.buffer[this.bufferLength++]=n[i++],e--;this.bufferLength===64&&(ZU(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(e>=64&&(i=ZU(this.temp,this.state,n,i,e),e%=64);e>0;)this.buffer[this.bufferLength++]=n[i++],e--;return this}finish(n){if(!this.finished){let e=this.bytesHashed,i=this.bufferLength,r=e/536870912|0,o=e<<3,a=e%64<56?64:128;this.buffer[i]=128;for(let s=i+1;s>>24&255,this.buffer[a-7]=r>>>16&255,this.buffer[a-6]=r>>>8&255,this.buffer[a-5]=r>>>0&255,this.buffer[a-4]=o>>>24&255,this.buffer[a-3]=o>>>16&255,this.buffer[a-2]=o>>>8&255,this.buffer[a-1]=o>>>0&255,ZU(this.temp,this.state,this.buffer,0,a),this.finished=!0}for(let e=0;e<8;e++)n[e*4+0]=this.state[e]>>>24&255,n[e*4+1]=this.state[e]>>>16&255,n[e*4+2]=this.state[e]>>>8&255,n[e*4+3]=this.state[e]>>>0&255;return this}digest(){let n=new Uint8Array(this.digestLength);return this.finish(n),n}_saveState(n){for(let e=0;e{class t{calcHash(e,i){return Mt(this,null,function*(){return a3e(r3e(o3e(e)))})}toHashString2(e){let i="";for(let r of e)i+=String.fromCharCode(r);return i}toHashString(e){let i=new Uint8Array(e),r="";for(let o of i)r+=String.fromCharCode(o);return r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),pN=(()=>{class t extends yS{constructor(e,i,r,o,a,s,l,u,p,g){super(),this.ngZone=e,this.http=i,this.config=a,this.urlHelper=s,this.logger=l,this.crypto=u,this.dateTimeService=g,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new qe,this.discoveryDocumentLoadedSubject=new qe,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=p,a||(a={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),o&&(this.tokenValidationHandler=o),a&&this.configure(a);try{r?this.setStorage(r):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(_){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",_)}if(this.checkLocalStorageAccessable()){let _=window?.navigator?.userAgent;(_?.includes("MSIE ")||_?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let e="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(e,e),localStorage.removeItem(e),!0)}catch{return!1}}configure(e){Object.assign(this,new yS,e),this.config=Object.assign({},new yS,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(vi(e=>e.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(e={},i,r=!0){let o=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(ri(a=>{a.type==="token_received"?o=!0:a.type==="logout"&&(o=!1)}),vi(a=>a.type==="token_expires"&&(i==null||i==="any"||a.info===i)),$o(1e3)).subscribe(()=>{o&&this.refreshInternal(e,r).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(e,i){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(e,i)}loadDiscoveryDocumentAndTryLogin(e=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(e))}loadDiscoveryDocumentAndLogin(e=null){return e=e||{},this.loadDiscoveryDocumentAndTryLogin(e).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let i=typeof e.state=="string"?e.state:"";return this.initLoginFlow(i),!1}else return!0})}debug(...e){this.showDebugInformation&&this.logger.debug(...e)}validateUrlFromDiscoveryDocument(e){let i=[],r=this.validateUrlForHttps(e),o=this.validateUrlAgainstIssuer(e);return r||i.push("https for all urls required. Also for urls received by discovery."),o||i.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),i}validateUrlForHttps(e){if(!e)return!0;let i=e.toLowerCase();return this.requireHttps===!1||(i.match(/^http:\/\/localhost($|[:/])/)||i.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:i.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(e,i){if(!e)throw new Error(`'${i}' should not be null`);if(!this.validateUrlForHttps(e))throw new Error(`'${i}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(e){return!this.strictDiscoveryDocumentValidation||!e?!0:e.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(vi(e=>e.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let e=this.getAccessTokenExpiration(),i=this.getAccessTokenStoredAt(),r=this.calcTimeout(i,e);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=vt(new Mh("token_expires","access_token")).pipe(Wl(r)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}setupIdTokenTimer(){let e=this.getIdTokenExpiration(),i=this.getIdTokenStoredAt(),r=this.calcTimeout(i,e);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=vt(new Mh("token_expires","id_token")).pipe(Wl(r)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(e,i){let r=this.dateTimeService.now(),o=(i-e)*this.timeoutFactor-(r-e),a=Math.max(0,o),s=2147483647;return a>s?s:a}setStorage(e){this._storage=e,this.configChanged()}loadDiscoveryDocument(e=null){return new Promise((i,r)=>{if(e||(e=this.issuer||"",e.endsWith("/")||(e+="/"),e+=".well-known/openid-configuration"),!this.validateUrlForHttps(e)){r("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(e).subscribe(o=>{if(!this.validateDiscoveryDocument(o)){this.eventsSubject.next(new Ba("discovery_document_validation_error",null)),r("discovery_document_validation_error");return}this.loginUrl=o.authorization_endpoint,this.logoutUrl=o.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=o.grant_types_supported,this.issuer=o.issuer,this.tokenEndpoint=o.token_endpoint,this.userinfoEndpoint=o.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=o.jwks_uri,this.sessionCheckIFrameUrl=o.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(o),this.revocationEndpoint=o.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(a=>{let s={discoveryDocument:o,jwks:a},l=new Ec("discovery_document_loaded",s);this.eventsSubject.next(l),i(l)}).catch(a=>{this.eventsSubject.next(new Ba("discovery_document_load_error",a)),r(a)})},o=>{this.logger.error("error loading discovery document",o),this.eventsSubject.next(new Ba("discovery_document_load_error",o)),r(o)})})}loadJwks(){return new Promise((e,i)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(r=>{this.jwks=r,e(r)},r=>{this.logger.error("error loading jwks",r),this.eventsSubject.next(new Ba("jwks_load_error",r)),i(r)}):e(null)})}validateDiscoveryDocument(e){let i;return!this.skipIssuerCheck&&e.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+e.issuer),!1):(i=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint),i.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",i),!1):(i=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint),i.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",i),!1):(i=this.validateUrlFromDiscoveryDocument(e.token_endpoint),i.length>0&&this.logger.error("error validating token_endpoint in discovery document",i),i=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint),i.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",i),i=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint),i.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",i),!1):(i=this.validateUrlFromDiscoveryDocument(e.jwks_uri),i.length>0?(this.logger.error("error validating jwks_uri in discovery document",i),!1):(this.sessionChecksEnabled&&!e.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(e,i,r=new bs){return this.fetchTokenUsingPasswordFlow(e,i,r).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((e,i)=>{let r=new bs().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:r,observe:"response",responseType:"text"}).subscribe(o=>{if(this.debug("userinfo received",JSON.stringify(o)),o.headers.get("content-type").startsWith("application/json")){let a=JSON.parse(o.body),s=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!s.sub||a.sub!==s.sub)){i(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. if you are not using oidc but just oauth2 password flow set oidc to false`);return}a=Object.assign({},s,a),this._storage.setItem("id_token_claims_obj",JSON.stringify(a)),this.eventsSubject.next(new Ec("user_profile_loaded")),e({info:a})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new Ec("user_profile_loaded")),e(JSON.parse(o.body))},o=>{this.logger.error("error loading user info",o),this.eventsSubject.next(new Ba("user_profile_load_error",o)),i(o)})})}fetchTokenUsingPasswordFlow(e,i,r=new bs){let o={username:e,password:i};return this.fetchTokenUsingGrant("password",o,r)}fetchTokenUsingGrant(e,i,r=new bs){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new $a({encoder:new d1}).set("grant_type",e).set("scope",this.scope);if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(a,this.customQueryParams[a]);for(let a of Object.keys(i))o=o.set(a,i[a]);return r=r.set("Content-Type","application/x-www-form-urlencoded"),new Promise((a,s)=>{this.http.post(this.tokenEndpoint,o,{headers:r}).subscribe(l=>{this.debug("tokenResponse",l),this.storeAccessTokenResponse(l.access_token,l.refresh_token,l.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l.scope,this.extractRecognizedCustomParameters(l)),this.oidc&&l.id_token&&this.processIdToken(l.id_token,l.access_token).then(u=>{this.storeIdToken(u),a(l)}),this.eventsSubject.next(new Ec("token_received")),a(l)},l=>{this.logger.error("Error performing ${grantType} flow",l),this.eventsSubject.next(new Ba("token_error",l)),s(l)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((e,i)=>{let r=new $a({encoder:new d1}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),o=new bs().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))r=r.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,r,{headers:o}).pipe(Wi(a=>this.oidc&&a.id_token?Ur(this.processIdToken(a.id_token,a.access_token,!0)).pipe(ri(s=>this.storeIdToken(s)),st(()=>a)):vt(a))).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.eventsSubject.next(new Ec("token_received")),this.eventsSubject.next(new Ec("token_refreshed")),e(a)},a=>{this.logger.error("Error refreshing token",a),this.eventsSubject.next(new Ba("token_refresh_error",a)),i(a)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=e=>{let i=this.processMessageEventMessage(e);this.checkOrigin&&e.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:i,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(r=>this.debug("tryLogin during silent refresh failed",r))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(e={},i=!0){let r=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(e.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");let o=this.document.getElementById(this.silentRefreshIFrameName);o&&this.document.body.removeChild(o),this.silentRefreshSubject=r.sub;let a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let s=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,s,i,e).then(g=>{a.setAttribute("src",g),this.silentRefreshShowIFrame||(a.style.display="none"),this.document.body.appendChild(a)});let l=this.events.pipe(vi(g=>g instanceof Ba),Bs()),u=this.events.pipe(vi(g=>g.type==="token_received"),Bs()),p=vt(new Ba("silent_refresh_timeout",null)).pipe(Wl(this.silentRefreshTimeout));return eH([l,u,p]).pipe(st(g=>{if(g instanceof Ba)throw g.type==="silent_refresh_timeout"?this.eventsSubject.next(g):(g=new Ba("silent_refresh_error",g),this.eventsSubject.next(g)),g;return g.type==="token_received"&&(g=new Ec("silently_refreshed"),this.eventsSubject.next(g)),g})).toPromise()}initImplicitFlowInPopup(e){return this.initLoginFlowInPopup(e)}initLoginFlowInPopup(e){return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(i=>new Promise((r,o)=>{let s=null;e.windowRef?e.windowRef&&!e.windowRef.closed&&(s=e.windowRef,s.location.href=i):s=window.open(i,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(e));let l,u=y=>{this.tryLogin({customHashFragment:y,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{g(),r(!0)},x=>{g(),o(x)})},p=()=>{(!s||s.closed)&&(g(),o(new Ba("popup_closed",{})))};s?l=window.setInterval(p,500):o(new Ba("popup_blocked",{}));let g=()=>{window.clearInterval(l),window.removeEventListener("storage",v),window.removeEventListener("message",_),s!==null&&s.close(),s=null},_=y=>{let x=this.processMessageEventMessage(y);x&&x!==null?(window.removeEventListener("storage",v),u(x)):console.log("false event firing")},v=y=>{y.key==="auth_hash"&&(window.removeEventListener("message",_),u(y.newValue))};window.addEventListener("message",_),window.addEventListener("storage",v)}))}calculatePopupFeatures(e){let i=e.height||470,r=e.width||500,o=window.screenLeft+(window.outerWidth-r)/2,a=window.screenTop+(window.outerHeight-i)/2;return`location=no,toolbar=no,width=${r},height=${i},top=${a},left=${o}`}processMessageEventMessage(e){let i="#";if(this.silentRefreshMessagePrefix&&(i+=this.silentRefreshMessagePrefix),!e||!e.data||typeof e.data!="string")return;let r=e.data;if(r.startsWith(i))return"#"+r.substr(i.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.getSessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=e=>{let i=e.origin.toLowerCase(),r=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!r.startsWith(i)){this.debug("sessionCheckEventListener","wrong origin",i,"expected",r,"event",e);return}switch(e.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",e)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Mh("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Mh("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Mh("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Mh("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(vi(e=>e.type==="silently_refreshed"||e.type==="silent_refresh_timeout"||e.type==="silent_refresh_error"),Bs()).subscribe(e=>{e.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Mh("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Mh("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);let i=this.document.createElement("iframe");i.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let r=this.sessionCheckIFrameUrl;i.setAttribute("src",r),i.style.display="none",this.document.body.appendChild(i),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let i=this.getSessionState();i||this.stopSessionCheckTimer();let r=this.clientId+" "+i;e.contentWindow.postMessage(r,this.issuer)}createLoginUrl(){return Mt(this,arguments,function*(e="",i="",r="",o=!1,a={}){let s=this,l;r?l=r:l=this.redirectUri;let u=yield this.createAndSaveNonce();if(e?e=u+this.config.nonceStateSeparator+encodeURIComponent(e):e=u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let p=s.loginUrl.indexOf("?")>-1?"&":"?",g=s.scope;this.oidc&&!g.match(/(^|\s)openid($|\s)/)&&(g="openid "+g);let _=s.loginUrl+p+"response_type="+encodeURIComponent(s.responseType)+"&client_id="+encodeURIComponent(s.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(l)+"&scope="+encodeURIComponent(g);if(this.responseType.includes("code")&&!this.disablePKCE){let[v,y]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",y):this._storage.setItem("PKCE_verifier",y),_+="&code_challenge="+v,_+="&code_challenge_method=S256"}i&&(_+="&login_hint="+encodeURIComponent(i)),s.resource&&(_+="&resource="+encodeURIComponent(s.resource)),s.oidc&&(_+="&nonce="+encodeURIComponent(u)),o&&(_+="&prompt=none");for(let v of Object.keys(a))_+="&"+encodeURIComponent(v)+"="+encodeURIComponent(a[v]);if(this.customQueryParams)for(let v of Object.getOwnPropertyNames(this.customQueryParams))_+="&"+v+"="+encodeURIComponent(this.customQueryParams[v]);return _})}initImplicitFlowInternal(e="",i=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let r={},o=null;typeof i=="string"?o=i:typeof i=="object"&&(r=i),this.createLoginUrl(e,o,null,!1,r).then(this.config.openUri).catch(a=>{console.error("Error in initImplicitFlow",a),this.inImplicitFlow=!1})}initImplicitFlow(e="",i=""){this.loginUrl!==""?this.initImplicitFlowInternal(e,i):this.events.pipe(vi(r=>r.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(e,i))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(e){let i=this;if(e.onTokenReceived){let r={idClaims:i.getIdentityClaims(),idToken:i.getIdToken(),accessToken:i.getAccessToken(),state:i.state};e.onTokenReceived(r)}}storeAccessTokenResponse(e,i,r,o,a){if(this._storage.setItem("access_token",e),o&&!Array.isArray(o)?this._storage.setItem("granted_scopes",JSON.stringify(o.split(" "))):o&&Array.isArray(o)&&this._storage.setItem("granted_scopes",JSON.stringify(o)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),r){let s=r*1e3,u=this.dateTimeService.new().getTime()+s;this._storage.setItem("expires_at",""+u)}i&&this._storage.setItem("refresh_token",i),a&&a.forEach((s,l)=>{this._storage.setItem(l,s)})}tryLogin(e=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(e).then(()=>!0):this.tryLoginImplicitFlow(e)}parseQueryString(e){return!e||e.length===0?{}:(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}tryLoginCodeFlow(e=null){return Mt(this,null,function*(){e=e||{};let i=e.customHashFragment?e.customHashFragment.substring(1):window.location.search,r=this.getCodePartsFromUrl(i),o=r.code,a=r.state,s=r.session_state;if(!e.preventClearHashAfterLogin){let p=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,p)}let[l,u]=this.parseState(a);if(this.state=u,r.error){this.debug("error trying to login"),this.handleLoginError(e,r);let p=new Ba("code_error",{},r);return this.eventsSubject.next(p),Promise.reject(p)}if(!e.disableNonceCheck){if(!l)return this.saveRequestedRoute(),Promise.resolve();if(!e.disableOAuth2StateCheck&&!this.validateNonce(l)){let g=new Ba("invalid_nonce_in_state",null);return this.eventsSubject.next(g),Promise.reject(g)}}return this.storeSessionState(s),o&&(yield this.getTokenFromCode(o,e),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let e=this._storage.getItem("requested_route");e&&history.replaceState(null,"",window.location.origin+e)}getCodePartsFromUrl(e){return!e||e.length===0?this.urlHelper.getHashFragmentParams():(e.charAt(0)==="?"&&(e=e.substr(1)),this.urlHelper.parseQueryString(e))}getTokenFromCode(e,i){let r=new $a({encoder:new d1}).set("grant_type","authorization_code").set("code",e).set("redirect_uri",i.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let o;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?o=localStorage.getItem("PKCE_verifier"):o=this._storage.getItem("PKCE_verifier"),o?r=r.set("code_verifier",o):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(r,i)}fetchAndProcessToken(e,i){i=i||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let r=new bs().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let o=btoa(`${this.clientId}:${this.dummyClientSecret}`);r=r.set("Authorization","Basic "+o)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise((o,a)=>{if(this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))e=e.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,e,{headers:r}).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.oidc&&s.id_token?this.processIdToken(s.id_token,s.access_token,i.disableNonceCheck).then(l=>{this.storeIdToken(l),this.eventsSubject.next(new Ec("token_received")),this.eventsSubject.next(new Ec("token_refreshed")),o(s)}).catch(l=>{this.eventsSubject.next(new Ba("token_validation_error",l)),console.error("Error validating tokens"),console.error(l),a(l)}):(this.eventsSubject.next(new Ec("token_received")),this.eventsSubject.next(new Ec("token_refreshed")),o(s))},s=>{console.error("Error getting token",s),this.eventsSubject.next(new Ba("token_refresh_error",s)),a(s)})})}tryLoginImplicitFlow(e=null){e=e||{};let i;e.customHashFragment?i=this.urlHelper.getHashFragmentParams(e.customHashFragment):i=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",i);let r=i.state,[o,a]=this.parseState(r);if(this.state=a,i.error){this.debug("error trying to login"),this.handleLoginError(e,i);let g=new Ba("token_error",{},i);return this.eventsSubject.next(g),Promise.reject(g)}let s=i.access_token,l=i.id_token,u=i.session_state,p=i.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!s||this.requestAccessToken&&!e.disableOAuth2StateCheck&&!r||this.oidc&&!l)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!e.disableNonceCheck&&!this.validateNonce(o)){let _=new Ba("invalid_nonce_in_state",null);return this.eventsSubject.next(_),Promise.reject(_)}return this.requestAccessToken&&this.storeAccessTokenResponse(s,null,i.expires_in||this.fallbackAccessTokenExpirationTimeInSec,p),this.oidc?this.processIdToken(l,s,e.disableNonceCheck).then(g=>e.validationHandler?e.validationHandler({accessToken:s,idClaims:g.idTokenClaims,idToken:g.idToken,state:r}).then(()=>g):g).then(g=>(this.storeIdToken(g),this.storeSessionState(u),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new Ec("token_received")),this.callOnTokenReceivedIfExists(e),this.inImplicitFlow=!1,!0)).catch(g=>(this.eventsSubject.next(new Ba("token_validation_error",g)),this.logger.error("Error validating tokens"),this.logger.error(g),Promise.reject(g))):(this.eventsSubject.next(new Ec("token_received")),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(e),Promise.resolve(!0))}parseState(e){let i=e,r="";if(e){let o=e.indexOf(this.config.nonceStateSeparator);o>-1&&(i=e.substr(0,o),r=e.substr(o+this.config.nonceStateSeparator.length))}return[i,r]}validateNonce(e){let i;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?i=localStorage.getItem("nonce"):i=this._storage.getItem("nonce"),i!==e?(console.error("Validating access_token failed, wrong state/nonce.",i,e),!1):!0}storeIdToken(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(e){this._storage.setItem("session_state",e)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(e,i){e.onLoginError&&e.onLoginError(i),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(e=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?e:this.clockSkewInSec*1e3}processIdToken(e,i,r=!1){let o=e.split("."),a=this.padBase64(o[0]),s=Tse(a),l=JSON.parse(s),u=this.padBase64(o[1]),p=Tse(u),g=JSON.parse(p),_;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?_=localStorage.getItem("nonce"):_=this._storage.getItem("nonce");let v=[this.clientId];if(this.validAudiences&&(v=this.validAudiences),Array.isArray(g.aud)){if(g.aud.every(A=>!v.some(M=>M===A))){let A="Wrong audience: "+g.aud.join(",");return this.logger.warn(A),Promise.reject(A)}}else if(!v.some(A=>A===g.aud)){let A="Wrong audience: "+g.aud;return this.logger.warn(A),Promise.reject(A)}if(!g.sub){let A="No sub claim in id_token";return this.logger.warn(A),Promise.reject(A)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==g.sub){let A=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${g.sub}`;return this.logger.warn(A),Promise.reject(A)}if(!g.iat){let A="No iat claim in id_token";return this.logger.warn(A),Promise.reject(A)}if(!this.skipIssuerCheck&&g.iss!==this.issuer){let A="Wrong issuer: "+g.iss;return this.logger.warn(A),Promise.reject(A)}if(!r&&g.nonce!==_){let A="Wrong nonce: "+g.nonce;return this.logger.warn(A),Promise.reject(A)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!g.at_hash){let A="An at_hash is needed!";return this.logger.warn(A),Promise.reject(A)}let y=this.dateTimeService.now(),x=g.iat*1e3,I=g.exp*1e3,C=this.getClockSkewInMsec();if(!this.skipExpirationChecks&&(x-C>=y||I+C-this.decreaseExpirationBySec<=y)){let A="Token has expired";return console.error(A),console.error({now:y,issuedAtMSec:x,expiresAtMSec:I}),Promise.reject(A)}let D={accessToken:i,idToken:e,jwks:this.jwks,idTokenClaims:g,idTokenHeader:l,bypassTimestampCheck:this.skipExpirationChecks,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(D).then(()=>({idToken:e,idTokenClaims:g,idTokenClaimsJson:p,idTokenHeader:l,idTokenHeaderJson:s,idTokenExpiresAt:I})):this.checkAtHash(D).then(A=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!A){let M="Wrong at_hash";return this.logger.warn(M),Promise.reject(M)}return this.checkSignature(D).then(()=>{let M=!this.disableAtHashCheck,R={idToken:e,idTokenClaims:g,idTokenClaimsJson:p,idTokenHeader:l,idTokenHeaderJson:s,idTokenExpiresAt:I};return M?this.checkAtHash(D).then(j=>{if(this.requestAccessToken&&!j){let K="Wrong at_hash";return this.logger.warn(K),Promise.reject(K)}else return R}):R})})}getIdentityClaims(){let e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}getGrantedScopes(){let e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(e){for(;e.length%4!==0;)e+="=";return e}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let e=this._storage.getItem("expires_at"),i=this.dateTimeService.new();return!(e&&parseInt(e,10)-this.decreaseExpirationBySec=0&&this._storage.getItem(e)!==null?JSON.parse(this._storage.getItem(e)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(e={},i=""){let r=!1;typeof e=="boolean"&&(r=e,e={});let o=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(s=>this._storage.removeItem(s)),this.silentRefreshSubject=null,this.eventsSubject.next(new Mh("logout")),!this.logoutUrl||r)return;let a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(o)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let s=new $a({encoder:new d1});o&&(s=s.set("id_token_hint",o));let l=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";l&&(s=s.set("post_logout_redirect_uri",l),i&&(s=s.set("state",i)));for(let u in e)s=s.set(u,e[u]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+s.toString()}this.config.openUri(a)}createAndSaveNonce(){let e=this;return this.createNonce().then(function(i){return e.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",i):e._storage.setItem("nonce",i),i})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();let e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let i=this.document.getElementById(this.sessionCheckIFrameName);i&&i.remove()}createNonce(){return new Promise(e=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=45,o="",a=typeof self>"u"?null:self.crypto||self.msCrypto;if(a){let s=new Uint8Array(r);a.getRandomValues(s),s.map||(s.map=Array.prototype.map),s=s.map(l=>i.charCodeAt(l%i.length)),o=String.fromCharCode.apply(null,s)}else for(;0r.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(e,i))}initCodeFlowInternal(e="",i={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let r={},o=null;typeof i=="string"?o=i:typeof i=="object"&&(r=i),this.createLoginUrl(e,o,null,!1,r).then(this.config.openUri).catch(a=>{console.error("Error in initAuthorizationCodeFlow"),console.error(a)})}createChallangeVerifierPairForPKCE(){return Mt(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let e=yield this.createNonce(),i=yield this.crypto.calcHash(e,"sha-256");return[JU(i),e]})}extractRecognizedCustomParameters(e){let i=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(r=>{e[r]&&i.set(r,JSON.stringify(e[r]))}),i}revokeTokenAndLogout(e={},i=!1){let r=this.revocationEndpoint,o=this.getAccessToken(),a=this.getRefreshToken();if(!o)return Promise.resolve();let s=new $a({encoder:new d1}),l=new bs().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let u=btoa(`${this.clientId}:${this.dummyClientSecret}`);l=l.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let u of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(u,this.customQueryParams[u]);return new Promise((u,p)=>{let g,_;if(o){let v=s.set("token",o).set("token_type_hint","access_token");g=this.http.post(r,v,{headers:l})}else g=vt(null);if(a){let v=s.set("token",a).set("token_type_hint","refresh_token");_=this.http.post(r,v,{headers:l})}else _=vt(null);i&&(g=g.pipe(Ma(v=>v.status===0?vt(null):Os(v))),_=_.pipe(Ma(v=>v.status===0?vt(null):Os(v)))),vm([g,_]).subscribe(v=>{this.logOut(e),u(v),this.logger.info("Token successfully revoked")},v=>{this.logger.error("Error revoking token",v),this.eventsSubject.next(new Ba("token_revoke_error",v)),p(v)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}static{this.\u0275fac=function(i){return new(i||t)(ae(ht),ae(sn),ae(xS,8),ae(cN,8),ae(yS,8),ae(Ase),ae(lN),ae(uN,8),ae(ni),ae(bT))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),mN=class{},t9=class{handleError(n){return Os(n)}},l3e=(()=>{class t{constructor(e,i,r){this.oAuthService=e,this.errorHandler=i,this.moduleConfig=r}checkUrl(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(i=>e.toLowerCase().startsWith(i.toLowerCase())):!0}intercept(e,i){let r=e.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(r)?i.handle(e):this.moduleConfig.resourceServer.sendAccessToken?Cn(vt(this.oAuthService.getAccessToken()).pipe(vi(a=>!!a)),this.oAuthService.events.pipe(vi(a=>a.type==="token_received"),ky(this.oAuthService.waitForTokenInMsec||0),Ma(()=>vt(null)),st(()=>this.oAuthService.getAccessToken()))).pipe(cn(1),Ca(a=>{if(a){let s="Bearer "+a,l=e.headers.set("Authorization",s);e=e.clone({headers:l})}return i.handle(e).pipe(Ma(s=>this.errorHandler.handleError(s)))})):i.handle(e).pipe(Ma(a=>this.errorHandler.handleError(a)))}static{this.\u0275fac=function(i){return new(i||t)(ae(pN),ae(mN),ae(sN,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function c3e(){return console}function d3e(){return typeof sessionStorage<"u"?sessionStorage:new t3e}function u3e(t=null,n=aN){return $y([pN,Ase,{provide:lN,useFactory:c3e},{provide:xS,useFactory:d3e},{provide:cN,useClass:n},{provide:uN,useClass:s3e},{provide:mN,useClass:t9},{provide:sN,useValue:t},{provide:eT,useClass:l3e,multi:!0},{provide:bT,useClass:e3e}])}var hN=(()=>{class t{static forRoot(e=null,i=aN){return{ngModule:t,providers:[u3e(e,i)]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[po]})}}return t})();var $Ot=new ke("AUTH_CONFIG");var Pr="primary",NT=Symbol("RouteTitle"),a9=class{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function IS(t){return new a9(t)}function p3e(t,n,e){let i=e.path.split("/");if(i.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||i.lengthi[o]===r)}else return t===n}function jse(t){return t.length>0?t[t.length-1]:null}function fv(t){return $g(t)?t:rv(t)?Ur(Promise.resolve(t)):vt(t)}var f3e={exact:zse,subset:Use},Hse={exact:g3e,subset:_3e,ignored:()=>!0};function Mse(t,n,e){return f3e[e.paths](t.root,n.root,e.matrixParams)&&Hse[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function g3e(t,n){return jf(t,n)}function zse(t,n,e){if(!m1(t.segments,n.segments)||!_N(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let i in n.children)if(!t.children[i]||!zse(t.children[i],n.children[i],e))return!1;return!0}function _3e(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Bse(t[e],n[e]))}function Use(t,n,e){return Gse(t,n,n.segments,e)}function Gse(t,n,e,i){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!m1(r,e)||n.hasChildren()||!_N(r,e,i))}else if(t.segments.length===e.length){if(!m1(t.segments,e)||!_N(t.segments,e,i))return!1;for(let r in n.children)if(!t.children[r]||!Use(t.children[r],n.children[r],i))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!m1(t.segments,r)||!_N(t.segments,r,i)||!t.children[Pr]?!1:Gse(t.children[Pr],n,o,i)}}function _N(t,n,e){return n.every((i,r)=>Hse[e](t[r].parameters,i.parameters))}var pv=class{constructor(n=new ia([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=IS(this.queryParams),this._queryParamMap}toString(){return y3e.serialize(this)}},ia=class{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vN(this)}},u1=class{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=IS(this.parameters),this._parameterMap}toString(){return qse(this)}};function v3e(t,n){return m1(t,n)&&t.every((e,i)=>jf(e.parameters,n[i].parameters))}function m1(t,n){return t.length!==n.length?!1:t.every((e,i)=>e.path===n[i].path)}function b3e(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===Pr&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==Pr&&(e=e.concat(n(r,i)))}),e}var OT=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>new DT,providedIn:"root"})}}return t})(),DT=class{parse(n){let e=new c9(n);return new pv(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${xT(n.root,!0)}`,i=S3e(n.queryParams),r=typeof n.fragment=="string"?`#${x3e(n.fragment)}`:"";return`${e}${i}${r}`}},y3e=new DT;function vN(t){return t.segments.map(n=>qse(n)).join("/")}function xT(t,n){if(!t.hasChildren())return vN(t);if(n){let e=t.children[Pr]?xT(t.children[Pr],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Pr&&i.push(`${r}:${xT(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=b3e(t,(i,r)=>r===Pr?[xT(t.children[Pr],!1)]:[`${r}:${xT(i,!1)}`]);return Object.keys(t.children).length===1&&t.children[Pr]!=null?`${vN(t)}/${e[0]}`:`${vN(t)}/(${e.join("//")})`}}function $se(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fN(t){return $se(t).replace(/%3B/gi,";")}function x3e(t){return encodeURI(t)}function l9(t){return $se(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bN(t){return decodeURIComponent(t)}function Fse(t){return bN(t.replace(/\+/g,"%20"))}function qse(t){return`${l9(t.path)}${C3e(t.parameters)}`}function C3e(t){return Object.entries(t).map(([n,e])=>`;${l9(n)}=${l9(e)}`).join("")}function S3e(t){let n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${fN(e)}=${fN(r)}`).join("&"):`${fN(e)}=${fN(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var w3e=/^[^\/()?;#]+/;function i9(t){let n=t.match(w3e);return n?n[0]:""}var E3e=/^[^\/()?;=#]+/;function I3e(t){let n=t.match(E3e);return n?n[0]:""}var D3e=/^[^=?&#]+/;function T3e(t){let n=t.match(D3e);return n?n[0]:""}var A3e=/^[^&#]+/;function k3e(t){let n=t.match(A3e);return n?n[0]:""}var c9=class{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ia([],{}):new ia([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Pr]=new ia(n,e)),i}parseSegment(){let n=i9(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new Kt(4009,!1);return this.capture(n),new u1(bN(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=I3e(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=i9(this.remaining);r&&(i=r,this.capture(i))}n[bN(e)]=bN(i)}parseQueryParam(n){let e=T3e(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let a=k3e(this.remaining);a&&(i=a,this.capture(i))}let r=Fse(e),o=Fse(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=i9(this.remaining),r=this.remaining[i.length];if(r!=="/"&&r!==")"&&r!==";")throw new Kt(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Pr);let a=this.parseChildren();e[o]=Object.keys(a).length===1?a[Pr]:new ia([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new Kt(4011,!1)}};function Wse(t){return t.segments.length>0?new ia([],{[Pr]:t}):t}function Yse(t){let n={};for(let[i,r]of Object.entries(t.children)){let o=Yse(r);if(i===Pr&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))n[a]=s;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}let e=new ia(t.segments,n);return M3e(e)}function M3e(t){if(t.numberOfChildren===1&&t.children[Pr]){let n=t.children[Pr];return new ia(t.segments.concat(n.segments),n.children)}return t}function DS(t){return t instanceof pv}function F3e(t,n,e=null,i=null){let r=Kse(t);return Xse(r,n,e,i)}function Kse(t){let n;function e(o){let a={};for(let l of o.children){let u=e(l);a[l.outlet]=u}let s=new ia(o.url,a);return o===t&&(n=s),s}let i=e(t.root),r=Wse(i);return n??r}function Xse(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(n.length===0)return n9(r,r,r,e,i);let o=R3e(n);if(o.toRoot())return n9(r,r,new ia([],{}),e,i);let a=P3e(o,r,t),s=a.processChildren?wT(a.segmentGroup,a.index,o.commands):Zse(a.segmentGroup,a.index,o.commands);return n9(r,a.segmentGroup,s,e,i)}function yN(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function TT(t){return typeof t=="object"&&t!=null&&t.outlets}function n9(t,n,e,i,r){let o={};i&&Object.entries(i).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(p=>`${p}`):`${u}`});let a;t===n?a=e:a=Qse(t,n,e);let s=Wse(Yse(a));return new pv(s,o,r)}function Qse(t,n,e){let i={};return Object.entries(t.children).forEach(([r,o])=>{o===n?i[r]=e:i[r]=Qse(o,n,e)}),new ia(t.segments,i)}var xN=class{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&yN(i[0]))throw new Kt(4003,!1);let r=i.find(TT);if(r&&r!==jse(i))throw new Kt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function R3e(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new xN(!0,0,t);let n=0,e=!1,i=t.reduce((r,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,u])=>{s[l]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?e=!0:s===".."?n++:s!=""&&r.push(s))}),r):[...r,o]},[]);return new xN(e,n,i)}var wS=class{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}};function P3e(t,n,e){if(t.isAbsolute)return new wS(n,!0,0);if(!e)return new wS(n,!1,NaN);if(e.parent===null)return new wS(e,!0,0);let i=yN(t.commands[0])?0:1,r=e.segments.length-1+i;return N3e(e,r,t.numberOfDoubleDots)}function N3e(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Kt(4005,!1);r=i.segments.length}return new wS(i,!1,r-o)}function O3e(t){return TT(t[0])?t[0].outlets:{[Pr]:t}}function Zse(t,n,e){if(t??=new ia([],{}),t.segments.length===0&&t.hasChildren())return wT(t,n,e);let i=L3e(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndexo!==Pr)&&t.children[Pr]&&t.numberOfChildren===1&&t.children[Pr].segments.length===0){let o=wT(t.children[Pr],n,e);return new ia(t.segments,o.children)}return Object.entries(i).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[o]=Zse(t.children[o],n,a))}),Object.entries(t.children).forEach(([o,a])=>{i[o]===void 0&&(r[o]=a)}),new ia(t.segments,r)}}function L3e(t,n,e){let i=0,r=n,o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;let a=t.segments[r],s=e[i];if(TT(s))break;let l=`${s}`,u=i0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!Pse(l,u,a))return o;i+=2}else{if(!Pse(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}function d9(t,n,e){let i=t.segments.slice(0,n),r=0;for(;r{typeof i=="string"&&(i=[i]),i!==null&&(n[e]=d9(new ia([],{}),0,i))}),n}function Rse(t){let n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function Pse(t,n,e){return t==e.path&&jf(n,e.parameters)}var ET="imperative",Xl=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Xl||{}),Cp=class{constructor(n,e){this.id=n,this.url=e}},Fh=class extends Cp{constructor(n,e,i="imperative",r=null){super(n,e),this.type=Xl.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ld=class extends Cp{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=Xl.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Dm=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Dm||{}),CN=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(CN||{}),Rh=class extends Cp{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Xl.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},hv=class extends Cp{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=Xl.NavigationSkipped}},AT=class extends Cp{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=Xl.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},SN=class extends Cp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Xl.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},u9=class extends Cp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Xl.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},m9=class extends Cp{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=Xl.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},p9=class extends Cp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Xl.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},h9=class extends Cp{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=Xl.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},f9=class{constructor(n){this.route=n,this.type=Xl.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},g9=class{constructor(n){this.route=n,this.type=Xl.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},_9=class{constructor(n){this.snapshot=n,this.type=Xl.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},v9=class{constructor(n){this.snapshot=n,this.type=Xl.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},b9=class{constructor(n){this.snapshot=n,this.type=Xl.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},y9=class{constructor(n){this.snapshot=n,this.type=Xl.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wN=class{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=Xl.Scroll}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},kT=class{},MT=class{constructor(n){this.url=n}};var x9=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new LT,this.attachRef=null}},LT=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){let r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new x9,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),EN=class{constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=C9(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){let e=C9(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=S9(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return S9(n,this._root).map(e=>e.value)}};function C9(t,n){if(t===n.value)return n;for(let e of n.children){let i=C9(t,e);if(i)return i}return null}function S9(t,n){if(t===n.value)return[n];for(let e of n.children){let i=S9(t,e);if(i.length)return i.unshift(n),i}return[]}var Im=class{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function SS(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var IN=class extends EN{constructor(n,e){super(n),this.snapshot=e,R9(this,n)}toString(){return this.snapshot.toString()}};function Jse(t){let n=B3e(t),e=new Tr([new u1("",{})]),i=new Tr({}),r=new Tr({}),o=new Tr({}),a=new Tr(""),s=new Ut(e,i,o,a,r,Pr,t,n.root);return s.snapshot=n.root,new IN(new Im(s,[]),n)}function B3e(t){let n={},e={},i={},r="",o=new FT([],n,i,r,e,Pr,t,null,{});return new DN("",new Im(o,[]))}var Ut=class{constructor(n,e,i,r,o,a,s,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(st(u=>u[NT]))??vt(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(st(n=>IS(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(st(n=>IS(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function F9(t,n,e="emptyOnly"){let i,{routeConfig:r}=t;return n!==null&&(e==="always"||r?.path===""||!n.component&&!n.routeConfig?.loadComponent)?i={params:Ve(Ve({},n.params),t.params),data:Ve(Ve({},n.data),t.data),resolve:Ve(Ve(Ve(Ve({},t.data),n.data),r?.data),t._resolvedData)}:i={params:Ve({},t.params),data:Ve({},t.data),resolve:Ve(Ve({},t.data),t._resolvedData??{})},r&&tle(r)&&(i.resolve[NT]=r.title),i}var FT=class{get title(){return this.data?.[NT]}constructor(n,e,i,r,o,a,s,l,u){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=IS(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=IS(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},DN=class extends EN{constructor(n,e){super(e),this.url=n,R9(this,e)}toString(){return ele(this._root)}};function R9(t,n){n.value._routerState=t,n.children.forEach(e=>R9(t,e))}function ele(t){let n=t.children.length>0?` { ${t.children.map(ele).join(", ")} } `:"";return`${t.value}${n}`}function r9(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,jf(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),jf(n.params,e.params)||t.paramsSubject.next(e.params),h3e(n.url,e.url)||t.urlSubject.next(e.url),jf(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function w9(t,n){let e=jf(t.params,n.params)&&v3e(t.url,n.url),i=!t.parent!=!n.parent;return e&&!i&&(!t.parent||w9(t.parent,n.parent))}function tle(t){return typeof t.title=="string"||t.title===null}var _n=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Pr,this.activateEvents=new Ae,this.deactivateEvents=new Ae,this.attachEvents=new Ae,this.detachEvents=new Ae,this.parentContexts=Me(LT),this.location=Me(Er),this.changeDetector=Me(Di),this.environmentInjector=Me(Yl),this.inputBinder=Me(FN,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Kt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Kt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Kt(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Kt(4013,!1);this._activatedRoute=e;let r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new E9(e,s,r.injector);this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Oi]})}}return t})(),E9=class t{__ngOutletInjector(n){return new t(this.route,this.childContexts,n)}constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===Ut?this.route:n===LT?this.childContexts:this.parent.get(n,e)}},FN=new ke(""),Nse=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:i}=e,r=vm([i.queryParams,i.params,i.data]).pipe(Wi(([o,a,s],l)=>(s=Ve(Ve(Ve({},o),a),s),l===0?vt(s):Promise.resolve(s)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(e);return}let a=woe(i.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function j3e(t,n,e){let i=RT(t,n._root,e?e._root:void 0);return new IN(i,n)}function RT(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let r=H3e(t,n,e);return new Im(i,r)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>RT(t,s)),a}}let i=z3e(n.value),r=n.children.map(o=>RT(t,o));return new Im(i,r)}}function H3e(t,n,e){return n.children.map(i=>{for(let r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return RT(t,i,r);return RT(t,i)})}function z3e(t){return new Ut(new Tr(t.url),new Tr(t.params),new Tr(t.queryParams),new Tr(t.fragment),new Tr(t.data),t.outlet,t.component,t)}var ile="ngNavigationCancelingError";function nle(t,n){let{redirectTo:e,navigationBehaviorOptions:i}=DS(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=rle(!1,Dm.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function rle(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[ile]=!0,e.cancellationCode=n,e}function U3e(t){return ole(t)&&DS(t.url)}function ole(t){return!!t&&t[ile]}var G3e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Dt],decls:1,vars:0,template:function(i,r){i&1&&H(0,"router-outlet")},dependencies:[_n],encapsulation:2})}}return t})();function $3e(t,n){return t.providers&&!t._injector&&(t._injector=YP(t.providers,n,`Route: ${t.path}`)),t._injector??n}function P9(t){let n=t.children&&t.children.map(P9),e=n?Gi(Ve({},t),{children:n}):Ve({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Pr&&(e.component=G3e),e}function Hf(t){return t.outlet||Pr}function q3e(t,n){let e=t.filter(i=>Hf(i)===n);return e.push(...t.filter(i=>Hf(i)!==n)),e}function VT(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var W3e=(t,n,e,i)=>st(r=>(new I9(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)),I9=class{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),r9(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){let r=SS(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r===o)if(r.component){let a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=SS(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);if(i&&i.outlet){let a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=SS(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){let r=SS(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new y9(o.value.snapshot))}),n.children.length&&this.forwardEvent(new v9(n.value.snapshot))}activateRoutes(n,e,i){let r=n.value,o=e?e.value:null;if(r9(r),r===o)if(r.component){let a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){let a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),r9(s.route.value),this.activateChildRoutes(n,null,a.children)}else{let s=VT(r.snapshot);a.attachRef=null,a.route=r,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}},TN=class{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ES=class{constructor(n,e){this.component=n,this.route=e}};function Y3e(t,n,e){let i=t._root,r=n?n._root:null;return CT(i,r,e,[i.value])}function K3e(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function AS(t,n){let e=Symbol(),i=n.get(t,e);return i===e?typeof t=="function"&&!Hie(t)?t:n.get(t):i}function CT(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=SS(n);return t.children.forEach(a=>{X3e(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>IT(s,e.getContext(a),r)),r}function X3e(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=Q3e(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new TN(i)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?CT(t,n,s?s.children:null,i,r):CT(t,n,e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ES(s.outlet.component,a))}else a&&IT(n,s,r),r.canActivateChecks.push(new TN(i)),o.component?CT(t,null,s?s.children:null,i,r):CT(t,null,e,i,r);return r}function Q3e(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!m1(t.url,n.url);case"pathParamsOrQueryParamsChange":return!m1(t.url,n.url)||!jf(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!w9(t,n)||!jf(t.queryParams,n.queryParams);case"paramsChange":default:return!w9(t,n)}}function IT(t,n,e){let i=SS(t),r=t.value;Object.entries(i).forEach(([o,a])=>{r.component?n?IT(a,n.children.getContext(o),e):IT(a,null,e):IT(a,n,e)}),r.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new ES(n.outlet.component,r)):e.canDeactivateChecks.push(new ES(null,r)):e.canDeactivateChecks.push(new ES(null,r))}function BT(t){return typeof t=="function"}function Z3e(t){return typeof t=="boolean"}function J3e(t){return t&&BT(t.canLoad)}function eNe(t){return t&&BT(t.canActivate)}function tNe(t){return t&&BT(t.canActivateChild)}function iNe(t){return t&&BT(t.canDeactivate)}function nNe(t){return t&&BT(t.canMatch)}function ale(t){return t instanceof vh||t?.name==="EmptyError"}var gN=Symbol("INITIAL_VALUE");function TS(){return Wi(t=>vm(t.map(n=>n.pipe(cn(1),kn(gN)))).pipe(st(n=>{for(let e of n)if(e!==!0){if(e===gN)return gN;if(e===!1||e instanceof pv)return e}return!0}),vi(n=>n!==gN),cn(1)))}function rNe(t,n){return Ca(e=>{let{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return a.length===0&&o.length===0?vt(Gi(Ve({},e),{guardsResult:!0})):oNe(a,i,r,t).pipe(Ca(s=>s&&Z3e(s)?aNe(i,o,t,n):vt(s)),st(s=>Gi(Ve({},e),{guardsResult:s})))})}function oNe(t,n,e,i){return Ur(t).pipe(Ca(r=>uNe(r.component,r.route,e,n,i)),Bs(r=>r!==!0,!0))}function aNe(t,n,e,i){return Ur(n).pipe(qg(r=>If(lNe(r.route.parent,i),sNe(r.route,i),dNe(t,r.path,e),cNe(t,r.route,e))),Bs(r=>r!==!0,!0))}function sNe(t,n){return t!==null&&n&&n(new b9(t)),vt(!0)}function lNe(t,n){return t!==null&&n&&n(new _9(t)),vt(!0)}function cNe(t,n,e){let i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||i.length===0)return vt(!0);let r=i.map(o=>xu(()=>{let a=VT(n)??e,s=AS(o,a),l=eNe(s)?s.canActivate(n,t):Du(a,()=>s(n,t));return fv(l).pipe(Bs())}));return vt(r).pipe(TS())}function dNe(t,n,e){let i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>K3e(a)).filter(a=>a!==null).map(a=>xu(()=>{let s=a.guards.map(l=>{let u=VT(a.node)??e,p=AS(l,u),g=tNe(p)?p.canActivateChild(i,t):Du(u,()=>p(i,t));return fv(g).pipe(Bs())});return vt(s).pipe(TS())}));return vt(o).pipe(TS())}function uNe(t,n,e,i,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return vt(!0);let a=o.map(s=>{let l=VT(n)??r,u=AS(s,l),p=iNe(u)?u.canDeactivate(t,n,e,i):Du(l,()=>u(t,n,e,i));return fv(p).pipe(Bs())});return vt(a).pipe(TS())}function mNe(t,n,e,i){let r=n.canLoad;if(r===void 0||r.length===0)return vt(!0);let o=r.map(a=>{let s=AS(a,t),l=J3e(s)?s.canLoad(n,e):Du(t,()=>s(n,e));return fv(l)});return vt(o).pipe(TS(),sle(i))}function sle(t){return _D(ri(n=>{if(DS(n))throw nle(t,n)}),st(n=>n===!0))}function pNe(t,n,e,i){let r=n.canMatch;if(!r||r.length===0)return vt(!0);let o=r.map(a=>{let s=AS(a,t),l=nNe(s)?s.canMatch(n,e):Du(t,()=>s(n,e));return fv(l)});return vt(o).pipe(TS(),sle(i))}var PT=class{constructor(n){this.segmentGroup=n||null}},AN=class extends Error{constructor(n){super(),this.urlTree=n}};function CS(t){return Os(new PT(t))}function hNe(t){return Os(new Kt(4e3,!1))}function fNe(t){return Os(rle(!1,Dm.GuardRejected))}var D9=class{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),r.numberOfChildren===0)return vt(i);if(r.numberOfChildren>1||!r.children[Pr])return hNe(n.redirectTo);r=r.children[Pr]}}applyRedirectCommands(n,e,i){let r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new AN(r);return r}applyRedirectCreateUrlTree(n,e,i,r){let o=this.createSegmentGroup(n,e.root,i,r);return new pv(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let i={};return Object.entries(n).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let s=o.substring(1);i[r]=e[s]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){let o=this.createSegments(n,e.segments,i,r),a={};return Object.entries(e.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(n,l,i,r)}),new ia(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){let r=i[e.path.substring(1)];if(!r)throw new Kt(4001,!1);return r}findOrReturn(n,e){let i=0;for(let r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}},T9={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gNe(t,n,e,i,r){let o=N9(t,n,e);return o.matched?(i=$3e(n,i),pNe(i,n,e,r).pipe(st(a=>a===!0?o:Ve({},T9)))):vt(o)}function N9(t,n,e){if(n.path==="**")return _Ne(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?Ve({},T9):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(n.matcher||p3e)(e,t,n);if(!r)return Ve({},T9);let o={};Object.entries(r.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=r.consumed.length>0?Ve(Ve({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function _Ne(t){return{matched:!0,parameters:t.length>0?jse(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Ose(t,n,e,i){return e.length>0&&yNe(t,e,i)?{segmentGroup:new ia(n,bNe(i,new ia(e,t.children))),slicedSegments:[]}:e.length===0&&xNe(t,e,i)?{segmentGroup:new ia(t.segments,vNe(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new ia(t.segments,t.children),slicedSegments:e}}function vNe(t,n,e,i){let r={};for(let o of e)if(RN(t,n,o)&&!i[Hf(o)]){let a=new ia([],{});r[Hf(o)]=a}return Ve(Ve({},i),r)}function bNe(t,n){let e={};e[Pr]=n;for(let i of t)if(i.path===""&&Hf(i)!==Pr){let r=new ia([],{});e[Hf(i)]=r}return e}function yNe(t,n,e){return e.some(i=>RN(t,n,i)&&Hf(i)!==Pr)}function xNe(t,n,e){return e.some(i=>RN(t,n,i))}function RN(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function CNe(t,n,e,i){return Hf(t)!==i&&(i===Pr||!RN(n,e,t))?!1:N9(n,t,e).matched}function SNe(t,n,e){return n.length===0&&!t.children[e]}var A9=class{};function wNe(t,n,e,i,r,o,a="emptyOnly"){return new k9(t,n,e,i,r,a,o).recognize()}var ENe=31,k9=class{constructor(n,e,i,r,o,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new D9(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new Kt(4002,`'${n.segmentGroup}'`)}recognize(){let n=Ose(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(st(e=>{let i=new FT([],Object.freeze({}),Object.freeze(Ve({},this.urlTree.queryParams)),this.urlTree.fragment,{},Pr,this.rootComponentType,null,{}),r=new Im(i,e),o=new DN("",r),a=F3e(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(o._root,null),{state:o,tree:a}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Pr).pipe(Ma(i=>{if(i instanceof AN)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof PT?this.noMatchError(i):i}))}inheritParamsAndData(n,e){let i=n.value,r=F9(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o,i))}processSegmentGroup(n,e,i,r){return i.segments.length===0&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0).pipe(st(o=>o instanceof Im?[o]:[]))}processChildren(n,e,i){let r=[];for(let o of Object.keys(i.children))o==="primary"?r.unshift(o):r.push(o);return Ur(r).pipe(qg(o=>{let a=i.children[o],s=q3e(e,o);return this.processSegmentGroup(n,s,a,o)}),VR((o,a)=>(o.push(...a),o)),q_(null),rH(),Ca(o=>{if(o===null)return CS(i);let a=lle(o);return INe(a),vt(a)}))}processSegment(n,e,i,r,o,a){return Ur(e).pipe(qg(s=>this.processSegmentAgainstRoute(s._injector??n,e,s,i,r,o,a).pipe(Ma(l=>{if(l instanceof PT)return vt(null);throw l}))),Bs(s=>!!s),Ma(s=>{if(ale(s))return SNe(i,r,o)?vt(new A9):CS(i);throw s}))}processSegmentAgainstRoute(n,e,i,r,o,a,s){return CNe(i,r,o,a)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(n,r,i,o,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,a):CS(r):CS(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a){let{matched:s,consumedSegments:l,positionalParamSegments:u,remainingSegments:p}=N9(e,r,o);if(!s)return CS(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ENe&&(this.allowRedirects=!1));let g=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,g).pipe(Ca(_=>this.processSegment(n,i,e,_.concat(p),a,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){let a=gNe(e,i,r,n,this.urlSerializer);return i.path==="**"&&(e.children={}),a.pipe(Wi(s=>s.matched?(n=i._injector??n,this.getChildConfig(n,i,r).pipe(Wi(({routes:l})=>{let u=i._loadedInjector??n,{consumedSegments:p,remainingSegments:g,parameters:_}=s,v=new FT(p,_,Object.freeze(Ve({},this.urlTree.queryParams)),this.urlTree.fragment,TNe(i),Hf(i),i.component??i._loadedComponent??null,i,ANe(i)),{segmentGroup:y,slicedSegments:x}=Ose(e,p,g,l);if(x.length===0&&y.hasChildren())return this.processChildren(u,l,y).pipe(st(C=>C===null?null:new Im(v,C)));if(l.length===0&&x.length===0)return vt(new Im(v,[]));let I=Hf(i)===o;return this.processSegment(u,l,y,x,I?Pr:o,!0).pipe(st(C=>new Im(v,C instanceof Im?[C]:[])))}))):CS(e)))}getChildConfig(n,e,i){return e.children?vt({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?vt({routes:e._loadedRoutes,injector:e._loadedInjector}):mNe(n,e,i,this.urlSerializer).pipe(Ca(r=>r?this.configLoader.loadChildren(n,e).pipe(ri(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):fNe(e))):vt({routes:[],injector:n})}};function INe(t){t.sort((n,e)=>n.value.outlet===Pr?-1:e.value.outlet===Pr?1:n.value.outlet.localeCompare(e.value.outlet))}function DNe(t){let n=t.value.routeConfig;return n&&n.path===""}function lle(t){let n=[],e=new Set;for(let i of t){if(!DNe(i)){n.push(i);continue}let r=n.find(o=>i.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...i.children),e.add(r)):n.push(i)}for(let i of e){let r=lle(i.children);n.push(new Im(i.value,r))}return n.filter(i=>!e.has(i))}function TNe(t){return t.data||{}}function ANe(t){return t.resolve||{}}function kNe(t,n,e,i,r,o){return Ca(a=>wNe(t,n,e,i,a.extractedUrl,r,o).pipe(st(({state:s,tree:l})=>Gi(Ve({},a),{targetSnapshot:s,urlAfterRedirects:l}))))}function MNe(t,n){return Ca(e=>{let{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return vt(e);let o=new Set(r.map(l=>l.route)),a=new Set;for(let l of o)if(!a.has(l))for(let u of cle(l))a.add(u);let s=0;return Ur(a).pipe(qg(l=>o.has(l)?FNe(l,i,t,n):(l.data=F9(l,l.parent,t).resolve,vt(void 0))),ri(()=>s++),WC(1),Ca(l=>s===a.size?vt(e):ka))})}function cle(t){let n=t.children.map(e=>cle(e)).flat();return[t,...n]}function FNe(t,n,e,i){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!tle(r)&&(o[NT]=r.title),RNe(o,t,n,i).pipe(st(a=>(t._resolvedData=a,t.data=F9(t,t.parent,e).resolve,null)))}function RNe(t,n,e,i){let r=s9(t);if(r.length===0)return vt({});let o={};return Ur(r).pipe(Ca(a=>PNe(t[a],n,e,i).pipe(Bs(),ri(s=>{o[a]=s}))),WC(1),bh(o),Ma(a=>ale(a)?ka:Os(a)))}function PNe(t,n,e,i){let r=VT(n)??i,o=AS(t,r),a=o.resolve?o.resolve(n,e):Du(r,()=>o(n,e));return fv(a)}function o9(t){return Wi(n=>{let e=t(n);return e?Ur(e).pipe(st(()=>n)):vt(n)})}var dle=(()=>{class t{buildTitle(e){let i,r=e.root;for(;r!==void 0;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Pr);return i}getResolvedTitleForRoute(e){return e.data[NT]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(NNe),providedIn:"root"})}}return t})(),NNe=(()=>{class t extends dle{constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||t)(ae(fae))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jT=new ke("",{providedIn:"root",factory:()=>({})}),kN=new ke(""),O9=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Me(e3)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return vt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let i=fv(e.loadComponent()).pipe(st(ule),ri(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Vs(()=>{this.componentLoaders.delete(e)})),r=new j_(i,()=>new qe).pipe(VC());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return vt({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let o=ONe(i,this.compiler,e,this.onLoadEndListener).pipe(Vs(()=>{this.childrenLoaders.delete(i)})),a=new j_(o,()=>new qe).pipe(VC());return this.childrenLoaders.set(i,a),a}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ONe(t,n,e,i){return fv(t.loadChildren()).pipe(st(ule),Ca(r=>r instanceof LD||Array.isArray(r)?vt(r):Ur(n.compileModuleAsync(r))),st(r=>{i&&i(t);let o,a,s=!1;return Array.isArray(r)?(a=r,s=!0):(o=r.create(e).injector,a=o.get(kN,[],{optional:!0,self:!0}).flat()),{routes:a.map(P9),injector:o}}))}function LNe(t){return t&&typeof t=="object"&&"default"in t}function ule(t){return LNe(t)?t.default:t}var L9=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(VNe),providedIn:"root"})}}return t})(),VNe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mle=new ke(""),ple=new ke("");function BNe(t,n,e){let i=t.get(ple),r=t.get(ni);return t.get(ht).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u}),s=r.startViewTransition(()=>(o(),jNe(t))),{onViewTransitionCreated:l}=i;return l&&Du(t,()=>l({transition:s,from:n,to:e})),a})}function jNe(t){return new Promise(n=>{qP(n,{injector:t})})}var V9=(()=>{class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new qe,this.transitionAbortSubject=new qe,this.configLoader=Me(O9),this.environmentInjector=Me(Yl),this.urlSerializer=Me(OT),this.rootContexts=Me(LT),this.location=Me(Lf),this.inputBindingEnabled=Me(FN,{optional:!0})!==null,this.titleStrategy=Me(dle),this.options=Me(jT,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Me(L9),this.createViewTransition=Me(mle,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>vt(void 0),this.rootComponentType=null;let e=r=>this.events.next(new f9(r)),i=r=>this.events.next(new g9(r));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;this.transitions?.next(Gi(Ve(Ve({},this.transitions.value),e),{id:i}))}setupNavigations(e,i,r){return this.transitions=new Tr({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ET,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(vi(o=>o.id!==0),st(o=>Gi(Ve({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Wi(o=>{let a=!1,s=!1;return vt(o).pipe(Wi(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Dm.SupersededByNewNavigation),ka;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?Gi(Ve({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&p!=="reload"){let g="";return this.events.next(new hv(l.id,this.urlSerializer.serialize(l.rawUrl),g,CN.IgnoredSameUrlNavigation)),l.resolve(null),ka}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return vt(l).pipe(Wi(g=>{let _=this.transitions?.getValue();return this.events.next(new Fh(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),_!==this.transitions?.getValue()?ka:Promise.resolve(g)}),kNe(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),ri(g=>{o.targetSnapshot=g.targetSnapshot,o.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation=Gi(Ve({},this.currentNavigation),{finalUrl:g.urlAfterRedirects});let _=new SN(g.id,this.urlSerializer.serialize(g.extractedUrl),this.urlSerializer.serialize(g.urlAfterRedirects),g.targetSnapshot);this.events.next(_)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:g,extractedUrl:_,source:v,restoredState:y,extras:x}=l,I=new Fh(g,this.urlSerializer.serialize(_),v,y);this.events.next(I);let C=Jse(this.rootComponentType).snapshot;return this.currentTransition=o=Gi(Ve({},l),{targetSnapshot:C,urlAfterRedirects:_,extras:Gi(Ve({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=_,vt(o)}else{let g="";return this.events.next(new hv(l.id,this.urlSerializer.serialize(l.extractedUrl),g,CN.IgnoredByUrlHandlingStrategy)),l.resolve(null),ka}}),ri(l=>{let u=new u9(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),st(l=>(this.currentTransition=o=Gi(Ve({},l),{guards:Y3e(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),rNe(this.environmentInjector,l=>this.events.next(l)),ri(l=>{if(o.guardsResult=l.guardsResult,DS(l.guardsResult))throw nle(this.urlSerializer,l.guardsResult);let u=new m9(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),vi(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",Dm.GuardRejected),!1)),o9(l=>{if(l.guards.canActivateChecks.length)return vt(l).pipe(ri(u=>{let p=new p9(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}),Wi(u=>{let p=!1;return vt(u).pipe(MNe(this.paramsInheritanceStrategy,this.environmentInjector),ri({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(u,"",Dm.NoDataFromResolver)}}))}),ri(u=>{let p=new h9(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(p)}))}),o9(l=>{let u=p=>{let g=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&g.push(this.configLoader.loadComponent(p.routeConfig).pipe(ri(_=>{p.component=_}),st(()=>{})));for(let _ of p.children)g.push(...u(_));return g};return vm(u(l.targetSnapshot.root)).pipe(q_(null),cn(1))}),o9(()=>this.afterPreactivation()),Wi(()=>{let{currentSnapshot:l,targetSnapshot:u}=o,p=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return p?Ur(p).pipe(st(()=>o)):vt(o)}),st(l=>{let u=j3e(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=Gi(Ve({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),ri(()=>{this.events.next(new kT)}),W3e(this.rootContexts,e.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),cn(1),ri({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ld(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ft(this.transitionAbortSubject.pipe(ri(l=>{throw l}))),Vs(()=>{!a&&!s&&this.cancelNavigationTransition(o,"",Dm.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ma(l=>{if(s=!0,ole(l))this.events.next(new Rh(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),U3e(l)?this.events.next(new MT(l.url)):o.resolve(!1);else{this.events.next(new AT(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(l))}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return ka}))}))}cancelNavigationTransition(e,i,r){let o=new Rh(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function HNe(t){return t!==ET}var zNe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(UNe),providedIn:"root"})}}return t})(),M9=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},UNe=(()=>{class t extends M9{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),hle=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:()=>Me(GNe),providedIn:"root"})}}return t})(),GNe=(()=>{class t extends hle{constructor(){super(...arguments),this.location=Me(Lf),this.urlSerializer=Me(OT),this.options=Me(jT,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Me(L9),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new pv,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Jse(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type==="popstate"&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof Fh)this.stateMemento=this.createStateMemento();else if(e instanceof hv)this.rawUrlTree=i.initialUrl;else if(e instanceof SN){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof kT?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Rh&&(e.code===Dm.GuardRejected||e.code===Dm.NoDataFromResolver)?this.restoreHistory(i):e instanceof AT?this.restoreHistory(i,!0):e instanceof Ld&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){let o=this.browserPageId,a=Ve(Ve({},i.extras.state),this.generateNgRouterState(i.id,o));this.location.replaceState(r,"",a)}else{let o=Ve(Ve({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(r,"",o)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,o=this.currentPageId-r;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ST=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ST||{});function fle(t,n){t.events.pipe(vi(e=>e instanceof Ld||e instanceof Rh||e instanceof AT||e instanceof hv),st(e=>e instanceof Ld||e instanceof hv?ST.COMPLETE:(e instanceof Rh?e.code===Dm.Redirect||e.code===Dm.SupersededByNewNavigation:!1)?ST.REDIRECTING:ST.FAILED),vi(e=>e!==ST.REDIRECTING),cn(1)).subscribe(()=>{n()})}function $Ne(t){throw t}var qNe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WNe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Me(XP),this.stateManager=Me(hle),this.options=Me(jT,{optional:!0})||{},this.pendingTasks=Me(nv),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Me(V9),this.urlSerializer=Me(OT),this.location=Me(Lf),this.urlHandlingStrategy=Me(L9),this._events=new qe,this.errorHandler=this.options.errorHandler||$Ne,this.navigated=!1,this.routeReuseStrategy=Me(zNe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Me(kN,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Me(FN,{optional:!0}),this.eventsSubscription=new Ji,this.isNgZoneEnabled=Me(ht)instanceof ht&&ht.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(r!==null&&o!==null){if(this.stateManager.handleRouterEvent(i,o),i instanceof Rh&&i.code!==Dm.Redirect&&i.code!==Dm.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ld)this.navigated=!0;else if(i instanceof MT){let a=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||HNe(r.source)};this.scheduleNavigation(a,ET,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}KNe(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ET,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){let o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let l=Ve({},r);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(P9),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a,p=null;switch(s){case"merge":p=Ve(Ve({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let g;try{let _=r?r.snapshot:this.routerState.snapshot.root;g=Kse(_)}catch{(typeof e[0]!="string"||!e[0].startsWith("/"))&&(e=[]),g=this.currentUrlTree.root}return Xse(g,e,p,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){let r=DS(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,ET,null,i)}navigate(e,i={skipLocationChange:!1}){return YNe(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(i===!0?r=Ve({},qNe):i===!1?r=Ve({},WNe):r=i,DS(e))return Mse(this.currentUrlTree,e,r);let o=this.parseUrl(e);return Mse(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(o!=null&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,u;a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((g,_)=>{s=g,l=_});let p=this.pendingTasks.add();return fle(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(g=>Promise.reject(g))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function YNe(t){for(let n=0;n{class t{constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this.href=null,this.commands=null,this.onChanges=new qe,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof Ld&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e!=null?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||i||r||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let i=this.href===null?null:sre(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){let r=this.renderer,o=this.el.nativeElement;i!==null?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||t)(E(lt),E(Ut),Sa("tabindex"),E(Sc),E(Xe),E(a0))}}static{this.\u0275dir=ze({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){i&1&&$("click",function(a){return r.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&xt("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[ve.HasDecoratorInputTransform,"preserveFragment","preserveFragment",at],skipLocationChange:[ve.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",at],replaceUrl:[ve.HasDecoratorInputTransform,"replaceUrl","replaceUrl",at],routerLink:"routerLink"},standalone:!0,features:[Ei,Oi]})}}return t})(),zf=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,a){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ae,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Ld&&this.update()})}ngAfterContentInit(){vt(this.links.changes,vt(null)).pipe(Ef()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Ur(e).pipe(Ef()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){let i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let i=XNe(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{let o=r.urlTree;return o?e.isActive(o,i):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.\u0275fac=function(i){return new(i||t)(E(lt),E(Xe),E(Sc),E(Di),E(gn,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(i&1&&bi(o,gn,5),i&2){let a;Pe(a=Ne())&&(r.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Oi]})}}return t})();function XNe(t){return!!t.paths}var MN=class{};var QNe=(()=>{class t{constructor(e,i,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(vi(e=>e instanceof Ld),qg(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){let r=[];for(let o of i){o.providers&&!o._injector&&(o._injector=YP(o.providers,e,`Route: ${o.path}`));let a=o._injector??e,s=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Ur(r).pipe(Ef())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;i.loadChildren&&i.canLoad===void 0?r=this.loader.loadChildren(e,i):r=vt(null);let o=r.pipe(Ca(a=>a===null?vt(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return Ur([o,a]).pipe(Ef())}else return o})}static{this.\u0275fac=function(i){return new(i||t)(ae(lt),ae(e3),ae(Yl),ae(MN),ae(O9))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gle=new ke(""),ZNe=(()=>{class t{constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Me(Yl),a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ld?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof hv&&e.code===CN.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof wN&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>Mt(this,null,function*(){yield new Promise(r=>{setTimeout(()=>{r()}),qP(()=>{r()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new wN(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){Ky()}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function JNe(t){return t.routerState.root}function HT(t,n){return{\u0275kind:t,\u0275providers:n}}function eOe(){let t=Me(ao);return n=>{let e=t.get(Wc);if(n!==e.components[0])return;let i=t.get(lt),r=t.get(_le);t.get(B9)===1&&i.initialNavigation(),t.get(vle,null,eo.Optional)?.setUpPreloading(),t.get(gle,null,eo.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var _le=new ke("",{factory:()=>new qe}),B9=new ke("",{providedIn:"root",factory:()=>1});function tOe(){return HT(2,[{provide:B9,useValue:0},{provide:gp,multi:!0,deps:[ao],useFactory:n=>{let e=n.get(Ooe,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let r=n.get(lt),o=n.get(_le);fle(r,()=>{i(!0)}),n.get(V9).afterPreactivation=()=>(i(!0),o.closed?vt(void 0):o),r.initialNavigation()}))}}])}function iOe(){return HT(3,[{provide:gp,multi:!0,useFactory:()=>{let n=Me(lt);return()=>{n.setUpLocationChangeListener()}}},{provide:B9,useValue:2}])}var vle=new ke("");function nOe(t){return HT(0,[{provide:vle,useExisting:QNe},{provide:MN,useExisting:t}])}function rOe(){return HT(8,[Nse,{provide:FN,useExisting:Nse}])}function oOe(t){let n=[{provide:mle,useValue:BNe},{provide:ple,useValue:Ve({skipNextTransition:!!t?.skipInitialTransition},t)}];return HT(9,n)}var Lse=new ke("ROUTER_FORROOT_GUARD"),aOe=[Lf,{provide:OT,useClass:DT},lt,LT,{provide:Ut,useFactory:JNe,deps:[lt]},O9,[]],zT=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[aOe,[],{provide:kN,multi:!0,useValue:e},{provide:Lse,useFactory:dOe,deps:[[lt,new Iu,new bm]]},{provide:jT,useValue:i||{}},i?.useHash?lOe():cOe(),sOe(),i?.preloadingStrategy?nOe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?uOe(i):[],i?.bindToComponentInputs?rOe().\u0275providers:[],i?.enableViewTransitions?oOe().\u0275providers:[],mOe()]}}static forChild(e){return{ngModule:t,providers:[{provide:kN,multi:!0,useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)(ae(Lse,8))}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();function sOe(){return{provide:gle,useFactory:()=>{let t=Me(Koe),n=Me(ht),e=Me(jT),i=Me(V9),r=Me(OT);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ZNe(r,i,t,n,e)}}}function lOe(){return{provide:a0,useClass:Voe}}function cOe(){return{provide:a0,useClass:Hz}}function dOe(t){return"guarded"}function uOe(t){return[t.initialNavigation==="disabled"?iOe().\u0275providers:[],t.initialNavigation==="enabledBlocking"?tOe().\u0275providers:[]]}var Vse=new ke("");function mOe(){return[{provide:Vse,useFactory:eOe},{provide:JP,multi:!0,useExisting:Vse}]}function El(t){return t.map(n=>(...e)=>Me(n).canActivate(...e))}function Uf(t){return t.map(n=>(...e)=>Me(n).canDeactivate(...e))}var RS={};Jee(RS,{AbortException:()=>cLe,AnnotationEditorLayer:()=>dLe,AnnotationEditorParamsType:()=>uLe,AnnotationEditorType:()=>f$,AnnotationEditorUIManager:()=>mLe,AnnotationLayer:()=>pLe,AnnotationMode:()=>hLe,CMapCompressionType:()=>fLe,ColorPicker:()=>gLe,DOMSVGFactory:()=>_Le,DrawLayer:()=>vLe,FeatureTest:()=>bLe,GlobalWorkerOptions:()=>g$,ImageKind:()=>yLe,InvalidPDFException:()=>xLe,MissingPDFException:()=>CLe,OPS:()=>SLe,PDFDataRangeTransport:()=>wLe,PDFDateString:()=>ELe,PDFWorker:()=>ILe,PasswordResponses:()=>DLe,PermissionFlag:()=>TLe,PixelsPerInch:()=>ALe,RenderingCancelledException:()=>kLe,TextLayer:()=>MLe,UnexpectedResponseException:()=>FLe,Util:()=>RLe,VerbosityLevel:()=>_$,XfaLayer:()=>PLe,build:()=>NLe,createValidAbsoluteUrl:()=>OLe,fetchData:()=>LLe,getDocument:()=>v$,getFilenameFromUrl:()=>VLe,getPdfFilenameFromUrl:()=>BLe,getXfaPageViewport:()=>jLe,isDataScheme:()=>HLe,isPdfFile:()=>zLe,noContextMenu:()=>ULe,normalizeUnicode:()=>GLe,setLayerDimensions:()=>$Le,shadow:()=>qLe,version:()=>s2});var WT={};WT.d=(t,n)=>{for(var e in n)WT.o(n,e)&&!WT.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})};WT.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var Cr=globalThis.pdfjsLib={};WT.d(Cr,{AbortException:()=>f0,AnnotationEditorLayer:()=>lLe,AnnotationEditorParamsType:()=>_r,AnnotationEditorType:()=>xo,AnnotationEditorUIManager:()=>JT,AnnotationLayer:()=>r$,AnnotationMode:()=>_v,CMapCompressionType:()=>q9,ColorPicker:()=>vO,DOMSVGFactory:()=>XT,DrawLayer:()=>c$,FeatureTest:()=>Qc,GlobalWorkerOptions:()=>h1,ImageKind:()=>jN,InvalidPDFException:()=>UN,MissingPDFException:()=>h0,OPS:()=>Ph,PDFDataRangeTransport:()=>oO,PDFDateString:()=>QN,PDFWorker:()=>MS,PasswordResponses:()=>_Oe,PermissionFlag:()=>gOe,PixelsPerInch:()=>vv,RenderingCancelledException:()=>ZT,TextLayer:()=>i2,UnexpectedResponseException:()=>FS,Util:()=>vn,VerbosityLevel:()=>yO,XfaLayer:()=>lO,build:()=>aLe,createValidAbsoluteUrl:()=>xOe,fetchData:()=>wO,getDocument:()=>iLe,getFilenameFromUrl:()=>TOe,getPdfFilenameFromUrl:()=>AOe,getXfaPageViewport:()=>kOe,isDataScheme:()=>EO,isPdfFile:()=>u$,noContextMenu:()=>wp,normalizeUnicode:()=>IOe,setLayerDimensions:()=>f1,shadow:()=>To,version:()=>oLe});var Xc=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),Ple=[1,0,0,1,0,0],$9=[.001,0,0,.001,0,0],pOe=1e7,BN=1.35,hOe=.35,dLt=hOe/BN,Am={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},_v={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},fOe="pdfjs_internal_editor_",xo={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},_r={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},gOe={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Kc={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},jN={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Il={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};var UT={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};var yO={ERRORS:0,WARNINGS:1,INFOS:5},q9={NONE:0,BINARY:1},Ph={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93},_Oe={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},xO=yO.WARNINGS;function vOe(t){Number.isInteger(t)&&(xO=t)}function bOe(){return xO}function CO(t){xO>=yO.INFOS&&console.log(`Info: ${t}`)}function to(t){xO>=yO.WARNINGS&&console.log(`Warning: ${t}`)}function al(t){throw new Error(t)}function Dl(t,n){t||al(n)}function yOe(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function xOe(t,n=null,e=null){if(!t)return null;try{if(e&&typeof t=="string"&&(e.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),e.tryConvertEncoding))try{t=EOe(t)}catch{}let i=n?new URL(t,n):new URL(t);if(yOe(i))return i}catch{}return null}function To(t,n,e,i=!1){return Object.defineProperty(t,n,{value:e,enumerable:!i,configurable:!0,writable:!1}),e}var bv=function(){function n(e,i){this.message=e,this.name=i}return n.prototype=new Error,n.constructor=n,n}(),YT=class extends bv{constructor(n,e){super(n,"PasswordException"),this.code=e}},KT=class extends bv{constructor(n,e){super(n,"UnknownErrorException"),this.details=e}},UN=class extends bv{constructor(n){super(n,"InvalidPDFException")}},h0=class extends bv{constructor(n){super(n,"MissingPDFException")}},FS=class extends bv{constructor(n,e){super(n,"UnexpectedResponseException"),this.status=e}},W9=class extends bv{constructor(n){super(n,"FormatError")}},f0=class extends bv{constructor(n){super(n,"AbortException")}};function Nle(t){(typeof t!="object"||t?.length===void 0)&&al("Invalid argument for bytesToString");let n=t.length,e=8192;if(n>24&255,t>>16&255,t>>8&255,t&255)}function d$(t){let n=Object.create(null);for(let[e,i]of t)n[e]=i;return n}function SOe(){let t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function wOe(){try{return new Function(""),!0}catch{return!1}}var Qc=class{static get isLittleEndian(){return To(this,"isLittleEndian",SOe())}static get isEvalSupported(){return To(this,"isEvalSupported",wOe())}static get isOffscreenCanvasSupported(){return To(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof navigator?.platform=="string"?To(this,"platform",{isMac:navigator.platform.includes("Mac")}):To(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){return To(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}},j9=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0")),vn=class{static makeHexColor(n,e,i){return`#${j9[n]}${j9[e]}${j9[i]}`}static scaleMinMax(n,e){let i;n[0]?(n[0]<0&&(i=e[0],e[0]=e[2],e[2]=i),e[0]*=n[0],e[2]*=n[0],n[3]<0&&(i=e[1],e[1]=e[3],e[3]=i),e[1]*=n[3],e[3]*=n[3]):(i=e[0],e[0]=e[1],e[1]=i,i=e[2],e[2]=e[3],e[3]=i,n[1]<0&&(i=e[1],e[1]=e[3],e[3]=i),e[1]*=n[1],e[3]*=n[1],n[2]<0&&(i=e[0],e[0]=e[2],e[2]=i),e[0]*=n[2],e[2]*=n[2]),e[0]+=n[4],e[1]+=n[5],e[2]+=n[4],e[3]+=n[5]}static transform(n,e){return[n[0]*e[0]+n[2]*e[1],n[1]*e[0]+n[3]*e[1],n[0]*e[2]+n[2]*e[3],n[1]*e[2]+n[3]*e[3],n[0]*e[4]+n[2]*e[5]+n[4],n[1]*e[4]+n[3]*e[5]+n[5]]}static applyTransform(n,e){let i=n[0]*e[0]+n[1]*e[2]+e[4],r=n[0]*e[1]+n[1]*e[3]+e[5];return[i,r]}static applyInverseTransform(n,e){let i=e[0]*e[3]-e[1]*e[2],r=(n[0]*e[3]-n[1]*e[2]+e[2]*e[5]-e[4]*e[3])/i,o=(-n[0]*e[1]+n[1]*e[0]+e[4]*e[1]-e[5]*e[0])/i;return[r,o]}static getAxialAlignedBoundingBox(n,e){let i=this.applyTransform(n,e),r=this.applyTransform(n.slice(2,4),e),o=this.applyTransform([n[0],n[3]],e),a=this.applyTransform([n[2],n[1]],e);return[Math.min(i[0],r[0],o[0],a[0]),Math.min(i[1],r[1],o[1],a[1]),Math.max(i[0],r[0],o[0],a[0]),Math.max(i[1],r[1],o[1],a[1])]}static inverseTransform(n){let e=n[0]*n[3]-n[1]*n[2];return[n[3]/e,-n[1]/e,-n[2]/e,n[0]/e,(n[2]*n[5]-n[4]*n[3])/e,(n[4]*n[1]-n[5]*n[0])/e]}static singularValueDecompose2dScale(n){let e=[n[0],n[2],n[1],n[3]],i=n[0]*e[0]+n[1]*e[2],r=n[0]*e[1]+n[1]*e[3],o=n[2]*e[0]+n[3]*e[2],a=n[2]*e[1]+n[3]*e[3],s=(i+a)/2,l=Math.sqrt((i+a)**2-4*(i*a-o*r))/2,u=s+l||1,p=s-l||1;return[Math.sqrt(u),Math.sqrt(p)]}static normalizeRect(n){let e=n.slice(0);return n[0]>n[2]&&(e[0]=n[2],e[2]=n[0]),n[1]>n[3]&&(e[1]=n[3],e[3]=n[1]),e}static intersect(n,e){let i=Math.max(Math.min(n[0],n[2]),Math.min(e[0],e[2])),r=Math.min(Math.max(n[0],n[2]),Math.max(e[0],e[2]));if(i>r)return null;let o=Math.max(Math.min(n[1],n[3]),Math.min(e[1],e[3])),a=Math.min(Math.max(n[1],n[3]),Math.max(e[1],e[3]));return o>a?null:[i,o,r,a]}static#e(n,e,i,r,o,a,s,l,u,p){if(u<=0||u>=1)return;let g=1-u,_=u*u,v=_*u,y=g*(g*(g*n+3*u*e)+3*_*i)+v*r,x=g*(g*(g*o+3*u*a)+3*_*s)+v*l;p[0]=Math.min(p[0],y),p[1]=Math.min(p[1],x),p[2]=Math.max(p[2],y),p[3]=Math.max(p[3],x)}static#t(n,e,i,r,o,a,s,l,u,p,g,_){if(Math.abs(u)<1e-12){Math.abs(p)>=1e-12&&this.#e(n,e,i,r,o,a,s,l,-g/p,_);return}let v=p**2-4*g*u;if(v<0)return;let y=Math.sqrt(v),x=2*u;this.#e(n,e,i,r,o,a,s,l,(-p+y)/x,_),this.#e(n,e,i,r,o,a,s,l,(-p-y)/x,_)}static bezierBoundingBox(n,e,i,r,o,a,s,l,u){return u?(u[0]=Math.min(u[0],n,s),u[1]=Math.min(u[1],e,l),u[2]=Math.max(u[2],n,s),u[3]=Math.max(u[3],e,l)):u=[Math.min(n,s),Math.min(e,l),Math.max(n,s),Math.max(e,l)],this.#t(n,i,o,s,e,r,a,l,3*(-n+3*(i-o)+s),6*(n-2*i+o),3*(i-n),u),this.#t(n,i,o,s,e,r,a,l,3*(-e+3*(r-a)+l),6*(e-2*r+a),3*(r-e),u),u}};function EOe(t){return decodeURIComponent(escape(t))}var H9=null,ble=null;function IOe(t){return H9||(H9=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,ble=new Map([["\uFB05","\u017Ft"]])),t.replaceAll(H9,(n,e,i)=>e?e.normalize("NFKC"):ble.get(i))}function DOe(){if(typeof crypto<"u"&&typeof crypto?.randomUUID=="function")return crypto.randomUUID();let t=new Uint8Array(32);if(typeof crypto<"u"&&typeof crypto?.getRandomValues=="function")crypto.getRandomValues(t);else for(let n=0;n<32;n++)t[n]=Math.floor(Math.random()*255);return Nle(t)}var Ole="pdfjs_internal_id_",d0={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8},GN=class{addFilter(n){return"none"}addHCMFilter(n,e){return"none"}addAlphaFilter(n){return"none"}addLuminosityFilter(n){return"none"}addHighlightHCMFilter(n,e,i,r,o){return"none"}destroy(n=!1){}},$N=class{#e=!1;constructor({enableHWA:n=!1}={}){this.#e=n}create(n,e){if(n<=0||e<=0)throw new Error("Invalid canvas size");let i=this._createCanvas(n,e);return{canvas:i,context:i.getContext("2d",{willReadFrequently:!this.#e})}}reset(n,e,i){if(!n.canvas)throw new Error("Canvas is not specified");if(e<=0||i<=0)throw new Error("Invalid canvas size");n.canvas.width=e,n.canvas.height=i}destroy(n){if(!n.canvas)throw new Error("Canvas is not specified");n.canvas.width=0,n.canvas.height=0,n.canvas=null,n.context=null}_createCanvas(n,e){al("Abstract method `_createCanvas` called.")}},qN=class{constructor({baseUrl:n=null,isCompressed:e=!0}){this.baseUrl=n,this.isCompressed=e}fetch(e){return Mt(this,arguments,function*({name:n}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!n)throw new Error("CMap name must be specified.");let i=this.baseUrl+n+(this.isCompressed?".bcmap":""),r=this.isCompressed?q9.BINARY:q9.NONE;return this._fetchData(i,r).catch(o=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${i}`)})})}_fetchData(n,e){al("Abstract method `_fetchData` called.")}},WN=class{constructor({baseUrl:n=null}){this.baseUrl=n}fetch(e){return Mt(this,arguments,function*({filename:n}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!n)throw new Error("Font filename must be specified.");let i=`${this.baseUrl}${n}`;return this._fetchData(i).catch(r=>{throw new Error(`Unable to load font data at: ${i}`)})})}_fetchData(n){al("Abstract method `_fetchData` called.")}},Y9=class{create(n,e,i=!1){if(n<=0||e<=0)throw new Error("Invalid SVG dimensions");let r=this._createSVG("svg:svg");return r.setAttribute("version","1.1"),i||(r.setAttribute("width",`${n}px`),r.setAttribute("height",`${e}px`)),r.setAttribute("preserveAspectRatio","none"),r.setAttribute("viewBox",`0 0 ${n} ${e}`),r}createElement(n){if(typeof n!="string")throw new Error("Invalid SVG element type");return this._createSVG(n)}_createSVG(n){al("Abstract method `_createSVG` called.")}},m0="http://www.w3.org/2000/svg",vv=class{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF},K9=class extends GN{#e;#t;#i;#n;#r;#o;#s=0;constructor({docId:n,ownerDocument:e=globalThis.document}={}){super(),this.#n=n,this.#r=e}get#l(){return this.#t||=new Map}get#u(){return this.#o||=new Map}get#c(){if(!this.#i){let n=this.#r.createElement("div"),{style:e}=n;e.visibility="hidden",e.contain="strict",e.width=e.height=0,e.position="absolute",e.top=e.left=0,e.zIndex=-1;let i=this.#r.createElementNS(m0,"svg");i.setAttribute("width",0),i.setAttribute("height",0),this.#i=this.#r.createElementNS(m0,"defs"),n.append(i),i.append(this.#i),this.#r.body.append(n)}return this.#i}#d(n){if(n.length===1){let l=n[0],u=new Array(256);for(let g=0;g<256;g++)u[g]=l[g]/255;let p=u.join(",");return[p,p,p]}let[e,i,r]=n,o=new Array(256),a=new Array(256),s=new Array(256);for(let l=0;l<256;l++)o[l]=e[l]/255,a[l]=i[l]/255,s[l]=r[l]/255;return[o.join(","),a.join(","),s.join(",")]}#a(n){if(this.#e===void 0){this.#e="";let e=this.#r.URL;e!==this.#r.baseURI&&(EO(e)?to('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=e.split("#",1)[0])}return`url(${this.#e}#${n})`}addFilter(n){if(!n)return"none";let e=this.#l.get(n);if(e)return e;let[i,r,o]=this.#d(n),a=n.length===1?i:`${i}${r}${o}`;if(e=this.#l.get(a),e)return this.#l.set(n,e),e;let s=`g_${this.#n}_transfer_map_${this.#s++}`,l=this.#a(s);this.#l.set(n,l),this.#l.set(a,l);let u=this.#p(s);return this.#_(i,r,o,u),l}addHCMFilter(n,e){let i=`${n}-${e}`,r="base",o=this.#u.get(r);if(o?.key===i||(o?(o.filter?.remove(),o.key=i,o.url="none",o.filter=null):(o={key:i,url:"none",filter:null},this.#u.set(r,o)),!n||!e))return o.url;let a=this.#v(n);n=vn.makeHexColor(...a);let s=this.#v(e);if(e=vn.makeHexColor(...s),this.#c.style.color="",n==="#000000"&&e==="#ffffff"||n===e)return o.url;let l=new Array(256);for(let v=0;v<=255;v++){let y=v/255;l[v]=y<=.03928?y/12.92:((y+.055)/1.055)**2.4}let u=l.join(","),p=`g_${this.#n}_hcm_filter`,g=o.filter=this.#p(p);this.#_(u,u,u,g),this.#h(g);let _=(v,y)=>{let x=a[v]/255,I=s[v]/255,C=new Array(y+1);for(let D=0;D<=y;D++)C[D]=x+D/y*(I-x);return C.join(",")};return this.#_(_(0,5),_(1,5),_(2,5),g),o.url=this.#a(p),o.url}addAlphaFilter(n){let e=this.#l.get(n);if(e)return e;let[i]=this.#d([n]),r=`alpha_${i}`;if(e=this.#l.get(r),e)return this.#l.set(n,e),e;let o=`g_${this.#n}_alpha_map_${this.#s++}`,a=this.#a(o);this.#l.set(n,a),this.#l.set(r,a);let s=this.#p(o);return this.#g(i,s),a}addLuminosityFilter(n){let e=this.#l.get(n||"luminosity");if(e)return e;let i,r;if(n?([i]=this.#d([n]),r=`luminosity_${i}`):r="luminosity",e=this.#l.get(r),e)return this.#l.set(n,e),e;let o=`g_${this.#n}_luminosity_map_${this.#s++}`,a=this.#a(o);this.#l.set(n,a),this.#l.set(r,a);let s=this.#p(o);return this.#m(s),n&&this.#g(i,s),a}addHighlightHCMFilter(n,e,i,r,o){let a=`${e}-${i}-${r}-${o}`,s=this.#u.get(n);if(s?.key===a||(s?(s.filter?.remove(),s.key=a,s.url="none",s.filter=null):(s={key:a,url:"none",filter:null},this.#u.set(n,s)),!e||!i))return s.url;let[l,u]=[e,i].map(this.#v.bind(this)),p=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),g=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[_,v]=[r,o].map(this.#v.bind(this));g{let M=new Array(256),R=(g-p)/A,j=C/255,K=(D-C)/(255*A),F=0;for(let V=0;V<=A;V++){let Q=Math.round(p+V*R),te=j+V*K;for(let re=F;re<=Q;re++)M[re]=te;F=Q+1}for(let V=F;V<256;V++)M[V]=M[F-1];return M.join(",")},x=`g_${this.#n}_hcm_${n}_filter`,I=s.filter=this.#p(x);return this.#h(I),this.#_(y(_[0],v[0],5),y(_[1],v[1],5),y(_[2],v[2],5),I),s.url=this.#a(x),s.url}destroy(n=!1){n&&this.#u.size!==0||(this.#i&&(this.#i.parentNode.parentNode.remove(),this.#i=null),this.#t&&(this.#t.clear(),this.#t=null),this.#s=0)}#m(n){let e=this.#r.createElementNS(m0,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),n.append(e)}#h(n){let e=this.#r.createElementNS(m0,"feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),n.append(e)}#p(n){let e=this.#r.createElementNS(m0,"filter");return e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("id",n),this.#c.append(e),e}#f(n,e,i){let r=this.#r.createElementNS(m0,e);r.setAttribute("type","discrete"),r.setAttribute("tableValues",i),n.append(r)}#_(n,e,i,r){let o=this.#r.createElementNS(m0,"feComponentTransfer");r.append(o),this.#f(o,"feFuncR",n),this.#f(o,"feFuncG",e),this.#f(o,"feFuncB",i)}#g(n,e){let i=this.#r.createElementNS(m0,"feComponentTransfer");e.append(i),this.#f(i,"feFuncA",n)}#v(n){return this.#c.style.color=n,m$(getComputedStyle(this.#c).getPropertyValue("color"))}},X9=class extends $N{constructor({ownerDocument:n=globalThis.document,enableHWA:e=!1}={}){super({enableHWA:e}),this._document=n}_createCanvas(n,e){let i=this._document.createElement("canvas");return i.width=n,i.height=e,i}};function wO(t,n="text"){return Mt(this,null,function*(){if(qT(t,document.baseURI)){let e=yield fetch(t);if(!e.ok)throw new Error(e.statusText);switch(n){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"json":return e.json()}return e.text()}return new Promise((e,i)=>{let r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType=n,r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE){if(r.status===200||r.status===0){switch(n){case"arraybuffer":case"blob":case"json":e(r.response);return}e(r.responseText);return}i(new Error(r.statusText))}},r.send(null)})})}var YN=class extends qN{_fetchData(n,e){return wO(n,this.isCompressed?"arraybuffer":"text").then(i=>({cMapData:i instanceof ArrayBuffer?new Uint8Array(i):SO(i),compressionType:e}))}},KN=class extends WN{_fetchData(n){return wO(n,"arraybuffer").then(e=>new Uint8Array(e))}},XT=class extends Y9{_createSVG(n){return document.createElementNS(m0,n)}},QT=class t{constructor({viewBox:n,scale:e,rotation:i,offsetX:r=0,offsetY:o=0,dontFlip:a=!1}){this.viewBox=n,this.scale=e,this.rotation=i,this.offsetX=r,this.offsetY=o;let s=(n[2]+n[0])/2,l=(n[3]+n[1])/2,u,p,g,_;switch(i%=360,i<0&&(i+=360),i){case 180:u=-1,p=0,g=0,_=1;break;case 90:u=0,p=1,g=1,_=0;break;case 270:u=0,p=-1,g=-1,_=0;break;case 0:u=1,p=0,g=0,_=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(g=-g,_=-_);let v,y,x,I;u===0?(v=Math.abs(l-n[1])*e+r,y=Math.abs(s-n[0])*e+o,x=(n[3]-n[1])*e,I=(n[2]-n[0])*e):(v=Math.abs(s-n[0])*e+r,y=Math.abs(l-n[1])*e+o,x=(n[2]-n[0])*e,I=(n[3]-n[1])*e),this.transform=[u*e,p*e,g*e,_*e,v-u*e*s-g*e*l,y-p*e*s-_*e*l],this.width=x,this.height=I}get rawDims(){let{viewBox:n}=this;return To(this,"rawDims",{pageWidth:n[2]-n[0],pageHeight:n[3]-n[1],pageX:n[0],pageY:n[1]})}clone({scale:n=this.scale,rotation:e=this.rotation,offsetX:i=this.offsetX,offsetY:r=this.offsetY,dontFlip:o=!1}={}){return new t({viewBox:this.viewBox.slice(),scale:n,rotation:e,offsetX:i,offsetY:r,dontFlip:o})}convertToViewportPoint(n,e){return vn.applyTransform([n,e],this.transform)}convertToViewportRectangle(n){let e=vn.applyTransform([n[0],n[1]],this.transform),i=vn.applyTransform([n[2],n[3]],this.transform);return[e[0],e[1],i[0],i[1]]}convertToPdfPoint(n,e){return vn.applyInverseTransform([n,e],this.transform)}},ZT=class extends bv{constructor(n,e=0){super(n,"RenderingCancelledException"),this.extraDelay=e}};function EO(t){let n=t.length,e=0;for(;e=1&&r<=12?r-1:0;let o=parseInt(e[3],10);o=o>=1&&o<=31?o:1;let a=parseInt(e[4],10);a=a>=0&&a<=23?a:0;let s=parseInt(e[5],10);s=s>=0&&s<=59?s:0;let l=parseInt(e[6],10);l=l>=0&&l<=59?l:0;let u=e[7]||"Z",p=parseInt(e[8],10);p=p>=0&&p<=23?p:0;let g=parseInt(e[9],10)||0;return g=g>=0&&g<=59?g:0,u==="-"?(a+=p,s+=g):u==="+"&&(a-=p,s-=g),new Date(Date.UTC(i,r,o,a,s,l))}};function kOe(t,{scale:n=1,rotation:e=0}){let{width:i,height:r}=t.attributes.style,o=[0,0,parseInt(i),parseInt(r)];return new QT({viewBox:o,scale:n,rotation:e})}function m$(t){if(t.startsWith("#")){let n=parseInt(t.slice(1),16);return[(n&16711680)>>16,(n&65280)>>8,n&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(n=>parseInt(n)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(n=>parseInt(n)).slice(0,3):(to(`Not a valid color format: "${t}"`),[0,0,0])}function MOe(t){let n=document.createElement("span");n.style.visibility="hidden",document.body.append(n);for(let e of t.keys()){n.style.color=e;let i=window.getComputedStyle(n).color;t.set(e,m$(i))}n.remove()}function ts(t){let{a:n,b:e,c:i,d:r,e:o,f:a}=t.getTransform();return[n,e,i,r,o,a]}function u0(t){let{a:n,b:e,c:i,d:r,e:o,f:a}=t.getTransform().invertSelf();return[n,e,i,r,o,a]}function f1(t,n,e=!1,i=!0){if(n instanceof QT){let{pageWidth:r,pageHeight:o}=n.rawDims,{style:a}=t,s=Qc.isCSSRoundSupported,l=`var(--scale-factor) * ${r}px`,u=`var(--scale-factor) * ${o}px`,p=s?`round(${l}, 1px)`:`calc(${l})`,g=s?`round(${u}, 1px)`:`calc(${u})`;!e||n.rotation%180===0?(a.width=p,a.height=g):(a.width=g,a.height=p)}i&&t.setAttribute("data-main-rotation",n.rotation)}var Q9=class t{#e=null;#t=null;#i;#n=null;#r=null;static#o=null;constructor(n){this.#i=n,t.#o||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button"})}render(){let n=this.#e=document.createElement("div");n.className="editToolbar",n.setAttribute("role","toolbar");let e=this.#i._uiManager._signal;n.addEventListener("contextmenu",wp,{signal:e}),n.addEventListener("pointerdown",t.#s,{signal:e});let i=this.#n=document.createElement("div");i.className="buttons",n.append(i);let r=this.#i.toolbarPosition;if(r){let{style:o}=n,a=this.#i._uiManager.direction==="ltr"?1-r[0]:r[0];o.insetInlineEnd=`${100*a}%`,o.top=`calc(${100*r[1]}% + var(--editor-toolbar-vert-offset))`}return this.#d(),n}static#s(n){n.stopPropagation()}#l(n){this.#i._focusEventsAllowed=!1,n.preventDefault(),n.stopPropagation()}#u(n){this.#i._focusEventsAllowed=!0,n.preventDefault(),n.stopPropagation()}#c(n){let e=this.#i._uiManager._signal;n.addEventListener("focusin",this.#l.bind(this),{capture:!0,signal:e}),n.addEventListener("focusout",this.#u.bind(this),{capture:!0,signal:e}),n.addEventListener("contextmenu",wp,{signal:e})}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#r?.shown()}#d(){let{editorType:n,_uiManager:e}=this.#i,i=document.createElement("button");i.className="delete",i.tabIndex=0,i.setAttribute("data-l10n-id",t.#o[n]),this.#c(i),i.addEventListener("click",r=>{e.delete()},{signal:e._signal}),this.#n.append(i)}get#a(){let n=document.createElement("div");return n.className="divider",n}addAltText(n){return Mt(this,null,function*(){let e=yield n.render();this.#c(e),this.#n.prepend(e,this.#a),this.#r=n})}addColorPicker(n){this.#t=n;let e=n.renderButton();this.#c(e),this.#n.prepend(e,this.#a)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}},Z9=class{#e=null;#t=null;#i;constructor(n){this.#i=n}#n(){let n=this.#t=document.createElement("div");n.className="editToolbar",n.setAttribute("role","toolbar"),n.addEventListener("contextmenu",wp,{signal:this.#i._signal});let e=this.#e=document.createElement("div");return e.className="buttons",n.append(e),this.#o(),n}#r(n,e){let i=0,r=0;for(let o of n){let a=o.y+o.height;if(ai){r=s,i=a;continue}e?s>r&&(r=s):s{this.#i.highlightSelection("floating_button")},{signal:i}),this.#e.append(n)}};function ZN(t,n,e){for(let i of e)n.addEventListener(i,t[i].bind(t))}function FOe(t){return Math.round(Math.min(255,Math.max(1,255*t))).toString(16).padStart(2,"0")}var J9=class{#e=0;get id(){return`${fOe}${this.#e++}`}},eG=class t{#e=DOe();#t=0;#i=null;static get _isSVGFittingCanvas(){let n='data:image/svg+xml;charset=UTF-8,',i=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),r=new Image;r.src=n;let o=r.decode().then(()=>(i.drawImage(r,0,0,1,1,0,0,1,3),new Uint32Array(i.getImageData(0,0,1,1).data.buffer)[0]===0));return To(this,"_isSVGFittingCanvas",o)}#n(n,e){return Mt(this,null,function*(){this.#i||=new Map;let i=this.#i.get(n);if(i===null)return null;if(i?.bitmap)return i.refCounter+=1,i;try{i||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let r;if(typeof e=="string"?(i.url=e,r=yield wO(e,"blob")):r=i.file=e,r.type==="image/svg+xml"){let o=t._isSVGFittingCanvas,a=new FileReader,s=new Image,l=new Promise((u,p)=>{s.onload=()=>{i.bitmap=s,i.isSvg=!0,u()},a.onload=()=>Mt(this,null,function*(){let g=i.svgUrl=a.result;s.src=(yield o)?`${g}#svgView(preserveAspectRatio(none))`:g}),s.onerror=a.onerror=p});a.readAsDataURL(r),yield l}else i.bitmap=yield createImageBitmap(r);i.refCounter=1}catch(r){console.error(r),i=null}return this.#i.set(n,i),i&&this.#i.set(i.id,i),i})}getFromFile(n){return Mt(this,null,function*(){let{lastModified:e,name:i,size:r,type:o}=n;return this.#n(`${e}_${i}_${r}_${o}`,n)})}getFromUrl(n){return Mt(this,null,function*(){return this.#n(n,n)})}getFromId(n){return Mt(this,null,function*(){this.#i||=new Map;let e=this.#i.get(n);return e?e.bitmap?(e.refCounter+=1,e):e.file?this.getFromFile(e.file):this.getFromUrl(e.url):null})}getSvgUrl(n){let e=this.#i.get(n);return e?.isSvg?e.svgUrl:null}deleteId(n){this.#i||=new Map;let e=this.#i.get(n);e&&(e.refCounter-=1,e.refCounter===0&&(e.bitmap=null))}isValidId(n){return n.startsWith(`image_${this.#e}_`)}},tG=class{#e=[];#t=!1;#i;#n=-1;constructor(n=128){this.#i=n}add({cmd:n,undo:e,post:i,mustExec:r,type:o=NaN,overwriteIfSameType:a=!1,keepUndo:s=!1}){if(r&&n(),this.#t)return;let l={cmd:n,undo:e,post:i,type:o};if(this.#n===-1){this.#e.length>0&&(this.#e.length=0),this.#n=0,this.#e.push(l);return}if(a&&this.#e[this.#n].type===o){s&&(l.undo=this.#e[this.#n].undo),this.#e[this.#n]=l;return}let u=this.#n+1;u===this.#i?this.#e.splice(0,1):(this.#n=u,uo===e[a]))return t._colorsMapping.get(i);return e}getHexCode(n){let e=this._colors.get(n);return e?vn.makeHexColor(...e):n}},JT=(()=>{class t{#e=new AbortController;#t=null;#i=new Map;#n=new Map;#r=null;#o=null;#s=null;#l=new tG;#u=null;#c=0;#d=new Set;#a=null;#m=null;#h=new Set;#p=!1;#f=!1;#_=!1;#g=null;#v=null;#y=null;#C=null;#x=!1;#w=null;#k=new J9;#D=!1;#S=!1;#T=null;#I=null;#M=null;#P=null;#E=xo.NONE;#b=new Set;#A=null;#F=null;#O=null;#H={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#B=[0,0];#N=null;#L=null;#V=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){let e=t.prototype,i=s=>s.#L.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),r=(s,{target:l})=>{if(l instanceof HTMLInputElement){let{type:u}=l;return u!=="text"&&u!=="number"}return!0},o=this.TRANSLATE_SMALL,a=this.TRANSLATE_BIG;return To(this,"_keyboardManager",new g1([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(s,{target:l})=>!(l instanceof HTMLButtonElement)&&s.#L.contains(l)&&!s.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(s,{target:l})=>!(l instanceof HTMLButtonElement)&&s.#L.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-o,0],checker:i}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-a,0],checker:i}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[o,0],checker:i}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[a,0],checker:i}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-o],checker:i}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-a],checker:i}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,o],checker:i}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,a],checker:i}]]))}constructor(e,i,r,o,a,s,l,u,p,g,_){let v=this._signal=this.#e.signal;this.#L=e,this.#V=i,this.#r=r,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:v}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:v}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:v}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:v}),o._on("setpreference",this.onSetPreference.bind(this),{signal:v}),o._on("switchannotationeditorparams",y=>this.updateParams(y.type,y.value),{signal:v}),this.#J(),this.#ne(),this.#q(),this.#o=a.annotationStorage,this.#g=a.filterFactory,this.#F=s,this.#C=l||null,this.#p=u,this.#f=p,this.#_=g,this.#P=_||null,this.viewParameters={realScale:vv.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}destroy(){this.#e?.abort(),this.#e=null,this._signal=null;for(let e of this.#n.values())e.destroy();this.#n.clear(),this.#i.clear(),this.#h.clear(),this.#t=null,this.#b.clear(),this.#l.destroy(),this.#r?.destroy(),this.#w?.hide(),this.#w=null,this.#v&&(clearTimeout(this.#v),this.#v=null),this.#N&&(clearTimeout(this.#N),this.#N=null)}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#P}get useNewAltTextFlow(){return this.#f}get useNewAltTextWhenAddingImage(){return this.#_}get hcmFilter(){return To(this,"hcmFilter",this.#F?this.#g.addHCMFilter(this.#F.foreground,this.#F.background):"none")}get direction(){return To(this,"direction",getComputedStyle(this.#L).direction)}get highlightColors(){return To(this,"highlightColors",this.#C?new Map(this.#C.split(",").map(e=>e.split("=").map(i=>i.trim()))):null)}get highlightColorNames(){return To(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}setMainHighlightColorPicker(e){this.#M=e}editAltText(e,i=!1){this.#r?.editAltText(this,e,i)}switchToMode(e,i){this._eventBus.on("annotationeditormodechanged",i,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,i){this._eventBus.dispatch("setpreference",{source:this,name:e,value:i})}onSetPreference({name:e,value:i}){switch(e){case"enableNewAltTextWhenAddingImage":this.#_=i;break}}onPageChanging({pageNumber:e}){this.#c=e-1}focusMainContainer(){this.#L.focus()}findParent(e,i){for(let r of this.#n.values()){let{x:o,y:a,width:s,height:l}=r.div.getBoundingClientRect();if(e>=o&&e<=o+s&&i>=a&&i<=a+l)return r}return null}disableUserSelect(e=!1){this.#V.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#h.add(e)}removeShouldRescale(e){this.#h.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*vv.PDF_TO_CSS_UNITS;for(let i of this.#h)i.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#j({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#$(e){let{currentLayer:i}=this;if(i.hasTextLayer(e))return i;for(let r of this.#n.values())if(r.hasTextLayer(e))return r;return null}highlightSelection(e=""){let i=document.getSelection();if(!i||i.isCollapsed)return;let{anchorNode:r,anchorOffset:o,focusNode:a,focusOffset:s}=i,l=i.toString(),p=this.#j(i).closest(".textLayer"),g=this.getSelectionBoxes(p);if(!g)return;i.empty();let _=this.#$(p),v=this.#E===xo.NONE,y=()=>{_?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:g,anchorNode:r,anchorOffset:o,focusNode:a,focusOffset:s,text:l}),v&&this.showAllEditors("highlight",!0,!0)};if(v){this.switchToMode(xo.HIGHLIGHT,y);return}y()}#Q(){let e=document.getSelection();if(!e||e.isCollapsed)return;let r=this.#j(e).closest(".textLayer"),o=this.getSelectionBoxes(r);o&&(this.#w||=new Z9(this),this.#w.show(r,o,this.direction==="ltr"))}addToAnnotationStorage(e){!e.isEmpty()&&this.#o&&!this.#o.has(e.id)&&this.#o.setValue(e.id,e)}#Z(){let e=document.getSelection();if(!e||e.isCollapsed){this.#A&&(this.#w?.hide(),this.#A=null,this.#R({hasSelectedText:!1}));return}let{anchorNode:i}=e;if(i===this.#A)return;let o=this.#j(e).closest(".textLayer");if(!o){this.#A&&(this.#w?.hide(),this.#A=null,this.#R({hasSelectedText:!1}));return}if(this.#w?.hide(),this.#A=i,this.#R({hasSelectedText:!0}),!(this.#E!==xo.HIGHLIGHT&&this.#E!==xo.NONE)&&(this.#E===xo.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#x=this.isShiftKeyDown,!this.isShiftKeyDown)){let a=this.#E===xo.HIGHLIGHT?this.#$(o):null;a?.toggleDrawing();let s=new AbortController,l=this.combinedSignal(s),u=p=>{p.type==="pointerup"&&p.button!==0||(s.abort(),a?.toggleDrawing(!0),p.type==="pointerup"&&this.#G("main_toolbar"))};window.addEventListener("pointerup",u,{signal:l}),window.addEventListener("blur",u,{signal:l})}}#G(e=""){this.#E===xo.HIGHLIGHT?this.highlightSelection(e):this.#p&&this.#Q()}#J(){document.addEventListener("selectionchange",this.#Z.bind(this),{signal:this._signal})}#ee(){if(this.#y)return;this.#y=new AbortController;let e=this.combinedSignal(this.#y);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#te(){this.#y?.abort(),this.#y=null}blur(){if(this.isShiftKeyDown=!1,this.#x&&(this.#x=!1,this.#G("main_toolbar")),!this.hasSelection)return;let{activeElement:e}=document;for(let i of this.#b)if(i.div.contains(e)){this.#I=[i,e],i._focusEventsAllowed=!1;break}}focus(){if(!this.#I)return;let[e,i]=this.#I;this.#I=null,i.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),i.focus()}#q(){if(this.#T)return;this.#T=new AbortController;let e=this.combinedSignal(this.#T);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#ie(){this.#T?.abort(),this.#T=null}#W(){if(this.#u)return;this.#u=new AbortController;let e=this.combinedSignal(this.#u);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#Y(){this.#u?.abort(),this.#u=null}#ne(){let e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#q(),this.#W()}removeEditListeners(){this.#ie(),this.#Y()}dragOver(e){for(let{type:i}of e.dataTransfer.items)for(let r of this.#m)if(r.isHandlingMimeForPasting(i)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(let i of e.dataTransfer.items)for(let r of this.#m)if(r.isHandlingMimeForPasting(i.type)){r.paste(i,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;let i=[];for(let r of this.#b){let o=r.serialize(!0);o&&i.push(o)}i.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(i))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();let{clipboardData:i}=e;for(let a of i.items)for(let s of this.#m)if(s.isHandlingMimeForPasting(a.type)){s.paste(a,this.currentLayer);return}let r=i.getData("application/pdfjs");if(!r)return;try{r=JSON.parse(r)}catch(a){to(`paste: "${a.message}".`);return}if(!Array.isArray(r))return;this.unselectAll();let o=this.currentLayer;try{let a=[];for(let u of r){let p=o.deserialize(u);if(!p)return;a.push(p)}let s=()=>{for(let u of a)this.#K(u);this.#X(a)},l=()=>{for(let u of a)u.remove()};this.addCommands({cmd:s,undo:l,mustExec:!0})}catch(a){to(`paste: "${a.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#E!==xo.NONE&&!this.isEditorHandlingKeyboard&&t._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#x&&(this.#x=!1,this.#G("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}#R(e){Object.entries(e).some(([r,o])=>this.#H[r]!==o)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#H,e)}),this.#E===xo.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#z([[_r.HIGHLIGHT_FREE,!0]]))}#z(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#ee(),this.#W(),this.#R({isEditing:this.#E!==xo.NONE,isEmpty:this.#U(),hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:this.#l.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#te(),this.#Y(),this.#R({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#m){this.#m=e;for(let i of this.#m)this.#z(i.defaultPropertiesToUpdate)}}getId(){return this.#k.id}get currentLayer(){return this.#n.get(this.#c)}getLayer(e){return this.#n.get(e)}get currentPageIndex(){return this.#c}addLayer(e){this.#n.set(e.pageIndex,e),this.#D?e.enable():e.disable()}removeLayer(e){this.#n.delete(e.pageIndex)}updateMode(e,i=null,r=!1){if(this.#E!==e){if(this.#E=e,e===xo.NONE){this.setEditingState(!1),this.#oe();return}this.setEditingState(!0),this.#re(),this.unselectAll();for(let o of this.#n.values())o.updateMode(e);if(!i&&r){this.addNewEditorFromKeyboard();return}if(i){for(let o of this.#i.values())if(o.annotationElementId===i){this.setSelected(o),o.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e!==this.#E&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,i){if(this.#m){switch(e){case _r.CREATE:this.currentLayer.addNewEditor();return;case _r.HIGHLIGHT_DEFAULT_COLOR:this.#M?.updateColor(i);break;case _r.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#O||=new Map).set(e,i),this.showAllEditors("highlight",i);break}for(let r of this.#b)r.updateParams(e,i);for(let r of this.#m)r.updateDefaultParams(e,i)}}showAllEditors(e,i,r=!1){for(let a of this.#i.values())a.editorType===e&&a.show(i);(this.#O?.get(_r.HIGHLIGHT_SHOW_ALL)??!0)!==i&&this.#z([[_r.HIGHLIGHT_SHOW_ALL,i]])}enableWaiting(e=!1){if(this.#S!==e){this.#S=e;for(let i of this.#n.values())e?i.disableClick():i.enableClick(),i.div.classList.toggle("waiting",e)}}#re(){if(!this.#D){this.#D=!0;for(let e of this.#n.values())e.enable();for(let e of this.#i.values())e.enable()}}#oe(){if(this.unselectAll(),this.#D){this.#D=!1;for(let e of this.#n.values())e.disable();for(let e of this.#i.values())e.disable()}}getEditors(e){let i=[];for(let r of this.#i.values())r.pageIndex===e&&i.push(r);return i}getEditor(e){return this.#i.get(e)}addEditor(e){this.#i.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#v&&clearTimeout(this.#v),this.#v=setTimeout(()=>{this.focusMainContainer(),this.#v=null},0)),this.#i.delete(e.id),this.unselect(e),(!e.annotationElementId||!this.#d.has(e.annotationElementId))&&this.#o?.remove(e.id)}addDeletedAnnotationElement(e){this.#d.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#d.has(e)}removeDeletedAnnotationElement(e){this.#d.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#K(e){let i=this.#n.get(e.pageIndex);i?i.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#z(e.propertiesToUpdate))}get#ae(){let e=null;for(e of this.#b);return e}updateUI(e){this.#ae===e&&this.#z(e.propertiesToUpdate)}toggleSelected(e){if(this.#b.has(e)){this.#b.delete(e),e.unselect(),this.#R({hasSelectedEditor:this.hasSelection});return}this.#b.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#R({hasSelectedEditor:!0})}setSelected(e){for(let i of this.#b)i!==e&&i.unselect();this.#b.clear(),this.#b.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#R({hasSelectedEditor:!0})}isSelected(e){return this.#b.has(e)}get firstSelectedEditor(){return this.#b.values().next().value}unselect(e){e.unselect(),this.#b.delete(e),this.#R({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#b.size!==0}get isEnterHandled(){return this.#b.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#l.undo(),this.#R({hasSomethingToUndo:this.#l.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#U()})}redo(){this.#l.redo(),this.#R({hasSomethingToUndo:!0,hasSomethingToRedo:this.#l.hasSomethingToRedo(),isEmpty:this.#U()})}addCommands(e){this.#l.add(e),this.#R({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#U()})}#U(){if(this.#i.size===0)return!0;if(this.#i.size===1)for(let e of this.#i.values())return e.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;let e=[...this.#b],i=()=>{for(let o of e)o.remove()},r=()=>{for(let o of e)this.#K(o)};this.addCommands({cmd:i,undo:r,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#X(e){for(let i of this.#b)i.unselect();this.#b.clear();for(let i of e)i.isEmpty()||(this.#b.add(i),i.select());this.#R({hasSelectedEditor:this.hasSelection})}selectAll(){for(let e of this.#b)e.commit();this.#X(this.#i.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#E!==xo.NONE))&&this.hasSelection){for(let e of this.#b)e.unselect();this.#b.clear(),this.#R({hasSelectedEditor:!1})}}translateSelectedEditors(e,i,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;this.#B[0]+=e,this.#B[1]+=i;let[o,a]=this.#B,s=[...this.#b],l=1e3;this.#N&&clearTimeout(this.#N),this.#N=setTimeout(()=>{this.#N=null,this.#B[0]=this.#B[1]=0,this.addCommands({cmd:()=>{for(let u of s)this.#i.has(u.id)&&u.translateInPage(o,a)},undo:()=>{for(let u of s)this.#i.has(u.id)&&u.translateInPage(-o,-a)},mustExec:!1})},l);for(let u of s)u.translateInPage(e,i)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#a=new Map;for(let e of this.#b)this.#a.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#a)return!1;this.disableUserSelect(!1);let e=this.#a;this.#a=null;let i=!1;for(let[{x:o,y:a,pageIndex:s},l]of e)l.newX=o,l.newY=a,l.newPageIndex=s,i||=o!==l.savedX||a!==l.savedY||s!==l.savedPageIndex;if(!i)return!1;let r=(o,a,s,l)=>{if(this.#i.has(o.id)){let u=this.#n.get(l);u?o._setParentAndPosition(u,a,s):(o.pageIndex=l,o.x=a,o.y=s)}};return this.addCommands({cmd:()=>{for(let[o,{newX:a,newY:s,newPageIndex:l}]of e)r(o,a,s,l)},undo:()=>{for(let[o,{savedX:a,savedY:s,savedPageIndex:l}]of e)r(o,a,s,l)},mustExec:!0}),!0}dragSelectedEditors(e,i){if(this.#a)for(let r of this.#a.keys())r.drag(e,i)}rebuild(e){if(e.parent===null){let i=this.getLayer(e.pageIndex);i?(i.changeParent(e),i.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#b.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#E}get imageManager(){return To(this,"imageManager",new eG)}getSelectionBoxes(e){if(!e)return null;let i=document.getSelection();for(let p=0,g=i.rangeCount;p({x:(g-o)/s,y:1-(p+_-r)/a,width:v/s,height:_/a});break;case"180":l=(p,g,_,v)=>({x:1-(p+_-r)/a,y:1-(g+v-o)/s,width:_/a,height:v/s});break;case"270":l=(p,g,_,v)=>({x:1-(g+v-o)/s,y:(p-r)/a,width:v/s,height:_/a});break;default:l=(p,g,_,v)=>({x:(p-r)/a,y:(g-o)/s,width:_/a,height:v/s});break}let u=[];for(let p=0,g=i.rangeCount;p{class t{#e=null;#t=!1;#i=null;#n=null;#r=null;#o=!1;#s=null;#l=null;#u=null;#c=null;#d=!1;static _l10nPromise=null;constructor(e){this.#l=e,this.#d=e._uiManager.useNewAltTextFlow}static initialize(e){t._l10nPromise||=e}render(){return Mt(this,null,function*(){let e=this.#i=document.createElement("button");e.className="altText";let i;this.#d?(e.classList.add("new"),i=yield t._l10nPromise.get("pdfjs-editor-new-alt-text-missing-button-label")):i=yield t._l10nPromise.get("pdfjs-editor-alt-text-button-label"),e.textContent=i,e.setAttribute("aria-label",i),e.tabIndex="0";let r=this.#l._uiManager._signal;e.addEventListener("contextmenu",wp,{signal:r}),e.addEventListener("pointerdown",a=>a.stopPropagation(),{signal:r});let o=a=>{a.preventDefault(),this.#l._uiManager.editAltText(this.#l),this.#d&&this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#a}})};return e.addEventListener("click",o,{capture:!0,signal:r}),e.addEventListener("keydown",a=>{a.target===e&&a.key==="Enter"&&(this.#o=!0,o(a))},{signal:r}),yield this.#m(),e})}get#a(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#i&&(this.#i.focus({focusVisible:this.#o}),this.#o=!1)}isEmpty(){return this.#d?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#d?this.#e!==null||!!this.#u:this.isEmpty()}get guessedText(){return this.#u}setGuessedText(e){return Mt(this,null,function*(){this.#e===null&&(this.#u=e,this.#c=yield t._l10nPromise.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer")({generatedAltText:e}),this.#m())})}toggleAltTextBadge(e=!1){if(!this.#d||this.#e){this.#s?.remove(),this.#s=null;return}if(!this.#s){let i=this.#s=document.createElement("div");i.className="noAltTextBadge",this.#l.div.append(i)}this.#s.classList.toggle("hidden",!e)}serialize(e){let i=this.#e;return!e&&this.#u===i&&(i=this.#c),{altText:i,decorative:this.#t,guessedText:this.#u,textWithDisclaimer:this.#c}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:i,guessedText:r,textWithDisclaimer:o,cancel:a=!1}){r&&(this.#u=r,this.#c=o),!(this.#e===e&&this.#t===i)&&(a||(this.#e=e,this.#t=i),this.#m())}toggle(e=!1){this.#i&&(!e&&this.#r&&(clearTimeout(this.#r),this.#r=null),this.#i.disabled=!e)}shown(){this.#l._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#a}})}destroy(){this.#i?.remove(),this.#i=null,this.#n=null,this.#s?.remove(),this.#s=null}#m(){return Mt(this,null,function*(){let e=this.#i;if(!e)return;if(this.#d){let o=this.#a,a=o==="review"?"to-review":o;if(e.classList.toggle("done",!!this.#e),t._l10nPromise.get(`pdfjs-editor-new-alt-text-${a}-button-label`).then(s=>{e.setAttribute("aria-label",s);for(let l of e.childNodes)if(l.nodeType===Node.TEXT_NODE){l.textContent=s;break}}),!this.#e){this.#n?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#n?.remove();return}e.classList.add("done"),t._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(o=>{e.setAttribute("aria-label",o)})}let i=this.#n;if(!i){this.#n=i=document.createElement("span"),i.className="tooltip",i.setAttribute("role","tooltip");let o=i.id=`alt-text-tooltip-${this.#l.id}`;e.setAttribute("aria-describedby",o);let a=100,s=this.#l._uiManager._signal;s.addEventListener("abort",()=>{clearTimeout(this.#r),this.#r=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#r=setTimeout(()=>{this.#r=null,this.#n.classList.add("show"),this.#l._reportTelemetry({action:"alt_text_tooltip"})},a)},{signal:s}),e.addEventListener("mouseleave",()=>{this.#r&&(clearTimeout(this.#r),this.#r=null),this.#n?.classList.remove("show")},{signal:s})}i.innerText=this.#t?yield t._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):this.#e,i.parentNode||e.append(i),this.#l.getImageForAltText()?.setAttribute("aria-describedby",i.id)})}}return t})(),na=class t{#e=null;#t=null;#i=null;#n=!1;#r=!1;#o=null;#s=null;#l=null;#u="";#c=!1;#d=null;#a=!1;#m=!1;#h=!1;#p=null;#f=0;#_=0;#g=null;_editToolbar=null;_initialOptions=Object.create(null);_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10nPromise=null;static _l10nResizer=null;#v=!1;#y=t._zIndex++;static _borderLineWidth=-1;static _colorManager=new iG;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){let n=t.prototype._resizeWithKeyboard,e=JT.TRANSLATE_SMALL,i=JT.TRANSLATE_BIG;return To(this,"_resizerKeyboardManager",new g1([[["ArrowLeft","mac+ArrowLeft"],n,{args:[-e,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n,{args:[-i,0]}],[["ArrowRight","mac+ArrowRight"],n,{args:[e,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n,{args:[i,0]}],[["ArrowUp","mac+ArrowUp"],n,{args:[0,-e]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n,{args:[0,-i]}],[["ArrowDown","mac+ArrowDown"],n,{args:[0,e]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n,{args:[0,i]}],[["Escape","mac+Escape"],t.prototype._stopResizingWithKeyboard]]))}constructor(n){this.parent=n.parent,this.id=n.id,this.width=this.height=null,this.pageIndex=n.parent.pageIndex,this.name=n.name,this.div=null,this._uiManager=n.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=n.isCentered,this._structTreeParentId=null;let{rotation:e,rawDims:{pageWidth:i,pageHeight:r,pageX:o,pageY:a}}=this.parent.viewport;this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[i,r],this.pageTranslation=[o,a];let[s,l]=this.parentDimensions;this.x=n.x/s,this.y=n.y/l,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return To(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(n){let e=new nG({id:n.parent.getNextId(),parent:n.parent,uiManager:n._uiManager});e.annotationElementId=n.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(n,e,i){if(t._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),t._l10nPromise||=new Map([...["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-new-alt-text-added-button-label","pdfjs-editor-new-alt-text-missing-button-label","pdfjs-editor-new-alt-text-to-review-button-label"].map(o=>[o,n.get(o)]),...["pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer"].map(o=>[o,n.get.bind(n,o)])]),i?.strings)for(let o of i.strings)t._l10nPromise.set(o,n.get(o));if(t._borderLineWidth!==-1)return;let r=getComputedStyle(document.documentElement);t._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}static updateDefaultParams(n,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(n){return!1}static paste(n,e){al("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#v}set _isDraggable(n){this.#v=n,this.div?.classList.toggle("draggable",n)}get isEnterHandled(){return!0}center(){let[n,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(n*2),this.y+=this.width*n/(e*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(n*2),this.y-=this.width*n/(e*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(n){this._uiManager.addCommands(n)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#y}setParent(n){n!==null?(this.pageIndex=n.pageIndex,this.pageDimensions=n.pageDimensions):this.#O(),this.parent=n}focusin(n){this._focusEventsAllowed&&(this.#c?this.#c=!1:this.parent.setSelected(this))}focusout(n){!this._focusEventsAllowed||!this.isAttachedToDOM||n.relatedTarget?.closest(`#${this.id}`)||(n.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(n,e,i,r){let[o,a]=this.parentDimensions;[i,r]=this.screenToPageTranslation(i,r),this.x=(n+i)/o,this.y=(e+r)/a,this.fixAndSetPosition()}#C([n,e],i,r){[i,r]=this.screenToPageTranslation(i,r),this.x+=i/n,this.y+=r/e,this.fixAndSetPosition()}translate(n,e){this.#C(this.parentDimensions,n,e)}translateInPage(n,e){this.#d||=[this.x,this.y],this.#C(this.pageDimensions,n,e),this.div.scrollIntoView({block:"nearest"})}drag(n,e){this.#d||=[this.x,this.y];let[i,r]=this.parentDimensions;if(this.x+=n/i,this.y+=e/r,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){let{x:u,y:p}=this.div.getBoundingClientRect();this.parent.findNewParent(this,u,p)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:o,y:a}=this,[s,l]=this.getBaseTranslation();o+=s,a+=l,this.div.style.left=`${(100*o).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!this.#d&&(this.#d[0]!==this.x||this.#d[1]!==this.y)}getBaseTranslation(){let[n,e]=this.parentDimensions,{_borderLineWidth:i}=t,r=i/n,o=i/e;switch(this.rotation){case 90:return[-r,o];case 180:return[r,o];case 270:return[r,-o];default:return[-r,-o]}}get _mustFixPosition(){return!0}fixAndSetPosition(n=this.rotation){let[e,i]=this.pageDimensions,{x:r,y:o,width:a,height:s}=this;if(a*=e,s*=i,r*=e,o*=i,this._mustFixPosition)switch(n){case 0:r=Math.max(0,Math.min(e-a,r)),o=Math.max(0,Math.min(i-s,o));break;case 90:r=Math.max(0,Math.min(e-s,r)),o=Math.min(i,Math.max(a,o));break;case 180:r=Math.min(e,Math.max(a,r)),o=Math.min(i,Math.max(s,o));break;case 270:r=Math.min(e,Math.max(s,r)),o=Math.max(0,Math.min(i-a,o));break}this.x=r/=e,this.y=o/=i;let[l,u]=this.getBaseTranslation();r+=l,o+=u;let{style:p}=this.div;p.left=`${(100*r).toFixed(2)}%`,p.top=`${(100*o).toFixed(2)}%`,this.moveInDOM()}static#x(n,e,i){switch(i){case 90:return[e,-n];case 180:return[-n,-e];case 270:return[-e,n];default:return[n,e]}}screenToPageTranslation(n,e){return t.#x(n,e,this.parentRotation)}pageTranslationToScreen(n,e){return t.#x(n,e,360-this.parentRotation)}#w(n){switch(n){case 90:{let[e,i]=this.pageDimensions;return[0,-e/i,i/e,0]}case 180:return[-1,0,0,-1];case 270:{let[e,i]=this.pageDimensions;return[0,e/i,-i/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){let{parentScale:n,pageDimensions:[e,i]}=this,r=e*n,o=i*n;return Qc.isCSSRoundSupported?[Math.round(r),Math.round(o)]:[r,o]}setDims(n,e){let[i,r]=this.parentDimensions;this.div.style.width=`${(100*n/i).toFixed(2)}%`,this.#r||(this.div.style.height=`${(100*e/r).toFixed(2)}%`)}fixDims(){let{style:n}=this.div,{height:e,width:i}=n,r=i.endsWith("%"),o=!this.#r&&e.endsWith("%");if(r&&o)return;let[a,s]=this.parentDimensions;r||(n.width=`${(100*parseFloat(i)/a).toFixed(2)}%`),!this.#r&&!o&&(n.height=`${(100*parseFloat(e)/s).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}#k(){if(this.#o)return;this.#o=document.createElement("div"),this.#o.classList.add("resizers");let n=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],e=this._uiManager._signal;for(let i of n){let r=document.createElement("div");this.#o.append(r),r.classList.add("resizer",i),r.setAttribute("data-resizer-name",i),r.addEventListener("pointerdown",this.#D.bind(this,i),{signal:e}),r.addEventListener("contextmenu",wp,{signal:e}),r.tabIndex=-1}this.div.prepend(this.#o)}#D(n,e){e.preventDefault();let{isMac:i}=Qc.platform;if(e.button!==0||e.ctrlKey&&i)return;this.#i?.toggle(!1);let r=this._isDraggable;this._isDraggable=!1;let o=new AbortController,a=this._uiManager.combinedSignal(o);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#T.bind(this,n),{passive:!0,capture:!0,signal:a}),window.addEventListener("contextmenu",wp,{signal:a});let s=this.x,l=this.y,u=this.width,p=this.height,g=this.parent.div.style.cursor,_=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(e.target).cursor;let v=()=>{o.abort(),this.parent.togglePointerEvents(!0),this.#i?.toggle(!0),this._isDraggable=r,this.parent.div.style.cursor=g,this.div.style.cursor=_,this.#S(s,l,u,p)};window.addEventListener("pointerup",v,{signal:a}),window.addEventListener("blur",v,{signal:a})}#S(n,e,i,r){let o=this.x,a=this.y,s=this.width,l=this.height;o===n&&a===e&&s===i&&l===r||this.addCommands({cmd:()=>{this.width=s,this.height=l,this.x=o,this.y=a;let[u,p]=this.parentDimensions;this.setDims(u*s,p*l),this.fixAndSetPosition()},undo:()=>{this.width=i,this.height=r,this.x=n,this.y=e;let[u,p]=this.parentDimensions;this.setDims(u*i,p*r),this.fixAndSetPosition()},mustExec:!0})}#T(n,e){let[i,r]=this.parentDimensions,o=this.x,a=this.y,s=this.width,l=this.height,u=t.MIN_SIZE/i,p=t.MIN_SIZE/r,g=X=>Math.round(X*1e4)/1e4,_=this.#w(this.rotation),v=(X,z)=>[_[0]*X+_[2]*z,_[1]*X+_[3]*z],y=this.#w(360-this.rotation),x=(X,z)=>[y[0]*X+y[2]*z,y[1]*X+y[3]*z],I,C,D=!1,A=!1;switch(n){case"topLeft":D=!0,I=(X,z)=>[0,0],C=(X,z)=>[X,z];break;case"topMiddle":I=(X,z)=>[X/2,0],C=(X,z)=>[X/2,z];break;case"topRight":D=!0,I=(X,z)=>[X,0],C=(X,z)=>[0,z];break;case"middleRight":A=!0,I=(X,z)=>[X,z/2],C=(X,z)=>[0,z/2];break;case"bottomRight":D=!0,I=(X,z)=>[X,z],C=(X,z)=>[0,0];break;case"bottomMiddle":I=(X,z)=>[X/2,z],C=(X,z)=>[X/2,0];break;case"bottomLeft":D=!0,I=(X,z)=>[0,z],C=(X,z)=>[X,0];break;case"middleLeft":A=!0,I=(X,z)=>[0,z/2],C=(X,z)=>[X,z/2];break}let M=I(s,l),R=C(s,l),j=v(...R),K=g(o+j[0]),F=g(a+j[1]),V=1,Q=1,[te,re]=this.screenToPageTranslation(e.movementX,e.movementY);if([te,re]=x(te/i,re/r),D){let X=Math.hypot(s,l);V=Q=Math.max(Math.min(Math.hypot(R[0]-M[0]-te,R[1]-M[1]-re)/X,1/s,1/l),u/s,p/l)}else A?V=Math.max(u,Math.min(1,Math.abs(R[0]-M[0]-te)))/s:Q=Math.max(p,Math.min(1,Math.abs(R[1]-M[1]-re)))/l;let O=g(s*V),B=g(l*Q);j=v(...C(O,B));let q=K-j[0],G=F-j[1];this.width=O,this.height=B,this.x=q,this.y=G,this.setDims(i*O,r*B),this.fixAndSetPosition()}altTextFinish(){this.#i?.finish()}addEditToolbar(){return Mt(this,null,function*(){return this._editToolbar||this.#m?this._editToolbar:(this._editToolbar=new Q9(this),this.div.append(this._editToolbar.render()),this.#i&&(yield this._editToolbar.addAltText(this.#i)),this._editToolbar)})}removeEditToolbar(){this._editToolbar&&(this._editToolbar.remove(),this._editToolbar=null,this.#i?.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}addAltTextButton(){return Mt(this,null,function*(){this.#i||(xle.initialize(t._l10nPromise),this.#i=new xle(this),this.#e&&(this.#i.data=this.#e,this.#e=null),yield this.addEditToolbar())})}get altTextData(){return this.#i?.data}set altTextData(n){this.#i&&(this.#i.data=n)}get guessedAltText(){return this.#i?.guessedText}setGuessedAltText(n){return Mt(this,null,function*(){yield this.#i?.setGuessedText(n)})}serializeAltText(n){return this.#i?.serialize(n)}hasAltText(){return!!this.#i&&!this.#i.isEmpty()}hasAltTextData(){return this.#i?.hasData()??!1}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=this.#n?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),this.#P();let[n,e]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*e/n).toFixed(2)}%`,this.div.style.maxHeight=`${(100*n/e).toFixed(2)}%`);let[i,r]=this.getInitialTranslation();return this.translate(i,r),ZN(this,this.div,["pointerdown"]),this.div}pointerdown(n){let{isMac:e}=Qc.platform;if(n.button!==0||n.ctrlKey&&e){n.preventDefault();return}if(this.#c=!0,this._isDraggable){this.#M(n);return}this.#I(n)}#I(n){let{isMac:e}=Qc.platform;n.ctrlKey&&!e||n.shiftKey||n.metaKey&&e?this.parent.toggleSelected(this):this.parent.setSelected(this)}#M(n){let e=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let i=new AbortController,r=this._uiManager.combinedSignal(i);if(e){this.div.classList.add("moving"),this.#f=n.clientX,this.#_=n.clientY;let a=s=>{let{clientX:l,clientY:u}=s,[p,g]=this.screenToPageTranslation(l-this.#f,u-this.#_);this.#f=l,this.#_=u,this._uiManager.dragSelectedEditors(p,g)};window.addEventListener("pointermove",a,{passive:!0,capture:!0,signal:r})}let o=()=>{i.abort(),e&&this.div.classList.remove("moving"),this.#c=!1,this._uiManager.endDragSession()||this.#I(n)};window.addEventListener("pointerup",o,{signal:r}),window.addEventListener("blur",o,{signal:r})}moveInDOM(){this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#p=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(n,e,i){n.changeParent(this),this.x=e,this.y=i,this.fixAndSetPosition()}getRect(n,e,i=this.rotation){let r=this.parentScale,[o,a]=this.pageDimensions,[s,l]=this.pageTranslation,u=n/r,p=e/r,g=this.x*o,_=this.y*a,v=this.width*o,y=this.height*a;switch(i){case 0:return[g+u+s,a-_-p-y+l,g+u+v+s,a-_-p+l];case 90:return[g+p+s,a-_+u+l,g+p+y+s,a-_+u+v+l];case 180:return[g-u-v+s,a-_+p+l,g-u+s,a-_+p+y+l];case 270:return[g-p-y+s,a-_-u-v+l,g-p+s,a-_-u+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(n,e){let[i,r,o,a]=n,s=o-i,l=a-r;switch(this.rotation){case 0:return[i,e-a,s,l];case 90:return[i,e-r,l,s];case 180:return[o,e-r,s,l];case 270:return[o,e-a,l,s];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#m=!0}disableEditMode(){this.#m=!1}isInEditMode(){return this.#m}shouldGetKeyboardEvents(){return this.#h}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}#P(){if(this.#l||!this.div)return;this.#l=new AbortController;let n=this._uiManager.combinedSignal(this.#l);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:n}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:n})}rebuild(){this.#P()}rotate(n){}serialize(n=!1,e=null){al("An editor must be serializable")}static deserialize(n,e,i){let r=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:i});r.rotation=n.rotation,r.#e=n.accessibilityData;let[o,a]=r.pageDimensions,[s,l,u,p]=r.getRectInCurrentCoords(n.rect,a);return r.x=s/o,r.y=l/a,r.width=u/o,r.height=p/a,r}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#l?.abort(),this.#l=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#p&&(clearTimeout(this.#p),this.#p=null),this.#O(),this.removeEditToolbar(),this.#g){for(let n of this.#g.values())clearTimeout(n);this.#g=null}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#k(),this.#o.classList.remove("hidden"),ZN(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(n){if(!this.isResizable||n.target!==this.div||n.key!=="Enter")return;this._uiManager.setSelected(this),this.#s={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};let e=this.#o.children;if(!this.#t){this.#t=Array.from(e);let a=this.#E.bind(this),s=this.#b.bind(this),l=this._uiManager._signal;for(let u of this.#t){let p=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:l}),u.addEventListener("blur",s,{signal:l}),u.addEventListener("focus",this.#A.bind(this,p),{signal:l}),u.setAttribute("data-l10n-id",t._l10nResizer[p])}}let i=this.#t[0],r=0;for(let a of e){if(a===i)break;r++}let o=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(o!==r){if(or)for(let s=0;s{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#i?.toggleAltTextBadge(!1)}unselect(){this.#o?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#i?.toggleAltTextBadge(!0)}updateParams(n,e){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return this.#a}set isEditing(n){this.#a=n,this.parent&&(n?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(n,e){this.#r=!0;let i=n/e,{style:r}=this.div;r.aspectRatio=i,r.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(n,e=!1){if(e){this.#g||=new Map;let{action:i}=n,r=this.#g.get(i);r&&clearTimeout(r),r=setTimeout(()=>{this._reportTelemetry(n),this.#g.delete(i),this.#g.size===0&&(this.#g=null)},t._telemetryTimeout),this.#g.set(i,r);return}n.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:n}})}show(n=this._isVisible){this.div.classList.toggle("hidden",!n),this._isVisible=n}enable(){this.div&&(this.div.tabIndex=0),this.#n=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#n=!0}renderAnnotationElement(n){let e=n.container.querySelector(".annotationContent");if(!e)e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),n.container.prepend(e);else if(e.nodeName==="CANVAS"){let i=e;e=document.createElement("div"),e.classList.add("annotationContent",this.editorType),i.before(e)}return e}resetAnnotationElement(n){let{firstChild:e}=n.container;e.nodeName==="DIV"&&e.classList.contains("annotationContent")&&e.remove()}},nG=class extends na{constructor(n){super(n),this.annotationElementId=n.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}},Cle=3285377520,Sp=4294901760,Gf=65535,JN=class{constructor(n){this.h1=n?n&4294967295:Cle,this.h2=n?n&4294967295:Cle}update(n){let e,i;if(typeof n=="string"){e=new Uint8Array(n.length*2),i=0;for(let x=0,I=n.length;x>>8,e[i++]=C&255)}}else if(ArrayBuffer.isView(n))e=n.slice(),i=e.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");let r=i>>2,o=i-r*4,a=new Uint32Array(e.buffer,0,r),s=0,l=0,u=this.h1,p=this.h2,g=3432918353,_=461845907,v=g&Gf,y=_&Gf;for(let x=0;x>>17,s=s*_&Sp|s*y&Gf,u^=s,u=u<<13|u>>>19,u=u*5+3864292196):(l=a[x],l=l*g&Sp|l*v&Gf,l=l<<15|l>>>17,l=l*_&Sp|l*y&Gf,p^=l,p=p<<13|p>>>19,p=p*5+3864292196);switch(s=0,o){case 3:s^=e[r*4+2]<<16;case 2:s^=e[r*4+1]<<8;case 1:s^=e[r*4],s=s*g&Sp|s*v&Gf,s=s<<15|s>>>17,s=s*_&Sp|s*y&Gf,r&1?u^=s:p^=s}this.h1=u,this.h2=p}hexdigest(){let n=this.h1,e=this.h2;return n^=e>>>1,n=n*3981806797&Sp|n*36045&Gf,e=e*4283543511&Sp|((e<<16|n>>>16)*2950163797&Sp)>>>16,n^=e>>>1,n=n*444984403&Sp|n*60499&Gf,e=e*3301882366&Sp|((e<<16|n>>>16)*3120437893&Sp)>>>16,n^=e>>>1,(n>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}},rG=Object.freeze({map:null,hash:"",transfer:void 0}),e2=class{#e=!1;#t=null;#i=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(n,e){let i=this.#i.get(n);return i===void 0?e:Object.assign(e,i)}getRawValue(n){return this.#i.get(n)}remove(n){if(this.#i.delete(n),this.#i.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(let e of this.#i.values())if(e instanceof na)return;this.onAnnotationEditor(null)}}setValue(n,e){let i=this.#i.get(n),r=!1;if(i!==void 0)for(let[o,a]of Object.entries(e))i[o]!==a&&(r=!0,i[o]=a);else r=!0,this.#i.set(n,e);r&&this.#n(),e instanceof na&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(e.constructor._type)}has(n){return this.#i.has(n)}getAll(){return this.#i.size>0?d$(this.#i):null}setAll(n){for(let[e,i]of Object.entries(n))this.setValue(e,i)}get size(){return this.#i.size}#n(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new eO(this)}get serializable(){if(this.#i.size===0)return rG;let n=new Map,e=new JN,i=[],r=Object.create(null),o=!1;for(let[a,s]of this.#i){let l=s instanceof na?s.serialize(!1,r):s;l&&(n.set(a,l),e.update(`${a}:${JSON.stringify(l)}`),o||=!!l.bitmap)}if(o)for(let a of n.values())a.bitmap&&i.push(a.bitmap);return n.size>0?{map:n,hash:e.hexdigest(),transfer:i}:rG}get editorStats(){let n=null,e=new Map;for(let i of this.#i.values()){if(!(i instanceof na))continue;let r=i.telemetryFinalData;if(!r)continue;let{type:o}=r;e.has(o)||e.set(o,Object.getPrototypeOf(i).constructor),n||=Object.create(null);let a=n[o]||=new Map;for(let[s,l]of Object.entries(r)){if(s==="type")continue;let u=a.get(s);u||(u=new Map,a.set(s,u));let p=u.get(l)??0;u.set(l,p+1)}}for(let[i,r]of e)n[i]=r.computeTelemetryFinalData(n[i]);return n}resetModifiedIds(){this.#t=null}get modifiedIds(){if(this.#t)return this.#t;let n=[];for(let e of this.#i.values())!(e instanceof na)||!e.annotationElementId||!e.serialize()||n.push(e.annotationElementId);return this.#t={ids:new Set(n),hash:n.join(",")}}},eO=class extends e2{#e;constructor(n){super();let{map:e,hash:i,transfer:r}=n.serializable,o=structuredClone(e,r?{transfer:r}:null);this.#e={map:o,hash:i,transfer:r}}get print(){al("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return To(this,"modifiedIds",{ids:new Set,hash:""})}},oG=class{#e=new Set;constructor({ownerDocument:n=globalThis.document,styleElement:e=null}){this._document=n,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(n){this.nativeFontFaces.add(n),this._document.fonts.add(n)}removeNativeFontFace(n){this.nativeFontFaces.delete(n),this._document.fonts.delete(n)}insertRule(n){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));let e=this.styleElement.sheet;e.insertRule(n,e.cssRules.length)}clear(){for(let n of this.nativeFontFaces)this._document.fonts.delete(n);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}loadSystemFont(i){return Mt(this,arguments,function*({systemFontInfo:n,_inspectFont:e}){if(!(!n||this.#e.has(n.loadedName))){if(Dl(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){let{loadedName:r,src:o,style:a}=n,s=new FontFace(r,o,a);this.addNativeFontFace(s);try{yield s.load(),this.#e.add(r),e?.(n)}catch{to(`Cannot load system font: ${n.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(s)}return}al("Not implemented: loadSystemFont without the Font Loading API.")}})}bind(n){return Mt(this,null,function*(){if(n.attached||n.missingFile&&!n.systemFontInfo)return;if(n.attached=!0,n.systemFontInfo){yield this.loadSystemFont(n);return}if(this.isFontLoadingAPISupported){let i=n.createNativeFontFace();if(i){this.addNativeFontFace(i);try{yield i.loaded}catch(r){throw to(`Failed to load font '${i.family}': '${r}'.`),n.disableFontFace=!0,r}}return}let e=n.createFontFaceRule();if(e){if(this.insertRule(e),this.isSyncFontLoadingSupported)return;yield new Promise(i=>{let r=this._queueLoadingCallback(i);this._prepareFontLoadEvent(n,r)})}})}get isFontLoadingAPISupported(){let n=!!this._document?.fonts;return To(this,"isFontLoadingAPISupported",n)}get isSyncFontLoadingSupported(){let n=!1;return(Xc||typeof navigator<"u"&&typeof navigator?.userAgent=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(n=!0),To(this,"isSyncFontLoadingSupported",n)}_queueLoadingCallback(n){function e(){for(Dl(!r.done,"completeRequest() cannot be called twice."),r.done=!0;i.length>0&&i[0].done;){let o=i.shift();setTimeout(o.callback,0)}}let{loadingRequests:i}=this,r={done:!1,complete:e,callback:n};return i.push(r),r}get _loadTestFont(){let n=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return To(this,"_loadTestFont",n)}_prepareFontLoadEvent(n,e){function i(M,R){return M.charCodeAt(R)<<24|M.charCodeAt(R+1)<<16|M.charCodeAt(R+2)<<8|M.charCodeAt(R+3)&255}function r(M,R,j,K){let F=M.substring(0,R),V=M.substring(R+j);return F+K+V}let o,a,s=this._document.createElement("canvas");s.width=1,s.height=1;let l=s.getContext("2d"),u=0;function p(M,R){if(++u>30){to("Load test font never loaded."),R();return}if(l.font="30px "+M,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){R();return}setTimeout(p.bind(null,M,R))}let g=`lt${Date.now()}${this.loadTestFontId++}`,_=this._loadTestFont;_=r(_,976,g.length,g);let y=16,x=1482184792,I=i(_,y);for(o=0,a=g.length-3;o{A.remove(),e.complete()})}},aG=class{constructor(n,{disableFontFace:e=!1,inspectFont:i=null}){this.compiledGlyphs=Object.create(null);for(let r in n)this[r]=n[r];this.disableFontFace=e===!0,this._inspectFont=i}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let n;if(!this.cssFontInfo)n=new FontFace(this.loadedName,this.data,{});else{let e={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),n=new FontFace(this.cssFontInfo.fontFamily,this.data,e)}return this._inspectFont?.(this),n}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;let n=Nle(this.data),e=`url(data:${this.mimetype};base64,${btoa(n)});`,i;if(!this.cssFontInfo)i=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let r=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(r+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),i=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${r}src:${e}}`}return this._inspectFont?.(this,e),i}getPathGenerator(n,e){if(this.compiledGlyphs[e]!==void 0)return this.compiledGlyphs[e];let i;try{i=n.get(this.loadedName+"_path_"+e)}catch(o){to(`getPathGenerator - ignoring character: "${o}".`)}if(!Array.isArray(i)||i.length===0)return this.compiledGlyphs[e]=function(o,a){};let r=[];for(let o=0,a=i.length;ov.bezierCurveTo(s,l,u,p,g,_)),o+=6}break;case d0.MOVE_TO:{let[s,l]=i.slice(o,o+2);r.push(u=>u.moveTo(s,l)),o+=2}break;case d0.LINE_TO:{let[s,l]=i.slice(o,o+2);r.push(u=>u.lineTo(s,l)),o+=2}break;case d0.QUADRATIC_CURVE_TO:{let[s,l,u,p]=i.slice(o,o+4);r.push(g=>g.quadraticCurveTo(s,l,u,p)),o+=4}break;case d0.RESTORE:r.push(s=>s.restore());break;case d0.SAVE:r.push(s=>s.save());break;case d0.SCALE:Dl(r.length===2,"Scale command is only valid at the third position.");break;case d0.TRANSFORM:{let[s,l,u,p,g,_]=i.slice(o,o+6);r.push(v=>v.transform(s,l,u,p,g,_)),o+=6}break;case d0.TRANSLATE:{let[s,l]=i.slice(o,o+2);r.push(u=>u.translate(s,l)),o+=2}break}return this.compiledGlyphs[e]=function(a,s){r[0](a),r[1](a),a.scale(s,-s);for(let l=2,u=r.length;l{zN=n,HN.resolve()},n=>{to(`loadPackages: ${n}`),zN=new Map,HN.resolve()}));var HN,zN,$f=class{static get promise(){return HN.promise}static get(n){return zN?.get(n)}},Lle=function(t){return $f.get("fs").promises.readFile(t).then(e=>new Uint8Array(e))},sG=class extends GN{},lG=class extends $N{_createCanvas(n,e){return $f.get("canvas").createCanvas(n,e)}},cG=class extends qN{_fetchData(n,e){return Lle(n).then(i=>({cMapData:i,compressionType:e}))}},dG=class extends WN{_fetchData(n){return Lle(n)}},Vd={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function uG(t,n){if(!n)return;let e=n[2]-n[0],i=n[3]-n[1],r=new Path2D;r.rect(n[0],n[1],e,i),t.clip(r)}var t2=class{getPattern(){al("Abstract method `getPattern` called.")}},mG=class extends t2{constructor(n){super(),this._type=n[1],this._bbox=n[2],this._colorStops=n[3],this._p0=n[4],this._p1=n[5],this._r0=n[6],this._r1=n[7],this.matrix=null}_createGradient(n){let e;this._type==="axial"?e=n.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(e=n.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(let i of this._colorStops)e.addColorStop(i[0],i[1]);return e}getPattern(n,e,i,r){let o;if(r===Vd.STROKE||r===Vd.FILL){let a=e.current.getClippedPathBoundingBox(r,ts(n))||[0,0,0,0],s=Math.ceil(a[2]-a[0])||1,l=Math.ceil(a[3]-a[1])||1,u=e.cachedCanvases.getCanvas("pattern",s,l,!0),p=u.context;p.clearRect(0,0,p.canvas.width,p.canvas.height),p.beginPath(),p.rect(0,0,p.canvas.width,p.canvas.height),p.translate(-a[0],-a[1]),i=vn.transform(i,[1,0,0,1,a[0],a[1]]),p.transform(...e.baseTransform),this.matrix&&p.transform(...this.matrix),uG(p,this._bbox),p.fillStyle=this._createGradient(p),p.fill(),o=n.createPattern(u.canvas,"no-repeat");let g=new DOMMatrix(i);o.setTransform(g)}else uG(n,this._bbox),o=this._createGradient(n);return o}};function z9(t,n,e,i,r,o,a,s){let l=n.coords,u=n.colors,p=t.data,g=t.width*4,_;l[e+1]>l[i+1]&&(_=e,e=i,i=_,_=o,o=a,a=_),l[i+1]>l[r+1]&&(_=i,i=r,r=_,_=a,a=s,s=_),l[e+1]>l[i+1]&&(_=e,e=i,i=_,_=o,o=a,a=_);let v=(l[e]+n.offsetX)*n.scaleX,y=(l[e+1]+n.offsetY)*n.scaleY,x=(l[i]+n.offsetX)*n.scaleX,I=(l[i+1]+n.offsetY)*n.scaleY,C=(l[r]+n.offsetX)*n.scaleX,D=(l[r+1]+n.offsetY)*n.scaleY;if(y>=D)return;let A=u[o],M=u[o+1],R=u[o+2],j=u[a],K=u[a+1],F=u[a+2],V=u[s],Q=u[s+1],te=u[s+2],re=Math.round(y),O=Math.round(D),B,q,G,X,z,ee,pe,me;for(let ye=re;ye<=O;ye++){if(yeD?Re=1:I===D?Re=0:Re=(I-ye)/(I-D),B=x-(x-C)*Re,q=j-(j-V)*Re,G=K-(K-Q)*Re,X=F-(F-te)*Re}let se;yeD?se=1:se=(y-ye)/(y-D),z=v-(v-C)*se,ee=A-(A-V)*se,pe=M-(M-Q)*se,me=R-(R-te)*se;let de=Math.round(Math.min(B,z)),Te=Math.round(Math.max(B,z)),Ie=g*ye+de*4;for(let Re=de;Re<=Te;Re++)se=(B-Re)/(B-z),se<0?se=0:se>1&&(se=1),p[Ie++]=q-(q-ee)*se|0,p[Ie++]=G-(G-pe)*se|0,p[Ie++]=X-(X-me)*se|0,p[Ie++]=255}}function ROe(t,n,e){let i=n.coords,r=n.colors,o,a;switch(n.type){case"lattice":let s=n.verticesPerRow,l=Math.floor(i.length/s)-1,u=s-1;for(o=0;o{class t{static MAX_PATTERN_SIZE=3e3;constructor(e,i,r,o,a){this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.color=i,this.ctx=r,this.canvasGraphicsFactory=o,this.baseTransform=a}createPatternCanvas(e){let i=this.operatorList,r=this.bbox,o=this.xstep,a=this.ystep,s=this.paintType,l=this.tilingType,u=this.color,p=this.canvasGraphicsFactory;CO("TilingType: "+l);let g=r[0],_=r[1],v=r[2],y=r[3],x=vn.singularValueDecompose2dScale(this.matrix),I=vn.singularValueDecompose2dScale(this.baseTransform),C=[x[0]*I[0],x[1]*I[1]],D=this.getSizeAndScale(o,this.ctx.canvas.width,C[0]),A=this.getSizeAndScale(a,this.ctx.canvas.height,C[1]),M=e.cachedCanvases.getCanvas("pattern",D.size,A.size,!0),R=M.context,j=p.createCanvasGraphics(R);j.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(j,s,u);let K=g,F=_,V=v,Q=y;return g<0&&(K=0,V+=Math.abs(g)),_<0&&(F=0,Q+=Math.abs(_)),R.translate(-(D.scale*K),-(A.scale*F)),j.transform(D.scale,0,0,A.scale,0,0),R.save(),this.clipBbox(j,K,F,V,Q),j.baseTransform=ts(j.ctx),j.executeOperatorList(i),j.endDrawing(),{canvas:M.canvas,scaleX:D.scale,scaleY:A.scale,offsetX:K,offsetY:F}}getSizeAndScale(e,i,r){e=Math.abs(e);let o=Math.max(t.MAX_PATTERN_SIZE,i),a=Math.ceil(e*r);return a>=o?a=o:r=a/e,{scale:r,size:a}}clipBbox(e,i,r,o,a){let s=o-i,l=a-r;e.ctx.rect(i,r,s,l),e.current.updateRectMinMax(ts(e.ctx),[i,r,o,a]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,i,r){let o=e.ctx,a=e.current;switch(i){case Sle.COLORED:let s=this.ctx;o.fillStyle=s.fillStyle,o.strokeStyle=s.strokeStyle,a.fillColor=s.fillStyle,a.strokeColor=s.strokeStyle;break;case Sle.UNCOLORED:let l=vn.makeHexColor(r[0],r[1],r[2]);o.fillStyle=l,o.strokeStyle=l,a.fillColor=l,a.strokeColor=l;break;default:throw new W9(`Unsupported paint type: ${i}`)}}getPattern(e,i,r,o){let a=r;o!==Vd.SHADING&&(a=vn.transform(a,i.baseTransform),this.matrix&&(a=vn.transform(a,this.matrix)));let s=this.createPatternCanvas(i),l=new DOMMatrix(a);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);let u=e.createPattern(s.canvas,"repeat");return u.setTransform(l),u}}return t})();function OOe({src:t,srcPos:n=0,dest:e,width:i,height:r,nonBlackColor:o=4294967295,inverseDecode:a=!1}){let s=Qc.isLittleEndian?4278190080:255,[l,u]=a?[o,s]:[s,o],p=i>>3,g=i&7,_=t.length;e=new Uint32Array(e.buffer);let v=0;for(let y=0;y{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){n.save(),this.__originalSave()},t.restore=function(){n.restore(),this.__originalRestore()},t.translate=function(i,r){n.translate(i,r),this.__originalTranslate(i,r)},t.scale=function(i,r){n.scale(i,r),this.__originalScale(i,r)},t.transform=function(i,r,o,a,s,l){n.transform(i,r,o,a,s,l),this.__originalTransform(i,r,o,a,s,l)},t.setTransform=function(i,r,o,a,s,l){n.setTransform(i,r,o,a,s,l),this.__originalSetTransform(i,r,o,a,s,l)},t.resetTransform=function(){n.resetTransform(),this.__originalResetTransform()},t.rotate=function(i){n.rotate(i),this.__originalRotate(i)},t.clip=function(i){n.clip(i),this.__originalClip(i)},t.moveTo=function(e,i){n.moveTo(e,i),this.__originalMoveTo(e,i)},t.lineTo=function(e,i){n.lineTo(e,i),this.__originalLineTo(e,i)},t.bezierCurveTo=function(e,i,r,o,a,s){n.bezierCurveTo(e,i,r,o,a,s),this.__originalBezierCurveTo(e,i,r,o,a,s)},t.rect=function(e,i,r,o){n.rect(e,i,r,o),this.__originalRect(e,i,r,o)},t.closePath=function(){n.closePath(),this.__originalClosePath()},t.beginPath=function(){n.beginPath(),this.__originalBeginPath()}}var fG=class{constructor(n){this.canvasFactory=n,this.cache=Object.create(null)}getCanvas(n,e,i){let r;return this.cache[n]!==void 0?(r=this.cache[n],this.canvasFactory.reset(r,e,i)):(r=this.canvasFactory.create(e,i),this.cache[n]=r),r}delete(n){delete this.cache[n]}clear(){for(let n in this.cache){let e=this.cache[n];this.canvasFactory.destroy(e),delete this.cache[n]}}};function PN(t,n,e,i,r,o,a,s,l,u){let[p,g,_,v,y,x]=ts(t);if(g===0&&_===0){let D=a*p+y,A=Math.round(D),M=s*v+x,R=Math.round(M),j=(a+l)*p+y,K=Math.abs(Math.round(j)-A)||1,F=(s+u)*v+x,V=Math.abs(Math.round(F)-R)||1;return t.setTransform(Math.sign(p),0,0,Math.sign(v),A,R),t.drawImage(n,e,i,r,o,0,0,K,V),t.setTransform(p,g,_,v,y,x),[K,V]}if(p===0&&v===0){let D=s*_+y,A=Math.round(D),M=a*g+x,R=Math.round(M),j=(s+u)*_+y,K=Math.abs(Math.round(j)-A)||1,F=(a+l)*g+x,V=Math.abs(Math.round(F)-R)||1;return t.setTransform(0,Math.sign(g),Math.sign(_),0,A,R),t.drawImage(n,e,i,r,o,0,0,V,K),t.setTransform(p,g,_,v,y,x),[V,K]}t.drawImage(n,e,i,r,o,a,s,l,u);let I=Math.hypot(p,g),C=Math.hypot(_,v);return[I*l,C*u]}function BOe(t){let{width:n,height:e}=t;if(n>Dle||e>Dle)return null;let i=1e3,r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=n+1,a=new Uint8Array(o*(e+1)),s,l,u,p=n+7&-8,g=new Uint8Array(p*e),_=0;for(let C of t.data){let D=128;for(;D>0;)g[_++]=C&D?0:255,D>>=1}let v=0;for(_=0,g[_]!==0&&(a[0]=1,++v),l=1;l>2)+(g[_+1]?4:0)+(g[_-p+1]?8:0),r[C]&&(a[u+l]=r[C],++v),_++;if(g[_-p]!==g[_]&&(a[u+l]=g[_]?2:4,++v),v>i)return null}for(_=p*(e-1),u=s*o,g[_]!==0&&(a[u]=8,++v),l=1;li)return null;let y=new Int32Array([0,o,-1,0,-o,0,0,0,1]),x=new Path2D;for(s=0;v&&s<=e;s++){let C=s*o,D=C+n;for(;C>4,a[C]&=M>>2|M<<2),x.lineTo(C%o,C/o|0),a[C]||--v}while(A!==C);--s}return g=null,a=null,function(C){C.save(),C.scale(1/n,-1/e),C.translate(0,-e),C.fill(x),C.beginPath(),C.restore()}}var tO=class{constructor(n,e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=Ple,this.textMatrixScale=1,this.fontMatrix=$9,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=Kc.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,n,e])}clone(){let n=Object.create(this);return n.clipBox=this.clipBox.slice(),n}setCurrentPoint(n,e){this.x=n,this.y=e}updatePathMinMax(n,e,i){[e,i]=vn.applyTransform([e,i],n),this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,i),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,i)}updateRectMinMax(n,e){let i=vn.applyTransform(e,n),r=vn.applyTransform(e.slice(2),n),o=vn.applyTransform([e[0],e[3]],n),a=vn.applyTransform([e[2],e[1]],n);this.minX=Math.min(this.minX,i[0],r[0],o[0],a[0]),this.minY=Math.min(this.minY,i[1],r[1],o[1],a[1]),this.maxX=Math.max(this.maxX,i[0],r[0],o[0],a[0]),this.maxY=Math.max(this.maxY,i[1],r[1],o[1],a[1])}updateScalingPathMinMax(n,e){vn.scaleMinMax(n,e),this.minX=Math.min(this.minX,e[0]),this.minY=Math.min(this.minY,e[1]),this.maxX=Math.max(this.maxX,e[2]),this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(n,e,i,r,o,a,s,l,u,p){let g=vn.bezierBoundingBox(e,i,r,o,a,s,l,u,p);p||this.updateRectMinMax(n,g)}getPathBoundingBox(n=Vd.FILL,e=null){let i=[this.minX,this.minY,this.maxX,this.maxY];if(n===Vd.STROKE){e||al("Stroke bounding box must include transform.");let r=vn.singularValueDecompose2dScale(e),o=r[0]*this.lineWidth/2,a=r[1]*this.lineWidth/2;i[0]-=o,i[1]-=a,i[2]+=o,i[3]+=a}return i}updateClipFromPath(){let n=vn.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(n||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(n){this.clipBox=n,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(n=Vd.FILL,e=null){return vn.intersect(this.clipBox,this.getPathBoundingBox(n,e))}};function Tle(t,n){if(typeof ImageData<"u"&&n instanceof ImageData){t.putImageData(n,0,0);return}let e=n.height,i=n.width,r=e%Mu,o=(e-r)/Mu,a=r===0?o:o+1,s=t.createImageData(i,Mu),l=0,u,p=n.data,g=s.data,_,v,y,x;if(n.kind===jN.GRAYSCALE_1BPP){let I=p.byteLength,C=new Uint32Array(g.buffer,0,g.byteLength>>2),D=C.length,A=i+7>>3,M=4294967295,R=Qc.isLittleEndian?4278190080:255;for(_=0;_A?i:j*8-7,V=F&-8,Q=0,te=0;for(;K>=1}for(;u=o&&(y=r,x=i*y),u=0,v=x;v--;)g[u++]=p[l++],g[u++]=p[l++],g[u++]=p[l++],g[u++]=255;t.putImageData(s,0,_*Mu)}else throw new Error(`bad image kind: ${n.kind}`)}function Ale(t,n){if(n.bitmap){t.drawImage(n.bitmap,0,0);return}let e=n.height,i=n.width,r=e%Mu,o=(e-r)/Mu,a=r===0?o:o+1,s=t.createImageData(i,Mu),l=0,u=n.data,p=s.data;for(let g=0;gIle&&typeof i=="function",p=u?Date.now()+LOe:0,g=0,_=this.commonObjs,v=this.objs,y;for(;;){if(r!==void 0&&s===r.nextBreakPoint)return r.breakIt(s,i),s;if(y=a[s],y!==Ph.dependency)this[y].apply(this,o[s]);else for(let x of o[s]){let I=x.startsWith("g_")?_:v;if(!I.has(x))return I.get(x,i),s}if(s++,s===l)return s;if(u&&++g>Ile){if(Date.now()>p)return i(),s;g=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(let n of this._cachedBitmapsMap.values()){for(let e of n.values())typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);n.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){let n=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(n!=="none"){let e=this.ctx.filter;this.ctx.filter=n,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e}}}_scaleImage(n,e){let i=n.width,r=n.height,o=Math.max(Math.hypot(e[0],e[1]),1),a=Math.max(Math.hypot(e[2],e[3]),1),s=i,l=r,u="prescale1",p,g;for(;o>2&&s>1||a>2&&l>1;){let _=s,v=l;o>2&&s>1&&(_=s>=16384?Math.floor(s/2)-1||1:Math.ceil(s/2),o/=s/_),a>2&&l>1&&(v=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,a/=l/v),p=this.cachedCanvases.getCanvas(u,_,v),g=p.context,g.clearRect(0,0,_,v),g.drawImage(n,0,0,s,l,0,0,_,v),n=p.canvas,s=_,l=v,u=u==="prescale1"?"prescale2":"prescale1"}return{img:n,paintWidth:s,paintHeight:l}}_createMaskCanvas(n){let e=this.ctx,{width:i,height:r}=n,o=this.current.fillColor,a=this.current.patternFill,s=ts(e),l,u,p,g;if((n.bitmap||n.data)&&n.count>1){let F=n.bitmap||n.data.buffer;u=JSON.stringify(a?s:[s.slice(0,4),o]),l=this._cachedBitmapsMap.get(F),l||(l=new Map,this._cachedBitmapsMap.set(F,l));let V=l.get(u);if(V&&!a){let Q=Math.round(Math.min(s[0],s[2])+s[4]),te=Math.round(Math.min(s[1],s[3])+s[5]);return{canvas:V,offsetX:Q,offsetY:te}}p=V}p||(g=this.cachedCanvases.getCanvas("maskCanvas",i,r),Ale(g.context,n));let _=vn.transform(s,[1/i,0,0,-1/r,0,0]);_=vn.transform(_,[1,0,0,1,0,-r]);let[v,y,x,I]=vn.getAxialAlignedBoundingBox([0,0,i,r],_),C=Math.round(x-v)||1,D=Math.round(I-y)||1,A=this.cachedCanvases.getCanvas("fillCanvas",C,D),M=A.context,R=v,j=y;M.translate(-R,-j),M.transform(..._),p||(p=this._scaleImage(g.canvas,u0(M)),p=p.img,l&&a&&l.set(u,p)),M.imageSmoothingEnabled=kle(ts(M),n.interpolate),PN(M,p,0,0,p.width,p.height,0,0,i,r),M.globalCompositeOperation="source-in";let K=vn.transform(u0(M),[1,0,0,1,-R,-j]);return M.fillStyle=a?o.getPattern(e,this,K,Vd.FILL):o,M.fillRect(0,0,i,r),l&&!a&&(this.cachedCanvases.delete("fillCanvas"),l.set(u,A.canvas)),{canvas:A.canvas,offsetX:Math.round(R),offsetY:Math.round(j)}}setLineWidth(n){n!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=n,this.ctx.lineWidth=n}setLineCap(n){this.ctx.lineCap=jOe[n]}setLineJoin(n){this.ctx.lineJoin=HOe[n]}setMiterLimit(n){this.ctx.miterLimit=n}setDash(n,e){let i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(n),i.lineDashOffset=e)}setRenderingIntent(n){}setFlatness(n){}setGState(n){for(let[e,i]of n)switch(e){case"LW":this.setLineWidth(i);break;case"LC":this.setLineCap(i);break;case"LJ":this.setLineJoin(i);break;case"ML":this.setMiterLimit(i);break;case"D":this.setDash(i[0],i[1]);break;case"RI":this.setRenderingIntent(i);break;case"FL":this.setFlatness(i);break;case"Font":this.setFont(i[0],i[1]);break;case"CA":this.current.strokeAlpha=i;break;case"ca":this.current.fillAlpha=i,this.ctx.globalAlpha=i;break;case"BM":this.ctx.globalCompositeOperation=i;break;case"SMask":this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){let n=this.inSMaskMode;this.current.activeSMask&&!n?this.beginSMaskMode():!this.current.activeSMask&&n&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");let n=this.ctx.canvas.width,e=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,r=this.cachedCanvases.getCanvas(i,n,e);this.suspendedCtx=this.ctx,this.ctx=r.context;let o=this.ctx;o.setTransform(...ts(this.suspendedCtx)),GT(this.suspendedCtx,o),VOe(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),GT(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(n){if(!this.current.activeSMask)return;n?(n[0]=Math.floor(n[0]),n[1]=Math.floor(n[1]),n[2]=Math.ceil(n[2]),n[3]=Math.ceil(n[3])):n=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];let e=this.current.activeSMask,i=this.suspendedCtx;this.composeSMask(i,e,this.ctx,n),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(n,e,i,r){let o=r[0],a=r[1],s=r[2]-o,l=r[3]-a;s===0||l===0||(this.genericComposeSMask(e.context,i,s,l,e.subtype,e.backdrop,e.transferMap,o,a,e.offsetX,e.offsetY),n.save(),n.globalAlpha=1,n.globalCompositeOperation="source-over",n.setTransform(1,0,0,1,0,0),n.drawImage(i.canvas,0,0),n.restore())}genericComposeSMask(n,e,i,r,o,a,s,l,u,p,g){let _=n.canvas,v=l-p,y=u-g;if(a){if(v<0||y<0||v+i>_.width||y+r>_.height){let I=this.cachedCanvases.getCanvas("maskExtension",i,r),C=I.context;C.drawImage(_,-v,-y),a.some(D=>D!==0)&&(C.globalCompositeOperation="destination-atop",C.fillStyle=vn.makeHexColor(...a),C.fillRect(0,0,i,r),C.globalCompositeOperation="source-over"),_=I.canvas,v=y=0}else if(a.some(I=>I!==0)){n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0);let I=new Path2D;I.rect(v,y,i,r),n.clip(I),n.globalCompositeOperation="destination-atop",n.fillStyle=vn.makeHexColor(...a),n.fillRect(v,y,i,r),n.restore()}}e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0),o==="Alpha"&&s?e.filter=this.filterFactory.addAlphaFilter(s):o==="Luminosity"&&(e.filter=this.filterFactory.addLuminosityFilter(s));let x=new Path2D;x.rect(l,u,i,r),e.clip(x),e.globalCompositeOperation="destination-in",e.drawImage(_,v,y,i,r,l,u,i,r),e.restore()}save(){this.inSMaskMode?(GT(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();let n=this.current;this.stateStack.push(n),this.current=n.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),GT(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(n,e,i,r,o,a){this.ctx.transform(n,e,i,r,o,a),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(n,e,i){let r=this.ctx,o=this.current,a=o.x,s=o.y,l,u,p=ts(r),g=p[0]===0&&p[3]===0||p[1]===0&&p[2]===0,_=g?i.slice(0):null;for(let v=0,y=0,x=n.length;vEle&&(u=Ele),this.current.fontSizeScale=e/u,this.ctx.font=`${l} ${s} ${u}px ${a}`}setTextRenderingMode(n){this.current.textRenderingMode=n}setTextRise(n){this.current.textRise=n}moveText(n,e){this.current.x=this.current.lineX+=n,this.current.y=this.current.lineY+=e}setLeadingMoveText(n,e){this.setLeading(-e),this.moveText(n,e)}setTextMatrix(n,e,i,r,o,a){this.current.textMatrix=[n,e,i,r,o,a],this.current.textMatrixScale=Math.hypot(n,e),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(n,e,i,r){let o=this.ctx,a=this.current,s=a.font,l=a.textRenderingMode,u=a.fontSize/a.fontSizeScale,p=l&Kc.FILL_STROKE_MASK,g=!!(l&Kc.ADD_TO_PATH_FLAG),_=a.patternFill&&!s.missingFile,v;(s.disableFontFace||g||_)&&(v=s.getPathGenerator(this.commonObjs,n)),s.disableFontFace||_?(o.save(),o.translate(e,i),o.beginPath(),v(o,u),r&&o.setTransform(...r),(p===Kc.FILL||p===Kc.FILL_STROKE)&&o.fill(),(p===Kc.STROKE||p===Kc.FILL_STROKE)&&o.stroke(),o.restore()):((p===Kc.FILL||p===Kc.FILL_STROKE)&&o.fillText(n,e,i),(p===Kc.STROKE||p===Kc.FILL_STROKE)&&o.strokeText(n,e,i)),g&&(this.pendingTextPaths||=[]).push({transform:ts(o),x:e,y:i,fontSize:u,addToPath:v})}get isFontSubpixelAAEnabled(){let{context:n}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);n.scale(1.5,1),n.fillText("I",0,10);let e=n.getImageData(0,0,10,10).data,i=!1;for(let r=3;r0&&e[r]<255){i=!0;break}return To(this,"isFontSubpixelAAEnabled",i)}showText(n){let e=this.current,i=e.font;if(i.isType3Font)return this.showType3Text(n);let r=e.fontSize;if(r===0)return;let o=this.ctx,a=e.fontSizeScale,s=e.charSpacing,l=e.wordSpacing,u=e.fontDirection,p=e.textHScale*u,g=n.length,_=i.vertical,v=_?1:-1,y=i.defaultVMetrics,x=r*e.fontMatrix[0],I=e.textRenderingMode===Kc.FILL&&!i.disableFontFace&&!e.patternFill;o.save(),o.transform(...e.textMatrix),o.translate(e.x,e.y+e.textRise),u>0?o.scale(p,-1):o.scale(p,1);let C;if(e.patternFill){o.save();let j=e.fillColor.getPattern(o,this,u0(o),Vd.FILL);C=ts(o),o.restore(),o.fillStyle=j}let D=e.lineWidth,A=e.textMatrixScale;if(A===0||D===0){let j=e.textRenderingMode&Kc.FILL_STROKE_MASK;(j===Kc.STROKE||j===Kc.FILL_STROKE)&&(D=this.getSinglePixelWidth())}else D/=A;if(a!==1&&(o.scale(a,a),D/=a),o.lineWidth=D,i.isInvalidPDFjsFont){let j=[],K=0;for(let F of n)j.push(F.unicode),K+=F.width;o.fillText(j.join(""),0,0),e.x+=K*x*p,o.restore(),this.compose();return}let M=0,R;for(R=0;R0){let q=o.measureText(V).width*1e3/r*a;if(Onew t(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};e=new NOe(n,i,this.ctx,o,r)}else e=this._getPattern(n[1],n[2]);return e}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(n,e,i){this.ctx.strokeStyle=this.current.strokeColor=vn.makeHexColor(n,e,i)}setStrokeTransparent(){this.ctx.strokeStyle=this.current.strokeColor="transparent"}setFillRGBColor(n,e,i){this.ctx.fillStyle=this.current.fillColor=vn.makeHexColor(n,e,i),this.current.patternFill=!1}setFillTransparent(){this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(n,e=null){let i;return this.cachedPatterns.has(n)?i=this.cachedPatterns.get(n):(i=POe(this.getObject(n)),this.cachedPatterns.set(n,i)),e&&(i.matrix=e),i}shadingFill(n){if(!this.contentVisible)return;let e=this.ctx;this.save();let i=this._getPattern(n);e.fillStyle=i.getPattern(e,this,u0(e),Vd.SHADING);let r=u0(e);if(r){let{width:o,height:a}=e.canvas,[s,l,u,p]=vn.getAxialAlignedBoundingBox([0,0,o,a],r);this.ctx.fillRect(s,l,u-s,p-l)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){al("Should not call beginInlineImage")}beginImageData(){al("Should not call beginImageData")}paintFormXObjectBegin(n,e){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),n&&this.transform(...n),this.baseTransform=ts(this.ctx),e)){let i=e[2]-e[0],r=e[3]-e[1];this.ctx.rect(e[0],e[1],i,r),this.current.updateRectMinMax(ts(this.ctx),e),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(n){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);let e=this.ctx;n.isolated||CO("TODO: Support non-isolated groups."),n.knockout&&to("Knockout groups not supported.");let i=ts(e);if(n.matrix&&e.transform(...n.matrix),!n.bbox)throw new Error("Bounding box is required.");let r=vn.getAxialAlignedBoundingBox(n.bbox,ts(e)),o=[0,0,e.canvas.width,e.canvas.height];r=vn.intersect(r,o)||[0,0,0,0];let a=Math.floor(r[0]),s=Math.floor(r[1]),l=Math.max(Math.ceil(r[2])-a,1),u=Math.max(Math.ceil(r[3])-s,1);this.current.startNewPathAndClipBox([0,0,l,u]);let p="groupAt"+this.groupLevel;n.smask&&(p+="_smask_"+this.smaskCounter++%2);let g=this.cachedCanvases.getCanvas(p,l,u),_=g.context;_.translate(-a,-s),_.transform(...i),n.smask?this.smaskStack.push({canvas:g.canvas,context:_,offsetX:a,offsetY:s,subtype:n.smask.subtype,backdrop:n.smask.backdrop,transferMap:n.smask.transferMap||null,startTransformInverse:null}):(e.setTransform(1,0,0,1,0,0),e.translate(a,s),e.save()),GT(e,_),this.ctx=_,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(e),this.groupLevel++}endGroup(n){if(!this.contentVisible)return;this.groupLevel--;let e=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,n.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();let r=ts(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...r);let o=vn.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],r);this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(o)}}beginAnnotation(n,e,i,r,o){if(this.#e(),NN(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),e){let a=e[2]-e[0],s=e[3]-e[1];if(o&&this.annotationCanvasMap){i=i.slice(),i[4]-=e[0],i[5]-=e[1],e=e.slice(),e[0]=e[1]=0,e[2]=a,e[3]=s;let[l,u]=vn.singularValueDecompose2dScale(ts(this.ctx)),{viewportScale:p}=this,g=Math.ceil(a*this.outputScaleX*p),_=Math.ceil(s*this.outputScaleY*p);this.annotationCanvas=this.canvasFactory.create(g,_);let{canvas:v,context:y}=this.annotationCanvas;this.annotationCanvasMap.set(n,v),this.annotationCanvas.savedCtx=this.ctx,this.ctx=y,this.ctx.save(),this.ctx.setTransform(l,0,0,-u,0,s*u),NN(this.ctx)}else NN(this.ctx),this.ctx.rect(e[0],e[1],a,s),this.ctx.clip(),this.endPath()}this.current=new tO(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...i),this.transform(...r)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(n){if(!this.contentVisible)return;let e=n.count;n=this.getObject(n.data,n),n.count=e;let i=this.ctx,r=this.processingType3;if(r&&(r.compiled===void 0&&(r.compiled=BOe(n)),r.compiled)){r.compiled(i);return}let o=this._createMaskCanvas(n),a=o.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(a,o.offsetX,o.offsetY),i.restore(),this.compose()}paintImageMaskXObjectRepeat(n,e,i=0,r=0,o,a){if(!this.contentVisible)return;n=this.getObject(n.data,n);let s=this.ctx;s.save();let l=ts(s);s.transform(e,i,r,o,0,0);let u=this._createMaskCanvas(n);s.setTransform(1,0,0,1,u.offsetX-l[4],u.offsetY-l[5]);for(let p=0,g=a.length;pg?p/g:1,s=u>g?u/g:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=s}return this._cachedScaleForStroking}rescaleAndStroke(n){let{ctx:e}=this,{lineWidth:i}=this.current,[r,o]=this.getScaleForStroking();if(e.lineWidth=i||1,r===1&&o===1){e.stroke();return}let a=e.getLineDash();if(n&&e.save(),e.scale(r,o),a.length>0){let s=Math.max(r,o);e.setLineDash(a.map(l=>l/s)),e.lineDashOffset/=s}e.stroke(),n&&e.restore()}isContentVisible(){for(let n=this.markedContentStack.length-1;n>=0;n--)if(!this.markedContentStack[n].visible)return!1;return!0}};for(let t in Ph)kS.prototype[t]!==void 0&&(kS.prototype[Ph[t]]=kS.prototype[t]);var h1=class{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(n){if(!(typeof Worker<"u"&&n instanceof Worker)&&n!==null)throw new Error("Invalid `workerPort` type.");this.#e=n}static get workerSrc(){return this.#t}static set workerSrc(n){if(typeof n!="string")throw new Error("Invalid `workerSrc` type.");this.#t=n}},ON={UNKNOWN:0,DATA:1,ERROR:2},ol={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function Tm(t){switch(t instanceof Error||typeof t=="object"&&t!==null||al('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new f0(t.message);case"MissingPDFException":return new h0(t.message);case"PasswordException":return new YT(t.message,t.code);case"UnexpectedResponseException":return new FS(t.message,t.status);case"UnknownErrorException":return new KT(t.message,t.details);default:return new KT(t.message,t.toString())}}var p1=class{constructor(n,e,i){this.sourceName=n,this.targetName=e,this.comObj=i,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=r=>{let o=r.data;if(o.targetName!==this.sourceName)return;if(o.stream){this.#t(o);return}if(o.callback){let s=o.callbackId,l=this.callbackCapabilities[s];if(!l)throw new Error(`Cannot resolve callback ${s}`);if(delete this.callbackCapabilities[s],o.callback===ON.DATA)l.resolve(o.data);else if(o.callback===ON.ERROR)l.reject(Tm(o.reason));else throw new Error("Unexpected callback case");return}let a=this.actionHandler[o.action];if(!a)throw new Error(`Unknown action from worker: ${o.action}`);if(o.callbackId){let s=this.sourceName,l=o.sourceName;new Promise(function(u){u(a(o.data))}).then(function(u){i.postMessage({sourceName:s,targetName:l,callback:ON.DATA,callbackId:o.callbackId,data:u})},function(u){i.postMessage({sourceName:s,targetName:l,callback:ON.ERROR,callbackId:o.callbackId,reason:Tm(u)})});return}if(o.streamId){this.#e(o);return}a(o.data)},i.addEventListener("message",this._onComObjOnMessage)}on(n,e){let i=this.actionHandler;if(i[n])throw new Error(`There is already an actionName called "${n}"`);i[n]=e}send(n,e,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,data:e},i)}sendWithPromise(n,e,i){let r=this.callbackId++,o=Promise.withResolvers();this.callbackCapabilities[r]=o;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,callbackId:r,data:e},i)}catch(a){o.reject(a)}return o.promise}sendWithStream(n,e,i,r){let o=this.streamId++,a=this.sourceName,s=this.targetName,l=this.comObj;return new ReadableStream({start:u=>{let p=Promise.withResolvers();return this.streamControllers[o]={controller:u,startCall:p,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:a,targetName:s,action:n,streamId:o,data:e,desiredSize:u.desiredSize},r),p.promise},pull:u=>{let p=Promise.withResolvers();return this.streamControllers[o].pullCall=p,l.postMessage({sourceName:a,targetName:s,stream:ol.PULL,streamId:o,desiredSize:u.desiredSize}),p.promise},cancel:u=>{Dl(u instanceof Error,"cancel must have a valid reason");let p=Promise.withResolvers();return this.streamControllers[o].cancelCall=p,this.streamControllers[o].isClosed=!0,l.postMessage({sourceName:a,targetName:s,stream:ol.CANCEL,streamId:o,reason:Tm(u)}),p.promise}},i)}#e(n){let e=n.streamId,i=this.sourceName,r=n.sourceName,o=this.comObj,a=this,s=this.actionHandler[n.action],l={enqueue(u,p=1,g){if(this.isCancelled)return;let _=this.desiredSize;this.desiredSize-=p,_>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),o.postMessage({sourceName:i,targetName:r,stream:ol.ENQUEUE,streamId:e,chunk:u},g)},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:i,targetName:r,stream:ol.CLOSE,streamId:e}),delete a.streamSinks[e])},error(u){Dl(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,o.postMessage({sourceName:i,targetName:r,stream:ol.ERROR,streamId:e,reason:Tm(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:n.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[e]=l,new Promise(function(u){u(s(n.data,l))}).then(function(){o.postMessage({sourceName:i,targetName:r,stream:ol.START_COMPLETE,streamId:e,success:!0})},function(u){o.postMessage({sourceName:i,targetName:r,stream:ol.START_COMPLETE,streamId:e,reason:Tm(u)})})}#t(n){let e=n.streamId,i=this.sourceName,r=n.sourceName,o=this.comObj,a=this.streamControllers[e],s=this.streamSinks[e];switch(n.stream){case ol.START_COMPLETE:n.success?a.startCall.resolve():a.startCall.reject(Tm(n.reason));break;case ol.PULL_COMPLETE:n.success?a.pullCall.resolve():a.pullCall.reject(Tm(n.reason));break;case ol.PULL:if(!s){o.postMessage({sourceName:i,targetName:r,stream:ol.PULL_COMPLETE,streamId:e,success:!0});break}s.desiredSize<=0&&n.desiredSize>0&&s.sinkCapability.resolve(),s.desiredSize=n.desiredSize,new Promise(function(l){l(s.onPull?.())}).then(function(){o.postMessage({sourceName:i,targetName:r,stream:ol.PULL_COMPLETE,streamId:e,success:!0})},function(l){o.postMessage({sourceName:i,targetName:r,stream:ol.PULL_COMPLETE,streamId:e,reason:Tm(l)})});break;case ol.ENQUEUE:if(Dl(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(n.chunk);break;case ol.CLOSE:if(Dl(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#i(a,e);break;case ol.ERROR:Dl(a,"error should have stream controller"),a.controller.error(Tm(n.reason)),this.#i(a,e);break;case ol.CANCEL_COMPLETE:n.success?a.cancelCall.resolve():a.cancelCall.reject(Tm(n.reason)),this.#i(a,e);break;case ol.CANCEL:if(!s)break;new Promise(function(l){l(s.onCancel?.(Tm(n.reason)))}).then(function(){o.postMessage({sourceName:i,targetName:r,stream:ol.CANCEL_COMPLETE,streamId:e,success:!0})},function(l){o.postMessage({sourceName:i,targetName:r,stream:ol.CANCEL_COMPLETE,streamId:e,reason:Tm(l)})}),s.sinkCapability.reject(Tm(n.reason)),s.isCancelled=!0,delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}#i(n,e){return Mt(this,null,function*(){yield Promise.allSettled([n.startCall?.promise,n.pullCall?.promise,n.cancelCall?.promise]),delete this.streamControllers[e]})}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}},gG=class{#e;#t;constructor({parsedData:n,rawData:e}){this.#e=n,this.#t=e}getRaw(){return this.#t}get(n){return this.#e.get(n)??null}getAll(){return d$(this.#e)}has(n){return this.#e.has(n)}},gv=Symbol("INTERNAL"),_G=class{#e=!1;#t=!1;#i=!1;#n=!0;constructor(n,{name:e,intent:i,usage:r}){this.#e=!!(n&Am.DISPLAY),this.#t=!!(n&Am.PRINT),this.name=e,this.intent=i,this.usage=r}get visible(){if(this.#i)return this.#n;if(!this.#n)return!1;let{print:n,view:e}=this.usage;return this.#e?e?.viewState!=="OFF":this.#t?n?.printState!=="OFF":!0}_setVisible(n,e,i=!1){n!==gv&&al("Internal method `_setVisible` called."),this.#i=i,this.#n=e}},vG=class{#e=null;#t=new Map;#i=null;#n=null;constructor(n,e=Am.DISPLAY){if(this.renderingIntent=e,this.name=null,this.creator=null,n!==null){this.name=n.name,this.creator=n.creator,this.#n=n.order;for(let i of n.groups)this.#t.set(i.id,new _G(e,i));if(n.baseState==="OFF")for(let i of this.#t.values())i._setVisible(gv,!1);for(let i of n.on)this.#t.get(i)._setVisible(gv,!0);for(let i of n.off)this.#t.get(i)._setVisible(gv,!1);this.#i=this.getHash()}}#r(n){let e=n.length;if(e<2)return!0;let i=n[0];for(let r=1;r0?d$(this.#t):null}getGroup(n){return this.#t.get(n)||null}getHash(){if(this.#e!==null)return this.#e;let n=new JN;for(let[e,i]of this.#t)n.update(`${e}:${i.visible}`);return this.#e=n.hexdigest()}},bG=class{constructor(n,{disableRange:e=!1,disableStream:i=!1}){Dl(n,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');let{length:r,initialData:o,progressiveDone:a,contentDispositionFilename:s}=n;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=s,o?.length>0){let l=o instanceof Uint8Array&&o.byteLength===o.buffer.byteLength?o.buffer:new Uint8Array(o).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=n,this._isStreamingSupported=!i,this._isRangeSupported=!e,this._contentLength=r,this._fullRequestReader=null,this._rangeReaders=[],n.addRangeListener((l,u)=>{this._onReceiveData({begin:l,chunk:u})}),n.addProgressListener((l,u)=>{this._onProgress({loaded:l,total:u})}),n.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),n.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),n.transportReady()}_onReceiveData({begin:n,chunk:e}){let i=e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer;if(n===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{let r=this._rangeReaders.some(function(o){return o._begin!==n?!1:(o._enqueue(i),!0)});Dl(r,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(n){n.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:n.loaded}):this._fullRequestReader?.onProgress?.({loaded:n.loaded,total:n.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(n){let e=this._rangeReaders.indexOf(n);e>=0&&this._rangeReaders.splice(e,1)}getFullReader(){Dl(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");let n=this._queuedChunks;return this._queuedChunks=null,new yG(this,n,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(n,e){if(e<=this._progressiveDataLength)return null;let i=new xG(this,n,e);return this._pdfDataRangeTransport.requestDataRange(n,e),this._rangeReaders.push(i),i}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(let e of this._rangeReaders.slice(0))e.cancel(n);this._pdfDataRangeTransport.abort()}},yG=class{constructor(n,e,i=!1,r=null){this._stream=n,this._done=i||!1,this._filename=u$(r)?r:null,this._queuedChunks=e||[],this._loaded=0;for(let o of this._queuedChunks)this._loaded+=o.byteLength;this._requests=[],this._headersReady=Promise.resolve(),n._fullRequestReader=this,this.onProgress=null}_enqueue(n){this._done||(this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunks.push(n),this._loaded+=n.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}read(){return Mt(this,null,function*(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let n=Promise.withResolvers();return this._requests.push(n),n.promise})}cancel(n){this._done=!0;for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}},xG=class{constructor(n,e,i){this._stream=n,this._begin=e,this._end=i,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(n){if(!this._done){if(this._requests.length===0)this._queuedChunk=n;else{this._requests.shift().resolve({value:n,done:!1});for(let i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}read(){return Mt(this,null,function*(){if(this._queuedChunk){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let n=Promise.withResolvers();return this._requests.push(n),n.promise})}cancel(n){this._done=!0;for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}};function UOe(t){let n=!0,e=i("filename\\*","i").exec(t);if(e){e=e[1];let p=s(e);return p=unescape(p),p=l(p),p=u(p),o(p)}if(e=a(t),e){let p=u(e);return o(p)}if(e=i("filename","i").exec(t),e){e=e[1];let p=s(e);return p=u(p),o(p)}function i(p,g){return new RegExp("(?:^|;)\\s*"+p+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',g)}function r(p,g){if(p){if(!/^[\x00-\xFF]+$/.test(g))return g;try{let _=new TextDecoder(p,{fatal:!0}),v=SO(g);g=_.decode(v),n=!1}catch{}}return g}function o(p){return n&&/[\x80-\xff]/.test(p)&&(p=r("utf-8",p),n&&(p=r("iso-8859-1",p))),p}function a(p){let g=[],_,v=i("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(_=v.exec(p))!==null;){let[,x,I,C]=_;if(x=parseInt(x,10),x in g){if(x===0)break;continue}g[x]=[I,C]}let y=[];for(let x=0;x{if(!Vle(r.status))throw IO(r.status,i);this._reader=r.body.getReader(),this._headersCapability.resolve();let o=l=>r.headers.get(l),{allowRangeRequests:a,suggestedLength:s}=p$({getResponseHeader:o,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=s||this._contentLength,this._filename=h$(o),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new f0("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){return Mt(this,null,function*(){yield this._headersCapability.promise;let{value:n,done:e}=yield this._reader.read();return e?{value:n,done:e}:(this._loaded+=n.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:Hle(n),done:!1})})}cancel(n){this._reader?.cancel(n),this._abortController.abort()}},SG=class{constructor(n,e,i){this._stream=n,this._reader=null,this._loaded=0;let r=n.source;this._withCredentials=r.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!r.disableStream,this._abortController=new AbortController,this._headers=jle(this._stream.httpHeaders),this._headers.append("Range",`bytes=${e}-${i-1}`);let o=r.url;fetch(o,Ble(this._headers,this._withCredentials,this._abortController)).then(a=>{if(!Vle(a.status))throw IO(a.status,o);this._readCapability.resolve(),this._reader=a.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}read(){return Mt(this,null,function*(){yield this._readCapability.promise;let{value:n,done:e}=yield this._reader.read();return e?{value:n,done:e}:(this._loaded+=n.byteLength,this.onProgress?.({loaded:this._loaded}),{value:Hle(n),done:!1})})}cancel(n){this._reader?.cancel(n),this._abortController.abort()}},U9=200,G9=206;function GOe(t){let n=t.response;return typeof n!="string"?n:SO(n).buffer}var wG=class{constructor(n,e={}){this.url=n,this.isHttp=/^https?:/i.test(n),this.httpHeaders=this.isHttp&&e.httpHeaders||Object.create(null),this.withCredentials=e.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(n,e,i){let r={begin:n,end:e};for(let o in i)r[o]=i[o];return this.request(r)}requestFull(n){return this.request(n)}request(n){let e=new XMLHttpRequest,i=this.currXhrId++,r=this.pendingRequests[i]={xhr:e};e.open("GET",this.url),e.withCredentials=this.withCredentials;for(let o in this.httpHeaders){let a=this.httpHeaders[o];a!==void 0&&e.setRequestHeader(o,a)}return this.isHttp&&"begin"in n&&"end"in n?(e.setRequestHeader("Range",`bytes=${n.begin}-${n.end-1}`),r.expectedStatus=G9):r.expectedStatus=U9,e.responseType="arraybuffer",n.onError&&(e.onerror=function(o){n.onError(e.status)}),e.onreadystatechange=this.onStateChange.bind(this,i),e.onprogress=this.onProgress.bind(this,i),r.onHeadersReceived=n.onHeadersReceived,r.onDone=n.onDone,r.onError=n.onError,r.onProgress=n.onProgress,e.send(null),i}onProgress(n,e){let i=this.pendingRequests[n];i&&i.onProgress?.(e)}onStateChange(n,e){let i=this.pendingRequests[n];if(!i)return;let r=i.xhr;if(r.readyState>=2&&i.onHeadersReceived&&(i.onHeadersReceived(),delete i.onHeadersReceived),r.readyState!==4||!(n in this.pendingRequests))return;if(delete this.pendingRequests[n],r.status===0&&this.isHttp){i.onError?.(r.status);return}let o=r.status||U9;if(!(o===U9&&i.expectedStatus===G9)&&o!==i.expectedStatus){i.onError?.(r.status);return}let s=GOe(r);if(o===G9){let l=r.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);i.onDone({begin:parseInt(u[1],10),chunk:s})}else s?i.onDone({begin:0,chunk:s}):i.onError?.(r.status)}getRequestXhr(n){return this.pendingRequests[n].xhr}isPendingRequest(n){return n in this.pendingRequests}abortRequest(n){let e=this.pendingRequests[n].xhr;delete this.pendingRequests[n],e.abort()}},EG=class{constructor(n){this._source=n,this._manager=new wG(n.url,{httpHeaders:n.httpHeaders,withCredentials:n.withCredentials}),this._rangeChunkSize=n.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(n){let e=this._rangeRequestReaders.indexOf(n);e>=0&&this._rangeRequestReaders.splice(e,1)}getFullReader(){return Dl(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new IG(this._manager,this._source),this._fullRequestReader}getRangeReader(n,e){let i=new DG(this._manager,n,e);return i.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(i),i}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(let e of this._rangeRequestReaders.slice(0))e.cancel(n)}},IG=class{constructor(n,e){this._manager=n;let i={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._fullRequestId=n.requestFull(i),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=e.disableRange||!1,this._contentLength=e.length,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){let n=this._fullRequestId,e=this._manager.getRequestXhr(n),i=a=>e.getResponseHeader(a),{allowRangeRequests:r,suggestedLength:o}=p$({getResponseHeader:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=o||this._contentLength,this._filename=h$(i),this._isRangeSupported&&this._manager.abortRequest(n),this._headersReceivedCapability.resolve()}_onDone(n){if(n&&(this._requests.length>0?this._requests.shift().resolve({value:n.chunk,done:!1}):this._cachedChunks.push(n.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(n){this._storedError=IO(n,this._url),this._headersReceivedCapability.reject(this._storedError);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(n){this.onProgress?.({loaded:n.loaded,total:n.lengthComputable?n.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}read(){return Mt(this,null,function*(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};let n=Promise.withResolvers();return this._requests.push(n),n.promise})}cancel(n){this._done=!0,this._headersReceivedCapability.reject(n);for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}},DG=class{constructor(n,e,i){this._manager=n;let r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=n.url,this._requestId=n.requestRange(e,i,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(n){let e=n.chunk;this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunk=e,this._done=!0;for(let i of this._requests)i.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(n){this._storedError=IO(n,this._url);for(let e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(n){this.isStreamingSupported||this.onProgress?.({loaded:n.loaded})}get isStreamingSupported(){return!1}read(){return Mt(this,null,function*(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){let e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};let n=Promise.withResolvers();return this._requests.push(n),n.promise})}cancel(n){this._done=!0;for(let e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}},$Oe=/^[a-z][a-z0-9\-+.]+:/i;function qOe(t){if($Oe.test(t))return new URL(t);let n=$f.get("url");return new URL(n.pathToFileURL(t))}function zle(t,n,e){return t.protocol==="http:"?$f.get("http").request(t,{headers:n},e):$f.get("https").request(t,{headers:n},e)}var TG=class{constructor(n){this.source=n,this.url=qOe(n.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&n.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Dl(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new MG(this):new AG(this),this._fullRequestReader}getRangeReader(n,e){if(e<=this._progressiveDataLength)return null;let i=this.isFsUrl?new FG(this,n,e):new kG(this,n,e);return this._rangeRequestReaders.push(i),i}cancelAllRequests(n){this._fullRequestReader?.cancel(n);for(let e of this._rangeRequestReaders.slice(0))e.cancel(n)}},nO=class{constructor(n){this._url=n.url,this._done=!1,this._storedError=null,this.onProgress=null;let e=n.source;this._contentLength=e.length,this._loaded=0,this._filename=null,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}read(){return Mt(this,null,function*(){if(yield this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let n=this._readableStream.read();return n===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=n.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(n).buffer,done:!1})})}cancel(n){if(!this._readableStream){this._error(n);return}this._readableStream.destroy(n)}_error(n){this._storedError=n,this._readCapability.resolve()}_setReadableStream(n){this._readableStream=n,n.on("readable",()=>{this._readCapability.resolve()}),n.on("end",()=>{n.destroy(),this._done=!0,this._readCapability.resolve()}),n.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new f0("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}},rO=class{constructor(n){this._url=n.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();let e=n.source;this._isStreamingSupported=!e.disableStream}get isStreamingSupported(){return this._isStreamingSupported}read(){return Mt(this,null,function*(){if(yield this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;let n=this._readableStream.read();return n===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=n.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(n).buffer,done:!1})})}cancel(n){if(!this._readableStream){this._error(n);return}this._readableStream.destroy(n)}_error(n){this._storedError=n,this._readCapability.resolve()}_setReadableStream(n){this._readableStream=n,n.on("readable",()=>{this._readCapability.resolve()}),n.on("end",()=>{n.destroy(),this._done=!0,this._readCapability.resolve()}),n.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}},AG=class extends nO{constructor(n){super(n);let e=i=>{if(i.statusCode===404){let s=new h0(`Missing PDF "${this._url}".`);this._storedError=s,this._headersCapability.reject(s);return}this._headersCapability.resolve(),this._setReadableStream(i);let r=s=>this._readableStream.headers[s.toLowerCase()],{allowRangeRequests:o,suggestedLength:a}=p$({getResponseHeader:r,isHttp:n.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=a||this._contentLength,this._filename=h$(r)};this._request=zle(this._url,n.httpHeaders,e),this._request.on("error",i=>{this._storedError=i,this._headersCapability.reject(i)}),this._request.end()}},kG=class extends rO{constructor(n,e,i){super(n),this._httpHeaders={};for(let o in n.httpHeaders){let a=n.httpHeaders[o];a!==void 0&&(this._httpHeaders[o]=a)}this._httpHeaders.Range=`bytes=${e}-${i-1}`;let r=o=>{if(o.statusCode===404){let a=new h0(`Missing PDF "${this._url}".`);this._storedError=a;return}this._setReadableStream(o)};this._request=zle(this._url,this._httpHeaders,r),this._request.on("error",o=>{this._storedError=o}),this._request.end()}},MG=class extends nO{constructor(n){super(n);let e=$f.get("fs");e.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(e.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=new h0(`Missing PDF "${this._url}".`)),this._storedError=i,this._headersCapability.reject(i)})}},FG=class extends rO{constructor(n,e,i){super(n);let r=$f.get("fs");this._setReadableStream(r.createReadStream(this._url,{start:e,end:i-1}))}},WOe=1e5,ku=30,YOe=.8,i2=class t{#e=Promise.withResolvers();#t=null;#i=!1;#n=!!globalThis.FontInspector?.enabled;#r=null;#o=null;#s=0;#l=0;#u=null;#c=null;#d=0;#a=0;#m=Object.create(null);#h=[];#p=null;#f=[];#_=new WeakMap;#g=null;static#v=new Map;static#y=new Map;static#C=null;static#x=new Set;constructor({textContentSource:n,container:e,viewport:i}){if(n instanceof ReadableStream)this.#p=n;else if(typeof n=="object")this.#p=new ReadableStream({start(l){l.enqueue(n),l.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#c=e,this.#a=i.scale*(globalThis.devicePixelRatio||1),this.#d=i.rotation,this.#o={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null};let{pageWidth:r,pageHeight:o,pageX:a,pageY:s}=i.rawDims;this.#g=[1,0,0,-1,-a,s+o],this.#l=r,this.#s=o,t.#T(),f1(e,i),this.#e.promise.catch(()=>{}).then(()=>{t.#x.delete(this),this.#o=null,this.#m=null})}render(){let n=()=>{this.#u.read().then(({value:e,done:i})=>{if(i){this.#e.resolve();return}this.#r??=e.lang,Object.assign(this.#m,e.styles),this.#w(e.items),n()},this.#e.reject)};return this.#u=this.#p.getReader(),t.#x.add(this),n(),this.#e.promise}update({viewport:n,onBefore:e=null}){let i=n.scale*(globalThis.devicePixelRatio||1),r=n.rotation;if(r!==this.#d&&(e?.(),this.#d=r,f1(this.#c,{rotation:r})),i!==this.#a){e?.(),this.#a=i;let o={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:t.#S(this.#r)};for(let a of this.#f)o.properties=this.#_.get(a),o.div=a,this.#D(o)}}cancel(){let n=new f0("TextLayer task cancelled.");this.#u?.cancel(n).catch(()=>{}),this.#u=null,this.#e.reject(n)}get textDivs(){return this.#f}get textContentItemsStr(){return this.#h}#w(n){if(this.#i)return;this.#o.ctx??=t.#S(this.#r);let e=this.#f,i=this.#h;for(let r of n){if(e.length>WOe){to("Ignoring additional textDivs for performance reasons."),this.#i=!0;return}if(r.str===void 0){if(r.type==="beginMarkedContentProps"||r.type==="beginMarkedContent"){let o=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),r.id!==null&&this.#t.setAttribute("id",`${r.id}`),o.append(this.#t)}else r.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}i.push(r.str),this.#k(r)}}#k(n){let e=document.createElement("span"),i={angle:0,canvasWidth:0,hasText:n.str!=="",hasEOL:n.hasEOL,fontSize:0};this.#f.push(e);let r=vn.transform(this.#g,n.transform),o=Math.atan2(r[1],r[0]),a=this.#m[n.fontName];a.vertical&&(o+=Math.PI/2);let s=this.#n&&a.fontSubstitution||a.fontFamily,l=Math.hypot(r[2],r[3]),u=l*t.#I(s,this.#r),p,g;o===0?(p=r[4],g=r[5]-u):(p=r[4]+u*Math.sin(o),g=r[5]-u*Math.cos(o));let _="calc(var(--scale-factor)*",v=e.style;this.#t===this.#c?(v.left=`${(100*p/this.#l).toFixed(2)}%`,v.top=`${(100*g/this.#s).toFixed(2)}%`):(v.left=`${_}${p.toFixed(2)}px)`,v.top=`${_}${g.toFixed(2)}px)`),v.fontSize=`${_}${(t.#C*l).toFixed(2)}px)`,v.fontFamily=s,i.fontSize=l,e.setAttribute("role","presentation"),e.textContent=n.str,e.dir=n.dir,this.#n&&(e.dataset.fontName=a.fontSubstitutionLoadedName||n.fontName),o!==0&&(i.angle=o*(180/Math.PI));let y=!1;if(n.str.length>1)y=!0;else if(n.str!==" "&&n.transform[0]!==n.transform[3]){let x=Math.abs(n.transform[0]),I=Math.abs(n.transform[3]);x!==I&&Math.max(x,I)/Math.min(x,I)>1.5&&(y=!0)}if(y&&(i.canvasWidth=a.vertical?n.height:n.width),this.#_.set(e,i),this.#o.div=e,this.#o.properties=i,this.#D(this.#o),i.hasText&&this.#t.append(e),i.hasEOL){let x=document.createElement("br");x.setAttribute("role","presentation"),this.#t.append(x)}}#D(n){let{div:e,properties:i,ctx:r,prevFontSize:o,prevFontFamily:a}=n,{style:s}=e,l="";if(t.#C>1&&(l=`scale(${1/t.#C})`),i.canvasWidth!==0&&i.hasText){let{fontFamily:u}=s,{canvasWidth:p,fontSize:g}=i;(o!==g||a!==u)&&(r.font=`${g*this.#a}px ${u}`,n.prevFontSize=g,n.prevFontFamily=u);let{width:_}=r.measureText(e.textContent);_>0&&(l=`scaleX(${p*this.#a/_}) ${l}`)}i.angle!==0&&(l=`rotate(${i.angle}deg) ${l}`),l.length>0&&(s.transform=l)}static cleanup(){if(!(this.#x.size>0)){this.#v.clear();for(let{canvas:n}of this.#y.values())n.remove();this.#y.clear()}}static#S(n=null){let e=this.#y.get(n||="");if(!e){let i=document.createElement("canvas");i.className="hiddenCanvasElement",i.lang=n,document.body.append(i),e=i.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#y.set(n,e)}return e}static#T(){if(this.#C!==null)return;let n=document.createElement("div");n.style.opacity=0,n.style.lineHeight=1,n.style.fontSize="1px",n.style.position="absolute",n.textContent="X",document.body.append(n),this.#C=n.getBoundingClientRect().height,n.remove()}static#I(n,e){let i=this.#v.get(n);if(i)return i;let r=this.#S(e),o=r.font;r.canvas.width=r.canvas.height=ku,r.font=`${ku}px ${n}`;let a=r.measureText(""),s=a.fontBoundingBoxAscent,l=Math.abs(a.fontBoundingBoxDescent);if(s){let g=s/(s+l);return this.#v.set(n,g),r.canvas.width=r.canvas.height=0,r.font=o,g}r.strokeStyle="red",r.clearRect(0,0,ku,ku),r.strokeText("g",0,0);let u=r.getImageData(0,0,ku,ku).data;l=0;for(let g=u.length-1-3;g>=0;g-=4)if(u[g]>0){l=Math.ceil(g/4/ku);break}r.clearRect(0,0,ku,ku),r.strokeText("A",0,ku),u=r.getImageData(0,0,ku,ku).data,s=0;for(let g=0,_=u.length;g<_;g+=4)if(u[g]>0){s=ku-Math.floor(g/4/ku);break}r.canvas.width=r.canvas.height=0,r.font=o;let p=s?s/(s+l):YOe;return this.#v.set(n,p),p}},n2=class t{static textContent(n){let e=[],i={items:e,styles:Object.create(null)};function r(o){if(!o)return;let a=null,s=o.name;if(s==="#text")a=o.value;else if(t.shouldBuildText(s))o?.attributes?.textContent?a=o.attributes.textContent:o.value&&(a=o.value);else return;if(a!==null&&e.push({str:a}),!!o.children)for(let l of o.children)r(l)}return r(n),i}static shouldBuildText(n){return!(n==="textarea"||n==="input"||n==="option"||n==="select")}},KOe=65536,XOe=100,QOe=5e3,ZOe=Xc?lG:X9,JOe=Xc?cG:YN,eLe=Xc?sG:K9,tLe=Xc?dG:KN;function iLe(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});let n=new RG,{docId:e}=n,i=t.url?nLe(t.url):null,r=t.data?rLe(t.data):null,o=t.httpHeaders||null,a=t.withCredentials===!0,s=t.password??null,l=t.range instanceof oO?t.range:null,u=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:KOe,p=t.worker instanceof MS?t.worker:null,g=t.verbosity,_=typeof t.docBaseUrl=="string"&&!EO(t.docBaseUrl)?t.docBaseUrl:null,v=typeof t.cMapUrl=="string"?t.cMapUrl:null,y=t.cMapPacked!==!1,x=t.CMapReaderFactory||JOe,I=typeof t.standardFontDataUrl=="string"?t.standardFontDataUrl:null,C=t.StandardFontDataFactory||tLe,D=t.stopAtErrors!==!0,A=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,M=t.isEvalSupported!==!1,R=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!Xc,j=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,K=typeof t.disableFontFace=="boolean"?t.disableFontFace:Xc,F=t.fontExtraProperties===!0,V=t.enableXfa===!0,Q=t.ownerDocument||globalThis.document,te=t.disableRange===!0,re=t.disableStream===!0,O=t.disableAutoFetch===!0,B=t.pdfBug===!0,q=t.enableHWA===!0,G=l?l.length:t.length??NaN,X=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!Xc&&!K,z=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:x===YN&&C===KN&&v&&I&&qT(v,document.baseURI)&&qT(I,document.baseURI),ee=t.canvasFactory||new ZOe({ownerDocument:Q,enableHWA:q}),pe=t.filterFactory||new eLe({docId:e,ownerDocument:Q}),me=null;vOe(g);let ye={canvasFactory:ee,filterFactory:pe};if(z||(ye.cMapReaderFactory=new x({baseUrl:v,isCompressed:y}),ye.standardFontDataFactory=new C({baseUrl:I})),!p){let Te={verbosity:g,port:h1.workerPort};p=Te.port?MS.fromPort(Te):new MS(Te),n._worker=p}let se={docId:e,apiVersion:"4.6.82",data:r,password:s,disableAutoFetch:O,rangeChunkSize:u,length:G,docBaseUrl:_,enableXfa:V,evaluatorOptions:{maxImageSize:A,disableFontFace:K,ignoreErrors:D,isEvalSupported:M,isOffscreenCanvasSupported:R,canvasMaxAreaInBytes:j,fontExtraProperties:F,useSystemFonts:X,cMapUrl:z?v:null,standardFontDataUrl:z?I:null}},de={disableFontFace:K,fontExtraProperties:F,ownerDocument:Q,pdfBug:B,styleElement:me,loadingParams:{disableAutoFetch:O,enableXfa:V}};return p.promise.then(function(){if(n.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");let Te=p.messageHandler.sendWithPromise("GetDocRequest",se,r?[r.buffer]:null),Ie;if(l)Ie=new bG(l,{disableRange:te,disableStream:re});else if(!r){if(!i)throw new Error("getDocument - no `url` parameter provided.");Ie=(et=>Xc?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&qT(et.url)?new iO(et):new TG(et):qT(et.url)?new iO(et):new EG(et))({url:i,length:G,httpHeaders:o,withCredentials:a,rangeChunkSize:u,disableRange:te,disableStream:re})}return Te.then(Re=>{if(n.destroyed)throw new Error("Loading aborted");if(p.destroyed)throw new Error("Worker was destroyed");let et=new p1(e,Re,p.port),It=new LG(et,n,Ie,de,ye);n._transport=It,et.send("Ready",null)})}).catch(n._capability.reject),n}function nLe(t){if(t instanceof URL)return t.href;try{return new URL(t,window.location).href}catch{if(Xc&&typeof t=="string")return t}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function rLe(t){if(Xc&&typeof Buffer<"u"&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return SO(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function Fle(t){return typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0}var RG=class t{static#e=0;constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${t.#e++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}destroy(){return Mt(this,null,function*(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),yield this._transport?.destroy()}catch(n){throw this._worker?.port&&delete this._worker._pendingDestroy,n}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)})}},oO=class{constructor(n,e,i=!1,r=null){this.length=n,this.initialData=e,this.progressiveDone=i,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(n){this._rangeListeners.push(n)}addProgressListener(n){this._progressListeners.push(n)}addProgressiveReadListener(n){this._progressiveReadListeners.push(n)}addProgressiveDoneListener(n){this._progressiveDoneListeners.push(n)}onDataRange(n,e){for(let i of this._rangeListeners)i(n,e)}onDataProgress(n,e){this._readyCapability.promise.then(()=>{for(let i of this._progressListeners)i(n,e)})}onDataProgressiveRead(n){this._readyCapability.promise.then(()=>{for(let e of this._progressiveReadListeners)e(n)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(let n of this._progressiveDoneListeners)n()})}transportReady(){this._readyCapability.resolve()}requestDataRange(n,e){al("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}},PG=class{constructor(n,e){this._pdfInfo=n,this._transport=e}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return To(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(n){return this._transport.getPage(n)}getPageIndex(n){return this._transport.getPageIndex(n)}getDestinations(){return this._transport.getDestinations()}getDestination(n){return this._transport.getDestination(n)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:n="display"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(n);return this._transport.getOptionalContentConfig(e)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(n=!1){return this._transport.startCleanup(n||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(n){return this._transport.cachedPageNumber(n)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}},NG=class{#e=null;#t=!1;constructor(n,e,i,r=!1){this._pageIndex=n,this._pageInfo=e,this._transport=i,this._stats=r?new XN:null,this._pdfBug=r,this.commonObjs=i.commonObjs,this.objs=new aO,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:n,rotation:e=this.rotate,offsetX:i=0,offsetY:r=0,dontFlip:o=!1}={}){return new QT({viewBox:this.view,scale:n,rotation:e,offsetX:i,offsetY:r,dontFlip:o})}getAnnotations({intent:n="display"}={}){let{renderingIntent:e}=this._transport.getRenderingIntent(n);return this._transport.getAnnotations(this._pageIndex,e)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return To(this,"isPureXfa",!!this._transport._htmlForXfa)}getXfa(){return Mt(this,null,function*(){return this._transport._htmlForXfa?.children[this._pageIndex]||null})}render({canvasContext:n,viewport:e,intent:i="display",annotationMode:r=_v.ENABLE,transform:o=null,background:a=null,optionalContentConfigPromise:s=null,annotationCanvasMap:l=null,pageColors:u=null,printAnnotationStorage:p=null,isEditing:g=!1}){this._stats?.time("Overall");let _=this._transport.getRenderingIntent(i,r,p,g),{renderingIntent:v,cacheKey:y}=_;this.#t=!1,this.#n(),s||=this._transport.getOptionalContentConfig(v);let x=this._intentStates.get(y);x||(x=Object.create(null),this._intentStates.set(y,x)),x.streamReaderCancelTimeout&&(clearTimeout(x.streamReaderCancelTimeout),x.streamReaderCancelTimeout=null);let I=!!(v&Am.PRINT);x.displayReadyCapability||(x.displayReadyCapability=Promise.withResolvers(),x.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(_));let C=M=>{x.renderTasks.delete(D),(this._maybeCleanupAfterRender||I)&&(this.#t=!0),this.#i(!I),M?(D.capability.reject(M),this._abortOperatorList({intentState:x,reason:M instanceof Error?M:new Error(M)})):D.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},D=new BG({callback:C,params:{canvasContext:n,viewport:e,transform:o,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:x.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!I,pdfBug:this._pdfBug,pageColors:u});(x.renderTasks||=new Set).add(D);let A=D.task;return Promise.all([x.displayReadyCapability.promise,s]).then(([M,R])=>{if(this.destroyed){C();return}if(this._stats?.time("Rendering"),!(R.renderingIntent&v))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");D.initializeGraphics({transparency:M,optionalContentConfig:R}),D.operatorListChanged()}).catch(C),A}getOperatorList({intent:n="display",annotationMode:e=_v.ENABLE,printAnnotationStorage:i=null,isEditing:r=!1}={}){function o(){s.operatorList.lastChunk&&(s.opListReadCapability.resolve(s.operatorList),s.renderTasks.delete(l))}let a=this._transport.getRenderingIntent(n,e,i,r,!0),s=this._intentStates.get(a.cacheKey);s||(s=Object.create(null),this._intentStates.set(a.cacheKey,s));let l;return s.opListReadCapability||(l=Object.create(null),l.operatorListChanged=o,s.opListReadCapability=Promise.withResolvers(),(s.renderTasks||=new Set).add(l),s.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(a)),s.opListReadCapability.promise}streamTextContent({includeMarkedContent:n=!1,disableNormalization:e=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:n===!0,disableNormalization:e===!0},{highWaterMark:100,size(r){return r.items.length}})}getTextContent(n={}){if(this._transport._htmlForXfa)return this.getXfa().then(i=>n2.textContent(i));let e=this.streamTextContent(n);return new Promise(function(i,r){function o(){a.read().then(function({value:l,done:u}){if(u){i(s);return}s.lang??=l.lang,Object.assign(s.styles,l.styles),s.items.push(...l.items),o()},r)}let a=e.getReader(),s={items:[],styles:Object.create(null),lang:null};o()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;let n=[];for(let e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(let i of e.renderTasks)n.push(i.completed),i.cancel();return this.objs.clear(),this.#t=!1,this.#n(),Promise.all(n)}cleanup(n=!1){this.#t=!0;let e=this.#i(!1);return n&&e&&(this._stats&&=new XN),e}#i(n=!1){if(this.#n(),!this.#t||this.destroyed)return!1;if(n)return this.#e=setTimeout(()=>{this.#e=null,this.#i(!1)},QOe),!1;for(let{renderTasks:e,operatorList:i}of this._intentStates.values())if(e.size>0||!i.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#t=!1,!0}#n(){this.#e&&(clearTimeout(this.#e),this.#e=null)}_startRenderPage(n,e){let i=this._intentStates.get(e);i&&(this._stats?.timeEnd("Page Request"),i.displayReadyCapability?.resolve(n))}_renderPageChunk(n,e){for(let i=0,r=n.length;i{l.read().then(({value:g,done:_})=>{if(_){u.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(g,u),p())},g=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(let _ of u.renderTasks)_.operatorListChanged();this.#i(!0)}if(u.displayReadyCapability)u.displayReadyCapability.reject(g);else if(u.opListReadCapability)u.opListReadCapability.reject(g);else throw g}})};p()}_abortOperatorList({intentState:n,reason:e,force:i=!1}){if(n.streamReader){if(n.streamReaderCancelTimeout&&(clearTimeout(n.streamReaderCancelTimeout),n.streamReaderCancelTimeout=null),!i){if(n.renderTasks.size>0)return;if(e instanceof ZT){let r=XOe;e.extraDelay>0&&e.extraDelay<1e3&&(r+=e.extraDelay),n.streamReaderCancelTimeout=setTimeout(()=>{n.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:n,reason:e,force:!0})},r);return}}if(n.streamReader.cancel(new f0(e.message)).catch(()=>{}),n.streamReader=null,!this._transport.destroyed){for(let[r,o]of this._intentStates)if(o===n){this._intentStates.delete(r);break}this.cleanup()}}}get stats(){return this._stats}},OG=class{#e=new Set;#t=Promise.resolve();postMessage(n,e){let i={data:structuredClone(n,e?{transfer:e}:null)};this.#t.then(()=>{for(let r of this.#e)r.call(this,i)})}addEventListener(n,e){this.#e.add(e)}removeEventListener(n,e){this.#e.delete(e)}terminate(){this.#e.clear()}},MS=class t{static#e=0;static#t=!1;static#i;static{Xc&&(this.#t=!0,h1.workerSrc||="./pdf.worker.mjs"),this._isSameOrigin=(n,e)=>{let i;try{if(i=new URL(n),!i.origin||i.origin==="null")return!1}catch{return!1}let r=new URL(e,i);return i.origin===r.origin},this._createCDNWrapper=n=>{let e=`await import("${n}");`;return URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}}constructor({name:n=null,port:e=null,verbosity:i=bOe()}={}){if(this.name=n,this.destroyed=!1,this.verbosity=i,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,e){if(t.#i?.has(e))throw new Error("Cannot use more than one PDFWorker per port.");(t.#i||=new WeakMap).set(e,this),this._initializeFromPort(e);return}this._initialize()}get promise(){return Xc?Promise.all([$f.promise,this._readyCapability.promise]):this._readyCapability.promise}#n(){this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(n){this._port=n,this._messageHandler=new p1("main","worker",n),this._messageHandler.on("ready",function(){}),this.#n()}_initialize(){if(t.#t||t.#r){this._setupFakeWorker();return}let{workerSrc:n}=t;try{t._isSameOrigin(window.location.href,n)||(n=t._createCDNWrapper(new URL(n,window.location).href));let e=new Worker(n,{type:"module"}),i=new p1("main","worker",e),r=()=>{o.abort(),i.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=new AbortController;e.addEventListener("error",()=>{this._webWorker||r()},{signal:o.signal}),i.on("test",s=>{if(o.abort(),this.destroyed||!s){r();return}this._messageHandler=i,this._port=e,this._webWorker=e,this.#n()}),i.on("ready",s=>{if(o.abort(),this.destroyed){r();return}try{a()}catch{this._setupFakeWorker()}});let a=()=>{let s=new Uint8Array;i.send("test",s,[s.buffer])};a();return}catch{CO("The worker has been disabled.")}this._setupFakeWorker()}_setupFakeWorker(){t.#t||(to("Setting up fake worker."),t.#t=!0),t._setupFakeWorkerGlobal.then(n=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}let e=new OG;this._port=e;let i=`fake${t.#e++}`,r=new p1(i+"_worker",i,e);n.setup(r,e),this._messageHandler=new p1(i,i+"_worker",e),this.#n()}).catch(n=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${n.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),t.#i?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(n){if(!n?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");let e=this.#i?.get(n.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new t(n)}static get workerSrc(){if(h1.workerSrc)return h1.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get#r(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){return To(this,"_setupFakeWorkerGlobal",Mt(this,null,function*(){return this.#r?this.#r:(yield import(this.workerSrc)).WorkerMessageHandler}))}},LG=class{#e=new Map;#t=new Map;#i=new Map;#n=new Map;#r=null;constructor(n,e,i,r,o){this.messageHandler=n,this.loadingTask=e,this.commonObjs=new aO,this.fontLoader=new oG({ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this.loadingParams=r.loadingParams,this._params=r,this.canvasFactory=o.canvasFactory,this.filterFactory=o.filterFactory,this.cMapReaderFactory=o.cMapReaderFactory,this.standardFontDataFactory=o.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}#o(n,e=null){let i=this.#e.get(n);if(i)return i;let r=this.messageHandler.sendWithPromise(n,e);return this.#e.set(n,r),r}get annotationStorage(){return To(this,"annotationStorage",new e2)}getRenderingIntent(n,e=_v.ENABLE,i=null,r=!1,o=!1){let a=Am.DISPLAY,s=rG;switch(n){case"any":a=Am.ANY;break;case"display":break;case"print":a=Am.PRINT;break;default:to(`getRenderingIntent - invalid intent: ${n}`)}let l=a&Am.PRINT&&i instanceof eO?i:this.annotationStorage;switch(e){case _v.DISABLE:a+=Am.ANNOTATIONS_DISABLE;break;case _v.ENABLE:break;case _v.ENABLE_FORMS:a+=Am.ANNOTATIONS_FORMS;break;case _v.ENABLE_STORAGE:a+=Am.ANNOTATIONS_STORAGE,s=l.serializable;break;default:to(`getRenderingIntent - invalid annotationMode: ${e}`)}r&&(a+=Am.IS_EDITING),o&&(a+=Am.OPLIST);let{ids:u,hash:p}=l.modifiedIds,g=[a,s.hash,p];return{renderingIntent:a,cacheKey:g.join("_"),annotationStorageSerializable:s,modifiedIds:u}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#r?.reject(new Error("Worker was destroyed during onPassword callback"));let n=[];for(let i of this.#t.values())n.push(i._destroy());this.#t.clear(),this.#i.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();let e=this.messageHandler.sendWithPromise("Terminate",null);return n.push(e),Promise.all(n).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),i2.cleanup(),this._networkStream?.cancelAllRequests(new f0("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){let{messageHandler:n,loadingTask:e}=this;n.on("GetReader",(i,r)=>{Dl(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=o=>{this._lastProgress={loaded:o.loaded,total:o.total}},r.onPull=()=>{this._fullReader.read().then(function({value:o,done:a}){if(a){r.close();return}Dl(o instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(o),1,[o])}).catch(o=>{r.error(o)})},r.onCancel=o=>{this._fullReader.cancel(o),r.ready.catch(a=>{if(!this.destroyed)throw a})}}),n.on("ReaderHeadersReady",i=>{let r=Promise.withResolvers(),o=this._fullReader;return o.headersReady.then(()=>{(!o.isStreamingSupported||!o.isRangeSupported)&&(this._lastProgress&&e.onProgress?.(this._lastProgress),o.onProgress=a=>{e.onProgress?.({loaded:a.loaded,total:a.total})}),r.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})},r.reject),r.promise}),n.on("GetRangeReader",(i,r)=>{Dl(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");let o=this._networkStream.getRangeReader(i.begin,i.end);if(!o){r.close();return}r.onPull=()=>{o.read().then(function({value:a,done:s}){if(s){r.close();return}Dl(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{r.error(a)})},r.onCancel=a=>{o.cancel(a),r.ready.catch(s=>{if(!this.destroyed)throw s})}}),n.on("GetDoc",({pdfInfo:i})=>{this._numPages=i.numPages,this._htmlForXfa=i.htmlForXfa,delete i.htmlForXfa,e._capability.resolve(new PG(i,this))}),n.on("DocException",function(i){let r;switch(i.name){case"PasswordException":r=new YT(i.message,i.code);break;case"InvalidPDFException":r=new UN(i.message);break;case"MissingPDFException":r=new h0(i.message);break;case"UnexpectedResponseException":r=new FS(i.message,i.status);break;case"UnknownErrorException":r=new KT(i.message,i.details);break;default:al("DocException - expected a valid Error.")}e._capability.reject(r)}),n.on("PasswordRequest",i=>{if(this.#r=Promise.withResolvers(),e.onPassword){let r=o=>{o instanceof Error?this.#r.reject(o):this.#r.resolve({password:o})};try{e.onPassword(r,i.code)}catch(o){this.#r.reject(o)}}else this.#r.reject(new YT(i.message,i.code));return this.#r.promise}),n.on("DataLoaded",i=>{e.onProgress?.({loaded:i.length,total:i.length}),this.downloadInfoCapability.resolve(i)}),n.on("StartRenderPage",i=>{if(this.destroyed)return;this.#t.get(i.pageIndex)._startRenderPage(i.transparency,i.cacheKey)}),n.on("commonobj",([i,r,o])=>{if(this.destroyed||this.commonObjs.has(i))return null;switch(r){case"Font":let{disableFontFace:a,fontExtraProperties:s,pdfBug:l}=this._params;if("error"in o){let _=o.error;to(`Error during font loading: ${_}`),this.commonObjs.resolve(i,_);break}let u=l&&globalThis.FontInspector?.enabled?(_,v)=>globalThis.FontInspector.fontAdded(_,v):null,p=new aG(o,{disableFontFace:a,inspectFont:u});this.fontLoader.bind(p).catch(()=>n.sendWithPromise("FontFallback",{id:i})).finally(()=>{!s&&p.data&&(p.data=null),this.commonObjs.resolve(i,p)});break;case"CopyLocalImage":let{imageRef:g}=o;Dl(g,"The imageRef must be defined.");for(let _ of this.#t.values())for(let[,v]of _.objs)if(v?.ref===g)return v.dataLen?(this.commonObjs.resolve(i,structuredClone(v)),v.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(i,o);break;default:throw new Error(`Got unknown common object type ${r}`)}return null}),n.on("obj",([i,r,o,a])=>{if(this.destroyed)return;let s=this.#t.get(r);if(!s.objs.has(i)){if(s._intentStates.size===0){a?.bitmap?.close();return}switch(o){case"Image":s.objs.resolve(i,a),a?.dataLen>pOe&&(s._maybeCleanupAfterRender=!0);break;case"Pattern":s.objs.resolve(i,a);break;default:throw new Error(`Got unknown object type ${o}`)}}}),n.on("DocProgress",i=>{this.destroyed||e.onProgress?.({loaded:i.loaded,total:i.total})}),n.on("FetchBuiltInCMap",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(i):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),n.on("FetchStandardFontData",i=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(i):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&to("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");let{map:n,transfer:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:n,filename:this._fullReader?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}getPage(n){if(!Number.isInteger(n)||n<=0||n>this._numPages)return Promise.reject(new Error("Invalid page request."));let e=n-1,i=this.#i.get(e);if(i)return i;let r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then(o=>{if(this.destroyed)throw new Error("Transport destroyed");o.refStr&&this.#n.set(o.refStr,n);let a=new NG(e,o,this,this._params.pdfBug);return this.#t.set(e,a),a});return this.#i.set(e,r),r}getPageIndex(n){return Fle(n)?this.messageHandler.sendWithPromise("GetPageIndex",{num:n.num,gen:n.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(n,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:n,intent:e})}getFieldObjects(){return this.#o("GetFieldObjects")}hasJSActions(){return this.#o("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(n){return typeof n!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:n})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#o("GetDocJSActions")}getPageJSActions(n){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:n})}getStructTree(n){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:n})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(n){return this.#o("GetOptionalContentConfig").then(e=>new vG(e,n))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){let n="GetMetadata",e=this.#e.get(n);if(e)return e;let i=this.messageHandler.sendWithPromise(n,null).then(r=>({info:r[0],metadata:r[1]?new gG(r[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(n,i),i}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}startCleanup(n=!1){return Mt(this,null,function*(){if(!this.destroyed){yield this.messageHandler.sendWithPromise("Cleanup",null);for(let e of this.#t.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),n||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),i2.cleanup()}})}cachedPageNumber(n){if(!Fle(n))return null;let e=n.gen===0?`${n.num}R`:`${n.num}R${n.gen}`;return this.#n.get(e)??null}},LN=Symbol("INITIAL_DATA"),aO=class{#e=Object.create(null);#t(n){return this.#e[n]||=Gi(Ve({},Promise.withResolvers()),{data:LN})}get(n,e=null){if(e){let r=this.#t(n);return r.promise.then(()=>e(r.data)),null}let i=this.#e[n];if(!i||i.data===LN)throw new Error(`Requesting object that isn't resolved yet ${n}.`);return i.data}has(n){let e=this.#e[n];return!!e&&e.data!==LN}resolve(n,e=null){let i=this.#t(n);i.data=e,i.resolve()}clear(){for(let n in this.#e){let{data:e}=this.#e[n];e?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(let n in this.#e){let{data:e}=this.#e[n];e!==LN&&(yield[n,e])}}},VG=class{#e=null;constructor(n){this.#e=n,this.onContinue=null}get promise(){return this.#e.capability.promise}cancel(n=0){this.#e.cancel(null,n)}get separateAnnots(){let{separateAnnots:n}=this.#e.operatorList;if(!n)return!1;let{annotationCanvasMap:e}=this.#e;return n.form||n.canvas&&e?.size>0}},BG=class t{#e=null;static#t=new WeakSet;constructor({callback:n,params:e,objs:i,commonObjs:r,annotationCanvasMap:o,operatorList:a,pageIndex:s,canvasFactory:l,filterFactory:u,useRequestAnimationFrame:p=!1,pdfBug:g=!1,pageColors:_=null}){this.callback=n,this.params=e,this.objs=i,this.commonObjs=r,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=l,this.filterFactory=u,this._pdfBug=g,this.pageColors=_,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=p===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new VG(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:n=!1,optionalContentConfig:e}){if(this.cancelled)return;if(this._canvas){if(t.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");t.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());let{canvasContext:i,viewport:r,transform:o,background:a}=this.params;this.gfx=new kS(i,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:e},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:r,transparency:n,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(n=null,e=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),t.#t.delete(this._canvas),this.callback(n||new ZT(`Rendering cancelled, page ${this._pageIndex+1}`,e))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}_next(){return Mt(this,null,function*(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),t.#t.delete(this._canvas),this.callback())))})}},oLe="4.6.82",aLe="9b541910f";function Rle(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function $T(t){return Math.max(0,Math.min(255,255*t))}var sO=class{static CMYK_G([n,e,i,r]){return["G",1-Math.min(1,.3*n+.59*i+.11*e+r)]}static G_CMYK([n]){return["CMYK",0,0,0,1-n]}static G_RGB([n]){return["RGB",n,n,n]}static G_rgb([n]){return n=$T(n),[n,n,n]}static G_HTML([n]){let e=Rle(n);return`#${e}${e}${e}`}static RGB_G([n,e,i]){return["G",.3*n+.59*e+.11*i]}static RGB_rgb(n){return n.map($T)}static RGB_HTML(n){return`#${n.map(Rle).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([n,e,i,r]){return["RGB",1-Math.min(1,n+r),1-Math.min(1,i+r),1-Math.min(1,e+r)]}static CMYK_rgb([n,e,i,r]){return[$T(1-Math.min(1,n+r)),$T(1-Math.min(1,i+r)),$T(1-Math.min(1,e+r))]}static CMYK_HTML(n){let e=this.CMYK_RGB(n).slice(1);return this.RGB_HTML(e)}static RGB_CMYK([n,e,i]){let r=1-n,o=1-e,a=1-i,s=Math.min(r,o,a);return["CMYK",r,o,a,s]}},lO=class{static setupStorage(n,e,i,r,o){let a=r.getValue(e,{value:null});switch(i.name){case"textarea":if(a.value!==null&&(n.textContent=a.value),o==="print")break;n.addEventListener("input",s=>{r.setValue(e,{value:s.target.value})});break;case"input":if(i.attributes.type==="radio"||i.attributes.type==="checkbox"){if(a.value===i.attributes.xfaOn?n.setAttribute("checked",!0):a.value===i.attributes.xfaOff&&n.removeAttribute("checked"),o==="print")break;n.addEventListener("change",s=>{r.setValue(e,{value:s.target.checked?s.target.getAttribute("xfaOn"):s.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&n.setAttribute("value",a.value),o==="print")break;n.addEventListener("input",s=>{r.setValue(e,{value:s.target.value})})}break;case"select":if(a.value!==null){n.setAttribute("value",a.value);for(let s of i.children)s.attributes.value===a.value?s.attributes.selected=!0:s.attributes.hasOwnProperty("selected")&&delete s.attributes.selected}n.addEventListener("input",s=>{let l=s.target.options,u=l.selectedIndex===-1?"":l[l.selectedIndex].value;r.setValue(e,{value:u})});break}}static setAttributes({html:n,element:e,storage:i=null,intent:r,linkService:o}){let{attributes:a}=e,s=n instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${r}`);for(let[l,u]of Object.entries(a))if(u!=null)switch(l){case"class":u.length&&n.setAttribute(l,u.join(" "));break;case"dataId":break;case"id":n.setAttribute("data-element-id",u);break;case"style":Object.assign(n.style,u);break;case"textContent":n.textContent=u;break;default:(!s||l!=="href"&&l!=="newWindow")&&n.setAttribute(l,u)}s&&o.addLinkAttributes(n,a.href,a.newWindow),i&&a.dataId&&this.setupStorage(n,a.dataId,e,i)}static render(n){let e=n.annotationStorage,i=n.linkService,r=n.xfaHtml,o=n.intent||"display",a=document.createElement(r.name);r.attributes&&this.setAttributes({html:a,element:r,intent:o,linkService:i});let s=o!=="richText",l=n.div;if(l.append(a),n.viewport){let g=`matrix(${n.viewport.transform.join(",")})`;l.style.transform=g}s&&l.setAttribute("class","xfaLayer xfaFont");let u=[];if(r.children.length===0){if(r.value){let g=document.createTextNode(r.value);a.append(g),s&&n2.shouldBuildText(r.name)&&u.push(g)}return{textDivs:u}}let p=[[r,-1,a]];for(;p.length>0;){let[g,_,v]=p.at(-1);if(_+1===g.children.length){p.pop();continue}let y=g.children[++p.at(-1)[1]];if(y===null)continue;let{name:x}=y;if(x==="#text"){let C=document.createTextNode(y.value);u.push(C),v.append(C);continue}let I=y?.attributes?.xmlns?document.createElementNS(y.attributes.xmlns,x):document.createElement(x);if(v.append(I),y.attributes&&this.setAttributes({html:I,element:y,storage:e,intent:o,linkService:i}),y.children?.length>0)p.push([y,-1,I]);else if(y.value){let C=document.createTextNode(y.value);s&&n2.shouldBuildText(x)&&u.push(C),I.append(C)}}for(let g of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))g.setAttribute("readOnly",!0);return{textDivs:u}}static update(n){let e=`matrix(${n.viewport.transform.join(",")})`;n.div.style.transform=e,n.div.hidden=!1}},a2=1e3,sLe=9,_1=new WeakSet;function p0(t){return{width:t[2]-t[0],height:t[3]-t[1]}}var jG=class{static create(n){switch(n.data.annotationType){case Il.LINK:return new cO(n);case Il.TEXT:return new HG(n);case Il.WIDGET:switch(n.data.fieldType){case"Tx":return new zG(n);case"Btn":return n.data.radioButton?new dO(n):n.data.checkBox?new GG(n):new $G(n);case"Ch":return new qG(n);case"Sig":return new UG(n)}return new g0(n);case Il.POPUP:return new r2(n);case Il.FREETEXT:return new uO(n);case Il.LINE:return new YG(n);case Il.SQUARE:return new KG(n);case Il.CIRCLE:return new XG(n);case Il.POLYLINE:return new mO(n);case Il.CARET:return new ZG(n);case Il.INK:return new pO(n);case Il.POLYGON:return new QG(n);case Il.HIGHLIGHT:return new JG(n);case Il.UNDERLINE:return new e$(n);case Il.SQUIGGLY:return new t$(n);case Il.STRIKEOUT:return new i$(n);case Il.STAMP:return new hO(n);case Il.FILEATTACHMENT:return new n$(n);default:return new Hs(n)}}},Hs=class t{#e=null;#t=!1;#i=null;constructor(n,{isRenderable:e=!1,ignoreBorder:i=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=e,this.data=n.data,this.layer=n.layer,this.linkService=n.linkService,this.downloadManager=n.downloadManager,this.imageResourcesPath=n.imageResourcesPath,this.renderForms=n.renderForms,this.svgFactory=n.svgFactory,this.annotationStorage=n.annotationStorage,this.enableScripting=n.enableScripting,this.hasJSActions=n.hasJSActions,this._fieldObjects=n.fieldObjects,this.parent=n.parent,e&&(this.container=this._createContainer(i)),r&&this._createQuadrilaterals()}static _hasPopupData({titleObj:n,contentsObj:e,richText:i}){return!!(n?.str||e?.str||i?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return t._hasPopupData(this.data)}updateEdited(n){if(!this.container)return;this.#e||={rect:this.data.rect.slice(0)};let{rect:e}=n;e&&this.#n(e),this.#i?.popup.updateEdited(n)}resetEdited(){this.#e&&(this.#n(this.#e.rect),this.#i?.popup.resetEdited(),this.#e=null)}#n(n){let{container:{style:e},data:{rect:i,rotation:r},parent:{viewport:{rawDims:{pageWidth:o,pageHeight:a,pageX:s,pageY:l}}}}=this;i?.splice(0,4,...n);let{width:u,height:p}=p0(n);e.left=`${100*(n[0]-s)/o}%`,e.top=`${100*(a-n[3]+l)/a}%`,r===0?(e.width=`${100*u/o}%`,e.height=`${100*p/a}%`):this.setRotation(r)}_createContainer(n){let{data:e,parent:{page:i,viewport:r}}=this,o=document.createElement("section");o.setAttribute("data-annotation-id",e.id),this instanceof g0||(o.tabIndex=a2);let{style:a}=o;if(a.zIndex=this.parent.zIndex++,e.popupRef&&o.setAttribute("aria-haspopup","dialog"),e.alternativeText&&(o.title=e.alternativeText),e.noRotate&&o.classList.add("norotate"),!e.rect||this instanceof r2){let{rotation:x}=e;return!e.hasOwnCanvas&&x!==0&&this.setRotation(x,o),o}let{width:s,height:l}=p0(e.rect);if(!n&&e.borderStyle.width>0){a.borderWidth=`${e.borderStyle.width}px`;let x=e.borderStyle.horizontalCornerRadius,I=e.borderStyle.verticalCornerRadius;if(x>0||I>0){let D=`calc(${x}px * var(--scale-factor)) / calc(${I}px * var(--scale-factor))`;a.borderRadius=D}else if(this instanceof dO){let D=`calc(${s}px * var(--scale-factor)) / calc(${l}px * var(--scale-factor))`;a.borderRadius=D}switch(e.borderStyle.style){case UT.SOLID:a.borderStyle="solid";break;case UT.DASHED:a.borderStyle="dashed";break;case UT.BEVELED:to("Unimplemented border style: beveled");break;case UT.INSET:to("Unimplemented border style: inset");break;case UT.UNDERLINE:a.borderBottomStyle="solid";break;default:break}let C=e.borderColor||null;C?(this.#t=!0,a.borderColor=vn.makeHexColor(C[0]|0,C[1]|0,C[2]|0)):a.borderWidth=0}let u=vn.normalizeRect([e.rect[0],i.view[3]-e.rect[1]+i.view[1],e.rect[2],i.view[3]-e.rect[3]+i.view[1]]),{pageWidth:p,pageHeight:g,pageX:_,pageY:v}=r.rawDims;a.left=`${100*(u[0]-_)/p}%`,a.top=`${100*(u[1]-v)/g}%`;let{rotation:y}=e;return e.hasOwnCanvas||y===0?(a.width=`${100*s/p}%`,a.height=`${100*l/g}%`):this.setRotation(y,o),o}setRotation(n,e=this.container){if(!this.data.rect)return;let{pageWidth:i,pageHeight:r}=this.parent.viewport.rawDims,{width:o,height:a}=p0(this.data.rect),s,l;n%180===0?(s=100*o/i,l=100*a/r):(s=100*a/i,l=100*o/r),e.style.width=`${s}%`,e.style.height=`${l}%`,e.setAttribute("data-main-rotation",(360-n)%360)}get _commonActions(){let n=(e,i,r)=>{let o=r.detail[e],a=o[0],s=o.slice(1);r.target.style[i]=sO[`${a}_HTML`](s),this.annotationStorage.setValue(this.data.id,{[i]:sO[`${a}_rgb`](s)})};return To(this,"_commonActions",{display:e=>{let{display:i}=e.detail,r=i%2===1;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:r,noPrint:i===1||i===2})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{let{hidden:i}=e.detail;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:i,noView:i})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:e=>{n("bgColor","backgroundColor",e)},fillColor:e=>{n("fillColor","backgroundColor",e)},fgColor:e=>{n("fgColor","color",e)},textColor:e=>{n("textColor","color",e)},borderColor:e=>{n("borderColor","borderColor",e)},strokeColor:e=>{n("strokeColor","borderColor",e)},rotation:e=>{let i=e.detail.rotation;this.setRotation(i),this.annotationStorage.setValue(this.data.id,{rotation:i})}})}_dispatchEventFromSandbox(n,e){let i=this._commonActions;for(let r of Object.keys(e.detail))(n[r]||i[r])?.(e)}_setDefaultPropertiesFromJS(n){if(!this.enableScripting)return;let e=this.annotationStorage.getRawValue(this.data.id);if(!e)return;let i=this._commonActions;for(let[r,o]of Object.entries(e)){let a=i[r];if(a){let s={detail:{[r]:o},target:n};a(s),delete e[r]}}}_createQuadrilaterals(){if(!this.container)return;let{quadPoints:n}=this.data;if(!n)return;let[e,i,r,o]=this.data.rect.map(x=>Math.fround(x));if(n.length===8){let[x,I,C,D]=n.subarray(2,6);if(r===x&&o===I&&e===C&&i===D)return}let{style:a}=this.container,s;if(this.#t){let{borderColor:x,borderWidth:I}=a;a.borderWidth=0,s=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}let l=r-e,u=o-i,{svgFactory:p}=this,g=p.createElement("svg");g.classList.add("quadrilateralsContainer"),g.setAttribute("width",0),g.setAttribute("height",0);let _=p.createElement("defs");g.append(_);let v=p.createElement("clipPath"),y=`clippath_${this.data.id}`;v.setAttribute("id",y),v.setAttribute("clipPathUnits","objectBoundingBox"),_.append(v);for(let x=2,I=n.length;x`)}this.#t&&(s.push("')"),a.backgroundImage=s.join("")),this.container.append(g),this.container.style.clipPath=`url(#${y})`}_createPopup(){let{container:n,data:e}=this;n.setAttribute("aria-haspopup","dialog");let i=this.#i=new r2({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:`popup_${e.id}`,rotation:e.rotation},parent:this.parent,elements:[this]});this.parent.div.append(i.render())}render(){al("Abstract method `AnnotationElement.render` called")}_getElementsByName(n,e=null){let i=[];if(this._fieldObjects){let r=this._fieldObjects[n];if(r)for(let{page:o,id:a,exportValues:s}of r){if(o===-1||a===e)continue;let l=typeof s=="string"?s:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!_1.has(u)){to(`_getElementsByName - element not allowed: ${a}`);continue}i.push({id:a,exportValue:l,domElement:u})}return i}for(let r of document.getElementsByName(n)){let{exportValue:o}=r,a=r.getAttribute("data-element-id");a!==e&&_1.has(r)&&i.push({id:a,exportValue:o,domElement:r})}return i}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){let n=this.getElementsToTriggerPopup();if(Array.isArray(n))for(let e of n)e.classList.add("highlightArea");else n.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;let{annotationEditorType:n,data:{id:e}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:n,editId:e})})}},cO=class extends Hs{constructor(n,e=null){super(n,{isRenderable:!0,ignoreBorder:!!e?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=n.data.isTooltipOnly}render(){let{data:n,linkService:e}=this,i=document.createElement("a");i.setAttribute("data-element-id",n.id);let r=!1;return n.url?(e.addLinkAttributes(i,n.url,n.newWindow),r=!0):n.action?(this._bindNamedAction(i,n.action),r=!0):n.attachment?(this.#t(i,n.attachment,n.attachmentDest),r=!0):n.setOCGState?(this.#i(i,n.setOCGState),r=!0):n.dest?(this._bindLink(i,n.dest),r=!0):(n.actions&&(n.actions.Action||n.actions["Mouse Up"]||n.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(i,n),r=!0),n.resetForm?(this._bindResetFormAction(i,n.resetForm),r=!0):this.isTooltipOnly&&!r&&(this._bindLink(i,""),r=!0)),this.container.classList.add("linkAnnotation"),r&&this.container.append(i),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(n,e){n.href=this.linkService.getDestinationHash(e),n.onclick=()=>(e&&this.linkService.goToDestination(e),!1),(e||e==="")&&this.#e()}_bindNamedAction(n,e){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeNamedAction(e),!1),this.#e()}#t(n,e,i=null){n.href=this.linkService.getAnchorUrl(""),e.description&&(n.title=e.description),n.onclick=()=>(this.downloadManager?.openOrDownloadData(e.content,e.filename,i),!1),this.#e()}#i(n,e){n.href=this.linkService.getAnchorUrl(""),n.onclick=()=>(this.linkService.executeSetOCGState(e),!1),this.#e()}_bindJSAction(n,e){n.href=this.linkService.getAnchorUrl("");let i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(let r of Object.keys(e.actions)){let o=i.get(r);o&&(n[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:r}}),!1))}n.onclick||(n.onclick=()=>!1),this.#e()}_bindResetFormAction(n,e){let i=n.onclick;if(i||(n.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){to('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),i||(n.onclick=()=>!1);return}n.onclick=()=>{i?.();let{fields:r,refs:o,include:a}=e,s=[];if(r.length!==0||o.length!==0){let p=new Set(o);for(let g of r){let _=this._fieldObjects[g]||[];for(let{id:v}of _)p.add(v)}for(let g of Object.values(this._fieldObjects))for(let _ of g)p.has(_.id)===a&&s.push(_)}else for(let p of Object.values(this._fieldObjects))s.push(...p);let l=this.annotationStorage,u=[];for(let p of s){let{id:g}=p;switch(u.push(g),p.type){case"text":{let v=p.defaultValue||"";l.setValue(g,{value:v});break}case"checkbox":case"radiobutton":{let v=p.defaultValue===p.exportValues;l.setValue(g,{value:v});break}case"combobox":case"listbox":{let v=p.defaultValue||"";l.setValue(g,{value:v});break}default:continue}let _=document.querySelector(`[data-element-id="${g}"]`);if(_){if(!_1.has(_)){to(`_bindResetFormAction - element not allowed: ${g}`);continue}}else continue;_.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}},HG=class extends Hs{constructor(n){super(n,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");let n=document.createElement("img");return n.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",n.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),n.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(n),this.container}},g0=class extends Hs{render(){return this.container}showElementAndHideCanvas(n){this.data.hasOwnCanvas&&(n.previousSibling?.nodeName==="CANVAS"&&(n.previousSibling.hidden=!0),n.hidden=!1)}_getKeyModifier(n){return Qc.platform.isMac?n.metaKey:n.ctrlKey}_setEventListener(n,e,i,r,o){i.includes("mouse")?n.addEventListener(i,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):n.addEventListener(i,a=>{if(i==="blur"){if(!e.focused||!a.relatedTarget)return;e.focused=!1}else if(i==="focus"){if(e.focused)return;e.focused=!0}o&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:r,value:o(a)}})})}_setEventListeners(n,e,i,r){for(let[o,a]of i)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(e||={focused:!1}),this._setEventListener(n,e,o,a,r),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(n,e,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(n,e,"focus","Focus",null))}_setBackgroundColor(n){let e=this.data.backgroundColor||null;n.style.backgroundColor=e===null?"transparent":vn.makeHexColor(e[0],e[1],e[2])}_setTextStyle(n){let e=["left","center","right"],{fontColor:i}=this.data.defaultAppearanceData,r=this.data.defaultAppearanceData.fontSize||sLe,o=n.style,a,s=2,l=u=>Math.round(10*u)/10;if(this.data.multiLine){let u=Math.abs(this.data.rect[3]-this.data.rect[1]-s),p=Math.round(u/(BN*r))||1,g=u/p;a=Math.min(r,l(g/BN))}else{let u=Math.abs(this.data.rect[3]-this.data.rect[1]-s);a=Math.min(r,l(u/BN))}o.fontSize=`calc(${a}px * var(--scale-factor))`,o.color=vn.makeHexColor(i[0],i[1],i[2]),this.data.textAlignment!==null&&(o.textAlign=e[this.data.textAlignment])}_setRequired(n,e){e?n.setAttribute("required",!0):n.removeAttribute("required"),n.setAttribute("aria-required",e)}},zG=class extends g0{constructor(n){let e=n.renderForms||n.data.hasOwnCanvas||!n.data.hasAppearance&&!!n.data.fieldValue;super(n,{isRenderable:e})}setPropertyOnSiblings(n,e,i,r){let o=this.annotationStorage;for(let a of this._getElementsByName(n.name,n.id))a.domElement&&(a.domElement[e]=i),o.setValue(a.id,{[r]:i})}render(){let n=this.annotationStorage,e=this.data.id;this.container.classList.add("textWidgetAnnotation");let i=null;if(this.renderForms){let r=n.getValue(e,{value:this.data.fieldValue}),o=r.value||"",a=n.getValue(e,{charLimit:this.data.maxLen}).charLimit;a&&o.length>a&&(o=o.slice(0,a));let s=r.formattedValue||this.data.textContent?.join(` `)||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));let l={userValue:o,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(i=document.createElement("textarea"),i.textContent=s??o,this.data.doNotScroll&&(i.style.overflowY="hidden")):(i=document.createElement("input"),i.type="text",i.setAttribute("value",s??o),this.data.doNotScroll&&(i.style.overflowX="hidden")),this.data.hasOwnCanvas&&(i.hidden=!0),_1.add(i),i.setAttribute("data-element-id",e),i.disabled=this.data.readOnly,i.name=this.data.fieldName,i.tabIndex=a2,this._setRequired(i,this.data.required),a&&(i.maxLength=a),i.addEventListener("input",p=>{n.setValue(e,{value:p.target.value}),this.setPropertyOnSiblings(i,"value",p.target.value,"value"),l.formattedValue=null}),i.addEventListener("resetform",p=>{let g=this.data.defaultFieldValue??"";i.value=l.userValue=g,l.formattedValue=null});let u=p=>{let{formattedValue:g}=l;g!=null&&(p.target.value=g),p.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){i.addEventListener("focus",g=>{if(l.focused)return;let{target:_}=g;l.userValue&&(_.value=l.userValue),l.lastCommittedValue=_.value,l.commitKey=1,this.data.actions?.Focus||(l.focused=!0)}),i.addEventListener("updatefromsandbox",g=>{this.showElementAndHideCanvas(g.target);let _={value(v){l.userValue=v.detail.value??"",n.setValue(e,{value:l.userValue.toString()}),v.target.value=l.userValue},formattedValue(v){let{formattedValue:y}=v.detail;l.formattedValue=y,y!=null&&v.target!==document.activeElement&&(v.target.value=y),n.setValue(e,{formattedValue:y})},selRange(v){v.target.setSelectionRange(...v.detail.selRange)},charLimit:v=>{let{charLimit:y}=v.detail,{target:x}=v;if(y===0){x.removeAttribute("maxLength");return}x.setAttribute("maxLength",y);let I=l.userValue;!I||I.length<=y||(I=I.slice(0,y),x.value=l.userValue=I,n.setValue(e,{value:I}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:I,willCommit:!0,commitKey:1,selStart:x.selectionStart,selEnd:x.selectionEnd}}))}};this._dispatchEventFromSandbox(_,g)}),i.addEventListener("keydown",g=>{l.commitKey=1;let _=-1;if(g.key==="Escape"?_=0:g.key==="Enter"&&!this.data.multiLine?_=2:g.key==="Tab"&&(l.commitKey=3),_===-1)return;let{value:v}=g.target;l.lastCommittedValue!==v&&(l.lastCommittedValue=v,l.userValue=v,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:v,willCommit:!0,commitKey:_,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}}))});let p=u;u=null,i.addEventListener("blur",g=>{if(!l.focused||!g.relatedTarget)return;this.data.actions?.Blur||(l.focused=!1);let{value:_}=g.target;l.userValue=_,l.lastCommittedValue!==_&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:_,willCommit:!0,commitKey:l.commitKey,selStart:g.target.selectionStart,selEnd:g.target.selectionEnd}}),p(g)}),this.data.actions?.Keystroke&&i.addEventListener("beforeinput",g=>{l.lastCommittedValue=null;let{data:_,target:v}=g,{value:y,selectionStart:x,selectionEnd:I}=v,C=x,D=I;switch(g.inputType){case"deleteWordBackward":{let A=y.substring(0,x).match(/\w*[^\w]*$/);A&&(C-=A[0].length);break}case"deleteWordForward":{let A=y.substring(x).match(/^[^\w]*\w*/);A&&(D+=A[0].length);break}case"deleteContentBackward":x===I&&(C-=1);break;case"deleteContentForward":x===I&&(D+=1);break}g.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:y,change:_||"",willCommit:!1,selStart:C,selEnd:D}})}),this._setEventListeners(i,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],g=>g.target.value)}if(u&&i.addEventListener("blur",u),this.data.comb){let g=(this.data.rect[2]-this.data.rect[0])/a;i.classList.add("comb"),i.style.letterSpacing=`calc(${g}px * var(--scale-factor) - 1ch)`}}else i=document.createElement("div"),i.textContent=this.data.fieldValue,i.style.verticalAlign="middle",i.style.display="table-cell",this.data.hasOwnCanvas&&(i.hidden=!0);return this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}},UG=class extends g0{constructor(n){super(n,{isRenderable:!!n.data.hasOwnCanvas})}},GG=class extends g0{constructor(n){super(n,{isRenderable:n.renderForms})}render(){let n=this.annotationStorage,e=this.data,i=e.id,r=n.getValue(i,{value:e.exportValue===e.fieldValue}).value;typeof r=="string"&&(r=r!=="Off",n.setValue(i,{value:r})),this.container.classList.add("buttonWidgetAnnotation","checkBox");let o=document.createElement("input");return _1.add(o),o.setAttribute("data-element-id",i),o.disabled=e.readOnly,this._setRequired(o,this.data.required),o.type="checkbox",o.name=e.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("exportValue",e.exportValue),o.tabIndex=a2,o.addEventListener("change",a=>{let{name:s,checked:l}=a.target;for(let u of this._getElementsByName(s,i)){let p=l&&u.exportValue===e.exportValue;u.domElement&&(u.domElement.checked=p),n.setValue(u.id,{value:p})}n.setValue(i,{value:l})}),o.addEventListener("resetform",a=>{let s=e.defaultFieldValue||"Off";a.target.checked=s===e.exportValue}),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",a=>{let s={value(l){l.target.checked=l.detail.value!=="Off",n.setValue(i,{value:l.target.checked})}};this._dispatchEventFromSandbox(s,a)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}},dO=class extends g0{constructor(n){super(n,{isRenderable:n.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");let n=this.annotationStorage,e=this.data,i=e.id,r=n.getValue(i,{value:e.fieldValue===e.buttonValue}).value;if(typeof r=="string"&&(r=r!==e.buttonValue,n.setValue(i,{value:r})),r)for(let a of this._getElementsByName(e.fieldName,i))n.setValue(a.id,{value:!1});let o=document.createElement("input");if(_1.add(o),o.setAttribute("data-element-id",i),o.disabled=e.readOnly,this._setRequired(o,this.data.required),o.type="radio",o.name=e.fieldName,r&&o.setAttribute("checked",!0),o.tabIndex=a2,o.addEventListener("change",a=>{let{name:s,checked:l}=a.target;for(let u of this._getElementsByName(s,i))n.setValue(u.id,{value:!1});n.setValue(i,{value:l})}),o.addEventListener("resetform",a=>{let s=e.defaultFieldValue;a.target.checked=s!=null&&s===e.buttonValue}),this.enableScripting&&this.hasJSActions){let a=e.buttonValue;o.addEventListener("updatefromsandbox",s=>{let l={value:u=>{let p=a===u.detail.value;for(let g of this._getElementsByName(u.target.name)){let _=p&&g.id===i;g.domElement&&(g.domElement.checked=_),n.setValue(g.id,{value:_})}}};this._dispatchEventFromSandbox(l,s)}),this._setEventListeners(o,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}},$G=class extends cO{constructor(n){super(n,{ignoreBorder:n.data.hasAppearance})}render(){let n=super.render();n.classList.add("buttonWidgetAnnotation","pushButton");let e=n.lastChild;return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",i=>{this._dispatchEventFromSandbox({},i)})),n}},qG=class extends g0{constructor(n){super(n,{isRenderable:n.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");let n=this.annotationStorage,e=this.data.id,i=n.getValue(e,{value:this.data.fieldValue}),r=document.createElement("select");_1.add(r),r.setAttribute("data-element-id",e),r.disabled=this.data.readOnly,this._setRequired(r,this.data.required),r.name=this.data.fieldName,r.tabIndex=a2;let o=this.data.combo&&this.data.options.length>0;this.data.combo||(r.size=this.data.options.length,this.data.multiSelect&&(r.multiple=!0)),r.addEventListener("resetform",p=>{let g=this.data.defaultFieldValue;for(let _ of r.options)_.selected=_.value===g});for(let p of this.data.options){let g=document.createElement("option");g.textContent=p.displayValue,g.value=p.exportValue,i.value.includes(p.exportValue)&&(g.setAttribute("selected",!0),o=!1),r.append(g)}let a=null;if(o){let p=document.createElement("option");p.value=" ",p.setAttribute("hidden",!0),p.setAttribute("selected",!0),r.prepend(p),a=()=>{p.remove(),r.removeEventListener("input",a),a=null},r.addEventListener("input",a)}let s=p=>{let g=p?"value":"textContent",{options:_,multiple:v}=r;return v?Array.prototype.filter.call(_,y=>y.selected).map(y=>y[g]):_.selectedIndex===-1?null:_[_.selectedIndex][g]},l=s(!1),u=p=>{let g=p.target.options;return Array.prototype.map.call(g,_=>({displayValue:_.textContent,exportValue:_.value}))};return this.enableScripting&&this.hasJSActions?(r.addEventListener("updatefromsandbox",p=>{let g={value(_){a?.();let v=_.detail.value,y=new Set(Array.isArray(v)?v:[v]);for(let x of r.options)x.selected=y.has(x.value);n.setValue(e,{value:s(!0)}),l=s(!1)},multipleSelection(_){r.multiple=!0},remove(_){let v=r.options,y=_.detail.remove;v[y].selected=!1,r.remove(y),v.length>0&&Array.prototype.findIndex.call(v,I=>I.selected)===-1&&(v[0].selected=!0),n.setValue(e,{value:s(!0),items:u(_)}),l=s(!1)},clear(_){for(;r.length!==0;)r.remove(0);n.setValue(e,{value:null,items:[]}),l=s(!1)},insert(_){let{index:v,displayValue:y,exportValue:x}=_.detail.insert,I=r.children[v],C=document.createElement("option");C.textContent=y,C.value=x,I?I.before(C):r.append(C),n.setValue(e,{value:s(!0),items:u(_)}),l=s(!1)},items(_){let{items:v}=_.detail;for(;r.length!==0;)r.remove(0);for(let y of v){let{displayValue:x,exportValue:I}=y,C=document.createElement("option");C.textContent=x,C.value=I,r.append(C)}r.options.length>0&&(r.options[0].selected=!0),n.setValue(e,{value:s(!0),items:u(_)}),l=s(!1)},indices(_){let v=new Set(_.detail.indices);for(let y of _.target.options)y.selected=v.has(y.index);n.setValue(e,{value:s(!0)}),l=s(!1)},editable(_){_.target.disabled=!_.detail.editable}};this._dispatchEventFromSandbox(g,p)}),r.addEventListener("input",p=>{let g=s(!0),_=s(!1);n.setValue(e,{value:g}),p.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e,name:"Keystroke",value:l,change:_,changeEx:g,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(r,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],p=>p.target.value)):r.addEventListener("input",function(p){n.setValue(e,{value:s(!0)})}),this.data.combo&&this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}},r2=class extends Hs{constructor(n){let{data:e,elements:i}=n;super(n,{isRenderable:Hs._hasPopupData(e)}),this.elements=i,this.popup=null}render(){this.container.classList.add("popupAnnotation");let n=this.popup=new WG({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),e=[];for(let i of this.elements)i.popup=n,e.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",e.map(i=>`${Ole}${i}`).join(",")),this.container}},WG=class{#e=this.#k.bind(this);#t=this.#I.bind(this);#i=this.#T.bind(this);#n=this.#S.bind(this);#r=null;#o=null;#s=null;#l=null;#u=null;#c=null;#d=null;#a=!1;#m=null;#h=null;#p=null;#f=null;#_=null;#g=null;#v=!1;constructor({container:n,color:e,elements:i,titleObj:r,modificationDate:o,contentsObj:a,richText:s,parent:l,rect:u,parentRect:p,open:g}){this.#o=n,this.#_=r,this.#s=a,this.#f=s,this.#c=l,this.#r=e,this.#p=u,this.#d=p,this.#u=i,this.#l=QN.toDateObject(o),this.trigger=i.flatMap(_=>_.getElementsToTriggerPopup());for(let _ of this.trigger)_.addEventListener("click",this.#n),_.addEventListener("mouseenter",this.#i),_.addEventListener("mouseleave",this.#t),_.classList.add("popupTriggerArea");for(let _ of i)_.container?.addEventListener("keydown",this.#e);this.#o.hidden=!0,g&&this.#S()}render(){if(this.#m)return;let n=this.#m=document.createElement("div");if(n.className="popup",this.#r){let o=n.style.outlineColor=vn.makeHexColor(...this.#r);CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?n.style.backgroundColor=`color-mix(in srgb, ${o} 30%, white)`:n.style.backgroundColor=vn.makeHexColor(...this.#r.map(s=>Math.floor(.7*(255-s)+s)))}let e=document.createElement("span");e.className="header";let i=document.createElement("h1");if(e.append(i),{dir:i.dir,str:i.textContent}=this.#_,n.append(e),this.#l){let o=document.createElement("span");o.classList.add("popupDate"),o.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),o.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#l.valueOf()})),e.append(o)}let r=this.#y;if(r)lO.render({xfaHtml:r,intent:"richText",div:n}),n.lastChild.classList.add("richText","popupContent");else{let o=this._formatContents(this.#s);n.append(o)}this.#o.append(n)}get#y(){let n=this.#f,e=this.#s;return n?.str&&(!e?.str||e.str===n.str)&&this.#f.html||null}get#C(){return this.#y?.attributes?.style?.fontSize||0}get#x(){return this.#y?.attributes?.style?.color||null}#w(n){let e=[],i={str:n,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:e}]}},r={style:{color:this.#x,fontSize:this.#C?`calc(${this.#C}px * var(--scale-factor))`:""}};for(let o of n.split(` `))e.push({name:"span",value:o,attributes:r});return i}_formatContents({str:n,dir:e}){let i=document.createElement("p");i.classList.add("popupContent"),i.dir=e;let r=n.split(/(?:\r\n?|\n)/);for(let o=0,a=r.length;o{o.key==="Enter"&&(r?o.metaKey:o.ctrlKey)&&this.#t()}),!e.popupRef&&this.hasPopupData?this._createPopup():i.classList.add("popupTriggerArea"),n.append(i),n}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}},r$=class{#e=null;#t=null;#i=new Map;constructor({div:n,accessibilityManager:e,annotationCanvasMap:i,annotationEditorUIManager:r,page:o,viewport:a}){this.div=n,this.#e=e,this.#t=i,this.page=o,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=r}hasEditableAnnotations(){return this.#i.size>0}#n(n,e){let i=n.firstChild||n;i.id=`${Ole}${e}`,this.div.append(n),this.#e?.moveElementInDOM(this.div,n,i,!1)}render(n){return Mt(this,null,function*(){let{annotations:e}=n,i=this.div;f1(i,this.viewport);let r=new Map,o={data:null,layer:i,linkService:n.linkService,downloadManager:n.downloadManager,imageResourcesPath:n.imageResourcesPath||"",renderForms:n.renderForms!==!1,svgFactory:new XT,annotationStorage:n.annotationStorage||new e2,enableScripting:n.enableScripting===!0,hasJSActions:n.hasJSActions,fieldObjects:n.fieldObjects,parent:this,elements:null};for(let a of e){if(a.noHTML)continue;let s=a.annotationType===Il.POPUP;if(s){let p=r.get(a.id);if(!p)continue;o.elements=p}else{let{width:p,height:g}=p0(a.rect);if(p<=0||g<=0)continue}o.data=a;let l=jG.create(o);if(!l.isRenderable)continue;if(!s&&a.popupRef){let p=r.get(a.popupRef);p?p.push(l):r.set(a.popupRef,[l])}let u=l.render();a.hidden&&(u.style.visibility="hidden"),this.#n(u,a.id),l._isEditable&&(this.#i.set(l.data.id,l),this._annotationEditorUIManager?.renderAnnotationElement(l))}this.#r()})}update({viewport:n}){let e=this.div;this.viewport=n,f1(e,{rotation:n.rotation}),this.#r(),e.hidden=!1}#r(){if(!this.#t)return;let n=this.div;for(let[e,i]of this.#t){let r=n.querySelector(`[data-annotation-id="${e}"]`);if(!r)continue;i.className="annotationContent";let{firstChild:o}=r;o?o.nodeName==="CANVAS"?o.replaceWith(i):o.classList.contains("annotationContent")?o.after(i):o.before(i):r.append(i)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#i.values())}getEditableAnnotation(n){return this.#i.get(n)}},VN=/\r\n?|\n/g,o$=class t extends na{#e;#t="";#i=`${this.id}-editor`;#n=null;#r;#o=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){let n=t.prototype,e=o=>o.isEmpty(),i=JT.TRANSLATE_SMALL,r=JT.TRANSLATE_BIG;return To(this,"_keyboardManager",new g1([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],n.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],n.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],n._translateEmpty,{args:[-i,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],n._translateEmpty,{args:[-r,0],checker:e}],[["ArrowRight","mac+ArrowRight"],n._translateEmpty,{args:[i,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],n._translateEmpty,{args:[r,0],checker:e}],[["ArrowUp","mac+ArrowUp"],n._translateEmpty,{args:[0,-i],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],n._translateEmpty,{args:[0,-r],checker:e}],[["ArrowDown","mac+ArrowDown"],n._translateEmpty,{args:[0,i],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],n._translateEmpty,{args:[0,r],checker:e}]]))}static _type="freetext";static _editorType=xo.FREETEXT;constructor(n){super(Gi(Ve({},n),{name:"freeTextEditor"})),this.#e=n.color||t._defaultColor||na._defaultLineColor,this.#r=n.fontSize||t._defaultFontSize}static initialize(n,e){na.initialize(n,e,{strings:["pdfjs-free-text-default-content"]});let i=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(i.getPropertyValue("--freetext-padding"))}static updateDefaultParams(n,e){switch(n){case _r.FREETEXT_SIZE:t._defaultFontSize=e;break;case _r.FREETEXT_COLOR:t._defaultColor=e;break}}updateParams(n,e){switch(n){case _r.FREETEXT_SIZE:this.#s(e);break;case _r.FREETEXT_COLOR:this.#l(e);break}}static get defaultPropertiesToUpdate(){return[[_r.FREETEXT_SIZE,t._defaultFontSize],[_r.FREETEXT_COLOR,t._defaultColor||na._defaultLineColor]]}get propertiesToUpdate(){return[[_r.FREETEXT_SIZE,this.#r],[_r.FREETEXT_COLOR,this.#e]]}#s(n){let e=r=>{this.editorDiv.style.fontSize=`calc(${r}px * var(--scale-factor))`,this.translate(0,-(r-this.#r)*this.parentScale),this.#r=r,this.#c()},i=this.#r;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#l(n){let e=r=>{this.#e=this.editorDiv.style.color=r},i=this.#e;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(n,e){this._uiManager.translateSelectedEditors(n,e,!0)}getInitialTranslation(){let n=this.parentScale;return[-t._internalPadding*n,-(t._internalPadding+this.#r)*n]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(this.isInEditMode())return;this.parent.setEditingState(!1),this.parent.updateToolbar(xo.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#n=new AbortController;let n=this._uiManager.combinedSignal(this.#n);this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:n}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:n}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:n}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:n}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:n})}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#i),this._isDraggable=!0,this.#n?.abort(),this.#n=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"))}focusin(n){this._focusEventsAllowed&&(super.focusin(n),n.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#u(){let n=[];this.editorDiv.normalize();for(let e of this.editorDiv.childNodes)n.push(t.#d(e));return n.join(` `)}#c(){let[n,e]=this.parentDimensions,i;if(this.isAttachedToDOM)i=this.div.getBoundingClientRect();else{let{currentLayer:r,div:o}=this,a=o.style.display,s=o.classList.contains("hidden");o.classList.remove("hidden"),o.style.display="hidden",r.div.append(this.div),i=o.getBoundingClientRect(),o.remove(),o.style.display=a,o.classList.toggle("hidden",s)}this.rotation%180===this.parentRotation%180?(this.width=i.width/n,this.height=i.height/e):(this.width=i.height/n,this.height=i.width/e),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();let n=this.#t,e=this.#t=this.#u().trimEnd();if(n===e)return;let i=r=>{if(this.#t=r,!r){this.remove();return}this.#a(),this._uiManager.rebuild(this),this.#c()};this.addCommands({cmd:()=>{i(e)},undo:()=>{i(n)},mustExec:!1}),this.#c()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(n){this.enterInEditMode()}keydown(n){n.target===this.div&&n.key==="Enter"&&(this.enterInEditMode(),n.preventDefault())}editorDivKeydown(n){t._keyboardManager.exec(this,n)}editorDivFocus(n){this.isEditing=!0}editorDivBlur(n){this.isEditing=!1}editorDivInput(n){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let n,e;this.width&&(n=this.x,e=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#i),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text"),this.enableEditing(),na._l10nPromise.get("pdfjs-free-text-default-content").then(r=>this.editorDiv?.setAttribute("default-content",r)),this.editorDiv.contentEditable=!0;let{style:i}=this.editorDiv;if(i.fontSize=`calc(${this.#r}px * var(--scale-factor))`,i.color=this.#e,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),ZN(this,this.div,["dblclick","keydown"]),this.width){let[r,o]=this.parentDimensions;if(this.annotationElementId){let{position:a}=this.#o,[s,l]=this.getInitialTranslation();[s,l]=this.pageTranslationToScreen(s,l);let[u,p]=this.pageDimensions,[g,_]=this.pageTranslation,v,y;switch(this.rotation){case 0:v=n+(a[0]-g)/u,y=e+this.height-(a[1]-_)/p;break;case 90:v=n+(a[0]-g)/u,y=e-(a[1]-_)/p,[s,l]=[l,-s];break;case 180:v=n-this.width+(a[0]-g)/u,y=e-(a[1]-_)/p,[s,l]=[-s,-l];break;case 270:v=n+(a[0]-g-this.height*p)/u,y=e+(a[1]-_-this.width*u)/p,[s,l]=[-l,s];break}this.setAt(v*r,y*o,s,l)}else this.setAt(n*r,e*o,this.width*r,this.height*o);this.#a(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#d(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(VN,"")}editorDivPaste(n){let e=n.clipboardData||window.clipboardData,{types:i}=e;if(i.length===1&&i[0]==="text/plain")return;n.preventDefault();let r=t.#h(e.getData("text")||"").replaceAll(VN,` `);if(!r)return;let o=window.getSelection();if(!o.rangeCount)return;this.editorDiv.normalize(),o.deleteFromDocument();let a=o.getRangeAt(0);if(!r.includes(` `)){a.insertNode(document.createTextNode(r)),this.editorDiv.normalize(),o.collapseToStart();return}let{startContainer:s,startOffset:l}=a,u=[],p=[];if(s.nodeType===Node.TEXT_NODE){let v=s.parentElement;if(p.push(s.nodeValue.slice(l).replaceAll(VN,"")),v!==this.editorDiv){let y=u;for(let x of this.editorDiv.childNodes){if(x===v){y=p;continue}y.push(t.#d(x))}}u.push(s.nodeValue.slice(0,l).replaceAll(VN,""))}else if(s===this.editorDiv){let v=u,y=0;for(let x of this.editorDiv.childNodes)y++===l&&(v=p),v.push(t.#d(x))}this.#t=`${u.join(` `)}${r}${p.join(` `)}`,this.#a();let g=new Range,_=u.reduce((v,y)=>v+y.length,0);for(let{firstChild:v}of this.editorDiv.childNodes)if(v.nodeType===Node.TEXT_NODE){let y=v.nodeValue.length;if(_<=y){g.setStart(v,_),g.setEnd(v,_);break}_-=y}o.removeAllRanges(),o.addRange(g)}#a(){if(this.editorDiv.replaceChildren(),!!this.#t)for(let n of this.#t.split(` `)){let e=document.createElement("div");e.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(e)}}#m(){return this.#t.replaceAll("\xA0"," ")}static#h(n){return n.replaceAll(" ","\xA0")}get contentDiv(){return this.editorDiv}static deserialize(n,e,i){let r=null;if(n instanceof uO){let{data:{defaultAppearanceData:{fontSize:a,fontColor:s},rect:l,rotation:u,id:p},textContent:g,textPosition:_,parent:{page:{pageNumber:v}}}=n;if(!g||g.length===0)return null;r=n={annotationType:xo.FREETEXT,color:Array.from(s),fontSize:a,value:g.join(` `),position:_,pageIndex:v-1,rect:l.slice(0),rotation:u,id:p,deleted:!1}}let o=super.deserialize(n,e,i);return o.#r=n.fontSize,o.#e=vn.makeHexColor(...n.color),o.#t=t.#h(n.value),o.annotationElementId=n.id||null,o.#o=r,o}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};let e=t._internalPadding*this.parentScale,i=this.getRect(e,e),r=na._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#e),o={annotationType:xo.FREETEXT,color:r,fontSize:this.#r,value:this.#m(),pageIndex:this.pageIndex,rect:i,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?o:this.annotationElementId&&!this.#p(o)?null:(o.id=this.annotationElementId,o)}#p(n){let{value:e,fontSize:i,color:r,pageIndex:o}=this.#o;return this._hasBeenMoved||n.value!==e||n.fontSize!==i||n.color.some((a,s)=>a!==r[s])||n.pageIndex!==o}renderAnnotationElement(n){let e=super.renderAnnotationElement(n);if(this.deleted)return e;let{style:i}=e;i.fontSize=`calc(${this.#r}px * var(--scale-factor))`,i.color=this.#e,e.replaceChildren();for(let o of this.#t.split(` `)){let a=document.createElement("div");a.append(o?document.createTextNode(o):document.createElement("br")),e.append(a)}let r=t._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(r,r),popupContent:this.#t}),e}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}},fO=class{#e;#t=[];#i=[];constructor(n,e=0,i=0,r=!0){let o=1/0,a=-1/0,s=1/0,l=-1/0,p=10**-4;for(let{x:C,y:D,width:A,height:M}of n){let R=Math.floor((C-e)/p)*p,j=Math.ceil((C+A+e)/p)*p,K=Math.floor((D-e)/p)*p,F=Math.ceil((D+M+e)/p)*p,V=[R,K,F,!0],Q=[j,K,F,!1];this.#t.push(V,Q),o=Math.min(o,R),a=Math.max(a,j),s=Math.min(s,K),l=Math.max(l,F)}let g=a-o+2*i,_=l-s+2*i,v=o-i,y=s-i,x=this.#t.at(r?-1:-2),I=[x[0],x[2]];for(let C of this.#t){let[D,A,M]=C;C[0]=(D-v)/g,C[1]=(A-y)/_,C[2]=(M-y)/_}this.#e={x:v,y,width:g,height:_,lastPoint:I}}getOutlines(){this.#t.sort((e,i)=>e[0]-i[0]||e[1]-i[1]||e[2]-i[2]);let n=[];for(let e of this.#t)e[3]?(n.push(...this.#l(e)),this.#o(e)):(this.#s(e),n.push(...this.#l(e)));return this.#n(n)}#n(n){let e=[],i=new Set;for(let a of n){let[s,l,u]=a;e.push([s,l,a],[s,u,a])}e.sort((a,s)=>a[1]-s[1]||a[0]-s[0]);for(let a=0,s=e.length;a0;){let a=i.values().next().value,[s,l,u,p,g]=a;i.delete(a);let _=s,v=l;for(o=[s,u],r.push(o);;){let y;if(i.has(p))y=p;else if(i.has(g))y=g;else break;i.delete(y),[s,l,u,p,g]=y,_!==s&&(o.push(_,v,s,v===l?l:u),_=s),v=v===l?u:l}o.push(_,v)}return new a$(r,this.#e)}#r(n){let e=this.#i,i=0,r=e.length-1;for(;i<=r;){let o=i+r>>1,a=e[o][0];if(a===n)return o;a=0;r--){let[o,a]=this.#i[r];if(o!==n)break;if(o===n&&a===e){this.#i.splice(r,1);return}}}#l(n){let[e,i,r]=n,o=[[e,i,r]],a=this.#r(r);for(let s=0;s=l){if(v>u)o[p][1]=u;else{if(g===1)return[];o.splice(p,1),p--,g--}continue}o[p][2]=l,v>u&&o.push([e,u,v])}}}return o}},gO=class{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(n,e){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof o2}},a$=class extends gO{#e;#t;constructor(n,e){super(),this.#t=n,this.#e=e}toSVGPath(){let n=[];for(let e of this.#t){let[i,r]=e;n.push(`M${i} ${r}`);for(let o=2;o=6;y-=6)isNaN(e[y])?v.push(`L${e[y+4]} ${e[y+5]}`):v.push(`C${e[y]} ${e[y+1]} ${e[y+2]} ${e[y+3]} ${e[y+4]} ${e[y+5]}`);return v.push(`L${e[4]} ${e[5]} Z`),v.join(" ")}getOutlines(){let n=this.#r,e=this.#t,i=this.#o,r=i.subarray(4,6),o=i.subarray(16,18),[a,s,l,u]=this.#e,p=new Float64Array((this.#m?.length??0)+2);for(let C=0,D=p.length-2;C=6;C-=6)for(let D=0;D<6;D+=2){if(isNaN(e[C+D])){x[I]=x[I+1]=NaN,I+=2;continue}x[I]=e[C+D],x[I+1]=e[C+D+1],I+=2}return x.set([NaN,NaN,NaN,NaN,e[4],e[5]],I),new o2(x,p,this.#e,this.#d,this.#i,this.#n)}},o2=class extends gO{#e;#t=null;#i;#n;#r;#o;#s;constructor(n,e,i,r,o,a){super(),this.#s=n,this.#r=e,this.#e=i,this.#o=r,this.#i=o,this.#n=a,this.#c(a);let{x:s,y:l,width:u,height:p}=this.#t;for(let g=0,_=n.length;g<_;g+=2)n[g]=(n[g]-s)/u,n[g+1]=(n[g+1]-l)/p;for(let g=0,_=e.length;g<_;g+=2)e[g]=(e[g]-s)/u,e[g+1]=(e[g+1]-l)/p}toSVGPath(){let n=[`M${this.#s[4]} ${this.#s[5]}`];for(let e=6,i=this.#s.length;e-1?(this.#a=!0,this.#y(n),this.#D()):(this.#e=n.anchorNode,this.#t=n.anchorOffset,this.#s=n.focusNode,this.#l=n.focusOffset,this.#v(),this.#D(),this.rotate(this.rotation))}get telemetryInitialData(){return{action:"added",type:this.#a?"free_highlight":"highlight",color:this._uiManager.highlightColorNames.get(this.color),thickness:this.#_,methodOfCreation:this.#g}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.highlightColorNames.get(this.color)}}static computeTelemetryFinalData(n){return{numberOfColors:n.get("color").size}}#v(){let n=new fO(this.#i,.001);this.#c=n.getOutlines(),{x:this.x,y:this.y,width:this.width,height:this.height}=this.#c.box;let e=new fO(this.#i,.0025,.001,this._uiManager.direction==="ltr");this.#o=e.getOutlines();let{lastPoint:i}=this.#o.box;this.#m=[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height]}#y({highlightOutlines:n,highlightId:e,clipPathId:i}){this.#c=n;let r=1.5;if(this.#o=n.getNewOutline(this.#_/2+r,.0025),e>=0)this.#d=e,this.#n=i,this.parent.drawLayer.finalizeLine(e,n),this.#p=this.parent.drawLayer.highlightOutline(this.#o);else if(this.parent){let p=this.parent.viewport.rotation;this.parent.drawLayer.updateLine(this.#d,n),this.parent.drawLayer.updateBox(this.#d,t.#S(this.#c.box,(p-this.rotation+360)%360)),this.parent.drawLayer.updateLine(this.#p,this.#o),this.parent.drawLayer.updateBox(this.#p,t.#S(this.#o.box,p))}let{x:o,y:a,width:s,height:l}=n.box;switch(this.rotation){case 0:this.x=o,this.y=a,this.width=s,this.height=l;break;case 90:{let[p,g]=this.parentDimensions;this.x=a,this.y=1-o,this.width=s*g/p,this.height=l*p/g;break}case 180:this.x=1-o,this.y=1-a,this.width=s,this.height=l;break;case 270:{let[p,g]=this.parentDimensions;this.x=1-a,this.y=o,this.width=s*g/p,this.height=l*p/g;break}}let{lastPoint:u}=this.#o.box;this.#m=[(u[0]-o)/s,(u[1]-a)/l]}static initialize(n,e){na.initialize(n,e),t._defaultColor||=e.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(n,e){switch(n){case _r.HIGHLIGHT_DEFAULT_COLOR:t._defaultColor=e;break;case _r.HIGHLIGHT_THICKNESS:t._defaultThickness=e;break}}translateInPage(n,e){}get toolbarPosition(){return this.#m}updateParams(n,e){switch(n){case _r.HIGHLIGHT_COLOR:this.#C(e);break;case _r.HIGHLIGHT_THICKNESS:this.#x(e);break}}static get defaultPropertiesToUpdate(){return[[_r.HIGHLIGHT_DEFAULT_COLOR,t._defaultColor],[_r.HIGHLIGHT_THICKNESS,t._defaultThickness]]}get propertiesToUpdate(){return[[_r.HIGHLIGHT_COLOR,this.color||t._defaultColor],[_r.HIGHLIGHT_THICKNESS,this.#_||t._defaultThickness],[_r.HIGHLIGHT_FREE,this.#a]]}#C(n){let e=r=>{this.color=r,this.parent?.drawLayer.changeColor(this.#d,r),this.#r?.updateColor(r)},i=this.color;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.highlightColorNames.get(n)},!0)}#x(n){let e=this.#_,i=r=>{this.#_=r,this.#w(r)};this.addCommands({cmd:i.bind(this,n),undo:i.bind(this,e),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:n},!0)}addEditToolbar(){return Mt(this,null,function*(){let n=yield ete(t.prototype,this,"addEditToolbar").call(this);return n?(this._uiManager.highlightColors&&(this.#r=new vO({editor:this}),n.addColorPicker(this.#r)),n):null})}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#M())}getBaseTranslation(){return[0,0]}getRect(n,e){return super.getRect(n,e,this.#M())}onceAdded(){this.parent.addUndoableEditor(this),this.div.focus()}remove(){this.#k(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#D(),this.isAttachedToDOM||this.parent.add(this)))}setParent(n){let e=!1;this.parent&&!n?this.#k():n&&(this.#D(n),e=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(n),this.show(this._isVisible),e&&this.select()}#w(n){if(!this.#a)return;this.#y({highlightOutlines:this.#c.getNewOutline(n/2)}),this.fixAndSetPosition();let[e,i]=this.parentDimensions;this.setDims(this.width*e,this.height*i)}#k(){this.#d===null||!this.parent||(this.parent.drawLayer.remove(this.#d),this.#d=null,this.parent.drawLayer.remove(this.#p),this.#p=null)}#D(n=this.parent){this.#d===null&&({id:this.#d,clipPathId:this.#n}=n.drawLayer.highlight(this.#c,this.color,this.#h),this.#p=n.drawLayer.highlightOutline(this.#o),this.#u&&(this.#u.style.clipPath=this.#n))}static#S({x:n,y:e,width:i,height:r},o){switch(o){case 90:return{x:1-e-r,y:n,width:r,height:i};case 180:return{x:1-n-i,y:1-e-r,width:i,height:r};case 270:return{x:e,y:1-n-i,width:r,height:i}}return{x:n,y:e,width:i,height:r}}rotate(n){let{drawLayer:e}=this.parent,i;this.#a?(n=(n-this.rotation+360)%360,i=t.#S(this.#c.box,n)):i=t.#S(this,n),e.rotate(this.#d,n),e.rotate(this.#p,n),e.updateBox(this.#d,i),e.updateBox(this.#p,t.#S(this.#o.box,n))}render(){if(this.div)return this.div;let n=super.render();this.#f&&(n.setAttribute("aria-label",this.#f),n.setAttribute("role","mark")),this.#a?n.classList.add("free"):this.div.addEventListener("keydown",this.#T.bind(this),{signal:this._uiManager._signal});let e=this.#u=document.createElement("div");n.append(e),e.setAttribute("aria-hidden","true"),e.className="internal",e.style.clipPath=this.#n;let[i,r]=this.parentDimensions;return this.setDims(this.width*i,this.height*r),ZN(this,this.#u,["pointerover","pointerleave"]),this.enableEditing(),n}pointerover(){this.parent.drawLayer.addClass(this.#p,"hovered")}pointerleave(){this.parent.drawLayer.removeClass(this.#p,"hovered")}#T(n){t._keyboardManager.exec(this,n)}_moveCaret(n){switch(this.parent.unselect(this),n){case 0:case 2:this.#I(!0);break;case 1:case 3:this.#I(!1);break}}#I(n){if(!this.#e)return;let e=window.getSelection();n?e.setPosition(this.#e,this.#t):e.setPosition(this.#s,this.#l)}select(){super.select(),this.#p&&(this.parent?.drawLayer.removeClass(this.#p,"hovered"),this.parent?.drawLayer.addClass(this.#p,"selected"))}unselect(){super.unselect(),this.#p&&(this.parent?.drawLayer.removeClass(this.#p,"selected"),this.#a||this.#I(!1))}get _mustFixPosition(){return!this.#a}show(n=this._isVisible){super.show(n),this.parent&&(this.parent.drawLayer.show(this.#d,n),this.parent.drawLayer.show(this.#p,n))}#M(){return this.#a?this.rotation:0}#P(){if(this.#a)return null;let[n,e]=this.pageDimensions,[i,r]=this.pageTranslation,o=this.#i,a=new Float32Array(o.length*8),s=0;for(let{x:l,y:u,width:p,height:g}of o){let _=l*n+i,v=(1-u-g)*e+r;a[s]=a[s+4]=_,a[s+1]=a[s+3]=v,a[s+2]=a[s+6]=_+p*n,a[s+5]=a[s+7]=v+g*e,s+=8}return a}#E(n){return this.#c.serialize(n,this.#M())}static startHighlighting(n,e,{target:i,x:r,y:o}){let{x:a,y:s,width:l,height:u}=i.getBoundingClientRect(),p=new AbortController,g=n.combinedSignal(p),_=y=>{y.preventDefault(),y.stopPropagation()},v=y=>{p.abort(),this.#A(n,y)};window.addEventListener("blur",v,{signal:g}),window.addEventListener("pointerup",v,{signal:g}),window.addEventListener("pointerdown",_,{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",wp,{signal:g}),i.addEventListener("pointermove",this.#b.bind(this,n),{signal:g}),this._freeHighlight=new _O({x:r,y:o},[a,s,l,u],n.scale,this._defaultThickness/2,e,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=n.drawLayer.highlight(this._freeHighlight,this._defaultColor,this._defaultOpacity,!0)}static#b(n,e){this._freeHighlight.add(e)&&n.drawLayer.updatePath(this._freeHighlightId,this._freeHighlight)}static#A(n,e){this._freeHighlight.isEmpty()?n.drawLayer.removeFreeHighlight(this._freeHighlightId):n.createAndAddNewEditor(e,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static deserialize(n,e,i){let r=super.deserialize(n,e,i),{rect:[o,a,s,l],color:u,quadPoints:p}=n;r.color=vn.makeHexColor(...u),r.#h=n.opacity;let[g,_]=r.pageDimensions;r.width=(s-o)/g,r.height=(l-a)/_;let v=r.#i=[];for(let y=0;y{this.thickness=r,this.#j()},i=this.thickness;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#p(n){let e=r=>{this.color=r,this.#S()},i=this.color;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#f(n){let e=r=>{this.opacity=r,this.#S()};n/=100;let i=this.opacity;this.addCommands({cmd:e.bind(this,n),undo:e.bind(this,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:_r.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(this.#P(),this.#E()),this.isAttachedToDOM||(this.parent.add(this),this.#b()),this.#j()))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#i&&(clearTimeout(this.#i),this.#i=null),this.#u?.disconnect(),this.#u=null,super.remove())}setParent(n){!this.parent&&n?this._uiManager.removeShouldRescale(this):this.parent&&n===null&&this._uiManager.addShouldRescale(this),super.setParent(n)}onScaleChanging(){let[n,e]=this.parentDimensions,i=this.width*n,r=this.height*e;this.setDimensions(i,r)}enableEditMode(){this.#r||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.#T())}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.#I())}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}#_(){let{parentRotation:n,parentDimensions:[e,i]}=this;switch(n){case 90:return[0,i,i,e];case 180:return[e,i,e,i];case 270:return[e,0,i,e];default:return[0,0,e,i]}}#g(){let{ctx:n,color:e,opacity:i,thickness:r,parentScale:o,scaleFactor:a}=this;n.lineWidth=r*o/a,n.lineCap="round",n.lineJoin="round",n.miterLimit=10,n.strokeStyle=`${e}${FOe(i)}`}#v(n,e){this.canvas.addEventListener("contextmenu",wp,{signal:this._uiManager._signal}),this.#I(),this.#o=new AbortController;let i=this._uiManager.combinedSignal(this.#o);this.canvas.addEventListener("pointerleave",this.canvasPointerleave.bind(this),{signal:i}),this.canvas.addEventListener("pointermove",this.canvasPointermove.bind(this),{signal:i}),this.canvas.addEventListener("pointerup",this.canvasPointerup.bind(this),{signal:i}),this.isEditing=!0,this.#l||(this.#l=!0,this.#b(),this.thickness||=t._defaultThickness,this.color||=t._defaultColor||na._defaultLineColor,this.opacity??=t._defaultOpacity),this.currentPath.push([n,e]),this.#s=!1,this.#g(),this.#m=()=>{this.#w(),this.#m&&window.requestAnimationFrame(this.#m)},window.requestAnimationFrame(this.#m)}#y(n,e){let[i,r]=this.currentPath.at(-1);if(this.currentPath.length>1&&n===i&&e===r)return;let o=this.currentPath,a=this.#n;if(o.push([n,e]),this.#s=!0,o.length<=2){a.moveTo(...o[0]),a.lineTo(n,e);return}o.length===3&&(this.#n=a=new Path2D,a.moveTo(...o[0])),this.#k(a,...o.at(-3),...o.at(-2),n,e)}#C(){if(this.currentPath.length===0)return;let n=this.currentPath.at(-1);this.#n.lineTo(...n)}#x(n,e){this.#m=null,n=Math.min(Math.max(n,0),this.canvas.width),e=Math.min(Math.max(e,0),this.canvas.height),this.#y(n,e),this.#C();let i;if(this.currentPath.length!==1)i=this.#D();else{let l=[n,e];i=[[l,l.slice(),l.slice(),l]]}let r=this.#n,o=this.currentPath;this.currentPath=[],this.#n=new Path2D;let a=()=>{this.allRawPaths.push(o),this.paths.push(i),this.bezierPath2D.push(r),this._uiManager.rebuild(this)},s=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(this.#P(),this.#E()),this.#j())};this.addCommands({cmd:a,undo:s,mustExec:!0})}#w(){if(!this.#s)return;this.#s=!1;let n=Math.ceil(this.thickness*this.parentScale),e=this.currentPath.slice(-3),i=e.map(p=>p[0]),r=e.map(p=>p[1]),o=Math.min(...i)-n,a=Math.max(...i)+n,s=Math.min(...r)-n,l=Math.max(...r)+n,{ctx:u}=this;u.save(),u.clearRect(0,0,this.canvas.width,this.canvas.height);for(let p of this.bezierPath2D)u.stroke(p);u.stroke(this.#n),u.restore()}#k(n,e,i,r,o,a,s){let l=(e+r)/2,u=(i+o)/2,p=(r+a)/2,g=(o+s)/2;n.bezierCurveTo(l+2*(r-l)/3,u+2*(o-u)/3,p+2*(r-p)/3,g+2*(o-g)/3,p,g)}#D(){let n=this.currentPath;if(n.length<=2)return[[n[0],n[0],n.at(-1),n.at(-1)]];let e=[],i,[r,o]=n[0];for(i=1;i{this.#i=null,this.canvas.removeEventListener("contextmenu",wp)},10),this.#x(n.offsetX,n.offsetY),this.addToAnnotationStorage(),this.setInBackground()}#P(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",this.canvas.setAttribute("data-l10n-id","pdfjs-ink-canvas"),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#E(){this.#u=new ResizeObserver(n=>{let e=n[0].contentRect;e.width&&e.height&&this.setDimensions(e.width,e.height)}),this.#u.observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{this.#u?.disconnect(),this.#u=null},{once:!0})}get isResizable(){return!this.isEmpty()&&this.#r}render(){if(this.div)return this.div;let n,e;this.width&&(n=this.x,e=this.y),super.render(),this.div.setAttribute("data-l10n-id","pdfjs-ink");let[i,r,o,a]=this.#_();if(this.setAt(i,r,0,0),this.setDims(o,a),this.#P(),this.width){let[s,l]=this.parentDimensions;this.setAspectRatio(this.width*s,this.height*l),this.setAt(n*s,e*l,this.width*s,this.height*l),this.#l=!0,this.#b(),this.setDims(this.width*s,this.height*l),this.#S(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#E(),this.div}#b(){if(!this.#l)return;let[n,e]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*n),this.canvas.height=Math.ceil(this.height*e),this.#F()}setDimensions(n,e){let i=Math.round(n),r=Math.round(e);if(this.#d===i&&this.#a===r)return;this.#d=i,this.#a=r,this.canvas.style.visibility="hidden";let[o,a]=this.parentDimensions;this.width=n/o,this.height=e/a,this.fixAndSetPosition(),this.#r&&this.#A(n,e),this.#b(),this.#S(),this.canvas.style.visibility="visible",this.fixDims()}#A(n,e){let i=this.#V(),r=(n-i)/this.#t,o=(e-i)/this.#e;this.scaleFactor=Math.min(r,o)}#F(){let n=this.#V()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+n,this.translationY*this.scaleFactor+n)}static#O(n){let e=new Path2D;for(let i=0,r=n.length;i`image/${e}`))}static get supportedTypesStr(){return To(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(n){return this.supportedTypes.includes(n)}static paste(n,e){e.pasteEditor(xo.STAMP,{bitmapFile:n.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(n){let e=n.get("hasAltText");return{hasAltText:e.get(!0)??0,hasNoAltText:e.get(!1)??0}}#a(n,e=!1){if(!n){this.remove();return}this.#e=n.bitmap,e||(this.#t=n.id,this.#c=n.isSvg),n.file&&(this.#o=n.file.name),this.#p()}#m(){if(this.#i=null,this._uiManager.enableWaiting(!1),!!this.#s){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._editToolbar.hide(),this._uiManager.editAltText(this,!0);return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}mlGuessAltText(n=null,e=!0){return Mt(this,null,function*(){if(this.hasAltTextData())return null;let{mlManager:i}=this._uiManager;if(!i)throw new Error("No ML.");if(!(yield i.isEnabledFor("altText")))throw new Error("ML isn't enabled for alt text.");let{data:r,width:o,height:a}=n||this.copyCanvas(null,!0).imageData,s=yield i.guess({name:"altText",request:{data:r,width:o,height:a,channels:r.length/(o*a)}});if(!s)throw new Error("No response from the AI service.");if(s.error)throw new Error("Error from the AI service.");if(s.cancel)return null;if(!s.output)throw new Error("No valid response from the AI service.");let l=s.output;return yield this.setGuessedAltText(l),e&&!this.hasAltTextData()&&(this.altTextData={alt:l,decorative:!1}),l})}#h(){if(this.#t){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#t).then(i=>this.#a(i,!0)).finally(()=>this.#m());return}if(this.#n){let i=this.#n;this.#n=null,this._uiManager.enableWaiting(!0),this.#i=this._uiManager.imageManager.getFromUrl(i).then(r=>this.#a(r)).finally(()=>this.#m());return}if(this.#r){let i=this.#r;this.#r=null,this._uiManager.enableWaiting(!0),this.#i=this._uiManager.imageManager.getFromFile(i).then(r=>this.#a(r)).finally(()=>this.#m());return}let n=document.createElement("input");n.type="file",n.accept=t.supportedTypesStr;let e=this._uiManager._signal;this.#i=new Promise(i=>{n.addEventListener("change",()=>Mt(this,null,function*(){if(!n.files||n.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);let r=yield this._uiManager.imageManager.getFromFile(n.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#a(r)}i()}),{signal:e}),n.addEventListener("cancel",()=>{this.remove(),i()},{signal:e})}).finally(()=>this.#m()),n.click()}remove(){this.#t&&(this.#e=null,this._uiManager.imageManager.deleteId(this.#t),this.#s?.remove(),this.#s=null,this.#l?.disconnect(),this.#l=null,this.#u&&(clearTimeout(this.#u),this.#u=null)),super.remove()}rebuild(){if(!this.parent){this.#t&&this.#h();return}super.rebuild(),this.div!==null&&(this.#t&&this.#s===null&&this.#h(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#i||this.#e||this.#n||this.#r||this.#t)}get isResizable(){return!0}render(){if(this.div)return this.div;let n,e;if(this.width&&(n=this.x,e=this.y),super.render(),this.div.hidden=!0,this.addAltTextButton(),this.#e?this.#p():this.#h(),this.width){let[i,r]=this.parentDimensions;this.setAt(n*i,e*r,this.width*i,this.height*r)}return this.div}#p(){let{div:n}=this,{width:e,height:i}=this.#e,[r,o]=this.pageDimensions,a=.75;if(this.width)e=this.width*r,i=this.height*o;else if(e>a*r||i>a*o){let p=Math.min(a*r/e,a*o/i);e*=p,i*=p}let[s,l]=this.parentDimensions;this.setDims(e*s/r,i*l/o),this._uiManager.enableWaiting(!1);let u=this.#s=document.createElement("canvas");n.append(u),(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow)&&(n.hidden=!1),this.#g(e,i),this.#y(),this.#d||(this.parent.addUndoableEditor(this),this.#d=!0),this._reportTelemetry({action:"inserted_image"}),this.#o&&u.setAttribute("aria-label",this.#o)}copyCanvas(n,e=!1){n||(n=224);let{width:i,height:r}=this.#e,o=document.createElement("canvas"),a=this.#e,s=i,l=r;if(i>n||r>n){let x=Math.min(n/i,n/r);s=Math.floor(i*x),l=Math.floor(r*x),this.#c||(a=this.#_(s,l))}o.width=s,o.height=l;let u=o.getContext("2d");u.filter=this._uiManager.hcmFilter;let p="white",g="#cfcfd8";this._uiManager.hcmFilter!=="none"?g="black":window.matchMedia?.("(prefers-color-scheme: dark)").matches&&(p="#8f8f9d",g="#42414d");let _=15,v=new OffscreenCanvas(_*2,_*2),y=v.getContext("2d");if(y.fillStyle=p,y.fillRect(0,0,_*2,_*2),y.fillStyle=g,y.fillRect(0,0,_,_),y.fillRect(_,_,_,_),u.fillStyle=u.createPattern(v,"repeat"),u.fillRect(0,0,s,l),e){let x=new OffscreenCanvas(s,l),I=x.getContext("2d",{willReadFrequently:!0});I.drawImage(a,0,0,a.width,a.height,0,0,s,l);let C=I.getImageData(0,0,s,l).data;return u.drawImage(x,0,0),{canvas:o,imageData:{width:s,height:l,data:C}}}return u.drawImage(a,0,0,a.width,a.height,0,0,s,l),{canvas:o,imageData:null}}#f(n,e){let[i,r]=this.parentDimensions;this.width=n/i,this.height=e/r,this.setDims(n,e),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,this.#u!==null&&clearTimeout(this.#u);let o=200;this.#u=setTimeout(()=>{this.#u=null,this.#g(n,e)},o)}#_(n,e){let{width:i,height:r}=this.#e,o=i,a=r,s=this.#e;for(;o>2*n||a>2*e;){let l=o,u=a;o>2*n&&(o=o>=16384?Math.floor(o/2)-1:Math.ceil(o/2)),a>2*e&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));let p=new OffscreenCanvas(o,a);p.getContext("2d").drawImage(s,0,0,l,u,0,0,o,a),s=p.transferToImageBitmap()}return s}#g(n,e){n=Math.ceil(n),e=Math.ceil(e);let i=this.#s;if(!i||i.width===n&&i.height===e)return;i.width=n,i.height=e;let r=this.#c?this.#e:this.#_(n,e),o=i.getContext("2d");o.filter=this._uiManager.hcmFilter,o.drawImage(r,0,0,r.width,r.height,0,0,n,e)}getImageForAltText(){return this.#s}#v(n){if(n){if(this.#c){let r=this._uiManager.imageManager.getSvgUrl(this.#t);if(r)return r}let e=document.createElement("canvas");return{width:e.width,height:e.height}=this.#e,e.getContext("2d").drawImage(this.#e,0,0),e.toDataURL()}if(this.#c){let[e,i]=this.pageDimensions,r=Math.round(this.width*e*vv.PDF_TO_CSS_UNITS),o=Math.round(this.height*i*vv.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(r,o);return a.getContext("2d").drawImage(this.#e,0,0,this.#e.width,this.#e.height,0,0,r,o),a.transferToImageBitmap()}return structuredClone(this.#e)}#y(){this._uiManager._signal&&(this.#l=new ResizeObserver(n=>{let e=n[0].contentRect;e.width&&e.height&&this.#f(e.width,e.height)}),this.#l.observe(this.div),this._uiManager._signal.addEventListener("abort",()=>{this.#l?.disconnect(),this.#l=null},{once:!0}))}static deserialize(n,e,i){if(n instanceof hO)return null;let r=super.deserialize(n,e,i),{rect:o,bitmapUrl:a,bitmapId:s,isSvg:l,accessibilityData:u}=n;s&&i.imageManager.isValidId(s)?r.#t=s:r.#n=a,r.#c=l;let[p,g]=r.pageDimensions;return r.width=(o[2]-o[0])/p,r.height=(o[3]-o[1])/g,u&&(r.altTextData=u),r}serialize(n=!1,e=null){if(this.isEmpty())return null;let i={annotationType:xo.STAMP,bitmapId:this.#t,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#c,structTreeParentId:this._structTreeParentId};if(n)return i.bitmapUrl=this.#v(!0),i.accessibilityData=this.serializeAltText(!0),i;let{decorative:r,altText:o}=this.serializeAltText(!1);if(!r&&o&&(i.accessibilityData={type:"Figure",alt:o}),e===null)return i;e.stamps||=new Map;let a=this.#c?(i.rect[2]-i.rect[0])*(i.rect[3]-i.rect[1]):null;if(!e.stamps.has(this.#t))e.stamps.set(this.#t,{area:a,serialized:i}),i.bitmap=this.#v(!1);else if(this.#c){let s=e.stamps.get(this.#t);a>s.area&&(s.area=a,s.serialized.bitmap.close(),s.serialized.bitmap=this.#v(!1))}return i}},lLe=(()=>{class t{#e;#t=!1;#i=null;#n=null;#r=null;#o=new Map;#s=!1;#l=!1;#u=!1;#c=null;#d=null;#a;static _initialized=!1;static#m=new Map([o$,s$,l$,bO].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:i,div:r,accessibilityManager:o,annotationLayer:a,drawLayer:s,textLayer:l,viewport:u,l10n:p}){let g=[...t.#m.values()];if(!t._initialized){t._initialized=!0;for(let _ of g)_.initialize(p,e)}e.registerEditorTypes(g),this.#a=e,this.pageIndex=i,this.div=r,this.#e=o,this.#i=a,this.viewport=u,this.#c=l,this.drawLayer=s,this.#a.addLayer(this)}get isEmpty(){return this.#o.size===0}get isInvisible(){return this.isEmpty&&this.#a.getMode()===xo.NONE}updateToolbar(e){this.#a.updateToolbar(e)}updateMode(e=this.#a.getMode()){switch(this.#g(),e){case xo.NONE:this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case xo.INK:this.addInkEditorIfNeeded(!1),this.disableTextSelection(),this.togglePointerEvents(!0),this.disableClick();break;case xo.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);let{classList:i}=this.div;for(let r of t.#m.values())i.toggle(`${r._type}Editing`,e===r._editorType);this.div.hidden=!1}hasTextLayer(e){return e===this.#c?.div}addInkEditorIfNeeded(e){if(this.#a.getMode()!==xo.INK)return;if(!e){for(let r of this.#o.values())if(r.isEmpty()){r.setInBackground();return}}this.createAndAddNewEditor({offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(e){this.#a.setEditingState(e)}addCommands(e){this.#a.addCommands(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#i?.div.classList.toggle("disabled",!e)}enable(){this.div.tabIndex=0,this.togglePointerEvents(!0);let e=new Set;for(let r of this.#o.values())r.enableEditing(),r.show(!0),r.annotationElementId&&(this.#a.removeChangedExistingAnnotation(r),e.add(r.annotationElementId));if(!this.#i)return;let i=this.#i.getEditableAnnotations();for(let r of i){if(r.hide(),this.#a.isDeletedAnnotationElement(r.data.id)||e.has(r.data.id))continue;let o=this.deserialize(r);o&&(this.addOrRebuild(o),o.enableEditing())}}disable(){this.#u=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1);let e=new Map,i=new Map;for(let o of this.#o.values())if(o.disableEditing(),!!o.annotationElementId){if(o.serialize()!==null){e.set(o.annotationElementId,o);continue}else i.set(o.annotationElementId,o);this.getEditableAnnotation(o.annotationElementId)?.show(),o.remove()}if(this.#i){let o=this.#i.getEditableAnnotations();for(let a of o){let{id:s}=a.data;if(this.#a.isDeletedAnnotationElement(s))continue;let l=i.get(s);if(l){l.resetAnnotationElement(a),l.show(!1),a.show();continue}l=e.get(s),l&&(this.#a.addChangedExistingAnnotation(l),l.renderAnnotationElement(a),l.show(!1)),a.show()}}this.#g(),this.isEmpty&&(this.div.hidden=!0);let{classList:r}=this.div;for(let o of t.#m.values())r.remove(`${o._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#u=!1}getEditableAnnotation(e){return this.#i?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#a.getActive()!==e&&this.#a.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#c?.div&&!this.#d){this.#d=new AbortController;let e=this.#a.combinedSignal(this.#d);this.#c.div.addEventListener("pointerdown",this.#h.bind(this),{signal:e}),this.#c.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#c?.div&&this.#d&&(this.#d.abort(),this.#d=null,this.#c.div.classList.remove("highlighting"))}#h(e){this.#a.unselectAll();let{target:i}=e;if(i===this.#c.div||i.classList.contains("endOfContent")&&this.#c.div.contains(i)){let{isMac:r}=Qc.platform;if(e.button!==0||e.ctrlKey&&r)return;this.#a.showAllEditors("highlight",!0,!0),this.#c.div.classList.add("free"),this.toggleDrawing(),bO.startHighlighting(this,this.#a.direction==="ltr",e),this.#c.div.addEventListener("pointerup",()=>{this.#c.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#a._signal}),e.preventDefault()}}enableClick(){if(this.#n)return;this.#n=new AbortController;let e=this.#a.combinedSignal(this.#n);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e}),this.div.addEventListener("pointerup",this.pointerup.bind(this),{signal:e})}disableClick(){this.#n?.abort(),this.#n=null}attach(e){this.#o.set(e.id,e);let{annotationElementId:i}=e;i&&this.#a.isDeletedAnnotationElement(i)&&this.#a.removeDeletedAnnotationElement(e)}detach(e){this.#o.delete(e.id),this.#e?.removePointerInTextLayer(e.contentDiv),!this.#u&&e.annotationElementId&&this.#a.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#a.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1,this.#l||this.addInkEditorIfNeeded(!1)}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#a.addDeletedAnnotationElement(e.annotationElementId),na.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#a.addEditor(e),this.attach(e),!e.isAttachedToDOM){let i=e.render();this.div.append(i),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),this.#a.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;let{activeElement:i}=document;e.div.contains(i)&&!this.#r&&(e._focusEventsAllowed=!1,this.#r=setTimeout(()=>{this.#r=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#a._signal}),i.focus())},0)),e._structTreeParentId=this.#e?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){let i=()=>e._uiManager.rebuild(e),r=()=>{e.remove()};this.addCommands({cmd:i,undo:r,mustExec:!1})}getNextId(){return this.#a.getId()}get#p(){return t.#m.get(this.#a.getMode())}combinedSignal(e){return this.#a.combinedSignal(e)}#f(e){let i=this.#p;return i?new i.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#p?.canCreateNewEmptyEditor()}pasteEditor(e,i){this.#a.updateToolbar(e),this.#a.updateMode(e);let{offsetX:r,offsetY:o}=this.#_(),a=this.getNextId(),s=this.#f(Ve({parent:this,id:a,x:r,y:o,uiManager:this.#a,isCentered:!0},i));s&&this.add(s)}deserialize(e){return t.#m.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#a)||null}createAndAddNewEditor(e,i,r={}){let o=this.getNextId(),a=this.#f(Ve({parent:this,id:o,x:e.offsetX,y:e.offsetY,uiManager:this.#a,isCentered:i},r));return a&&this.add(a),a}#_(){let{x:e,y:i,width:r,height:o}=this.div.getBoundingClientRect(),a=Math.max(0,e),s=Math.max(0,i),l=Math.min(window.innerWidth,e+r),u=Math.min(window.innerHeight,i+o),p=(a+l)/2-e,g=(s+u)/2-i,[_,v]=this.viewport.rotation%180===0?[p,g]:[g,p];return{offsetX:_,offsetY:v}}addNewEditor(){this.createAndAddNewEditor(this.#_(),!0)}setSelected(e){this.#a.setSelected(e)}toggleSelected(e){this.#a.toggleSelected(e)}isSelected(e){return this.#a.isSelected(e)}unselect(e){this.#a.unselect(e)}pointerup(e){let{isMac:i}=Qc.platform;if(!(e.button!==0||e.ctrlKey&&i)&&e.target===this.div&&this.#s){if(this.#s=!1,!this.#t){this.#t=!0;return}if(this.#a.getMode()===xo.STAMP){this.#a.unselectAll();return}this.createAndAddNewEditor(e,!1)}}pointerdown(e){if(this.#a.getMode()===xo.HIGHLIGHT&&this.enableTextSelection(),this.#s){this.#s=!1;return}let{isMac:i}=Qc.platform;if(e.button!==0||e.ctrlKey&&i||e.target!==this.div)return;this.#s=!0;let r=this.#a.getActive();this.#t=!r||r.isEmpty()}findNewParent(e,i,r){let o=this.#a.findParent(i,r);return o===null||o===this?!1:(o.changeParent(e),!0)}destroy(){this.#a.getActive()?.parent===this&&(this.#a.commitOrRemove(),this.#a.setActiveEditor(null)),this.#r&&(clearTimeout(this.#r),this.#r=null);for(let e of this.#o.values())this.#e?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#o.clear(),this.#a.removeLayer(this)}#g(){this.#l=!0;for(let e of this.#o.values())e.isEmpty()&&e.remove();this.#l=!1}render({viewport:e}){this.viewport=e,f1(this.div,e);for(let i of this.#a.getEditors(this.pageIndex))this.add(i),i.rebuild();this.updateMode()}update({viewport:e}){this.#a.commitOrRemove(),this.#g();let i=this.viewport.rotation,r=e.rotation;if(this.viewport=e,f1(this.div,{rotation:r}),i!==r)for(let o of this.#o.values())o.rotate(r);this.addInkEditorIfNeeded(!1)}get pageDimensions(){let{pageWidth:e,pageHeight:i}=this.viewport.rawDims;return[e,i]}get scale(){return this.#a.viewParameters.realScale}}return t})(),c$=class t{#e=null;#t=0;#i=new Map;#n=new Map;constructor({pageIndex:n}){this.pageIndex=n}setParent(n){if(!this.#e){this.#e=n;return}if(this.#e!==n){if(this.#i.size>0)for(let e of this.#i.values())e.remove(),n.append(e);this.#e=n}}static get _svgFactory(){return To(this,"_svgFactory",new XT)}static#r(n,{x:e=0,y:i=0,width:r=1,height:o=1}={}){let{style:a}=n;a.top=`${100*i}%`,a.left=`${100*e}%`,a.width=`${100*r}%`,a.height=`${100*o}%`}#o(n){let e=t._svgFactory.create(1,1,!0);return this.#e.append(e),e.setAttribute("aria-hidden",!0),t.#r(e,n),e}#s(n,e){let i=t._svgFactory.createElement("clipPath");n.append(i);let r=`clip_${e}`;i.setAttribute("id",r),i.setAttribute("clipPathUnits","objectBoundingBox");let o=t._svgFactory.createElement("use");return i.append(o),o.setAttribute("href",`#${e}`),o.classList.add("clip"),r}highlight(n,e,i,r=!1){let o=this.#t++,a=this.#o(n.box);a.classList.add("highlight"),n.free&&a.classList.add("free");let s=t._svgFactory.createElement("defs");a.append(s);let l=t._svgFactory.createElement("path");s.append(l);let u=`path_p${this.pageIndex}_${o}`;l.setAttribute("id",u),l.setAttribute("d",n.toSVGPath()),r&&this.#n.set(o,l);let p=this.#s(s,u),g=t._svgFactory.createElement("use");return a.append(g),a.setAttribute("fill",e),a.setAttribute("fill-opacity",i),g.setAttribute("href",`#${u}`),this.#i.set(o,a),{id:o,clipPathId:`url(#${p})`}}highlightOutline(n){let e=this.#t++,i=this.#o(n.box);i.classList.add("highlightOutline");let r=t._svgFactory.createElement("defs");i.append(r);let o=t._svgFactory.createElement("path");r.append(o);let a=`path_p${this.pageIndex}_${e}`;o.setAttribute("id",a),o.setAttribute("d",n.toSVGPath()),o.setAttribute("vector-effect","non-scaling-stroke");let s;if(n.free){i.classList.add("free");let p=t._svgFactory.createElement("mask");r.append(p),s=`mask_p${this.pageIndex}_${e}`,p.setAttribute("id",s),p.setAttribute("maskUnits","objectBoundingBox");let g=t._svgFactory.createElement("rect");p.append(g),g.setAttribute("width","1"),g.setAttribute("height","1"),g.setAttribute("fill","white");let _=t._svgFactory.createElement("use");p.append(_),_.setAttribute("href",`#${a}`),_.setAttribute("stroke","none"),_.setAttribute("fill","black"),_.setAttribute("fill-rule","nonzero"),_.classList.add("mask")}let l=t._svgFactory.createElement("use");i.append(l),l.setAttribute("href",`#${a}`),s&&l.setAttribute("mask",`url(#${s})`);let u=l.cloneNode();return i.append(u),l.classList.add("mainOutline"),u.classList.add("secondaryOutline"),this.#i.set(e,i),e}finalizeLine(n,e){let i=this.#n.get(n);this.#n.delete(n),this.updateBox(n,e.box),i.setAttribute("d",e.toSVGPath())}updateLine(n,e){this.#i.get(n).firstChild.firstChild.setAttribute("d",e.toSVGPath())}removeFreeHighlight(n){this.remove(n),this.#n.delete(n)}updatePath(n,e){this.#n.get(n).setAttribute("d",e.toSVGPath())}updateBox(n,e){t.#r(this.#i.get(n),e)}show(n,e){this.#i.get(n).classList.toggle("hidden",!e)}rotate(n,e){this.#i.get(n).setAttribute("data-main-rotation",e)}changeColor(n,e){this.#i.get(n).setAttribute("fill",e)}changeOpacity(n,e){this.#i.get(n).setAttribute("fill-opacity",e)}addClass(n,e){this.#i.get(n).classList.add(e)}removeClass(n,e){this.#i.get(n).classList.remove(e)}remove(n){this.#e!==null&&(this.#i.get(n).remove(),this.#i.delete(n))}destroy(){this.#e=null;for(let n of this.#i.values())n.remove();this.#i.clear()}};var cLe=Cr.AbortException,dLe=Cr.AnnotationEditorLayer,uLe=Cr.AnnotationEditorParamsType,f$=Cr.AnnotationEditorType,mLe=Cr.AnnotationEditorUIManager,pLe=Cr.AnnotationLayer,hLe=Cr.AnnotationMode,fLe=Cr.CMapCompressionType,gLe=Cr.ColorPicker,_Le=Cr.DOMSVGFactory,vLe=Cr.DrawLayer,bLe=Cr.FeatureTest,g$=Cr.GlobalWorkerOptions,yLe=Cr.ImageKind,xLe=Cr.InvalidPDFException,CLe=Cr.MissingPDFException,SLe=Cr.OPS,wLe=Cr.PDFDataRangeTransport,ELe=Cr.PDFDateString,ILe=Cr.PDFWorker,DLe=Cr.PasswordResponses,TLe=Cr.PermissionFlag,ALe=Cr.PixelsPerInch,kLe=Cr.RenderingCancelledException,MLe=Cr.TextLayer,FLe=Cr.UnexpectedResponseException,RLe=Cr.Util,_$=Cr.VerbosityLevel,PLe=Cr.XfaLayer,NLe=Cr.build,OLe=Cr.createValidAbsoluteUrl,LLe=Cr.fetchData,v$=Cr.getDocument,VLe=Cr.getFilenameFromUrl,BLe=Cr.getPdfFilenameFromUrl,jLe=Cr.getXfaPageViewport,HLe=Cr.isDataScheme,zLe=Cr.isPdfFile,ULe=Cr.noContextMenu,GLe=Cr.normalizeUnicode,$Le=Cr.setLayerDimensions,qLe=Cr.shadow,s2=Cr.version;var sq={};Jee(sq,{AnnotationLayerBuilder:()=>FVe,DownloadManager:()=>RVe,EventBus:()=>PVe,FindState:()=>NVe,GenericL10n:()=>iq,LinkTarget:()=>x1,PDFFindController:()=>nq,PDFHistory:()=>OVe,PDFLinkService:()=>rq,PDFPageView:()=>LVe,PDFScriptingManager:()=>VVe,PDFSinglePageViewer:()=>oq,PDFViewer:()=>aq,ProgressBar:()=>BVe,RenderingStates:()=>jVe,ScrollMode:()=>HVe,SimpleLinkService:()=>zVe,SpreadMode:()=>UVe,StructTreeLayerBuilder:()=>GVe,TextLayerBuilder:()=>$Ve,XfaLayerBuilder:()=>qVe,parseQueryString:()=>WVe});var c2={};c2.d=(t,n)=>{for(var e in n)c2.o(n,e)&&!c2.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})};c2.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var is=globalThis.pdfjsViewer={};c2.d(is,{AnnotationLayerBuilder:()=>OO,DownloadManager:()=>F$,EventBus:()=>LO,FindState:()=>yv,GenericL10n:()=>LS,LinkTarget:()=>v1,PDFFindController:()=>k$,PDFHistory:()=>U$,PDFLinkService:()=>PO,PDFPageView:()=>UO,PDFScriptingManager:()=>Z$,PDFSinglePageViewer:()=>tq,PDFViewer:()=>GO,ProgressBar:()=>A$,RenderingStates:()=>Cs,ScrollMode:()=>Ao,SimpleLinkService:()=>u2,SpreadMode:()=>Zc,StructTreeLayerBuilder:()=>jO,TextLayerBuilder:()=>HO,XfaLayerBuilder:()=>zO,parseQueryString:()=>$O});var WLe="auto",Cce=1,Ule=1.1,YLe=.1,KLe=10,b$=0,XLe=1.25,Gle=40,$le=5,Cs={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},PS={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};var qf={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},Ao={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},Zc={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};var T$=class{constructor(){let n=window.devicePixelRatio||1;this.sx=n,this.sy=n}get scaled(){return this.sx!==1||this.sy!==1}};function Sce(t,n,e=!1){let i=t.offsetParent;if(!i){console.error("offsetParent is not set -- cannot scroll");return}let r=t.offsetTop+t.clientTop,o=t.offsetLeft+t.clientLeft;for(;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||e&&(i.classList.contains("markedContent")||getComputedStyle(i).overflow==="hidden");)if(r+=i.offsetTop,o+=i.offsetLeft,i=i.offsetParent,!i)return;n&&(n.top!==void 0&&(r+=n.top),n.left!==void 0&&(o+=n.left,i.scrollLeft=o)),i.scrollTop=r}function QLe(t,n,e=void 0){let i=function(a){o||(o=window.requestAnimationFrame(function(){o=null;let l=t.scrollLeft,u=r.lastX;l!==u&&(r.right=l>u),r.lastX=l;let p=t.scrollTop,g=r.lastY;p!==g&&(r.down=p>g),r.lastY=p,n(r)}))},r={right:!0,down:!0,lastX:t.scrollLeft,lastY:t.scrollTop,_eventHandler:i},o=null;return t.addEventListener("scroll",i,{useCapture:!0,signal:e}),e?.addEventListener("abort",()=>window.cancelAnimationFrame(o),{once:!0}),r}function $O(t){let n=new Map;for(let[e,i]of new URLSearchParams(t))n.set(e.toLowerCase(),i);return n}var qle=/[\x00-\x1F]/g;function RO(t,n=!1){return qle.test(t)?n?t.replaceAll(qle,e=>e==="\0"?"":" "):t.replaceAll("\0",""):t}function d2(t,n,e=0){let i=e,r=t.length-1;if(r<0||!n(t[r]))return t.length;if(n(t[i]))return i;for(;i>1,a=t[o];n(a)?r=o:i=o+1}return i}function Wle(t){if(Math.floor(t)===t)return[t,1];let n=1/t,e=8;if(n>e)return[1,e];if(Math.floor(n)===n)return[1,n];let i=t>1?n:t,r=0,o=1,a=1,s=1;for(;;){let u=r+a,p=o+s;if(p>e)break;i<=u/p?(a=u,s=p):(r=u,o=p)}let l;return i-r/o=e&&(i=n[t-1].div,r=i.offsetTop+i.clientTop);for(let o=t-2;o>=0&&(i=n[o].div,!(i.offsetTop+i.clientTop+i.clientHeight<=r));--o)t=o;return t}function JLe({scrollEl:t,views:n,sortByVisibility:e=!1,horizontal:i=!1,rtl:r=!1}){let o=t.scrollTop,a=o+t.clientHeight,s=t.scrollLeft,l=s+t.clientWidth;function u(D){let A=D.div;return A.offsetTop+A.clientTop+A.clientHeight>o}function p(D){let A=D.div,M=A.offsetLeft+A.clientLeft,R=M+A.clientWidth;return r?Ms}let g=[],_=new Set,v=n.length,y=d2(n,i?p:u);y>0&&y=a&&(x=Q);else if((i?R:j)>x)break;if(Q<=o||j>=a||V<=s||R>=l)continue;let te=Math.max(0,o-j)+Math.max(0,Q-a),re=Math.max(0,s-R)+Math.max(0,V-l),O=(F-te)/F,B=(K-re)/K,q=O*B*100|0;g.push({id:A.id,x:R,y:j,view:A,percent:q,widthPercent:B*100|0}),_.add(A.id)}let I=g[0],C=g.at(-1);return e&&g.sort(function(D,A){let M=D.percent-A.percent;return Math.abs(M)>.001?-M:D.id-A.id}),{first:I,last:C,views:g,ids:_}}function wce(t){return Number.isInteger(t)&&t%90===0}function e4e(t){return Number.isInteger(t)&&Object.values(Ao).includes(t)&&t!==Ao.UNKNOWN}function t4e(t){return Number.isInteger(t)&&Object.values(Zc).includes(t)&&t!==Zc.UNKNOWN}function Yle(t){return t.width<=t.height}var mLt=new Promise(function(t){window.requestAnimationFrame(t)}),i4e=document.documentElement.style;function n4e(t,n,e){return Math.min(Math.max(t,n),e)}var A$=class{#e=null;#t=null;#i=0;#n=null;#r=!0;constructor(n){this.#e=n.classList,this.#n=n.style}get percent(){return this.#i}set percent(n){if(this.#i=n4e(n,0,100),isNaN(n)){this.#e.add("indeterminate");return}this.#e.remove("indeterminate"),this.#n.setProperty("--progressBar-percent",`${this.#i}%`)}setWidth(n){if(!n)return;let i=n.parentNode.offsetWidth-n.offsetWidth;i>0&&this.#n.setProperty("--progressBar-end-offset",`${i}px`)}setDisableAutoFetch(n=5e3){this.#i===100||isNaN(this.#i)||(this.#t&&clearTimeout(this.#t),this.show(),this.#t=setTimeout(()=>{this.#t=null,this.hide()},n))}hide(){this.#r&&(this.#r=!1,this.#e.add("hidden"))}show(){this.#r||(this.#r=!0,this.#e.remove("hidden"))}};function r4e(t){let n=Ao.VERTICAL,e=Zc.NONE;switch(t){case"SinglePage":n=Ao.PAGE;break;case"OneColumn":break;case"TwoPageLeft":n=Ao.PAGE;case"TwoColumnLeft":e=Zc.ODD;break;case"TwoPageRight":n=Ao.PAGE;case"TwoColumnRight":e=Zc.EVEN;break}return{scrollMode:n,spreadMode:e}}var Nh={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function o4e(t){return t<11904}function a4e(t){return(t&65408)===0}function s4e(t){return t>=97&&t<=122||t>=65&&t<=90}function l4e(t){return t>=48&&t<=57}function c4e(t){return t===32||t===9||t===13||t===10}function d4e(t){return t>=13312&&t<=40959||t>=63744&&t<=64255}function u4e(t){return t>=12448&&t<=12543}function m4e(t){return t>=12352&&t<=12447}function p4e(t){return t>=65376&&t<=65439}function h4e(t){return(t&65408)===3584}function TO(t){return o4e(t)?a4e(t)?c4e(t)?Nh.SPACE:s4e(t)||l4e(t)||t===95?Nh.ALPHA_LETTER:Nh.PUNCT:h4e(t)?Nh.THAI_LETTER:t===160?Nh.SPACE:Nh.ALPHA_LETTER:d4e(t)?Nh.HAN_LETTER:u4e(t)?Nh.KATAKANA_LETTER:m4e(t)?Nh.HIRAGANA_LETTER:p4e(t)?Nh.HALFWIDTH_KATAKANA_LETTER:Nh.ALPHA_LETTER}var Kle;function f4e(){return Kle||="\xA0\xA8\xAA\xAF\xB2-\xB5\xB8-\xBA\xBC-\xBE\u0132-\u0133\u013F-\u0140\u0149\u017F\u01C4-\u01CC\u01F1-\u01F3\u02B0-\u02B8\u02D8-\u02DD\u02E0-\u02E4\u0374\u037A\u037E\u0384-\u0385\u0387\u03D0-\u03D6\u03F0-\u03F2\u03F4-\u03F5\u03F9\u0587\u0675-\u0678\u0958-\u095F\u09DC-\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B5C-\u0B5D\u0E33\u0EB3\u0EDC-\u0EDD\u0F0C\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u10FC\u1D2C-\u1D2E\u1D30-\u1D3A\u1D3C-\u1D4D\u1D4F-\u1D6A\u1D78\u1D9B-\u1DBF\u1E9A-\u1E9B\u1F71\u1F73\u1F75\u1F77\u1F79\u1F7B\u1F7D\u1FBB\u1FBD-\u1FC1\u1FC9\u1FCB\u1FCD-\u1FCF\u1FD3\u1FDB\u1FDD-\u1FDF\u1FE3\u1FEB\u1FED-\u1FEF\u1FF9\u1FFB\u1FFD-\u1FFE\u2000-\u200A\u2011\u2017\u2024-\u2026\u202F\u2033-\u2034\u2036-\u2037\u203C\u203E\u2047-\u2049\u2057\u205F\u2070-\u2071\u2074-\u208E\u2090-\u209C\u20A8\u2100-\u2103\u2105-\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211D\u2120-\u2122\u2124\u2126\u2128\u212A-\u212D\u212F-\u2131\u2133-\u2139\u213B-\u2140\u2145-\u2149\u2150-\u217F\u2189\u222C-\u222D\u222F-\u2230\u2329-\u232A\u2460-\u24EA\u2A0C\u2A74-\u2A76\u2ADC\u2C7C-\u2C7D\u2D6F\u2E9F\u2EF3\u2F00-\u2FD5\u3000\u3036\u3038-\u303A\u309B-\u309C\u309F\u30FF\u3131-\u318E\u3192-\u319F\u3200-\u321E\u3220-\u3247\u3250-\u327E\u3280-\u33FF\uA69C-\uA69D\uA770\uA7F2-\uA7F4\uA7F8-\uA7F9\uAB5C-\uAB5F\uAB69\uF900-\uFA0D\uFA10\uFA12\uFA15-\uFA1E\uFA20\uFA22\uFA25-\uFA26\uFA2A-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE10-\uFE19\uFE30-\uFE44\uFE47-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE72\uFE74\uFE76-\uFEFC\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6",Kle}var yv={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},g4e=250,_4e=-50,v4e=-400,Xle={"\u2010":"-","\u2018":"'","\u2019":"'","\u201A":"'","\u201B":"'","\u201C":'"',"\u201D":'"',"\u201E":'"',"\u201F":'"',"\xBC":"1/4","\xBD":"1/2","\xBE":"3/4"},Qle=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),Zle,b4e=new RegExp("\\p{M}+","gu"),y4e=new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})","gu"),x4e=new RegExp("([^\\p{M}])\\p{M}*$","u"),C4e=new RegExp("^\\p{M}*([^\\p{M}])","u"),S4e=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Jle=new Map,w4e="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",ece=new Map,y$=null,x$=null;function C$(t){let n=[],e;for(;(e=S4e.exec(t))!==null;){let{index:v}=e;for(let y of e[0]){let x=Jle.get(y);x||(x=y.normalize("NFD").length,Jle.set(y,x)),n.push([x,v++])}}let i;if(n.length===0&&y$)i=y$;else if(n.length>0&&x$)i=x$;else{let v=Object.keys(Xle).join(""),y=f4e(),C=`([${v}])|([${y}])|((?:\u3099|\u309A)\\n)|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|((?:\\p{Ideographic}|[\u3040-\u30FF])\\n)|(\\n)`;n.length===0?i=y$=new RegExp(C+"|(\\u0000)","gum"):i=x$=new RegExp(C+`|(${w4e})`,"gum")}let r=[];for(;(e=b4e.exec(t))!==null;)r.push([e[0].length,e.index]);let o=t.normalize("NFD"),a=[[0,0]],s=0,l=0,u=0,p=0,g=0,_=!1;return o=o.replace(i,(v,y,x,I,C,D,A,M,R,j)=>{if(j-=p,y){let K=Xle[y],F=K.length;for(let V=1;Vp[0]>=i);t[o][0]>i&&--o;let a=d2(t,p=>p[0]>=r,o);t[a][0]>r&&--a;let s=i+t[o][1],u=r+t[a][1]+1-s;return[s,u]}var k$=class{#e=null;#t=!0;#i=0;constructor({linkService:n,eventBus:e,updateMatchesCountOnProgress:i=!0}){this._linkService=n,this._eventBus=e,this.#t=i,this.onIsPageVisible=null,this.#r(),e._on("find",this.#n.bind(this)),e._on("findbarclose",this.#v.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#e}setDocument(n){this._pdfDocument&&this.#r(),n&&(this._pdfDocument=n,this._firstPageCapability.resolve())}#n(n){if(!n)return;let e=this._pdfDocument,{type:i}=n;(this.#e===null||this.#s(n))&&(this._dirtyMatch=!0),this.#e=n,i!=="highlightallchange"&&this.#x(yv.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||e&&this._pdfDocument!==e)return;this.#d();let r=!this._highlightMatches,o=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),i?this._dirtyMatch?this.#h():i==="again"?(this.#h(),r&&this.#e.highlightAll&&this.#m()):i==="highlightallchange"?(o?this.#h():this._highlightMatches=!0,this.#m()):this.#h():this._findTimeout=setTimeout(()=>{this.#h(),this._findTimeout=null},g4e)})}scrollMatchIntoView({element:n=null,selectedLeft:e=0,pageIndex:i=-1,matchIndex:r=-1}){if(!this._scrollMatches||!n)return;if(r===-1||r!==this._selected.matchIdx)return;if(i===-1||i!==this._selected.pageIdx)return;this._scrollMatches=!1;let o={top:_4e,left:e+v4e};Sce(n,o,!0)}#r(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#i=0,this.#e=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=Promise.withResolvers()}get#o(){let{query:n}=this.#e;return typeof n=="string"?(n!==this._rawQuery&&(this._rawQuery=n,[this._normalizedQuery]=C$(n)),this._normalizedQuery):(n||[]).filter(e=>!!e).map(e=>C$(e)[0])}#s(n){let e=n.query,i=this.#e.query,r=typeof e;if(r!==typeof i)return!0;if(r==="string"){if(e!==i)return!0}else if(JSON.stringify(e)!==JSON.stringify(i))return!0;switch(n.type){case"again":let a=this._selected.pageIdx+1,s=this._linkService;return a>=1&&a<=s.pagesCount&&a!==s.page&&!(this.onIsPageVisible?.(a)??!0);case"highlightallchange":return!1}return!0}#l(n,e,i){let r=n.slice(0,e).match(x4e);if(r){let o=n.charCodeAt(e),a=r[1].charCodeAt(0);if(TO(o)===TO(a))return!1}if(r=n.slice(e+i).match(C4e),r){let o=n.charCodeAt(e+i-1),a=r[1].charCodeAt(0);if(TO(o)===TO(a))return!1}return!0}#u(n,e){let{matchDiacritics:i}=this.#e,r=!1;n=n.replaceAll(y4e,(a,s,l,u,p,g)=>s?`[ ]*\\${s}[ ]*`:l?`[ ]*${l}[ ]*`:u?"[ ]+":i?p||g:p?Qle.has(p.charCodeAt(0))?p:"":e?(r=!0,`${g}\\p{M}*`):g);let o="[ ]*";return n.endsWith(o)&&(n=n.slice(0,n.length-o.length)),i&&e&&(Zle||=String.fromCharCode(...Qle),r=!0,n=`${n}(?=[${Zle}]|[^\\p{M}]|$)`),[r,n]}#c(n){let e=this.#o;if(e.length===0)return;let i=this._pageContents[n],r=this.match(e,i,n),o=this._pageMatches[n]=[],a=this._pageMatchesLength[n]=[],s=this._pageDiffs[n];r?.forEach(({index:u,length:p})=>{let[g,_]=E4e(s,u,p);_&&(o.push(g),a.push(_))}),this.#e.highlightAll&&this.#a(n),this._resumePageIdx===n&&(this._resumePageIdx=null,this.#f());let l=o.length;this._matchesCountTotal+=l,this.#t?l>0&&this.#C():++this.#i===this._linkService.pagesCount&&this.#C()}match(n,e,i){let r=this._hasDiacritics[i],o=!1;if(typeof n=="string"?[o,n]=this.#u(n,r):n=n.sort().reverse().map(g=>{let[_,v]=this.#u(g,r);return o||=_,`(${v})`}).join("|"),!n)return;let{caseSensitive:a,entireWord:s}=this.#e,l=`g${o?"u":""}${a?"":"i"}`;n=new RegExp(n,l);let u=[],p;for(;(p=n.exec(e))!==null;)s&&!this.#l(e,p.index,p[0].length)||u.push({index:p.index,length:p[0].length});return u}#d(){if(this._extractTextPromises.length>0)return;let n=Promise.resolve(),e={disableNormalization:!0};for(let i=0,r=this._linkService.pagesCount;ithis._pdfDocument.getPage(i+1).then(s=>s.getTextContent(e)).then(s=>{let l=[];for(let u of s.items)l.push(u.str),u.hasEOL&&l.push(` `);[this._pageContents[i],this._pageDiffs[i],this._hasDiacritics[i]]=C$(l.join("")),a()},s=>{console.error(`Unable to get text content for page ${i+1}`,s),this._pageContents[i]="",this._pageDiffs[i]=null,this._hasDiacritics[i]=!1,a()}))}}#a(n){this._scrollMatches&&this._selected.pageIdx===n&&(this._linkService.page=n+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:n})}#m(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#h(){let n=this.#e.findPrevious,e=this._linkService.page-1,i=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=e,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#i=0,this._matchesCountTotal=0,this.#m();for(let a=0;a{this._pendingFindMatches.delete(a),this.#c(a)}))}if(this.#o.length===0){this.#x(yv.FOUND);return}if(this._resumePageIdx)return;let o=this._offset;if(this._pagesToSearch=i,o.matchIdx!==null){let a=this._pageMatches[o.pageIdx].length;if(!n&&o.matchIdx+10){o.matchIdx=n?o.matchIdx-1:o.matchIdx+1,this.#g(!0);return}this.#_(n)}this.#f()}#p(n){let e=this._offset,i=n.length,r=this.#e.findPrevious;return i?(e.matchIdx=r?i-1:0,this.#g(!0),!0):(this.#_(r),e.wrapped&&(e.matchIdx=null,this._pagesToSearch<0)?(this.#g(!1),!0):!1)}#f(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let n=null;do{let e=this._offset.pageIdx;if(n=this._pageMatches[e],!n){this._resumePageIdx=e;break}}while(!this.#p(n))}#_(n){let e=this._offset,i=this._linkService.pagesCount;e.pageIdx=n?e.pageIdx-1:e.pageIdx+1,e.matchIdx=null,this._pagesToSearch--,(e.pageIdx>=i||e.pageIdx<0)&&(e.pageIdx=n?i-1:0,e.wrapped=!0)}#g(n=!1){let e=yv.NOT_FOUND,i=this._offset.wrapped;if(this._offset.wrapped=!1,n){let r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,e=i?yv.WRAPPED:yv.FOUND,r!==-1&&r!==this._selected.pageIdx&&this.#a(r)}this.#x(e,this.#e.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,this.#a(this._selected.pageIdx))}#v(n){let e=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||e&&this._pdfDocument!==e||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#x(yv.FOUND),this._highlightMatches=!1,this.#m())})}#y(){let{pageIdx:n,matchIdx:e}=this._selected,i=0,r=this._matchesCountTotal;if(e!==-1){for(let o=0;or)&&(i=r=0),{current:i,total:r}}#C(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#y()})}#x(n,e=!1){!this.#t&&(this.#i!==this._linkService.pagesCount||n===yv.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:n,previous:e,entireWord:this.#e?.entireWord??null,matchesCount:this.#y(),rawQuery:this.#e?.query??null})}},I4e="noopener noreferrer nofollow",v1={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},PO=class t{externalLinkEnabled=!0;constructor({eventBus:n,externalLinkTarget:e=null,externalLinkRel:i=null,ignoreDestinationZoom:r=!1}={}){this.eventBus=n,this.externalLinkTarget=e,this.externalLinkRel=i,this._ignoreDestinationZoom=r,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(n,e=null){this.baseUrl=e,this.pdfDocument=n}setViewer(n){this.pdfViewer=n}setHistory(n){this.pdfHistory=n}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(n){this.pdfDocument&&(this.pdfViewer.currentPageNumber=n)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(n){this.pdfDocument&&(this.pdfViewer.pagesRotation=n)}get isInPresentationMode(){return this.pdfDocument?this.pdfViewer.isInPresentationMode:!1}goToDestination(n){return Mt(this,null,function*(){if(!this.pdfDocument)return;let e,i,r;if(typeof n=="string"?(e=n,i=yield this.pdfDocument.getDestination(n)):(e=null,i=yield n),!Array.isArray(i)){console.error(`goToDestination: "${i}" is not a valid destination array, for dest="${n}".`);return}let[o]=i;if(o&&typeof o=="object"){if(r=this.pdfDocument.cachedPageNumber(o),!r)try{r=(yield this.pdfDocument.getPageIndex(o))+1}catch{console.error(`goToDestination: "${o}" is not a valid page reference, for dest="${n}".`);return}}else Number.isInteger(o)&&(r=o+1);if(!r||r<1||r>this.pagesCount){console.error(`goToDestination: "${r}" is not a valid page number, for dest="${n}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:e,explicitDest:i,pageNumber:r})),this.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:i,ignoreDestinationZoom:this._ignoreDestinationZoom})})}goToPage(n){if(!this.pdfDocument)return;let e=typeof n=="string"&&this.pdfViewer.pageLabelToPageNumber(n)||n|0;if(!(Number.isInteger(e)&&e>0&&e<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${n}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(e)),this.pdfViewer.scrollPageIntoView({pageNumber:e})}addLinkAttributes(n,e,i=!1){if(!e||typeof e!="string")throw new Error('A valid "url" parameter must provided.');let r=i?v1.BLANK:this.externalLinkTarget,o=this.externalLinkRel;this.externalLinkEnabled?n.href=n.title=e:(n.href="",n.title=`Disabled: ${e}`,n.onclick=()=>!1);let a="";switch(r){case v1.NONE:break;case v1.SELF:a="_self";break;case v1.BLANK:a="_blank";break;case v1.PARENT:a="_parent";break;case v1.TOP:a="_top";break}n.target=a,n.rel=typeof o=="string"?o:I4e}getDestinationHash(n){if(typeof n=="string"){if(n.length>0)return this.getAnchorUrl("#"+escape(n))}else if(Array.isArray(n)){let e=JSON.stringify(n);if(e.length>0)return this.getAnchorUrl("#"+escape(e))}return this.getAnchorUrl("")}getAnchorUrl(n){return this.baseUrl?this.baseUrl+n:n}setHash(n){if(!this.pdfDocument)return;let e,i;if(n.includes("=")){let r=$O(n);if(r.has("search")){let o=r.get("search").replaceAll('"',""),a=r.get("phrase")==="true";this.eventBus.dispatch("findfromurlhash",{source:this,query:a?o:o.match(/\S+/g)})}if(r.has("page")&&(e=r.get("page")|0||1),r.has("zoom")){let o=r.get("zoom").split(","),a=o[0],s=parseFloat(a);a.includes("Fit")?a==="Fit"||a==="FitB"?i=[null,{name:a}]:a==="FitH"||a==="FitBH"||a==="FitV"||a==="FitBV"?i=[null,{name:a},o.length>1?o[1]|0:null]:a==="FitR"?o.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):i=[null,{name:a},o[1]|0,o[2]|0,o[3]|0,o[4]|0]:console.error(`PDFLinkService.setHash: "${a}" is not a valid zoom value.`):i=[null,{name:"XYZ"},o.length>1?o[1]|0:null,o.length>2?o[2]|0:null,s?s/100:a]}i?this.pdfViewer.scrollPageIntoView({pageNumber:e||this.page,destArray:i,allowNegativeOffset:!0}):e&&(this.page=e),r.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:r.get("pagemode")}),r.has("nameddest")&&this.goToDestination(r.get("nameddest"));return}i=unescape(n);try{i=JSON.parse(i),Array.isArray(i)||(i=i.toString())}catch{}if(typeof i=="string"||t.#e(i)){this.goToDestination(i);return}console.error(`PDFLinkService.setHash: "${unescape(n)}" is not a valid destination.`)}executeNamedAction(n){if(this.pdfDocument){switch(n){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break;default:break}this.eventBus.dispatch("namedaction",{source:this,action:n})}}executeSetOCGState(n){return Mt(this,null,function*(){if(!this.pdfDocument)return;let e=this.pdfDocument,i=yield this.pdfViewer.optionalContentConfigPromise;e===this.pdfDocument&&(i.setOCGState(n),this.pdfViewer.optionalContentConfigPromise=Promise.resolve(i))})}static#e(n){if(!Array.isArray(n)||n.length<2)return!1;let[e,i,...r]=n;if(!(typeof e=="object"&&Number.isInteger(e?.num)&&Number.isInteger(e?.gen))&&!Number.isInteger(e)||!(typeof i=="object"&&typeof i?.name=="string"))return!1;let o=r.length,a=!0;switch(i.name){case"XYZ":if(o<2||o>3)return!1;break;case"Fit":case"FitB":return o===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(o>1)return!1;break;case"FitR":if(o!==4)return!1;a=!1;break;default:return!1}for(let s of r)if(!(typeof s=="number"||a&&s===null))return!1;return!0}},u2=class extends PO{setDocument(n,e=null){}},{AbortException:D4e,AnnotationEditorLayer:T4e,AnnotationEditorParamsType:pLt,AnnotationEditorType:km,AnnotationEditorUIManager:A4e,AnnotationLayer:k4e,AnnotationMode:v0,build:hLt,CMapCompressionType:fLt,ColorPicker:gLt,createValidAbsoluteUrl:M4e,DOMSVGFactory:_Lt,DrawLayer:F4e,FeatureTest:vLt,fetchData:tce,getDocument:bLt,getFilenameFromUrl:yLt,getPdfFilenameFromUrl:R4e,getXfaPageViewport:xLt,GlobalWorkerOptions:CLt,ImageKind:SLt,InvalidPDFException:wLt,isDataScheme:ELt,isPdfFile:P4e,MissingPDFException:ILt,noContextMenu:DLt,normalizeUnicode:N4e,OPS:TLt,PasswordResponses:ALt,PDFDataRangeTransport:kLt,PDFDateString:MLt,PDFWorker:FLt,PermissionFlag:AO,PixelsPerInch:_0,RenderingCancelledException:M$,setLayerDimensions:O4e,shadow:NO,TextLayer:L4e,UnexpectedResponseException:RLt,Util:PLt,VerbosityLevel:NLt,version:ice,XfaLayer:S$}=globalThis.pdfjsLib,OO=class{#e=null;#t=null;constructor({pdfPage:n,linkService:e,downloadManager:i,annotationStorage:r=null,imageResourcesPath:o="",renderForms:a=!0,enableScripting:s=!1,hasJSActionsPromise:l=null,fieldObjectsPromise:u=null,annotationCanvasMap:p=null,accessibilityManager:g=null,annotationEditorUIManager:_=null,onAppend:v=null}){this.pdfPage=n,this.linkService=e,this.downloadManager=i,this.imageResourcesPath=o,this.renderForms=a,this.annotationStorage=r,this.enableScripting=s,this._hasJSActionsPromise=l||Promise.resolve(!1),this._fieldObjectsPromise=u||Promise.resolve(null),this._annotationCanvasMap=p,this._accessibilityManager=g,this._annotationEditorUIManager=_,this.#e=v,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=e.eventBus}render(n,e="display"){return Mt(this,null,function*(){if(this.div){if(this._cancelled||!this.annotationLayer)return;this.annotationLayer.update({viewport:n.clone({dontFlip:!0})});return}let[i,r,o]=yield Promise.all([this.pdfPage.getAnnotations({intent:e}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled)return;let a=this.div=document.createElement("div");if(a.className="annotationLayer",this.#e?.(a),i.length===0){this.hide();return}this.annotationLayer=new k4e({div:a,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,annotationEditorUIManager:this._annotationEditorUIManager,page:this.pdfPage,viewport:n.clone({dontFlip:!0})}),yield this.annotationLayer.render({annotations:i,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:r,fieldObjects:o}),this.linkService.isInPresentationMode&&this.#i(PS.FULLSCREEN),this.#t||(this.#t=new AbortController,this._eventBus?._on("presentationmodechanged",s=>{this.#i(s.state)},{signal:this.#t.signal}))})}cancel(){this._cancelled=!0,this.#t?.abort(),this.#t=null}hide(){this.div&&(this.div.hidden=!0)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}#i(n){if(!this.div)return;let e=!1;switch(n){case PS.FULLSCREEN:e=!0;break;case PS.NORMAL:break;default:return}for(let i of this.div.childNodes)i.hasAttribute("data-internal-link")||(i.inert=e)}};function nce(t,n){let e=document.createElement("a");if(!e.click)throw new Error('DownloadManager: "a.click()" is not supported.');e.href=t,e.target="_parent","download"in e&&(e.download=n),(document.body||document.documentElement).append(e),e.click(),e.remove()}var F$=class{#e=new WeakMap;downloadData(n,e,i){let r=URL.createObjectURL(new Blob([n],{type:i}));nce(r,e)}openOrDownloadData(n,e,i=null){let o=P4e(e)?"application/pdf":"";return this.downloadData(n,e,o),!1}download(n,e,i){let r;if(n)r=URL.createObjectURL(new Blob([n],{type:"application/pdf"}));else{if(!M4e(e,"http://example.com")){console.error(`download - not a valid URL: ${e}`);return}r=e+"#pdfjs.action=download"}nce(r,i)}},rce={EVENT:"event",TIMEOUT:"timeout"};function V4e(i){return Mt(this,arguments,function*({target:t,name:n,delay:e=0}){if(typeof t!="object"||!(n&&typeof n=="string")||!(Number.isInteger(e)&&e>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");let{promise:r,resolve:o}=Promise.withResolvers(),a=new AbortController;function s(p){a.abort(),clearTimeout(u),o(p)}let l=t instanceof LO?"_on":"addEventListener";t[l](n,s.bind(null,rce.EVENT),{signal:a.signal});let u=setTimeout(s.bind(null,rce.TIMEOUT),e);return r})}var LO=class{#e=Object.create(null);on(n,e,i=null){this._on(n,e,{external:!0,once:i?.once,signal:i?.signal})}off(n,e,i=null){this._off(n,e)}dispatch(n,e){let i=this.#e[n];if(!i||i.length===0)return;let r;for(let{listener:o,external:a,once:s}of i.slice(0)){if(s&&this._off(n,o),a){(r||=[]).push(o);continue}o(e)}if(r){for(let o of r)o(e);r=null}}_on(n,e,i=null){let r=null;if(i?.signal instanceof AbortSignal){let{signal:a}=i;if(a.aborted){console.error("Cannot use an `aborted` signal.");return}let s=()=>this._off(n,e);r=()=>a.removeEventListener("abort",s),a.addEventListener("abort",s)}(this.#e[n]||=[]).push({listener:e,external:i?.external===!0,once:i?.once===!0,rmAbort:r})}_off(n,e,i=null){let r=this.#e[n];if(r)for(let o=0,a=r.length;o1;for(let r of n){if(typeof r=="string"){e.push(t.bundle._transform(r));continue}if(t.placeables++,t.placeables>oce)throw t.dirty.delete(n),new RangeError(`Too many placeables expanded: ${t.placeables}, max allowed is ${oce}`);i&&e.push(B4e),e.push(m2(t,r).toString(t)),i&&e.push(j4e)}return t.dirty.delete(n),e.join("")}function OS(t,n){return typeof n=="string"?t.bundle._transform(n):Ece(t,n)}var P$=class{constructor(n,e,i){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=n,this.errors=e,this.args=i}reportError(n){if(!this.errors||!(n instanceof Error))throw n;this.errors.push(n)}memoizeIntlObject(n,e){let i=this.bundle._intls.get(n);i||(i={},this.bundle._intls.set(n,i));let r=JSON.stringify(e);return i[r]||(i[r]=new n(this.bundle.locales,e)),i[r]}};function VO(t,n){let e=Object.create(null);for(let[i,r]of Object.entries(t))n.includes(i)&&(e[i]=r.valueOf());return e}var sce=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function W4e(t,n){let e=t[0];if(e instanceof Ss)return new Ss(`NUMBER(${e.valueOf()})`);if(e instanceof Oh)return new Oh(e.valueOf(),Ve(Ve({},e.opts),VO(n,sce)));if(e instanceof y1)return new Oh(e.valueOf(),Ve({},VO(n,sce)));throw new TypeError("Invalid argument to NUMBER")}var lce=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Y4e(t,n){let e=t[0];if(e instanceof Ss)return new Ss(`DATETIME(${e.valueOf()})`);if(e instanceof y1)return new y1(e.valueOf(),Ve(Ve({},e.opts),VO(n,lce)));if(e instanceof Oh)return new y1(e.valueOf(),Ve({},VO(n,lce)));throw new TypeError("Invalid argument to DATETIME")}var cce=new Map;function K4e(t){let n=Array.isArray(t)?t.join(" "):t,e=cce.get(n);return e===void 0&&(e=new Map,cce.set(n,e)),e}var N$=class{constructor(n,{functions:e,useIsolating:i=!0,transform:r=o=>o}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(n)?n:[n],this._functions=Ve({NUMBER:W4e,DATETIME:Y4e},e),this._useIsolating=i,this._transform=r,this._intls=K4e(n)}hasMessage(n){return this._messages.has(n)}getMessage(n){return this._messages.get(n)}addResource(n,{allowOverrides:e=!1}={}){let i=[];for(let r=0;r\s*/y,lVe=/\s*:\s*/y,cVe=/\s*,?\s*/y,dVe=/\s+/y,O$=class{constructor(n){this.body=[],w$.lastIndex=0;let e=0;for(;;){let V=w$.exec(n);if(V===null)break;e=w$.lastIndex;try{this.body.push(l(V[1]))}catch(Q){if(Q instanceof SyntaxError)continue;throw Q}}function i(V){return V.lastIndex=e,V.test(n)}function r(V,Q){if(n[e]===V)return e++,!0;if(Q)throw new Q(`Expected ${V}`);return!1}function o(V,Q){if(i(V))return e=V.lastIndex,!0;if(Q)throw new Q(`Expected ${V.toString()}`);return!1}function a(V){V.lastIndex=e;let Q=V.exec(n);if(Q===null)throw new SyntaxError(`Expected ${V.toString()}`);return e=V.lastIndex,Q}function s(V){return a(V)[1]}function l(V){let Q=p(),te=u();if(Q===null&&Object.keys(te).length===0)throw new SyntaxError("Expected message value or attributes");return{id:V,value:Q,attributes:te}}function u(){let V=Object.create(null);for(;i(dce);){let Q=s(dce),te=p();if(te===null)throw new SyntaxError("Expected attribute value");V[Q]=te}return V}function p(){let V;if(i(kO)&&(V=s(kO)),n[e]==="{"||n[e]==="}")return g(V?[V]:[],1/0);let Q=j();return Q?V?g([V,Q],Q.length):(Q.value=K(Q.value,eVe),g([Q],Q.length)):V?K(V,hce):null}function g(V=[],Q){for(;;){if(i(kO)){V.push(s(kO));continue}if(n[e]==="{"){V.push(_());continue}if(n[e]==="}")throw new SyntaxError("Unbalanced closing brace");let B=j();if(B){V.push(B),Q=Math.min(Q,B.length);continue}break}let te=V.length-1,re=V[te];typeof re=="string"&&(V[te]=K(re,hce));let O=[];for(let B of V)B instanceof BO&&(B=B.value.slice(0,B.value.length-Q)),B&&O.push(B);return O}function _(){o(nVe,SyntaxError);let V=v();if(o(fce))return V;if(o(sVe)){let Q=I();return o(fce,SyntaxError),Ve({type:"select",selector:V},Q)}throw new SyntaxError("Unclosed placeable")}function v(){if(n[e]==="{")return _();if(i(uce)){let[,V,Q,te=null]=a(uce);if(V==="$")return{type:"var",name:Q};if(o(aVe)){let re=y();if(V==="-")return{type:"term",name:Q,attr:te,args:re};if(Z4e.test(Q))return{type:"func",name:Q,args:re};throw new SyntaxError("Function names must be all upper-case")}return V==="-"?{type:"term",name:Q,attr:te,args:[]}:{type:"mesg",name:Q,attr:te}}return D()}function y(){let V=[];for(;;){switch(n[e]){case")":return e++,V;case void 0:throw new SyntaxError("Unclosed argument list")}V.push(x()),o(cVe)}}function x(){let V=v();return V.type!=="mesg"?V:o(lVe)?{type:"narg",name:V.name,value:D()}:V}function I(){let V=[],Q=0,te;for(;i(X4e);){r("*")&&(te=Q);let re=C(),O=p();if(O===null)throw new SyntaxError("Expected variant value");V[Q++]={key:re,value:O}}if(Q===0)return null;if(te===void 0)throw new SyntaxError("Expected default variant");return{variants:V,star:te}}function C(){o(rVe,SyntaxError);let V;return i(E$)?V=A():V={type:"str",value:s(Q4e)},o(oVe,SyntaxError),V}function D(){if(i(E$))return A();if(n[e]==='"')return M();throw new SyntaxError("Invalid expression")}function A(){let[,V,Q=""]=a(E$),te=Q.length;return{type:"num",value:parseFloat(V),precision:te}}function M(){r('"',SyntaxError);let V="";for(;;){if(V+=s(J4e),n[e]==="\\"){V+=R();continue}if(r('"'))return{type:"str",value:V};throw new SyntaxError("Unclosed string literal")}}function R(){if(i(mce))return s(mce);if(i(pce)){let[,V,Q]=a(pce),te=parseInt(V||Q,16);return te<=55295||57344<=te?String.fromCodePoint(te):"\uFFFD"}throw new SyntaxError("Unknown escape sequence")}function j(){let V=e;switch(o(dVe),n[e]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return F(n.slice(V,e))}return n[e-1]===" "?F(n.slice(V,e)):!1}function K(V,Q){return V.replace(Q,"")}function F(V){let Q=V.replace(tVe,` `),te=iVe.exec(V)[1].length;return new BO(Q,te)}}},BO=class{constructor(n,e){this.value=n,this.length=e}},uVe=/<|&#?\w+;/,mVe={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},pVe={"http://www.w3.org/1999/xhtml":{global:["title","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","title","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function hVe(t,n){let{value:e}=n;if(typeof e=="string")if(t.localName==="title"&&t.namespaceURI==="http://www.w3.org/1999/xhtml")t.textContent=e;else if(!uVe.test(e))t.textContent=e;else{let i=t.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");i.innerHTML=e,fVe(i.content,t)}Ice(n,t)}function fVe(t,n){for(let e of t.childNodes)if(e.nodeType!==e.TEXT_NODE){if(e.hasAttribute("data-l10n-name")){let i=_Ve(n,e);t.replaceChild(i,e);continue}if(bVe(e)){let i=vVe(e);t.replaceChild(i,e);continue}console.warn(`An element of forbidden type "${e.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),t.replaceChild(L$(e),e)}n.textContent="",n.appendChild(t)}function gVe(t,n){if(!t)return!1;for(let e of t)if(e.name===n)return!0;return!1}function Ice(t,n){let e=n.hasAttribute("data-l10n-attrs")?n.getAttribute("data-l10n-attrs").split(",").map(i=>i.trim()):null;for(let i of Array.from(n.attributes))gce(i.name,n,e)&&!gVe(t.attributes,i.name)&&n.removeAttribute(i.name);if(t.attributes)for(let i of Array.from(t.attributes))gce(i.name,n,e)&&n.getAttribute(i.name)!==i.value&&n.setAttribute(i.name,i.value)}function _Ve(t,n){let e=n.getAttribute("data-l10n-name"),i=t.querySelector(`[data-l10n-name="${e}"]`);if(!i)return console.warn(`An element named "${e}" wasn't found in the source.`),L$(n);if(i.localName!==n.localName)return console.warn(`An element named "${e}" was found in the translation but its type ${n.localName} didn't match the element found in the source (${i.localName}).`),L$(n);t.removeChild(i);let r=i.cloneNode(!1);return Dce(n,r)}function vVe(t){let n=t.ownerDocument.createElement(t.localName);return Dce(t,n)}function L$(t){return t.ownerDocument.createTextNode(t.textContent)}function bVe(t){let n=mVe[t.namespaceURI];return n&&n.includes(t.localName)}function gce(t,n,e=null){if(e&&e.includes(t))return!0;let i=pVe[n.namespaceURI];if(!i)return!1;let r=t.toLowerCase(),o=n.localName;if(i.global.includes(r))return!0;if(!i[o])return!1;if(i[o].includes(r))return!0;if(n.namespaceURI==="http://www.w3.org/1999/xhtml"&&o==="input"&&r==="value"){let a=n.type.toLowerCase();if(a==="submit"||a==="button"||a==="reset")return!0}return!1}function Dce(t,n){return n.textContent=t.textContent,Ice(t,n),n}var V$=class extends Array{static from(n){return n instanceof this?n:new this(n)}};var B$=class extends V${constructor(n){if(super(),Symbol.asyncIterator in Object(n))this.iterator=n[Symbol.asyncIterator]();else if(Symbol.iterator in Object(n))this.iterator=n[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.asyncIterator](){let n=this,e=0;return{next(){return Mt(this,null,function*(){return n.length<=e&&n.push(n.iterator.next()),n[e++]})}}}touchNext(n=1){return Mt(this,null,function*(){let e=0;for(;e++!n.includes(e)),this.onChange(),this.resourceIds.length}formatWithFallback(n,e){return Mt(this,null,function*(){let i=[],r=!1;try{for(var o=tte(this.bundles),a,s,l;a=!(s=yield o.next()).done;a=!1){let u=s.value;r=!0;let p=CVe(e,u,n,i);if(p.size===0)break;if(typeof console<"u"){let g=u.locales[0],_=Array.from(p).join(", ");console.warn(`[fluent] Missing translations in ${g}: ${_}`)}}}catch{l=[s]}finally{try{a&&(s=o.return)&&(yield s.call(o))}finally{if(l)throw l[0]}}return!r&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated. keys: ${JSON.stringify(n)}. resourceIds: ${JSON.stringify(this.resourceIds)}.`),i})}formatMessages(n){return this.formatWithFallback(n,xVe)}formatValues(n){return this.formatWithFallback(n,yVe)}formatValue(n,e){return Mt(this,null,function*(){let[i]=yield this.formatValues([{id:n,args:e}]);return i})}handleEvent(){this.onChange()}onChange(n=!1){this.bundles=B$.from(this.generateBundles(this.resourceIds)),n&&this.bundles.touchNext(2)}};function yVe(t,n,e,i){return e.value?t.formatPattern(e.value,i,n):null}function xVe(t,n,e,i){let r={value:null,attributes:null};e.value&&(r.value=t.formatPattern(e.value,i,n));let o=Object.keys(e.attributes);if(o.length>0){r.attributes=new Array(o.length);for(let[a,s]of o.entries()){let l=t.formatPattern(e.attributes[s],i,n);r.attributes[a]={name:s,value:l}}}return r}function CVe(t,n,e,i){let r=[],o=new Set;return e.forEach(({id:a,args:s},l)=>{if(i[l]!==void 0)return;let u=n.getMessage(a);if(u){if(r.length=0,i[l]=t(n,r,u,s),r.length>0&&typeof console<"u"){let p=n.locales[0],g=r.join(", ");console.warn(`[fluent][resolver] errors in ${p}/${a}: ${g}.`)}}else o.add(a)}),o}var b1="data-l10n-id",l2="data-l10n-args",SVe=`[${b1}]`,H$=class extends j${constructor(n,e){super(n,e),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[b1,l2]}}onChange(n=!1){super.onChange(n),this.roots&&this.translateRoots()}setAttributes(n,e,i){return n.setAttribute(b1,e),i?n.setAttribute(l2,JSON.stringify(i)):n.removeAttribute(l2),n}getAttributes(n){return{id:n.getAttribute(b1),args:JSON.parse(n.getAttribute(l2)||null)}}connectRoot(n){for(let e of this.roots)if(e===n||e.contains(n)||n.contains(e))throw new Error("Cannot add a root that overlaps with existing root.");if(this.windowElement){if(this.windowElement!==n.ownerDocument.defaultView)throw new Error(`Cannot connect a root: DOMLocalization already has a root from a different window.`)}else this.windowElement=n.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(e=>this.translateMutations(e));this.roots.add(n),this.mutationObserver.observe(n,this.observerConfig)}disconnectRoot(n){return this.roots.delete(n),this.pauseObserving(),this.roots.size===0?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){let n=Array.from(this.roots);return Promise.all(n.map(e=>this.translateFragment(e)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(let n of this.roots)this.mutationObserver.observe(n,this.observerConfig)}translateMutations(n){for(let e of n)switch(e.type){case"attributes":e.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(e.target);break;case"childList":for(let i of e.addedNodes)if(i.nodeType===i.ELEMENT_NODE)if(i.childElementCount)for(let r of this.getTranslatables(i))this.pendingElements.add(r);else i.hasAttribute(b1)&&this.pendingElements.add(i);break}this.pendingElements.size>0&&this.pendingrAF===null&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(n){return this.translateElements(this.getTranslatables(n))}translateElements(n){return Mt(this,null,function*(){if(!n.length)return;let e=n.map(this.getKeysForElement),i=yield this.formatMessages(e);return this.applyTranslations(n,i)})}applyTranslations(n,e){this.pauseObserving();for(let i=0;i({id:a})),(yield this.#n.formatMessages(n)).map(a=>a.value)):(yield this.#n.formatMessages([{id:n,args:e}]))[0]?.value||i})}translate(n){return Mt(this,null,function*(){this.#t.add(n);try{this.#n.connectRoot(n),yield this.#n.translateRoots()}catch{}})}translateOnce(n){return Mt(this,null,function*(){try{yield this.#n.translateElements([n])}catch(e){console.error(`translateOnce: "${e}".`)}})}destroy(){return Mt(this,null,function*(){for(let n of this.#t)this.#n.disconnectRoot(n);this.#t.clear(),this.#n.pauseObserving()})}pause(){this.#n.pauseObserving()}resume(){this.#n.resumeObserving()}static#r(n){return n=n?.toLowerCase()||"en-us",{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[n]||n}static#o(n){let e=n.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(e)}};function _ce(t,n){let e=new O$(n),i=new N$(t),r=i.addResource(e);return r.length&&console.error("L10n errors",r),i}var LS=class t extends z${constructor(n){super({lang:n});let e=n?t.#e.bind(t,"en-us",this.getLanguage()):t.#n.bind(t,this.getLanguage());this._setL10n(new H$([],e))}static#e(n,e){return P8(this,null,function*(){let{baseURL:i,paths:r}=yield new JF(this.#i()),o=[e];if(n!==e){let a=e.split("-",1)[0];a!==e&&o.push(a),o.push(n)}for(let a of o){let s=yield new JF(this.#t(a,i,r));s?yield s:a==="en-us"&&(yield this.#r(a))}})}static#t(n,e,i){return Mt(this,null,function*(){let r=i[n];if(!r)return null;let o=new URL(r,e),a=yield tce(o,"text");return _ce(n,a)})}static#i(){return Mt(this,null,function*(){try{let{href:n}=document.querySelector('link[type="application/l10n"]'),e=yield tce(n,"json");return{baseURL:n.replace(/[^/]*$/,"")||"./",paths:e}}catch{}return{baseURL:"./",paths:Object.create(null)}})}static#n(n){return P8(this,null,function*(){yield this.#r(n)})}static#r(n){return Mt(this,null,function*(){return _ce(n,`pdfjs-previous-button = .title = Previous Page pdfjs-previous-button-label = Previous pdfjs-next-button = .title = Next Page pdfjs-next-button-label = Next pdfjs-page-input = .title = Page pdfjs-of-pages = of { $pagesCount } pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount }) pdfjs-zoom-out-button = .title = Zoom Out pdfjs-zoom-out-button-label = Zoom Out pdfjs-zoom-in-button = .title = Zoom In pdfjs-zoom-in-button-label = Zoom In pdfjs-zoom-select = .title = Zoom pdfjs-presentation-mode-button = .title = Switch to Presentation Mode pdfjs-presentation-mode-button-label = Presentation Mode pdfjs-open-file-button = .title = Open File pdfjs-open-file-button-label = Open pdfjs-print-button = .title = Print pdfjs-print-button-label = Print pdfjs-save-button = .title = Save pdfjs-save-button-label = Save pdfjs-download-button = .title = Download pdfjs-download-button-label = Download pdfjs-bookmark-button = .title = Current Page (View URL from Current Page) pdfjs-bookmark-button-label = Current Page pdfjs-tools-button = .title = Tools pdfjs-tools-button-label = Tools pdfjs-first-page-button = .title = Go to First Page pdfjs-first-page-button-label = Go to First Page pdfjs-last-page-button = .title = Go to Last Page pdfjs-last-page-button-label = Go to Last Page pdfjs-page-rotate-cw-button = .title = Rotate Clockwise pdfjs-page-rotate-cw-button-label = Rotate Clockwise pdfjs-page-rotate-ccw-button = .title = Rotate Counterclockwise pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise pdfjs-cursor-text-select-tool-button = .title = Enable Text Selection Tool pdfjs-cursor-text-select-tool-button-label = Text Selection Tool pdfjs-cursor-hand-tool-button = .title = Enable Hand Tool pdfjs-cursor-hand-tool-button-label = Hand Tool pdfjs-scroll-page-button = .title = Use Page Scrolling pdfjs-scroll-page-button-label = Page Scrolling pdfjs-scroll-vertical-button = .title = Use Vertical Scrolling pdfjs-scroll-vertical-button-label = Vertical Scrolling pdfjs-scroll-horizontal-button = .title = Use Horizontal Scrolling pdfjs-scroll-horizontal-button-label = Horizontal Scrolling pdfjs-scroll-wrapped-button = .title = Use Wrapped Scrolling pdfjs-scroll-wrapped-button-label = Wrapped Scrolling pdfjs-spread-none-button = .title = Do not join page spreads pdfjs-spread-none-button-label = No Spreads pdfjs-spread-odd-button = .title = Join page spreads starting with odd-numbered pages pdfjs-spread-odd-button-label = Odd Spreads pdfjs-spread-even-button = .title = Join page spreads starting with even-numbered pages pdfjs-spread-even-button-label = Even Spreads pdfjs-document-properties-button = .title = Document Properties\u2026 pdfjs-document-properties-button-label = Document Properties\u2026 pdfjs-document-properties-file-name = File name: pdfjs-document-properties-file-size = File size: pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes) pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes) pdfjs-document-properties-title = Title: pdfjs-document-properties-author = Author: pdfjs-document-properties-subject = Subject: pdfjs-document-properties-keywords = Keywords: pdfjs-document-properties-creation-date = Creation Date: pdfjs-document-properties-modification-date = Modification Date: pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") } pdfjs-document-properties-creator = Creator: pdfjs-document-properties-producer = PDF Producer: pdfjs-document-properties-version = PDF Version: pdfjs-document-properties-page-count = Page Count: pdfjs-document-properties-page-size = Page Size: pdfjs-document-properties-page-size-unit-inches = in pdfjs-document-properties-page-size-unit-millimeters = mm pdfjs-document-properties-page-size-orientation-portrait = portrait pdfjs-document-properties-page-size-orientation-landscape = landscape pdfjs-document-properties-page-size-name-a-three = A3 pdfjs-document-properties-page-size-name-a-four = A4 pdfjs-document-properties-page-size-name-letter = Letter pdfjs-document-properties-page-size-name-legal = Legal pdfjs-document-properties-page-size-dimension-string = { $width } \xD7 { $height } { $unit } ({ $orientation }) pdfjs-document-properties-page-size-dimension-name-string = { $width } \xD7 { $height } { $unit } ({ $name }, { $orientation }) pdfjs-document-properties-linearized = Fast Web View: pdfjs-document-properties-linearized-yes = Yes pdfjs-document-properties-linearized-no = No pdfjs-document-properties-close-button = Close pdfjs-print-progress-message = Preparing document for printing\u2026 pdfjs-print-progress-percent = { $progress }% pdfjs-print-progress-close-button = Cancel pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser. pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing. pdfjs-toggle-sidebar-button = .title = Toggle Sidebar pdfjs-toggle-sidebar-notification-button = .title = Toggle Sidebar (document contains outline/attachments/layers) pdfjs-toggle-sidebar-button-label = Toggle Sidebar pdfjs-document-outline-button = .title = Show Document Outline (double-click to expand/collapse all items) pdfjs-document-outline-button-label = Document Outline pdfjs-attachments-button = .title = Show Attachments pdfjs-attachments-button-label = Attachments pdfjs-layers-button = .title = Show Layers (double-click to reset all layers to the default state) pdfjs-layers-button-label = Layers pdfjs-thumbs-button = .title = Show Thumbnails pdfjs-thumbs-button-label = Thumbnails pdfjs-current-outline-item-button = .title = Find Current Outline Item pdfjs-current-outline-item-button-label = Current Outline Item pdfjs-findbar-button = .title = Find in Document pdfjs-findbar-button-label = Find pdfjs-additional-layers = Additional Layers pdfjs-thumb-page-title = .title = Page { $page } pdfjs-thumb-page-canvas = .aria-label = Thumbnail of Page { $page } pdfjs-find-input = .title = Find .placeholder = Find in document\u2026 pdfjs-find-previous-button = .title = Find the previous occurrence of the phrase pdfjs-find-previous-button-label = Previous pdfjs-find-next-button = .title = Find the next occurrence of the phrase pdfjs-find-next-button-label = Next pdfjs-find-highlight-checkbox = Highlight All pdfjs-find-match-case-checkbox-label = Match Case pdfjs-find-match-diacritics-checkbox-label = Match Diacritics pdfjs-find-entire-word-checkbox-label = Whole Words pdfjs-find-reached-top = Reached top of document, continued from bottom pdfjs-find-reached-bottom = Reached end of document, continued from top pdfjs-find-match-count = { $total -> [one] { $current } of { $total } match *[other] { $current } of { $total } matches } pdfjs-find-match-count-limit = { $limit -> [one] More than { $limit } match *[other] More than { $limit } matches } pdfjs-find-not-found = Phrase not found pdfjs-page-scale-width = Page Width pdfjs-page-scale-fit = Page Fit pdfjs-page-scale-auto = Automatic Zoom pdfjs-page-scale-actual = Actual Size pdfjs-page-scale-percent = { $scale }% pdfjs-page-landmark = .aria-label = Page { $page } pdfjs-loading-error = An error occurred while loading the PDF. pdfjs-invalid-file-error = Invalid or corrupted PDF file. pdfjs-missing-file-error = Missing PDF file. pdfjs-unexpected-response-error = Unexpected server response. pdfjs-rendering-error = An error occurred while rendering the page. pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") } pdfjs-text-annotation-type = .alt = [{ $type } Annotation] pdfjs-password-label = Enter the password to open this PDF file. pdfjs-password-invalid = Invalid password. Please try again. pdfjs-password-ok-button = OK pdfjs-password-cancel-button = Cancel pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts. pdfjs-editor-free-text-button = .title = Text pdfjs-editor-free-text-button-label = Text pdfjs-editor-ink-button = .title = Draw pdfjs-editor-ink-button-label = Draw pdfjs-editor-stamp-button = .title = Add or edit images pdfjs-editor-stamp-button-label = Add or edit images pdfjs-editor-highlight-button = .title = Highlight pdfjs-editor-highlight-button-label = Highlight pdfjs-highlight-floating-button1 = .title = Highlight .aria-label = Highlight pdfjs-highlight-floating-button-label = Highlight pdfjs-editor-remove-ink-button = .title = Remove drawing pdfjs-editor-remove-freetext-button = .title = Remove text pdfjs-editor-remove-stamp-button = .title = Remove image pdfjs-editor-remove-highlight-button = .title = Remove highlight pdfjs-editor-free-text-color-input = Color pdfjs-editor-free-text-size-input = Size pdfjs-editor-ink-color-input = Color pdfjs-editor-ink-thickness-input = Thickness pdfjs-editor-ink-opacity-input = Opacity pdfjs-editor-stamp-add-image-button = .title = Add image pdfjs-editor-stamp-add-image-button-label = Add image pdfjs-editor-free-highlight-thickness-input = Thickness pdfjs-editor-free-highlight-thickness-title = .title = Change thickness when highlighting items other than text pdfjs-free-text = .aria-label = Text Editor pdfjs-free-text-default-content = Start typing\u2026 pdfjs-ink = .aria-label = Draw Editor pdfjs-ink-canvas = .aria-label = User-created image pdfjs-editor-alt-text-button-label = Alt text pdfjs-editor-alt-text-edit-button-label = Edit alt text pdfjs-editor-alt-text-dialog-label = Choose an option pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can\u2019t see the image or when it doesn\u2019t load. pdfjs-editor-alt-text-add-description-label = Add a description pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions. pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks. pdfjs-editor-alt-text-cancel-button = Cancel pdfjs-editor-alt-text-save-button = Save pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative pdfjs-editor-alt-text-textarea = .placeholder = For example, \u201CA young man sits down at a table to eat a meal\u201D pdfjs-editor-resizer-top-left = .aria-label = Top left corner \u2014 resize pdfjs-editor-resizer-top-middle = .aria-label = Top middle \u2014 resize pdfjs-editor-resizer-top-right = .aria-label = Top right corner \u2014 resize pdfjs-editor-resizer-middle-right = .aria-label = Middle right \u2014 resize pdfjs-editor-resizer-bottom-right = .aria-label = Bottom right corner \u2014 resize pdfjs-editor-resizer-bottom-middle = .aria-label = Bottom middle \u2014 resize pdfjs-editor-resizer-bottom-left = .aria-label = Bottom left corner \u2014 resize pdfjs-editor-resizer-middle-left = .aria-label = Middle left \u2014 resize pdfjs-editor-highlight-colorpicker-label = Highlight color pdfjs-editor-colorpicker-button = .title = Change color pdfjs-editor-colorpicker-dropdown = .aria-label = Color choices pdfjs-editor-colorpicker-yellow = .title = Yellow pdfjs-editor-colorpicker-green = .title = Green pdfjs-editor-colorpicker-blue = .title = Blue pdfjs-editor-colorpicker-pink = .title = Pink pdfjs-editor-colorpicker-red = .title = Red pdfjs-editor-highlight-show-all-button-label = Show all pdfjs-editor-highlight-show-all-button = .title = Show all pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description) pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description) pdfjs-editor-new-alt-text-textarea = .placeholder = Write your description here\u2026 pdfjs-editor-new-alt-text-description = Short description for people who can\u2019t see the image or when the image doesn\u2019t load. pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate. pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically pdfjs-editor-new-alt-text-not-now-button = Not now pdfjs-editor-new-alt-text-error-title = Couldn\u2019t create alt text automatically pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later. pdfjs-editor-new-alt-text-error-close-button = Close pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB) .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB) pdfjs-editor-new-alt-text-added-button-label = Alt text added pdfjs-editor-new-alt-text-missing-button-label = Missing alt text pdfjs-editor-new-alt-text-to-review-button-label = Review alt text pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText } pdfjs-image-alt-text-settings-button = .title = Image alt text settings pdfjs-image-alt-text-settings-button-label = Image alt text settings pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can\u2019t see the image or when the image doesn\u2019t load. pdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB) pdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text. pdfjs-editor-alt-text-settings-delete-model-button = Delete pdfjs-editor-alt-text-settings-download-model-button = Download pdfjs-editor-alt-text-settings-downloading-model-button = Downloading\u2026 pdfjs-editor-alt-text-settings-editor-title = Alt text editor pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text. pdfjs-editor-alt-text-settings-close-button = Close`)})}},wVe=1e3,I$=50,vce=1e3;function D$(){return document.location.hash}var U$=class{#e=null;constructor({linkService:n,eventBus:e}){this.linkService=n,this.eventBus=e,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",i=>{this._isPagesLoaded=!!i.pagesCount},{once:!0})})}initialize({fingerprint:n,resetHistory:e=!1,updateUrl:i=!1}){if(!n||typeof n!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();let r=this._fingerprint!==""&&this._fingerprint!==n;this._fingerprint=n,this._updateUrl=i===!0,this._initialized=!0,this.#d();let o=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=D$(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this.#r(o,!0)||e){let{hash:s,page:l,rotation:u}=this.#s(!0);if(!s||r||e){this.#t(null,!0);return}this.#t({hash:s,page:l,rotation:u},!0);return}let a=o.destination;this.#o(a,o.uid,!0),a.rotation!==void 0&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this.#c(),this._initialized=!1,this.#a()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:n=null,explicitDest:e,pageNumber:i}){if(!this._initialized)return;if(n&&typeof n!="string"){console.error(`PDFHistory.push: "${n}" is not a valid namedDest parameter.`);return}else if(Array.isArray(e)){if(!this.#n(i)&&(i!==null||this._destination)){console.error(`PDFHistory.push: "${i}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${e}" is not a valid explicitDest parameter.`);return}let r=n||JSON.stringify(e);if(!r)return;let o=!1;if(this._destination&&(EVe(this._destination.hash,r)||IVe(this._destination.dest,e))){if(this._destination.page)return;o=!0}this._popStateInProgress&&!o||(this.#t({dest:e,hash:r,page:i,rotation:this.linkService.rotation},o),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(n){if(this._initialized){if(!this.#n(n)){console.error(`PDFHistory.pushPage: "${n}" is not a valid page number.`);return}this._destination?.page!==n&&(this._popStateInProgress||(this.#t({dest:null,hash:`page=${n}`,page:n,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this.#i()}back(){if(!this._initialized||this._popStateInProgress)return;let n=window.history.state;this.#r(n)&&n.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;let n=window.history.state;this.#r(n)&&n.uid0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}#t(n,e=!1){let i=e||!this._destination,r={fingerprint:this._fingerprint,uid:i?this._uid:this._uid+1,destination:n};this.#o(n,r.uid);let o;if(this._updateUrl&&n?.hash){let a=document.location.href.split("#",1)[0];a.startsWith("file://")||(o=`${a}#${n.hash}`)}i?window.history.replaceState(r,"",o):window.history.pushState(r,"",o)}#i(n=!1){if(!this._position)return;let e=this._position;if(n&&(e=Object.assign(Object.create(null),this._position),e.temporary=!0),!this._destination){this.#t(e);return}if(this._destination.temporary){this.#t(e,!0);return}if(this._destination.hash===e.hash||!this._destination.page&&(I$<=0||this._numPositionUpdates<=I$))return;let i=!1;if(this._destination.page>=e.first&&this._destination.page<=e.page){if(this._destination.dest!==void 0||!this._destination.first)return;i=!0}this.#t(e,i)}#n(n){return Number.isInteger(n)&&n>0&&n<=this.linkService.pagesCount}#r(n,e=!1){if(!n)return!1;if(n.fingerprint!==this._fingerprint)if(e){if(typeof n.fingerprint!="string"||n.fingerprint.length!==this._fingerprint.length)return!1;let[i]=performance.getEntriesByType("navigation");if(i?.type!=="reload")return!1}else return!1;return!(!Number.isInteger(n.uid)||n.uid<0||n.destination===null||typeof n.destination!="object")}#o(n,e,i=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),i&&n?.temporary&&delete n.temporary,this._destination=n,this._uid=e,this._maxUid=Math.max(this._maxUid,e),this._numPositionUpdates=0}#s(n=!1){let e=unescape(D$()).substring(1),i=$O(e),r=i.get("nameddest")||"",o=i.get("page")|0;return(!this.#n(o)||n&&r.length>0)&&(o=null),{hash:e,page:o,rotation:this.linkService.rotation}}#l({location:n}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},!this._popStateInProgress&&(I$>0&&this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,vce>0&&(this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this.#i(!0),this._updateViewareaTimeout=null},vce)))}#u({state:n}){let e=D$(),i=this._currentHash!==e;if(this._currentHash=e,!n){this._uid++;let{hash:o,page:a,rotation:s}=this.#s();this.#t({hash:o,page:a,rotation:s},!0);return}if(!this.#r(n))return;this._popStateInProgress=!0,i&&(this._blockHashChange++,V4e({target:window,name:"hashchange",delay:wVe}).then(()=>{this._blockHashChange--}));let r=n.destination;this.#o(r,n.uid,!0),wce(r.rotation)&&(this.linkService.rotation=r.rotation),r.dest?this.linkService.goToDestination(r.dest):r.hash?this.linkService.setHash(r.hash):r.page&&(this.linkService.page=r.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}#c(){(!this._destination||this._destination.temporary)&&this.#i()}#d(){if(this.#e)return;this.#e=new AbortController;let{signal:n}=this.#e;this.eventBus._on("updateviewarea",this.#l.bind(this),{signal:n}),window.addEventListener("popstate",this.#u.bind(this),{signal:n}),window.addEventListener("pagehide",this.#c.bind(this),{signal:n})}#a(){this.#e?.abort(),this.#e=null}};function EVe(t,n){return typeof t!="string"||typeof n!="string"?!1:t===n||$O(t).get("nameddest")===n}function IVe(t,n){function e(i,r){if(typeof i!=typeof r||Array.isArray(i)||Array.isArray(r))return!1;if(i!==null&&typeof i=="object"&&r!==null){if(Object.keys(i).length!==Object.keys(r).length)return!1;for(let o in i)if(!e(i[o],r[o]))return!1;return!0}return i===r||Number.isNaN(i)&&Number.isNaN(r)}if(!(Array.isArray(t)&&Array.isArray(n))||t.length!==n.length)return!1;for(let i=0,r=t.length;i1;(function(){(r||i)&&FO.set("maxCanvasPixels",5242880)})(),function(){i&&FO.set("useSystemFonts",!1)}()}var FO,Ot={BROWSER:1,VIEWER:2,API:4,WORKER:8,EVENT_DISPATCH:16,PREFERENCE:128},$$={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},Wf={allowedGlobalEvents:{value:null,kind:Ot.BROWSER},canvasMaxAreaInBytes:{value:-1,kind:Ot.BROWSER+Ot.API},isInAutomation:{value:!1,kind:Ot.BROWSER},localeProperties:{value:{lang:navigator.language||"en-US"},kind:Ot.BROWSER},nimbusDataStr:{value:"",kind:Ot.BROWSER},supportsCaretBrowsingMode:{value:!1,kind:Ot.BROWSER},supportsDocumentFonts:{value:!0,kind:Ot.BROWSER},supportsIntegratedFind:{value:!1,kind:Ot.BROWSER},supportsMouseWheelZoomCtrlKey:{value:!0,kind:Ot.BROWSER},supportsMouseWheelZoomMetaKey:{value:!0,kind:Ot.BROWSER},supportsPinchToZoom:{value:!0,kind:Ot.BROWSER},toolbarDensity:{value:0,kind:Ot.BROWSER+Ot.EVENT_DISPATCH},altTextLearnMoreUrl:{value:"",kind:Ot.VIEWER+Ot.PREFERENCE},annotationEditorMode:{value:0,kind:Ot.VIEWER+Ot.PREFERENCE},annotationMode:{value:2,kind:Ot.VIEWER+Ot.PREFERENCE},cursorToolOnLoad:{value:0,kind:Ot.VIEWER+Ot.PREFERENCE},debuggerSrc:{value:"./debugger.mjs",kind:Ot.VIEWER},defaultZoomDelay:{value:400,kind:Ot.VIEWER+Ot.PREFERENCE},defaultZoomValue:{value:"",kind:Ot.VIEWER+Ot.PREFERENCE},disableHistory:{value:!1,kind:Ot.VIEWER},disablePageLabels:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},enableAltText:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},enableAltTextModelDownload:{value:!0,kind:Ot.VIEWER+Ot.PREFERENCE+Ot.EVENT_DISPATCH},enableGuessAltText:{value:!0,kind:Ot.VIEWER+Ot.PREFERENCE+Ot.EVENT_DISPATCH},enableHighlightFloatingButton:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},enableNewAltTextWhenAddingImage:{value:!0,kind:Ot.VIEWER+Ot.PREFERENCE},enablePermissions:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:Ot.VIEWER+Ot.PREFERENCE},enableScripting:{value:!0,kind:Ot.VIEWER+Ot.PREFERENCE},enableUpdatedAddImage:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:Ot.VIEWER},externalLinkTarget:{value:0,kind:Ot.VIEWER+Ot.PREFERENCE},highlightEditorColors:{value:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",kind:Ot.VIEWER+Ot.PREFERENCE},historyUpdateUrl:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},imageResourcesPath:{value:"./images/",kind:Ot.VIEWER},maxCanvasPixels:{value:2**25,kind:Ot.VIEWER},forcePageColors:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:Ot.VIEWER+Ot.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:Ot.VIEWER+Ot.PREFERENCE},pdfBugEnabled:{value:!1,kind:Ot.VIEWER+Ot.PREFERENCE},printResolution:{value:150,kind:Ot.VIEWER},sidebarViewOnLoad:{value:-1,kind:Ot.VIEWER+Ot.PREFERENCE},scrollModeOnLoad:{value:-1,kind:Ot.VIEWER+Ot.PREFERENCE},spreadModeOnLoad:{value:-1,kind:Ot.VIEWER+Ot.PREFERENCE},textLayerMode:{value:1,kind:Ot.VIEWER+Ot.PREFERENCE},viewOnLoad:{value:0,kind:Ot.VIEWER+Ot.PREFERENCE},cMapPacked:{value:!0,kind:Ot.API},cMapUrl:{value:"../web/cmaps/",kind:Ot.API},disableAutoFetch:{value:!1,kind:Ot.API+Ot.PREFERENCE},disableFontFace:{value:!1,kind:Ot.API+Ot.PREFERENCE},disableRange:{value:!1,kind:Ot.API+Ot.PREFERENCE},disableStream:{value:!1,kind:Ot.API+Ot.PREFERENCE},docBaseUrl:{value:"",kind:Ot.API},enableHWA:{value:!0,kind:Ot.API+Ot.VIEWER+Ot.PREFERENCE},enableXfa:{value:!0,kind:Ot.API+Ot.PREFERENCE},fontExtraProperties:{value:!1,kind:Ot.API},isEvalSupported:{value:!0,kind:Ot.API},isOffscreenCanvasSupported:{value:!0,kind:Ot.API},maxImageSize:{value:-1,kind:Ot.API},pdfBug:{value:!1,kind:Ot.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:Ot.API},useSystemFonts:{value:void 0,kind:Ot.API,type:$$.BOOLEAN+$$.UNDEFINED},verbosity:{value:1,kind:Ot.API},workerPort:{value:null,kind:Ot.WORKER},workerSrc:{value:"../build/pdf.worker.mjs",kind:Ot.WORKER}};Wf.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:Ot.VIEWER},Wf.sandboxBundleSrc={value:"../build/pdf.sandbox.mjs",kind:Ot.VIEWER},Wf.viewerCssTheme={value:0,kind:Ot.VIEWER+Ot.PREFERENCE},Wf.enableFakeMLManager={value:!0,kind:Ot.VIEWER};Wf.disablePreferences={value:!1,kind:Ot.VIEWER};var q$=class{static eventBus;static#e=new Map;static{for(let n in Wf)this.#e.set(n,Wf[n].value);for(let[n,e]of FO)this.#e.set(n,e);this._hasInvokedSet=!1,this._checkDisablePreferences=()=>this.get("disablePreferences")?!0:(this._hasInvokedSet&&console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'),!1)}static get(n){return this.#e.get(n)}static getAll(n=null,e=!1){let i=Object.create(null);for(let r in Wf){let o=Wf[r];n&&!(n&o.kind)||(i[r]=e?o.value:this.#e.get(r))}return i}static set(n,e){this.setAll({[n]:e})}static setAll(n,e=!1){this._hasInvokedSet||=!0;let i;for(let r in n){let o=Wf[r],a=n[r];if(!o||!(typeof a==typeof o.value||$$[(typeof a).toUpperCase()]&o.type))continue;let{kind:s}=o;e&&!(s&Ot.BROWSER||s&Ot.PREFERENCE)||(this.eventBus&&s&Ot.EVENT_DISPATCH&&(i||=new Map).set(r,a),this.#e.set(r,a))}if(i)for(let[r,o]of i)this.eventBus.dispatch(r.toLowerCase(),{source:this,value:o})}},W$=class{#e=null;constructor(n){this.pageIndex=n.pageIndex}render(n="display"){return Mt(this,null,function*(){n!=="display"||this.#e||this._cancelled||(this.#e=new F4e({pageIndex:this.pageIndex}))})}cancel(){this._cancelled=!0,this.#e&&(this.#e.destroy(),this.#e=null)}setParent(n){this.#e?.setParent(n)}getDrawLayer(){return this.#e}},bce={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},DVe=/^H(\d+)$/,jO=class{#e=void 0;get renderingDone(){return this.#e!==void 0}render(n){if(this.#e!==void 0)return this.#e;let e=this.#i(n);return e?.classList.add("structTree"),this.#e=e}hide(){this.#e&&!this.#e.hidden&&(this.#e.hidden=!0)}show(){this.#e?.hidden&&(this.#e.hidden=!1)}#t(n,e){let{alt:i,id:r,lang:o}=n;i!==void 0&&e.setAttribute("aria-label",RO(i)),r!==void 0&&e.setAttribute("aria-owns",r),o!==void 0&&e.setAttribute("lang",RO(o,!0))}#i(n){if(!n)return null;let e=document.createElement("span");if("role"in n){let{role:i}=n,r=i.match(DVe);r?(e.setAttribute("role","heading"),e.setAttribute("aria-level",r[1])):bce[i]&&e.setAttribute("role",bce[i])}if(this.#t(n,e),n.children)if(n.children.length===1&&"id"in n.children[0])this.#t(n.children[0],e);else for(let i of n.children)e.append(this.#i(i));return e}},Y$=class t{#e=!1;#t=null;#i=new Map;#n=new Map;setTextMapping(n){this.#t=n}static#r(n,e){let i=n.getBoundingClientRect(),r=e.getBoundingClientRect();if(i.width===0&&i.height===0)return 1;if(r.width===0&&r.height===0)return-1;let o=i.y,a=i.y+i.height,s=i.y+i.height/2,l=r.y,u=r.y+r.height,p=r.y+r.height/2;if(s<=l&&p>=a)return-1;if(p<=o&&s>=u)return 1;let g=i.x+i.width/2,_=r.x+r.width/2;return g-_}enable(){if(this.#e)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#t)throw new Error("Text divs and strings have not been set.");if(this.#e=!0,this.#t=this.#t.slice(),this.#t.sort(t.#r),this.#i.size>0){let n=this.#t;for(let[e,i]of this.#i){if(!document.getElementById(e)){this.#i.delete(e);continue}this.#o(e,n[i])}}for(let[n,e]of this.#n)this.addPointerInTextLayer(n,e);this.#n.clear()}disable(){this.#e&&(this.#n.clear(),this.#t=null,this.#e=!1)}removePointerInTextLayer(n){if(!this.#e){this.#n.delete(n);return}let e=this.#t;if(!e||e.length===0)return;let{id:i}=n,r=this.#i.get(i);if(r===void 0)return;let o=e[r];this.#i.delete(i);let a=o.getAttribute("aria-owns");a?.includes(i)&&(a=a.split(" ").filter(s=>s!==i).join(" "),a?o.setAttribute("aria-owns",a):(o.removeAttribute("aria-owns"),o.setAttribute("role","presentation")))}#o(n,e){let i=e.getAttribute("aria-owns");i?.includes(n)||e.setAttribute("aria-owns",i?`${i} ${n}`:n),e.removeAttribute("role")}addPointerInTextLayer(n,e){let{id:i}=n;if(!i)return null;if(!this.#e)return this.#n.set(n,e),null;e&&this.removePointerInTextLayer(n);let r=this.#t;if(!r||r.length===0)return null;let o=d2(r,u=>t.#r(n,u)<0),a=Math.max(0,o-1),s=r[a];this.#o(i,s),this.#i.set(i,a);let l=s.parentNode;return l?.classList.contains("markedContent")?l.id:null}moveElementInDOM(n,e,i,r){let o=this.addPointerInTextLayer(i,r);if(!n.hasChildNodes())return n.append(e),o;let a=Array.from(n.childNodes).filter(u=>u!==e);if(a.length===0)return o;let s=i||e,l=d2(a,u=>t.#r(s,u)<0);return l===0?a[0].before(e):a[l-1].after(e),o}},K$=class{#e=null;constructor({findController:n,eventBus:e,pageIndex:i}){this.findController=n,this.matches=[],this.eventBus=e,this.pageIdx=i,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(n,e){this.textDivs=n,this.textContentItemsStr=e}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this.#e||(this.#e=new AbortController,this.eventBus._on("updatetextlayermatches",n=>{(n.pageIndex===this.pageIdx||n.pageIndex===-1)&&this._updateMatches()},{signal:this.#e.signal})),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this.#e?.abort(),this.#e=null,this._updateMatches(!0))}_convertMatches(n,e){if(!n)return[];let{textContentItemsStr:i}=this,r=0,o=0,a=i.length-1,s=[];for(let l=0,u=n.length;l=o+i[r].length;)o+=i[r].length,r++;r===i.length&&console.error("Could not find a matching mapping");let g={begin:{divIdx:r,offset:p-o}};for(p+=e[l];r!==a&&p>o+i[r].length;)o+=i[r].length,r++;g.end={divIdx:r,offset:p-o},s.push(g)}return s}_renderMatches(n){if(n.length===0)return;let{findController:e,pageIdx:i}=this,{textContentItemsStr:r,textDivs:o}=this,a=i===e.selected.pageIdx,s=e.selected.matchIdx,l=e.state.highlightAll,u=null,p={divIdx:-1,offset:void 0};function g(C,D){let A=C.divIdx;return o[A].textContent="",_(A,0,C.offset,D)}function _(C,D,A,M){let R=o[C];if(R.nodeType===Node.TEXT_NODE){let F=document.createElement("span");R.before(F),F.append(R),o[C]=F,R=F}let j=r[C].substring(D,A),K=document.createTextNode(j);if(M){let F=document.createElement("span");return F.className=`${M} appended`,F.append(K),R.append(F),M.includes("selected")?F.offsetLeft:0}return R.append(K),0}let v=s,y=v+1;if(l)v=0,y=n.length;else if(!a)return;let x=-1,I=-1;for(let C=v;C{e.classList.add("selecting")}),e.addEventListener("copy",i=>{if(!this.#e){let r=document.getSelection();i.clipboardData.setData("text/plain",RO(N4e(r.toString())))}i.preventDefault(),i.stopPropagation()}),t.#r.set(e,n),t.#u()}static#l(n){this.#r.delete(n),this.#r.size===0&&(this.#o?.abort(),this.#o=null)}static#u(){if(this.#o)return;this.#o=new AbortController;let{signal:n}=this.#o,e=(a,s)=>{s.append(a),a.style.width="",a.style.height="",s.classList.remove("selecting")},i=!1;document.addEventListener("pointerdown",()=>{i=!0},{signal:n}),document.addEventListener("pointerup",()=>{i=!1,this.#r.forEach(e)},{signal:n}),window.addEventListener("blur",()=>{i=!1,this.#r.forEach(e)},{signal:n}),document.addEventListener("keyup",()=>{i||this.#r.forEach(e)},{signal:n});var r,o;document.addEventListener("selectionchange",()=>{let a=document.getSelection();if(a.rangeCount===0){this.#r.forEach(e);return}let s=new Set;for(let v=0;v{o===this._optionalContentConfigPromise&&(this.#d.initialOptionalContent=a.hasInitialVisibility)}),n.l10n||this.l10n.translate(this.div)}}#h(n,e){let i=AVe.get(e),r=this.#m[i];if(this.#m[i]=n,r){r.replaceWith(n);return}for(let o=i-1;o>=0;o--){let a=this.#m[o];if(a){a.after(n);return}}this.div.prepend(n)}get renderingState(){return this.#u}set renderingState(n){if(n!==this.#u)switch(this.#u=n,this.#o&&(clearTimeout(this.#o),this.#o=null),n){case Cs.PAUSED:this.div.classList.remove("loading");break;case Cs.RUNNING:this.div.classList.add("loadingIcon"),this.#o=setTimeout(()=>{this.div.classList.add("loading"),this.#o=null},0);break;case Cs.INITIAL:case Cs.FINISHED:this.div.classList.remove("loadingIcon","loading");break}}#p(){let{viewport:n}=this;if(this.pdfPage){if(this.#s===n.rotation)return;this.#s=n.rotation}O4e(this.div,n,!0,!1)}setPdfPage(n){this._isStandalone&&(this.pageColors?.foreground==="CanvasText"||this.pageColors?.background==="Canvas")&&(this._container?.style.setProperty("--hcm-highlight-filter",n.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),this._container?.style.setProperty("--hcm-highlight-selected-filter",n.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","Highlight"))),this.pdfPage=n,this.pdfPageRotate=n.rotate;let e=(this.rotation+this.pdfPageRotate)%360;this.viewport=n.getViewport({scale:this.scale*_0.PDF_TO_CSS_UNITS,rotation:e}),this.#p(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}get _textHighlighter(){return NO(this,"_textHighlighter",new K$({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#r.findController}))}#f(n,e){this.eventBus.dispatch(n,{source:this,pageNumber:this.id,error:e})}#_(){return Mt(this,null,function*(){let n=null;try{yield this.annotationLayer.render(this.viewport,"display")}catch(e){console.error(`#renderAnnotationLayer: "${e}".`),n=e}finally{this.#f("annotationlayerrendered",n)}})}#g(){return Mt(this,null,function*(){let n=null;try{yield this.annotationEditorLayer.render(this.viewport,"display")}catch(e){console.error(`#renderAnnotationEditorLayer: "${e}".`),n=e}finally{this.#f("annotationeditorlayerrendered",n)}})}#v(){return Mt(this,null,function*(){try{yield this.drawLayer.render("display")}catch(n){console.error(`#renderDrawLayer: "${n}".`)}})}#y(){return Mt(this,null,function*(){let n=null;try{let e=yield this.xfaLayer.render(this.viewport,"display");e?.textDivs&&this._textHighlighter&&this.#w(e.textDivs)}catch(e){console.error(`#renderXfaLayer: "${e}".`),n=e}finally{this.xfaLayer?.div&&(this.l10n.pause(),this.#h(this.xfaLayer.div,"xfaLayer"),this.l10n.resume()),this.#f("xfalayerrendered",n)}})}#C(){return Mt(this,null,function*(){if(!this.textLayer)return;let n=null;try{yield this.textLayer.render(this.viewport)}catch(e){if(e instanceof D4e)return;console.error(`#renderTextLayer: "${e}".`),n=e}this.#f("textlayerrendered",n),this.#x()})}#x(){return Mt(this,null,function*(){if(!this.textLayer)return;this.structTreeLayer||=new jO;let n=yield this.structTreeLayer.renderingDone?null:this.pdfPage.getStructTree(),e=this.structTreeLayer?.render(n);e&&(this.l10n.pause(),this.canvas?.append(e),this.l10n.resume()),this.structTreeLayer?.show()})}#w(n){return Mt(this,null,function*(){let e=yield this.pdfPage.getTextContent(),i=[];for(let r of e.items)i.push(r.str);this._textHighlighter.setTextMapping(n,i),this._textHighlighter.enable()})}_resetZoomLayer(n=!1){if(!this.zoomLayer)return;let e=this.zoomLayer.firstChild;this.#a.delete(e),e.width=0,e.height=0,n&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:n=!1,keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:i=!1,keepXfaLayer:r=!1,keepTextLayer:o=!1}={}){this.cancelRendering({keepAnnotationLayer:e,keepAnnotationEditorLayer:i,keepXfaLayer:r,keepTextLayer:o}),this.renderingState=Cs.INITIAL;let a=this.div,s=a.childNodes,l=n&&this.zoomLayer||null,u=e&&this.annotationLayer?.div||null,p=i&&this.annotationEditorLayer?.div||null,g=r&&this.xfaLayer?.div||null,_=o&&this.textLayer?.div||null;for(let v=s.length-1;v>=0;v--){let y=s[v];switch(y){case l:case u:case p:case g:case _:continue}y.remove();let x=this.#m.indexOf(y);x>=0&&(this.#m[x]=null)}a.removeAttribute("data-loaded"),u&&this.annotationLayer.hide(),p&&this.annotationEditorLayer.hide(),g&&this.xfaLayer.hide(),_&&this.textLayer.hide(),this.structTreeLayer?.hide(),l||(this.canvas&&(this.#a.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer())}toggleEditingMode(n){this.hasEditableAnnotations()&&(this.#n=n,this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0}))}update({scale:n=0,rotation:e=null,optionalContentConfigPromise:i=null,drawingDelay:r=-1}){this.scale=n||this.scale,typeof e=="number"&&(this.rotation=e),i instanceof Promise&&(this._optionalContentConfigPromise=i,i.then(a=>{i===this._optionalContentConfigPromise&&(this.#d.initialOptionalContent=a.hasInitialVisibility)})),this.#d.directDrawing=!0;let o=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*_0.PDF_TO_CSS_UNITS,rotation:o}),this.#p(),this._isStandalone&&this._container?.style.setProperty("--scale-factor",this.viewport.scale),this.canvas){let a=!1;if(this.#i){if(this.maxCanvasPixels===0)a=!0;else if(this.maxCanvasPixels>0){let{width:l,height:u}=this.viewport,{sx:p,sy:g}=this.outputScale;a=(Math.floor(l)*p|0)*(Math.floor(u)*g|0)>this.maxCanvasPixels}}let s=r>=0&&r<1e3;if(s||a){if(s&&!a&&this.renderingState!==Cs.FINISHED&&(this.cancelRendering({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:r}),this.renderingState=Cs.FINISHED,this.#d.directDrawing=!1),this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!s,hideTextLayer:s}),s)return;this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this.#l});return}!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0})}cancelRendering({keepAnnotationLayer:n=!1,keepAnnotationEditorLayer:e=!1,keepXfaLayer:i=!1,keepTextLayer:r=!1,cancelExtraDelay:o=0}={}){this.renderTask&&(this.renderTask.cancel(o),this.renderTask=null),this.resume=null,this.textLayer&&(!r||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationLayer&&(!n||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.annotationEditorLayer&&(!e||!this.annotationEditorLayer.div)&&(this.drawLayer&&(this.drawLayer.cancel(),this.drawLayer=null),this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!i||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({target:n,redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:i=!1,redrawXfaLayer:r=!1,redrawTextLayer:o=!1,hideTextLayer:a=!1}){if(!n.hasAttribute("zooming")){n.setAttribute("zooming",!0);let{style:l}=n;l.width=l.height=""}let s=this.#a.get(n);if(this.viewport!==s){let l=this.viewport.rotation-s.rotation,u=Math.abs(l),p=1,g=1;if(u===90||u===270){let{width:_,height:v}=this.viewport;p=v/_,g=_/v}n.style.transform=`rotate(${l}deg) scale(${p}, ${g})`}e&&this.annotationLayer&&this.#_(),i&&this.annotationEditorLayer&&(this.drawLayer&&this.#v(),this.#g()),r&&this.xfaLayer&&this.#y(),this.textLayer&&(a?(this.textLayer.hide(),this.structTreeLayer?.hide()):o&&this.#C())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(n,e){return this.viewport.convertToPdfPoint(n,e)}#k(n,e=null){return Mt(this,null,function*(){if(n===this.renderTask&&(this.renderTask=null),e instanceof M$){this.#l=null;return}if(this.#l=e,this.renderingState=Cs.FINISHED,this._resetZoomLayer(!0),this.#d.regularAnnotations=!n.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this.#l}),e)throw e})}draw(){return Mt(this,null,function*(){this.renderingState!==Cs.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());let{div:n,l10n:e,pageColors:i,pdfPage:r,viewport:o}=this;if(!r)throw this.renderingState=Cs.FINISHED,new Error("pdfPage is not loaded");this.renderingState=Cs.RUNNING;let a=document.createElement("div");if(a.classList.add("canvasWrapper"),this.#h(a,"canvasWrapper"),!this.textLayer&&this.#c!==qf.DISABLE&&!r.isPureXfa&&(this._accessibilityManager||=new Y$,this.textLayer=new HO({pdfPage:r,highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,enablePermissions:this.#c===qf.ENABLE_PERMISSIONS,onAppend:j=>{this.l10n.pause(),this.#h(j,"textLayer"),this.l10n.resume()}})),!this.annotationLayer&&this.#e!==v0.DISABLE){let{annotationStorage:j,annotationEditorUIManager:K,downloadManager:F,enableScripting:V,fieldObjectsPromise:Q,hasJSActionsPromise:te,linkService:re}=this.#r;this._annotationCanvasMap||=new Map,this.annotationLayer=new OO({pdfPage:r,annotationStorage:j,imageResourcesPath:this.imageResourcesPath,renderForms:this.#e===v0.ENABLE_FORMS,linkService:re,downloadManager:F,enableScripting:V,hasJSActionsPromise:te,fieldObjectsPromise:Q,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager,annotationEditorUIManager:K,onAppend:O=>{this.#h(O,"annotationLayer")}})}let s=j=>{if(_?.(!1),this.renderingQueue&&!this.renderingQueue.isHighestPriority(this)){this.renderingState=Cs.PAUSED,this.resume=()=>{this.renderingState=Cs.RUNNING,j()};return}j()},{width:l,height:u}=o,p=document.createElement("canvas");p.setAttribute("role","presentation"),p.hidden=!0;let g=!!(i?.background&&i?.foreground),_=j=>{(!g||j)&&(p.hidden=!1,_=null)};a.append(p),this.canvas=p;let v=p.getContext("2d",{alpha:!1,willReadFrequently:!this.#t}),y=this.outputScale=new T$;if(this.maxCanvasPixels===0){let j=1/this.scale;y.sx*=j,y.sy*=j,this.#i=!0}else if(this.maxCanvasPixels>0){let j=l*u,K=Math.sqrt(this.maxCanvasPixels/j);y.sx>K||y.sy>K?(y.sx=K,y.sy=K,this.#i=!0):this.#i=!1}let x=Wle(y.sx),I=Wle(y.sy);p.width=DO(l*y.sx,x[0]),p.height=DO(u*y.sy,I[0]);let{style:C}=p;C.width=DO(l,x[1])+"px",C.height=DO(u,I[1])+"px",this.#a.set(p,o);let D=y.scaled?[y.sx,0,0,y.sy,0,0]:null,A={canvasContext:v,transform:D,viewport:o,annotationMode:this.#e,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:i,isEditing:this.#n},M=this.renderTask=r.render(A);M.onContinue=s;let R=M.promise.then(()=>Mt(this,null,function*(){_?.(!0),yield this.#k(M),this.#C(),this.annotationLayer&&(yield this.#_());let{annotationEditorUIManager:j}=this.#r;j&&(this.drawLayer||=new W$({pageIndex:this.id}),yield this.#v(),this.drawLayer.setParent(a),this.annotationEditorLayer||=new G$({uiManager:j,pdfPage:r,l10n:e,accessibilityManager:this._accessibilityManager,annotationLayer:this.annotationLayer?.annotationLayer,textLayer:this.textLayer,drawLayer:this.drawLayer.getDrawLayer(),onAppend:K=>{this.#h(K,"annotationEditorLayer")}}),this.#g())}),j=>(j instanceof M$||_?.(!0),this.#k(M,j)));if(r.isPureXfa){if(!this.xfaLayer){let{annotationStorage:j,linkService:K}=this.#r;this.xfaLayer=new zO({pdfPage:r,annotationStorage:j,linkService:K})}this.#y()}return n.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),R})}setPageLabel(n){this.pageLabel=typeof n=="string"?n:null,this.div.setAttribute("data-l10n-args",JSON.stringify({page:this.pageLabel??this.id})),this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){let{directDrawing:n,initialOptionalContent:e,regularAnnotations:i}=this.#d;return n&&e&&i?this.canvas:null}};function kVe(t){return Mt(this,null,function*(){let n="",e=n.split("#",1)[0],{info:i,metadata:r,contentDispositionFilename:o,contentLength:a}=yield t.getMetadata();if(!a){let{length:s}=yield t.getDownloadInfo();a=s}return Gi(Ve({},i),{baseURL:e,filesize:a,filename:o||R4e(n),metadata:r?.getRaw(),authors:r?.get("dc:creator"),numPages:t.numPages,URL:n})})}var X$=class{constructor(n){this._ready=new Promise((e,i)=>{import(n).then(o=>{e(o.QuickJSSandbox())}).catch(i)})}createSandbox(n){return Mt(this,null,function*(){(yield this._ready).create(n)})}dispatchEventInSandbox(n){return Mt(this,null,function*(){let e=yield this._ready;setTimeout(()=>e.dispatchEvent(n),0)})}destroySandbox(){return Mt(this,null,function*(){(yield this._ready).nukeSandbox()})}},Q$=class{#e=null;#t=null;#i=null;#n=null;#r=null;#o=null;#s=null;#l=null;#u=!1;#c=null;#d=null;constructor({eventBus:n,externalServices:e=null,docProperties:i=null}){this.#r=n,this.#o=e,this.#i=i}setViewer(n){this.#l=n}setDocument(n){return Mt(this,null,function*(){if(this.#s&&(yield this.#f()),this.#s=n,!n)return;let[e,i,r]=yield Promise.all([n.getFieldObjects(),n.getCalculationOrderIds(),n.getJSActions()]);if(!e&&!r){yield this.#f();return}if(n!==this.#s)return;try{this.#c=this.#p()}catch(s){console.error(`setDocument: "${s.message}".`),yield this.#f();return}let o=this.#r;this.#n=new AbortController;let{signal:a}=this.#n;o._on("updatefromsandbox",s=>{s?.source===window&&this.#a(s.detail)},{signal:a}),o._on("dispatcheventinsandbox",s=>{this.#c?.dispatchEventInSandbox(s.detail)},{signal:a}),o._on("pagechanging",({pageNumber:s,previous:l})=>{s!==l&&(this.#h(l),this.#m(s))},{signal:a}),o._on("pagerendered",({pageNumber:s})=>{this._pageOpenPending.has(s)&&s===this.#l.currentPageNumber&&this.#m(s)},{signal:a}),o._on("pagesdestroy",()=>Mt(this,null,function*(){yield this.#h(this.#l.currentPageNumber),yield this.#c?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),this.#e?.resolve()}),{signal:a});try{let s=yield this.#i(n);if(n!==this.#s)return;yield this.#c.createSandbox({objects:e,calculationOrder:i,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:Gi(Ve({},s),{actions:r})}),o.dispatch("sandboxcreated",{source:this})}catch(s){console.error(`setDocument: "${s.message}".`),yield this.#f();return}yield this.#c?.dispatchEventInSandbox({id:"doc",name:"Open"}),yield this.#m(this.#l.currentPageNumber,!0),Promise.resolve().then(()=>{n===this.#s&&(this.#u=!0)})})}dispatchWillSave(){return Mt(this,null,function*(){return this.#c?.dispatchEventInSandbox({id:"doc",name:"WillSave"})})}dispatchDidSave(){return Mt(this,null,function*(){return this.#c?.dispatchEventInSandbox({id:"doc",name:"DidSave"})})}dispatchWillPrint(){return Mt(this,null,function*(){if(this.#c){yield this.#d?.promise,this.#d=Promise.withResolvers();try{yield this.#c.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}catch(n){throw this.#d.resolve(),this.#d=null,n}yield this.#d.promise}})}dispatchDidPrint(){return Mt(this,null,function*(){return this.#c?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})}get destroyPromise(){return this.#t?.promise||null}get ready(){return this.#u}get _pageOpenPending(){return NO(this,"_pageOpenPending",new Set)}get _visitedPages(){return NO(this,"_visitedPages",new Map)}#a(n){return Mt(this,null,function*(){let e=this.#l,i=e.isInPresentationMode||e.isChangingPresentationMode,{id:r,siblings:o,command:a,value:s}=n;if(!r){switch(a){case"clear":console.clear();break;case"error":console.error(s);break;case"layout":if(!i){let u=r4e(s);e.spreadMode=u.spreadMode}break;case"page-num":e.currentPageNumber=s+1;break;case"print":yield e.pagesPromise,this.#r.dispatch("print",{source:this});break;case"println":console.log(s);break;case"zoom":i||(e.currentScaleValue=s);break;case"SaveAs":this.#r.dispatch("download",{source:this});break;case"FirstPage":e.currentPageNumber=1;break;case"LastPage":e.currentPageNumber=e.pagesCount;break;case"NextPage":e.nextPage();break;case"PrevPage":e.previousPage();break;case"ZoomViewIn":i||e.increaseScale();break;case"ZoomViewOut":i||e.decreaseScale();break;case"WillPrintFinished":this.#d?.resolve(),this.#d=null;break}return}if(i&&n.focus)return;delete n.id,delete n.siblings;let l=o?[r,...o]:[r];for(let u of l){let p=document.querySelector(`[data-element-id="${u}"]`);p?p.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:n})):this.#s?.annotationStorage.setValue(u,n)}})}#m(n,e=!1){return Mt(this,null,function*(){let i=this.#s,r=this._visitedPages;if(e&&(this.#e=Promise.withResolvers()),!this.#e)return;let o=this.#l.getPageView(n-1);if(o?.renderingState!==Cs.FINISHED){this._pageOpenPending.add(n);return}this._pageOpenPending.delete(n);let a=Mt(this,null,function*(){let s=yield r.has(n)?null:o.pdfPage?.getJSActions();i===this.#s&&(yield this.#c?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:n,actions:s}))});r.set(n,a)})}#h(n){return Mt(this,null,function*(){let e=this.#s,i=this._visitedPages;if(!this.#e||this._pageOpenPending.has(n))return;let r=i.get(n);r&&(i.set(n,null),yield r,e===this.#s&&(yield this.#c?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:n})))})}#p(){if(this.#t=Promise.withResolvers(),this.#c)throw new Error("#initScripting: Scripting already exists.");return this.#o.createScripting()}#f(){return Mt(this,null,function*(){if(!this.#c){this.#s=null,this.#t?.resolve();return}this.#e&&(yield Promise.race([this.#e.promise,new Promise(n=>{setTimeout(n,1e3)})]).catch(()=>{}),this.#e=null),this.#s=null;try{yield this.#c.destroySandbox()}catch{}this.#d?.reject(new Error("Scripting destroyed.")),this.#d=null,this.#n?.abort(),this.#n=null,this._pageOpenPending.clear(),this._visitedPages.clear(),this.#c=null,this.#u=!1,this.#t?.resolve()})}},Z$=class extends Q${constructor(n){n.externalServices||window.addEventListener("updatefromsandbox",e=>{n.eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})}),n.externalServices||={createScripting:()=>new X$(n.sandboxBundleSrc)},n.docProperties||=e=>kVe(e),super(n)}},MVe=3e4,J$=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1,Object.defineProperty(this,"hasViewer",{value:()=>!!this.pdfViewer})}setViewer(n){this.pdfViewer=n}setThumbnailViewer(n){this.pdfThumbnailViewer=n}isHighestPriority(n){return this.highestPriorityPage===n.renderingId}renderHighestPriority(n){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(n)&&(this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),MVe)))}getHighestPriority(n,e,i,r=!1){let o=n.views,a=o.length;if(a===0)return null;for(let g=0;ga){let g=n.ids;for(let _=1,v=l-s;_{this.renderHighestPriority()}).catch(e=>{e instanceof M$||console.error(`renderView: "${e}"`)});break}return!0}},yce=10,MO={FORCE_SCROLL_MODE_PAGE:1e4,FORCE_LAZY_PAGE_INIT:5e3,PAUSE_EAGER_PAGE_INIT:250};function xce(t){return Object.values(km).includes(t)&&t!==km.DISABLE}var eq=class{#e=new Set;#t=0;constructor(n){this.#t=n}push(n){let e=this.#e;e.has(n)&&e.delete(n),e.add(n),e.size>this.#t&&this.#i()}resize(n,e=null){this.#t=n;let i=this.#e;if(e){let r=i.size,o=1;for(let a of i)if(e.has(a.id)&&(i.delete(a),i.add(a)),++o>r)break}for(;i.size>this.#t;)this.#i()}has(n){return this.#e.has(n)}[Symbol.iterator](){return this.#e.keys()}#i(){let n=this.#e.keys().next().value;n?.destroy(),this.#e.delete(n)}},GO=class{#e=null;#t=null;#i=null;#n=km.NONE;#r=null;#o=v0.ENABLE_FORMS;#s=null;#l=!1;#u=!1;#c=!1;#d=!1;#a=!1;#m=null;#h=null;#p=null;#f=null;#_=!1;#g=null;#v=!1;#y=0;#C=new ResizeObserver(this.#L.bind(this));#x=null;#w=null;#k=qf.ENABLE;constructor(n){let e="4.6.82";if(ice!==e)throw new Error(`The API version "${ice}" does not match the Viewer version "${e}".`);if(this.container=n.container,this.viewer=n.viewer||n.container.firstElementChild,this.container?.tagName!=="DIV"||this.viewer?.tagName!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.#C.observe(this.container),this.eventBus=n.eventBus,this.linkService=n.linkService||new u2,this.downloadManager=n.downloadManager||null,this.findController=n.findController||null,this.#t=n.altTextManager||null,this.findController&&(this.findController.onIsPageVisible=r=>this._getVisiblePages().ids.has(r)),this._scriptingManager=n.scriptingManager||null,this.#k=n.textLayerMode??qf.ENABLE,this.#o=n.annotationMode??v0.ENABLE_FORMS,this.#n=n.annotationEditorMode??km.NONE,this.#i=n.annotationEditorHighlightColors||null,this.#u=n.enableHighlightFloatingButton===!0,this.#d=n.enableUpdatedAddImage===!0,this.#a=n.enableNewAltTextWhenAddingImage===!0,this.imageResourcesPath=n.imageResourcesPath||"",this.enablePrintAutoRotate=n.enablePrintAutoRotate||!1,this.removePageBorders=n.removePageBorders||!1,this.maxCanvasPixels=n.maxCanvasPixels,this.l10n=n.l10n,this.l10n||=new LS,this.#c=n.enablePermissions||!1,this.pageColors=n.pageColors||null,this.#h=n.mlManager||null,this.#l=n.enableHWA||!1,this.defaultRenderingQueue=!n.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new J$,this.renderingQueue.setViewer(this)):this.renderingQueue=n.renderingQueue;let{abortSignal:i}=n;i?.addEventListener("abort",()=>{this.#C.disconnect(),this.#C=null},{once:!0}),this.scroll=QLe(this.container,this._scrollUpdate.bind(this),i),this.presentationModeState=PS.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#N(),this.eventBus._on("thumbnailrendered",({pageNumber:r,pdfPage:o})=>{let a=this._pages[r-1];this.#e.has(a)||o?.cleanup()}),n.l10n||this.l10n.translate(this.container)}get pagesCount(){return this._pages.length}getPageView(n){return this._pages[n]}getCachedPageViews(){return new Set(this.#e)}get pageViewsReady(){return this._pages.every(n=>n?.pdfPage)}get renderForms(){return this.#o===v0.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(n){if(!Number.isInteger(n))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(n,!0)||console.error(`currentPageNumber: "${n}" is not a valid page.`))}_setCurrentPageNumber(n,e=!1){if(this._currentPageNumber===n)return e&&this.#F(),!0;if(!(0=0&&(e=i+1)}this._setCurrentPageNumber(e,!0)||console.error(`currentPageLabel: "${n}" is not a valid page.`)}get currentScale(){return this._currentScale!==b$?this._currentScale:Cce}set currentScale(n){if(isNaN(n))throw new Error("Invalid numeric scale.");this.pdfDocument&&this.#A(n,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(n){this.pdfDocument&&this.#A(n,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(n){if(!wce(n))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(n%=360,n<0&&(n+=360),this._pagesRotation===n))return;this._pagesRotation=n;let e=this._currentPageNumber;this.refresh(!0,{rotation:n}),this._currentScaleValue&&this.#A(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:n,pageNumber:e}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _layerProperties(){let n=this;return NO(this,"_layerProperties",{get annotationEditorUIManager(){return n.#r},get annotationStorage(){return n.pdfDocument?.annotationStorage},get downloadManager(){return n.downloadManager},get enableScripting(){return!!n._scriptingManager},get fieldObjectsPromise(){return n.pdfDocument?.getFieldObjects()},get findController(){return n.findController},get hasJSActionsPromise(){return n.pdfDocument?.hasJSActions()},get linkService(){return n.linkService}})}#D(n){let e={annotationEditorMode:this.#n,annotationMode:this.#o,textLayerMode:this.#k};return n&&(!n.includes(AO.COPY)&&this.#k===qf.ENABLE&&(e.textLayerMode=qf.ENABLE_PERMISSIONS),n.includes(AO.MODIFY_CONTENTS)||(e.annotationEditorMode=km.DISABLE),!n.includes(AO.MODIFY_ANNOTATIONS)&&!n.includes(AO.FILL_INTERACTIVE_FORMS)&&this.#o===v0.ENABLE_FORMS&&(e.annotationMode=v0.ENABLE)),e}#S(n){return Mt(this,null,function*(){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return;let e=Promise.withResolvers();function i(){document.visibilityState==="hidden"&&e.resolve()}document.addEventListener("visibilitychange",i,{signal:n}),yield Promise.race([this._onePageRenderedCapability.promise,e.promise]),document.removeEventListener("visibilitychange",i)})}getAllText(){return Mt(this,null,function*(){let n=[],e=[];for(let i=1,r=this.pdfDocument.numPages;i<=r;++i){if(this.#v)return null;e.length=0;let o=yield this.pdfDocument.getPage(i),{items:a}=yield o.getTextContent();for(let s of a)s.str&&e.push(s.str),s.hasEOL&&e.push(` `);n.push(RO(e.join("")))}return n.join(` `)})}#T(n,e){let i=document.getSelection(),{focusNode:r,anchorNode:o}=i;if(o&&r&&i.containsNode(this.#g)){if(this.#_||n===qf.ENABLE_PERMISSIONS){e.preventDefault(),e.stopPropagation();return}this.#_=!0;let{classList:a}=this.viewer;a.add("copyAll");let s=new AbortController;window.addEventListener("keydown",l=>this.#v=l.key==="Escape",{signal:s.signal}),this.getAllText().then(l=>Mt(this,null,function*(){l!==null&&(yield navigator.clipboard.writeText(l))})).catch(l=>{console.warn(`Something goes wrong when extracting the text: ${l.message}`)}).finally(()=>{this.#_=!1,this.#v=!1,s.abort(),a.remove("copyAll")}),e.preventDefault(),e.stopPropagation()}}setDocument(n){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#r?.destroy(),this.#r=null),this.pdfDocument=n,!n)return;let e=n.numPages,i=n.getPage(1),r=n.getOptionalContentConfig({intent:"display"}),o=this.#c?n.getPermissions():Promise.resolve(),{eventBus:a,pageColors:s,viewer:l}=this;this.#m=new AbortController;let{signal:u}=this.#m;if(e>MO.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");let _=this._scrollMode=Ao.PAGE;a.dispatch("scrollmodechanged",{source:this,mode:_})}this._pagesCapability.promise.then(()=>{a.dispatch("pagesloaded",{source:this,pagesCount:e})},()=>{});let p=_=>{let v=this._pages[_.pageNumber-1];v&&this.#e.push(v)};a._on("pagerender",p,{signal:u});let g=_=>{_.cssTransform||(this._onePageRenderedCapability.resolve({timestamp:_.timestamp}),a._off("pagerendered",g))};a._on("pagerendered",g,{signal:u}),Promise.all([i,o]).then(([_,v])=>{if(n!==this.pdfDocument)return;this._firstPageCapability.resolve(_),this._optionalContentConfigPromise=r;let{annotationEditorMode:y,annotationMode:x,textLayerMode:I}=this.#D(v);if(I!==qf.DISABLE){let M=this.#g=document.createElement("div");M.id="hiddenCopyElement",l.before(M)}if(typeof AbortSignal.any=="function"&&y!==km.DISABLE){let M=y;n.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):xce(M)?(this.#r=new A4e(this.container,l,this.#t,a,n,s,this.#i,this.#u,this.#d,this.#a,this.#h),a.dispatch("annotationeditoruimanager",{source:this,uiManager:this.#r}),M!==km.NONE&&(M===km.STAMP&&this.#h?.loadModel("altText"),this.#r.updateMode(M))):console.error(`Invalid AnnotationEditor mode: ${M}`)}let C=this._scrollMode===Ao.PAGE?null:l,D=this.currentScale,A=_.getViewport({scale:D*_0.PDF_TO_CSS_UNITS});l.style.setProperty("--scale-factor",A.scale),(s?.foreground==="CanvasText"||s?.background==="Canvas")&&(l.style.setProperty("--hcm-highlight-filter",n.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),l.style.setProperty("--hcm-highlight-selected-filter",n.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let M=1;M<=e;++M){let R=new UO({container:C,eventBus:a,id:M,scale:D,defaultViewport:A.clone(),optionalContentConfigPromise:r,renderingQueue:this.renderingQueue,textLayerMode:I,annotationMode:x,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,pageColors:s,l10n:this.l10n,layerProperties:this._layerProperties,enableHWA:this.#l});this._pages.push(R)}this._pages[0]?.setPdfPage(_),this._scrollMode===Ao.PAGE?this.#I():this._spreadMode!==Zc.NONE&&this._updateSpreadMode(),this.#S(u).then(()=>Mt(this,null,function*(){if(n!==this.pdfDocument)return;if(this.findController?.setDocument(n),this._scriptingManager?.setDocument(n),this.#g&&document.addEventListener("copy",this.#T.bind(this,I),{signal:u}),this.#r&&a.dispatch("annotationeditormodechanged",{source:this,mode:this.#n}),n.loadingParams.disableAutoFetch||e>MO.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let M=e-1;if(M<=0){this._pagesCapability.resolve();return}for(let R=2;R<=e;++R){let j=n.getPage(R).then(K=>{let F=this._pages[R-1];F.pdfPage||F.setPdfPage(K),--M===0&&this._pagesCapability.resolve()},K=>{console.error(`Unable to get page ${R} to initialize viewer`,K),--M===0&&this._pagesCapability.resolve()});R%MO.PAUSE_EAGER_PAGE_INIT===0&&(yield j)}})),a.dispatch("pagesinit",{source:this}),n.getMetadata().then(({info:M})=>{n===this.pdfDocument&&M.Language&&(l.lang=M.Language)}),this.defaultRenderingQueue&&this.update()}).catch(_=>{console.error("Unable to initialize viewer",_),this._pagesCapability.reject(_)})}setPageLabels(n){if(this.pdfDocument){n?Array.isArray(n)&&this.pdfDocument.numPages===n.length?this._pageLabels=n:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,i=this._pages.length;e=e.previousPageNumber,e.previousPageNumber=n}_scrollUpdate(){this.pagesCount!==0&&this.update()}#M(n,e=null){let{div:i,id:r}=n;if(this._currentPageNumber!==r&&this._setCurrentPageNumber(r),this._scrollMode===Ao.PAGE&&(this.#I(),this.update()),!e&&!this.isInPresentationMode){let o=i.offsetLeft+i.clientLeft,a=o+i.clientWidth,{scrollLeft:s,clientWidth:l}=this.container;(this._scrollMode===Ao.HORIZONTAL||os+l)&&(e={left:0,top:0})}Sce(i,e),!this._currentScaleValue&&this._location&&(this._location=null)}#P(n){return n===this._currentScale||Math.abs(n-this._currentScale)<1e-15}#E(n,e,{noScroll:i=!1,preset:r=!1,drawingDelay:o=-1,origin:a=null}){if(this._currentScaleValue=e.toString(),this.#P(n)){r&&this.eventBus.dispatch("scalechanging",{source:this,scale:n,presetValue:e});return}this.viewer.style.setProperty("--scale-factor",n*_0.PDF_TO_CSS_UNITS);let s=o>=0&&o<1e3;this.refresh(!0,{scale:n,drawingDelay:s?o:-1}),s&&(this.#w=setTimeout(()=>{this.#w=null,this.refresh()},o));let l=this._currentScale;if(this._currentScale=n,!i){let u=this._currentPageNumber,p;if(this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(u=this._location.pageNumber,p=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:u,destArray:p,allowNegativeOffset:!0}),Array.isArray(a)){let g=n/l-1,[_,v]=this.containerTopLeft;this.container.scrollLeft+=(a[0]-v)*g,this.container.scrollTop+=(a[1]-_)*g}}this.eventBus.dispatch("scalechanging",{source:this,scale:n,presetValue:r?e:void 0}),this.defaultRenderingQueue&&this.update()}get#b(){return this._spreadMode!==Zc.NONE&&this._scrollMode!==Ao.HORIZONTAL?2:1}#A(n,e){let i=parseFloat(n);if(i>0)e.preset=!1,this.#E(i,n,e);else{let r=this._pages[this._currentPageNumber-1];if(!r)return;let o=Gle,a=$le;this.isInPresentationMode?(o=a=4,this._spreadMode!==Zc.NONE&&(o*=2)):this.removePageBorders?o=a=0:this._scrollMode===Ao.HORIZONTAL&&([o,a]=[a,o]);let s=(this.container.clientWidth-o)/r.width*r.scale/this.#b,l=(this.container.clientHeight-a)/r.height*r.scale;switch(n){case"page-actual":i=1;break;case"page-width":i=s;break;case"page-height":i=l;break;case"page-fit":i=Math.min(s,l);break;case"auto":let u=Yle(r)?s:Math.min(l,s);i=Math.min(XLe,u);break;default:console.error(`#setScale: "${n}" is an unknown zoom value.`);return}e.preset=!0,this.#E(i,n,e)}}#F(){let n=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this.#A(this._currentScaleValue,{noScroll:!0}),this.#M(n)}pageLabelToPageNumber(n){if(!this._pageLabels)return null;let e=this._pageLabels.indexOf(n);return e<0?null:e+1}scrollPageIntoView({pageNumber:n,destArray:e=null,allowNegativeOffset:i=!1,ignoreDestinationZoom:r=!1}){if(!this.pdfDocument)return;let o=Number.isInteger(n)&&this._pages[n-1];if(!o){console.error(`scrollPageIntoView: "${n}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!e){this._setCurrentPageNumber(n,!0);return}let a=0,s=0,l=0,u=0,p,g,_=o.rotation%180!==0,v=(_?o.height:o.width)/o.scale/_0.PDF_TO_CSS_UNITS,y=(_?o.width:o.height)/o.scale/_0.PDF_TO_CSS_UNITS,x=0;switch(e[1].name){case"XYZ":a=e[2],s=e[3],x=e[4],a=a!==null?a:0,s=s!==null?s:y;break;case"Fit":case"FitB":x="page-fit";break;case"FitH":case"FitBH":s=e[2],x="page-width",s===null&&this._location?(a=this._location.left,s=this._location.top):(typeof s!="number"||s<0)&&(s=y);break;case"FitV":case"FitBV":a=e[2],l=v,u=y,x="page-height";break;case"FitR":a=e[2],s=e[3],l=e[4]-a,u=e[5]-s;let A=Gle,M=$le;this.removePageBorders&&(A=M=0),p=(this.container.clientWidth-A)/l/_0.PDF_TO_CSS_UNITS,g=(this.container.clientHeight-M)/u/_0.PDF_TO_CSS_UNITS,x=Math.min(Math.abs(p),Math.abs(g));break;default:console.error(`scrollPageIntoView: "${e[1].name}" is not a valid destination type.`);return}if(r||(x&&x!==this._currentScale?this.currentScaleValue=x:this._currentScale===b$&&(this.currentScaleValue=WLe)),x==="page-fit"&&!e[4]){this.#M(o);return}let I=[o.viewport.convertToViewportPoint(a,s),o.viewport.convertToViewportPoint(a+l,s+u)],C=Math.min(I[0][0],I[1][0]),D=Math.min(I[0][1],I[1][1]);i||(C=Math.max(C,0),D=Math.max(D,0)),this.#M(o,{left:C,top:D})}_updateLocation(n){let e=this._currentScale,i=this._currentScaleValue,r=parseFloat(i)===e?Math.round(e*1e4)/100:i,o=n.id,a=this._pages[o-1],s=this.container,l=a.getPagePoint(s.scrollLeft-n.x,s.scrollTop-n.y),u=Math.round(l[0]),p=Math.round(l[1]),g=`#page=${o}`;this.isInPresentationMode||(g+=`&zoom=${r},${u},${p}`),this._location={pageNumber:o,scale:r,top:p,left:u,rotation:this._pagesRotation,pdfOpenParams:g}}update(){let n=this._getVisiblePages(),e=n.views,i=e.length;if(i===0)return;let r=Math.max(yce,2*i+1);this.#e.resize(r,n.ids),this.renderingQueue.renderHighestPriority(n);let o=this._spreadMode===Zc.NONE&&(this._scrollMode===Ao.PAGE||this._scrollMode===Ao.VERTICAL),a=this._currentPageNumber,s=!1;for(let l of e){if(l.percent<100)break;if(l.id===a&&o){s=!0;break}}this._setCurrentPageNumber(s?a:e[0].id),this._updateLocation(n.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}#O(){let n=this._getVisiblePages(),e=[],{ids:i,views:r}=n;for(let o of r){let{view:a}=o;if(!a.hasEditableAnnotations()){i.delete(a.id);continue}e.push(o)}return e.length===0?null:(this.renderingQueue.renderHighestPriority({first:e[0],last:e.at(-1),views:e,ids:i}),i)}containsElement(n){return this.container.contains(n)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===PS.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===PS.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){let n=this._scrollMode===Ao.PAGE?this.#x.pages:this._pages,e=this._scrollMode===Ao.HORIZONTAL,i=e&&this._isContainerRtl;return JLe({scrollEl:this.container,views:n,sortByVisibility:!0,horizontal:e,rtl:i})}cleanup(){for(let n of this._pages)n.renderingState!==Cs.FINISHED&&n.reset()}_cancelRendering(){for(let n of this._pages)n.cancelRendering()}#H(n){return Mt(this,null,function*(){if(n.pdfPage)return n.pdfPage;try{let e=yield this.pdfDocument.getPage(n.id);return n.pdfPage||n.setPdfPage(e),e}catch(e){return console.error("Unable to get page for page view",e),null}})}#B(n){if(n.first?.id===1)return!0;if(n.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case Ao.PAGE:return this.#x.scrollDown;case Ao.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(n){let e=n||this._getVisiblePages(),i=this.#B(e),r=this._spreadMode!==Zc.NONE&&this._scrollMode!==Ao.HORIZONTAL,o=this.renderingQueue.getHighestPriority(e,this._pages,i,r);return o?(this.#H(o).then(()=>{this.renderingQueue.renderView(o)}),!0):!1}get hasEqualPageSizes(){let n=this._pages[0];for(let e=1,i=this._pages.length;e{let i=e.pdfPage.getViewport({scale:1}),r=Yle(i);if(n===void 0)n=r;else if(this.enablePrintAutoRotate&&r!==n)return{width:i.height,height:i.width,rotation:(i.rotation-90)%360};return{width:i.width,height:i.height,rotation:i.rotation}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig({intent:"display"})):Promise.resolve(null)}set optionalContentConfigPromise(n){if(!(n instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${n}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=n,this.refresh(!1,{optionalContentConfigPromise:n}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:n}))}get scrollMode(){return this._scrollMode}set scrollMode(n){if(this._scrollMode!==n){if(!e4e(n))throw new Error(`Invalid scroll mode: ${n}`);this.pagesCount>MO.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=n,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:n}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(n=null){let e=this._scrollMode,i=this.viewer;i.classList.toggle("scrollHorizontal",e===Ao.HORIZONTAL),i.classList.toggle("scrollWrapped",e===Ao.WRAPPED),!(!this.pdfDocument||!n)&&(e===Ao.PAGE?this.#I():this._previousScrollMode===Ao.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#A(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(n,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(n){if(this._spreadMode!==n){if(!t4e(n))throw new Error(`Invalid spread mode: ${n}`);this._spreadMode=n,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:n}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(n=null){if(!this.pdfDocument)return;let e=this.viewer,i=this._pages;if(this._scrollMode===Ao.PAGE)this.#I();else if(e.textContent="",this._spreadMode===Zc.NONE)for(let r of this._pages)e.append(r.div);else{let r=this._spreadMode-1,o=null;for(let a=0,s=i.length;a=u;l--){let p=o[l],g=o[l+1]-1;if(pg)return g-n}if(e){let l=o[0];if(ln)return l-n+1}break}break}case Ao.HORIZONTAL:break;case Ao.PAGE:case Ao.VERTICAL:{if(this._spreadMode===Zc.NONE)break;let i=this._spreadMode-1;if(e&&n%2!==i)break;if(!e&&n%2===i)break;let{views:r}=this._getVisiblePages(),o=e?n-1:n+1;for(let{id:a,percent:s,widthPercent:l}of r)if(a===o){if(s>0&&l===100)return 2;break}break}}return 1}nextPage(){let n=this._currentPageNumber,e=this.pagesCount;if(n>=e)return!1;let i=this._getPageAdvance(n,!1)||1;return this.currentPageNumber=Math.min(n+i,e),!0}previousPage(){let n=this._currentPageNumber;if(n<=1)return!1;let e=this._getPageAdvance(n,!0)||1;return this.currentPageNumber=Math.max(n-e,1),!0}updateScale({drawingDelay:n,scaleFactor:e=null,steps:i=null,origin:r}){if(i===null&&e===null)throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(!this.pdfDocument)return;let o=this._currentScale;if(e>0&&e!==1)o=Math.round(o*e*100)/100;else if(i){let a=i>0?Ule:1/Ule,s=i>0?Math.ceil:Math.floor;i=Math.abs(i);do o=s((o*a).toFixed(2)*10)/10;while(--i>0)}o=Math.max(YLe,Math.min(KLe,o)),this.#A(o,{noScroll:!1,drawingDelay:n,origin:r})}increaseScale(n={}){this.updateScale(Gi(Ve({},n),{steps:n.steps??1}))}decreaseScale(n={}){this.updateScale(Gi(Ve({},n),{steps:-(n.steps??1)}))}#N(n=this.container.clientHeight){n!==this.#y&&(this.#y=n,i4e.setProperty("--viewer-container-height",`${n}px`))}#L(n){for(let e of n)if(e.target===this.container){this.#N(Math.floor(e.borderBoxSize[0].blockSize)),this.#s=null;break}}get containerTopLeft(){return this.#s||=[this.container.offsetTop,this.container.offsetLeft]}#V(){this.#p&&(this.eventBus._off("pagerendered",this.#p),this.#p=null),this.#f!==null&&(clearTimeout(this.#f),this.#f=null)}get annotationEditorMode(){return this.#r?this.#n:km.DISABLE}set annotationEditorMode({mode:n,editId:e=null,isFromKeyboard:i=!1}){if(!this.#r)throw new Error("The AnnotationEditor is not enabled.");if(this.#n===n)return;if(!xce(n))throw new Error(`Invalid AnnotationEditor mode: ${n}`);if(!this.pdfDocument)return;n===km.STAMP&&this.#h?.loadModel("altText");let{eventBus:r}=this,o=()=>{this.#V(),this.#n=n,this.#r.updateMode(n,e,i),r.dispatch("annotationeditormodechanged",{source:this,mode:n})};if(n===km.NONE||this.#n===km.NONE){let a=n!==km.NONE;a||this.pdfDocument.annotationStorage.resetModifiedIds();for(let l of this._pages)l.toggleEditingMode(a);let s=this.#O();if(a&&s){this.#V(),this.#p=({pageNumber:u})=>{s.delete(u),s.size===0&&(this.#f=setTimeout(o,0))};let{signal:l}=this.#m;r._on("pagerendered",this.#p,{signal:l});return}}o()}refresh(n=!1,e=Object.create(null)){if(this.pdfDocument){for(let i of this._pages)i.update(e);this.#w!==null&&(clearTimeout(this.#w),this.#w=null),n||this.update()}}},tq=class extends GO{_resetView(){super._resetView(),this._scrollMode=Ao.PAGE,this._spreadMode=Zc.NONE}set scrollMode(n){}_updateScrollMode(){}set spreadMode(n){}_updateSpreadMode(){}};var FVe=is.AnnotationLayerBuilder,RVe=is.DownloadManager,PVe=is.EventBus,NVe=is.FindState,iq=is.GenericL10n,x1=is.LinkTarget,nq=is.PDFFindController,OVe=is.PDFHistory,rq=is.PDFLinkService,LVe=is.PDFPageView,VVe=is.PDFScriptingManager,oq=is.PDFSinglePageViewer,aq=is.PDFViewer,BVe=is.ProgressBar,jVe=is.RenderingStates,HVe=is.ScrollMode,zVe=is.SimpleLinkService,UVe=is.SpreadMode,GVe=is.StructTreeLayerBuilder,$Ve=is.TextLayerBuilder,qVe=is.XfaLayerBuilder,WVe=is.parseQueryString;var YVe=["pdfViewerContainer"];function KVe(t,n){let e=new t.EventBus;return XVe(e,n),e}function XVe(t,n){xn(t,"documentload").pipe(Ft(n)).subscribe(()=>{let e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),xn(t,"pagerendered").pipe(Ft(n)).subscribe(({pageNumber:e,cssTransform:i,source:r})=>{let o=document.createEvent("CustomEvent");o.initCustomEvent("pagerendered",!0,!0,{pageNumber:e,cssTransform:i}),r.div.dispatchEvent(o)}),xn(t,"textlayerrendered").pipe(Ft(n)).subscribe(({pageNumber:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e}),i.textLayerDiv?.dispatchEvent(r)}),xn(t,"pagechanging").pipe(Ft(n)).subscribe(({pageNumber:e,source:i})=>{let r=document.createEvent("UIEvents");r.initEvent("pagechanging",!0,!0),r.pageNumber=e,i.container.dispatchEvent(r)}),xn(t,"pagesinit").pipe(Ft(n)).subscribe(({source:e})=>{let i=document.createEvent("CustomEvent");i.initCustomEvent("pagesinit",!0,!0,null),e.container.dispatchEvent(i)}),xn(t,"pagesloaded").pipe(Ft(n)).subscribe(({pagesCount:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e}),i.container.dispatchEvent(r)}),xn(t,"scalechange").pipe(Ft(n)).subscribe(({scale:e,presetValue:i,source:r})=>{let o=document.createEvent("UIEvents");o.initEvent("scalechange",!0,!0),o.scale=e,o.presetValue=i,r.container.dispatchEvent(o)}),xn(t,"updateviewarea").pipe(Ft(n)).subscribe(({location:e,source:i})=>{let r=document.createEvent("UIEvents");r.initEvent("updateviewarea",!0,!0),r.location=e,i.container.dispatchEvent(r)}),xn(t,"find").pipe(Ft(n)).subscribe(({source:e,type:i,query:r,phraseSearch:o,caseSensitive:a,highlightAll:s,findPrevious:l})=>{if(e===window)return;let u=document.createEvent("CustomEvent");u.initCustomEvent("find"+i,!0,!0,{query:r,phraseSearch:o,caseSensitive:a,highlightAll:s,findPrevious:l}),window.dispatchEvent(u)}),xn(t,"attachmentsloaded").pipe(Ft(n)).subscribe(({attachmentsCount:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e}),i.container.dispatchEvent(r)}),xn(t,"sidebarviewchanged").pipe(Ft(n)).subscribe(({view:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("sidebarviewchanged",!0,!0,{view:e}),i.outerContainer.dispatchEvent(r)}),xn(t,"pagemode").pipe(Ft(n)).subscribe(({mode:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("pagemode",!0,!0,{mode:e}),i.pdfViewer.container.dispatchEvent(r)}),xn(t,"namedaction").pipe(Ft(n)).subscribe(({action:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("namedaction",!0,!0,{action:e}),i.pdfViewer.container.dispatchEvent(r)}),xn(t,"presentationmodechanged").pipe(Ft(n)).subscribe(({active:e,switchInProgress:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("presentationmodechanged",!0,!0,{active:e,switchInProgress:i}),window.dispatchEvent(r)}),xn(t,"outlineloaded").pipe(Ft(n)).subscribe(({outlineCount:e,source:i})=>{let r=document.createEvent("CustomEvent");r.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),i.container.dispatchEvent(r)})}function lq(t,n,e){t[n]=e}function p2(){return typeof window>"u"}p2()||lq(RS,"verbosity",_$.INFOS);typeof Promise.withResolvers>"u"&&window&&(window.Promise.withResolvers=()=>{let t,n;return{promise:new Promise((i,r)=>{t=i,n=r}),resolve:t,reject:n}});var cq=function(t){return t[t.DISABLED=0]="DISABLED",t[t.ENABLED=1]="ENABLED",t[t.ENHANCED=2]="ENHANCED",t}(cq||{}),Tce=(()=>{class t{element;ngZone;static CSS_UNITS=96/72;static BORDER_WIDTH=9;pdfViewerContainer;eventBus;pdfLinkService;pdfFindController;pdfViewer;isVisible=!1;_cMapsUrl=typeof RS<"u"?`https://unpkg.com/pdfjs-dist@${s2}/cmaps/`:null;_imageResourcesPath=typeof RS<"u"?`https://unpkg.com/pdfjs-dist@${s2}/web/images/`:void 0;_renderText=!0;_renderTextMode=cq.ENABLED;_stickToPage=!1;_originalSize=!0;_pdf;_page=1;_zoom=1;_zoomScale="page-width";_rotation=0;_showAll=!0;_canAutoResize=!0;_fitToPage=!1;_externalLinkTarget="blank";_showBorders=!1;lastLoaded;_latestScrolledPage;pageScrollTimeout=null;isInitialized=!1;loadingTask;destroy$=new qe;afterLoadComplete=new Ae;pageRendered=new Ae;pageInitialized=new Ae;textLayerRendered=new Ae;onError=new Ae;onProgress=new Ae;pageChange=new Ae(!0);src;set cMapsUrl(e){this._cMapsUrl=e}set page(e){e=parseInt(e,10)||1;let i=e;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,i!==e&&this.pageChange.emit(e)}set renderText(e){this._renderText=e}set renderTextMode(e){this._renderTextMode=e}set originalSize(e){this._originalSize=e}set showAll(e){this._showAll=e}set stickToPage(e){this._stickToPage=e}set zoom(e){e<=0||(this._zoom=e)}get zoom(){return this._zoom}set zoomScale(e){this._zoomScale=e}get zoomScale(){return this._zoomScale}set rotation(e){if(!(typeof e=="number"&&e%90===0)){console.warn("Invalid pages rotation angle.");return}this._rotation=e}set externalLinkTarget(e){this._externalLinkTarget=e}set autoresize(e){this._canAutoResize=!!e}set fitToPage(e){this._fitToPage=!!e}set showBorders(e){this._showBorders=!!e}static getLinkTarget(e){switch(e){case"blank":return x1.BLANK;case"none":return x1.NONE;case"self":return x1.SELF;case"parent":return x1.PARENT;case"top":return x1.TOP}return null}constructor(e,i){if(this.element=e,this.ngZone=i,p2())return;let r,o=s2,a=window[`pdfWorkerSrc${o}`];a?r=a:window.hasOwnProperty("pdfWorkerSrc")&&typeof window.pdfWorkerSrc=="string"&&window.pdfWorkerSrc?r=window.pdfWorkerSrc:r=`https://cdn.jsdelivr.net/npm/pdfjs-dist@${o}/legacy/build/pdf.worker.min.mjs`,lq(g$,"workerSrc",r)}ngAfterViewChecked(){if(this.isInitialized)return;let e=this.pdfViewerContainer.nativeElement.offsetParent;if(this.isVisible===!0&&e==null){this.isVisible=!1;return}this.isVisible===!1&&e!=null&&(this.isVisible=!0,setTimeout(()=>{this.initialize(),this.ngOnChanges({src:this.src})}))}ngOnInit(){this.initialize(),this.setupResizeListener()}ngOnDestroy(){this.clear(),this.destroy$.next(),this.loadingTask=null}ngOnChanges(e){if(!(p2()||!this.isVisible)){if("src"in e)this.loadPDF();else if(this._pdf){if(("renderText"in e||"showAll"in e)&&(this.setupViewer(),this.resetPdfDocument()),"page"in e){let{page:i}=e;if(i.currentValue===this._latestScrolledPage)return;this.pdfViewer.scrollPageIntoView({pageNumber:this._page})}this.update()}}}updateSize(){Ur(this._pdf.getPage(this.pdfViewer.currentPageNumber)).pipe(Ft(this.destroy$)).subscribe({next:e=>{let i=this._rotation+e.rotate,r=e.getViewport({scale:this._zoom,rotation:i}).width*t.CSS_UNITS,o=this._zoom,a=!0;if(!this._originalSize||this._fitToPage&&r>this.pdfViewerContainer.nativeElement.clientWidth){let s=e.getViewport({scale:1,rotation:i});o=this.getScale(s.width,s.height),a=!this._stickToPage}this.pdfViewer.currentScale=o,a&&this.pdfViewer.scrollPageIntoView({pageNumber:e.pageNumber,ignoreDestinationZoom:!0})}})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._latestScrolledPage=0,this._pdf.destroy(),this._pdf=void 0),this.pdfViewer&&this.pdfViewer.setDocument(null),this.pdfLinkService&&this.pdfLinkService.setDocument(null,null),this.pdfFindController&&this.pdfFindController.setDocument(null)}getPDFLinkServiceConfig(){let e=t.getLinkTarget(this._externalLinkTarget);return e?{externalLinkTarget:e}:{}}initEventBus(){this.eventBus=KVe(sq,this.destroy$),xn(this.eventBus,"pagerendered").pipe(Ft(this.destroy$)).subscribe(e=>{this.pageRendered.emit(e)}),xn(this.eventBus,"pagesinit").pipe(Ft(this.destroy$)).subscribe(e=>{this.pageInitialized.emit(e)}),xn(this.eventBus,"pagechanging").pipe(Ft(this.destroy$)).subscribe(({pageNumber:e})=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=window.setTimeout(()=>{this._latestScrolledPage=e,this.pageChange.emit(e)},100)}),xn(this.eventBus,"textlayerrendered").pipe(Ft(this.destroy$)).subscribe(e=>{this.textLayerRendered.emit(e)})}initPDFServices(){this.pdfLinkService=new rq(Ve({eventBus:this.eventBus},this.getPDFLinkServiceConfig())),this.pdfFindController=new nq({eventBus:this.eventBus,linkService:this.pdfLinkService})}getPDFOptions(){return{eventBus:this.eventBus,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfLinkService,textLayerMode:this._renderText?this._renderTextMode:cq.DISABLED,findController:this.pdfFindController,l10n:new iq("en"),imageResourcesPath:this._imageResourcesPath,annotationEditorMode:f$.DISABLE}}setupViewer(){this.pdfViewer&&this.pdfViewer.setDocument(null),lq(RS,"disableTextLayer",!this._renderText),this.initPDFServices(),this._showAll?this.pdfViewer=new aq(this.getPDFOptions()):this.pdfViewer=new oq(this.getPDFOptions()),this.pdfLinkService.setViewer(this.pdfViewer),this.pdfViewer._currentPageNumber=this._page}getValidPageNumber(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e}getDocumentParams(){let e=typeof this.src;if(!this._cMapsUrl)return this.src;let i={cMapUrl:this._cMapsUrl,cMapPacked:!0,enableXfa:!0};return i.isEvalSupported=!1,e==="string"?i.url=this.src:e==="object"&&(this.src.byteLength!==void 0?i.data=this.src:Object.assign(i,this.src)),i}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src){this.update();return}this.clear(),this.setupViewer(),this.loadingTask=v$(this.getDocumentParams()),this.loadingTask.onProgress=i=>{this.onProgress.emit(i)};let e=this.src;Ur(this.loadingTask.promise).pipe(Ft(this.destroy$)).subscribe({next:i=>{this._pdf=i,this.lastLoaded=e,this.afterLoadComplete.emit(i),this.resetPdfDocument(),this.update()},error:i=>{this.lastLoaded=null,this.onError.emit(i)}})}update(){this.page=this._page,this.render()}render(){if(this._page=this.getValidPageNumber(this._page),(this._rotation!==0||this.pdfViewer.pagesRotation!==this._rotation)&&this.pdfViewer.firstPagePromise?.then(()=>this.pdfViewer.pagesRotation=this._rotation),this._stickToPage&&setTimeout(()=>{this.pdfViewer.currentPageNumber=this._page}),this.pdfViewer._pages?.length)this.updateSize();else{let e=this.pageInitialized.subscribe(()=>{this.updateSize(),e.unsubscribe()})}}getScale(e,i){let r=this._showBorders?2*t.BORDER_WIDTH:0,o=this.pdfViewerContainer.nativeElement.clientWidth-r,a=this.pdfViewerContainer.nativeElement.clientHeight-r;if(a===0||i===0||o===0||e===0)return 1;let s=1;switch(this._zoomScale){case"page-fit":s=Math.min(a/i,o/e);break;case"page-height":s=a/i;break;case"page-width":default:s=o/e;break}return this._zoom*s/t.CSS_UNITS}resetPdfDocument(){this.pdfLinkService.setDocument(this._pdf,null),this.pdfFindController.setDocument(this._pdf),this.pdfViewer.setDocument(this._pdf)}initialize(){p2()||!this.isVisible||(this.isInitialized=!0,this.initEventBus(),this.setupViewer())}setupResizeListener(){p2()||this.ngZone.runOutsideAngular(()=>{xn(window,"resize").pipe($o(100),vi(()=>this._canAutoResize&&!!this._pdf),Ft(this.destroy$)).subscribe(()=>{this.updateSize()})})}static \u0275fac=function(i){return new(i||t)(E(Xe),E(ht))};static \u0275cmp=oe({type:t,selectors:[["pdf-viewer"]],viewQuery:function(i,r){if(i&1&&ot(YVe,5),i&2){let o;Pe(o=Ne())&&(r.pdfViewerContainer=o.first)}},inputs:{src:"src",cMapsUrl:[ve.None,"c-maps-url","cMapsUrl"],page:"page",renderText:[ve.None,"render-text","renderText"],renderTextMode:[ve.None,"render-text-mode","renderTextMode"],originalSize:[ve.None,"original-size","originalSize"],showAll:[ve.None,"show-all","showAll"],stickToPage:[ve.None,"stick-to-page","stickToPage"],zoom:"zoom",zoomScale:[ve.None,"zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:[ve.None,"external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:[ve.None,"fit-to-page","fitToPage"],showBorders:[ve.None,"show-borders","showBorders"]},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[Oi],decls:3,vars:0,consts:[["pdfViewerContainer",""],[1,"ng2-pdf-viewer-container"],[1,"pdfViewer"]],template:function(i,r){i&1&&(d(0,"div",1,0),H(2,"div",2),c())},styles:[`.ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:absolute;height:100%;width:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%] {--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--spreadHorizontalWrapped-margin-LR: -3.5px;--viewer-container-height: 0;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,");--xfa-unfocused-field-background: var( --annotation-unfocused-field-background );--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--scale-factor: 1;--focus-outline: solid 2px blue;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px;--editorInk-editing-cursor: pointer}@media screen and (forced-colors: active){[_nghost-%COMP%] {--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}@media (forced-colors: active){[_nghost-%COMP%] {--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}[_nghost-%COMP%] .textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0}[_nghost-%COMP%] .textLayer span, [_nghost-%COMP%] .textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}[_nghost-%COMP%] .textLayer span.markedContent{top:0;height:0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.appended{position:initial}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::selection{background:rgb(0,0,255)}[_nghost-%COMP%] .textLayer br::selection{background:transparent}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}@media (forced-colors: active){[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:required, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:required, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}[_nghost-%COMP%] .annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}[_nghost-%COMP%] .annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:rgb(255,255,0);box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:required, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:required, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:required, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled], [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgb(0,0,0)}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input :focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea :focus, [_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox :focus, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;appearance:none}[_nghost-%COMP%] .annotationLayer .popupTriggerArea{height:100%;width:100%}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .popupContent{border-top:1px solid rgb(51,51,51);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}[_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation{cursor:pointer}[_nghost-%COMP%] .annotationLayer section svg{position:absolute;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}[_nghost-%COMP%] .annotationLayer .annotationTextContent span{width:100%;display:inline-block}@media (forced-colors: active){[_nghost-%COMP%] .xfaLayer *:required{outline:1.5px solid selectedItem}}[_nghost-%COMP%] .xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}[_nghost-%COMP%] .xfaLayer .highlight.appended{position:initial}[_nghost-%COMP%] .xfaLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .xfaLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .xfaLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .xfaLayer .highlight.selected{background-color:#cbdfcb}[_nghost-%COMP%] .xfaLayer ::selection{background:rgb(0,0,255)}[_nghost-%COMP%] .xfaPage{overflow:hidden;position:relative}[_nghost-%COMP%] .xfaContentarea{position:absolute}[_nghost-%COMP%] .xfaPrintOnly{display:none}[_nghost-%COMP%] .xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}[_nghost-%COMP%] .xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}[_nghost-%COMP%] .xfaLayer *:required{outline:1.5px solid red}[_nghost-%COMP%] .xfaLayer div{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg{pointer-events:none}[_nghost-%COMP%] .xfaLayer svg *{pointer-events:none}[_nghost-%COMP%] .xfaLayer a{color:#00f}[_nghost-%COMP%] .xfaRich li{margin-left:3em}[_nghost-%COMP%] .xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}[_nghost-%COMP%] .xfaCaption{overflow:hidden;flex:0 0 auto}[_nghost-%COMP%] .xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}[_nghost-%COMP%] .xfaLabel{height:100%;width:100%}[_nghost-%COMP%] .xfaLeft{display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%] .xfaRight{display:flex;flex-direction:row-reverse;align-items:center}[_nghost-%COMP%] .xfaLeft>.xfaCaption, [_nghost-%COMP%] .xfaLeft>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaRight>.xfaCaption, [_nghost-%COMP%] .xfaRight>.xfaCaptionForCheckButton{max-height:100%}[_nghost-%COMP%] .xfaTop{display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] .xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}[_nghost-%COMP%] .xfaTop>.xfaCaption, [_nghost-%COMP%] .xfaTop>.xfaCaptionForCheckButton, [_nghost-%COMP%] .xfaBottom>.xfaCaption, [_nghost-%COMP%] .xfaBottom>.xfaCaptionForCheckButton{width:100%}[_nghost-%COMP%] .xfaBorder{background-color:transparent;position:absolute;pointer-events:none}[_nghost-%COMP%] .xfaWrapped{width:100%;height:100%}[_nghost-%COMP%] .xfaTextfield:focus, [_nghost-%COMP%] .xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}[_nghost-%COMP%] .xfaCheckbox:focus, [_nghost-%COMP%] .xfaRadio:focus{outline:auto}[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}[_nghost-%COMP%] .xfaTop>.xfaTextfield, [_nghost-%COMP%] .xfaTop>.xfaSelect, [_nghost-%COMP%] .xfaBottom>.xfaTextfield, [_nghost-%COMP%] .xfaBottom>.xfaSelect{flex:0 1 auto}[_nghost-%COMP%] .xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}[_nghost-%COMP%] .xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}[_nghost-%COMP%] .xfaCheckbox, [_nghost-%COMP%] .xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}[_nghost-%COMP%] .xfaRich{white-space:pre-wrap;width:100%;height:100%}[_nghost-%COMP%] .xfaImage{object-position:left top;object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .xfaLrTb, [_nghost-%COMP%] .xfaRlTb, [_nghost-%COMP%] .xfaTb{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaLr{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}[_nghost-%COMP%] .xfaTb>div{justify-content:left}[_nghost-%COMP%] .xfaPosition{position:relative}[_nghost-%COMP%] .xfaArea{position:relative}[_nghost-%COMP%] .xfaValignMiddle{display:flex;align-items:center}[_nghost-%COMP%] .xfaTable{display:flex;flex-direction:column;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}[_nghost-%COMP%] .xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}[_nghost-%COMP%] .xfaTable .xfaRlRow>div{flex:1}[_nghost-%COMP%] .xfaNonInteractive input, [_nghost-%COMP%] .xfaNonInteractive textarea, [_nghost-%COMP%] .xfaDisabled input, [_nghost-%COMP%] .xfaDisabled textarea, [_nghost-%COMP%] .xfaReadOnly input, [_nghost-%COMP%] .xfaReadOnly textarea{background:initial}@media print{[_nghost-%COMP%] .xfaTextfield, [_nghost-%COMP%] .xfaSelect{background:transparent}[_nghost-%COMP%] .xfaSelect{-webkit-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}[_nghost-%COMP%] [data-editor-rotation="90"]{transform:rotate(90deg)}[_nghost-%COMP%] [data-editor-rotation="180"]{transform:rotate(180deg)}[_nghost-%COMP%] [data-editor-rotation="270"]{transform:rotate(270deg)}[_nghost-%COMP%] .annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}[_nghost-%COMP%] .annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor .internal:focus{outline:none}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.disabled{resize:none}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}[_nghost-%COMP%] .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor), [_nghost-%COMP%] .annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}[_nghost-%COMP%] .annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}[_nghost-%COMP%] .annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}[_nghost-%COMP%] .annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}[_nghost-%COMP%] [data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[_nghost-%COMP%] [data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[_nghost-%COMP%] [data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}[_nghost-%COMP%] .pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}[_nghost-%COMP%] .pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped, [_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .spread .dummyPage, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .spread .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;inset:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQQAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/ilPcHRpbWl6ZWQgd2l0aCBodHRwczovL2V6Z2lmLmNvbS9vcHRpbWl6ZQAh+QQJBwAQACwAAAAAGAAYAAAFmiAkjiTkOGVaBgjZNGSgkgKjjM8zLoI8iy+BKCdiCX8iBeMAhEEIPRXLxViYUE9CbCQoFAzFhHY3zkaT3oPvBz1zE4UBsr1eWZH4vAowOBwGAHk8AoQLfH6Agm0Ed3qOAXWOIgQKiWyFJQgDgJEpdG+WEACNEFNFmKVlVzJQk6qdkwqBoi1mebJ3ALNGeIZHtGSwNDS1RZKueCEAIfkECQcAEAAsAAAAABgAGAAABZcgJI4kpChlWgYCWRQkEKgjURgjw4zOg9CjVwuiEyEeO6CxkBC9nA+HiuUqLEyoBZI0Mx4SAFFgQCDZuguBoGv6Dtg0gvpqdhxQQDkBzuUr/4A1JwMKP39pc2mDhYCIc4GQYn6QCwCMeY91l0p6dBAEJ0OfcFRimZ91Mwt0alxxAIZyRmuAsKxDLKKvZbM1tJxmvGKRpn8hACH5BAkHABAALAAAAAAYABgAAAWhICSOJGQYZVoGAnkcJBKoI3EAY1GMCtPSosSBINKJBIwGkHdwBGGQA0OhYpEGQxNqkYzNIITBACEKKBaxxNfBeOCO4vMy0Hg8nDHFeCktkKtfNAtoS4UqAicKBj9zBAKPC4iKi4aRkISGmWWBmjUIAIyHkCUEAKCVo2WmREecVqoCgZhgP4NHrGWCj7e3szSpuxAsoVWxnp6cVV4kyZW+KSEAIfkECQcAEAAsAAAAABgAGAAABZkgJI4kBABlWgYEOQykEKgjMSDjcYxG0dKi108nEhQKQN4rCIMkCgbawjWYnSCLY2yGVSgEooBhWqsGGwxc0RtNBgoMhmJ1QgETjANYFeBKyUmBKQQIdT9JDmgPDQ6EhoKJD4sOgpWWgiwChyqEBH5hmptSoSOZgJ4kLKWkYTF7C2SaqaM/hEWygay4mYG8t6uffFuzl1iANCEAIfkECQcAEAAsAAAAABgAGAAABZ0gJI4khCBlmhKkopBCoI6LIozDMAIHO4uuBVBnOiR+I4FrCDwAZsKdQnaCLIwwmRUA8JmioprWUCjcwlwUMnAoG0qL03k2KCS8cC0UjOzDCQKBfHQFDAwFU4CCfgqFhy9+kZJWgzSKSAcPZn+BfQENDw8OljGWJAFeDoZPYTBnC1GdSXqnsoBolSulX2GyP6hgvnG0KrS3NJNhuSQhACH5BAkHABAALAAAAAAYABgAAAWaICSOJCQIZZoupGGQRKCOC0CMijIiwz2LABtQZxoMfjQhxAXszWQ7gOwECRhh0MCJJRJARTUoIHFAgbfI6uBwAJS01J/i4PClVYHvfV8lbLlIBmwFbQt+aGmChG18jXeGT4dICQxlb4g/AQUMDER9XjR6BAdiDQwINDBmkAsPDVh4cX4imw53iLKuaVqAcUsPqEiidkt6j4AzIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiREEGWaBiSCtCoZCMsIAKOg1LEo0KKbaKFQ9EYLoOkFuQlirNxzCQkUW9GZ0hQd4nyDAWr4G/esYSbyZFYZwu3jqiuvr8u8I2BwOAwASXh1e31/doeHC3klWnElfAlTd46MfQUGk2stCVEGBQWSdCciDg5VDAVYKoEiDQ0iBwxGcj9RDw8+qHIzebc2DJJQJK6qiKVyIQAh+QQJBwAQACwAAAAAGAAYAAAFmSAkjiS0LGWaBiRBtCoZCKgoCCMB1DF0sz6cCQDo5W62l28XAyZFpyECBv3lnCbhUqHMIo0Qg4Jbmn1jRCa4iV27TzfXGjEecOFWMN1OdvvfPGUuXSoKBw6EXokrAwcHRVU0UAeEBANAAAmUI1gNDyhjJgUHLW0iDg8FIqOnBQZrDA9TELE2rEYIDw4jta2LMpCrqld/YQpgIQAh+QQJBwAQACwAAAAAGAAYAAAFmyAkjiS0LGWaBiRBkKw6BgIqCsJcyyMe4yJajhcEml5H26o1PN2QQd3uFiv2AADlAgflIbDdZLgkABOJgep5LfWty4p4zeU+w+XsvJWXliEKDwdEBgMKYQ4PDw1qK3EDCCMAiQ5BCV0LCj+FSDQkgCgGBiYHAy2MIgoMghAHqw4HAGsNDEMFBTekdgwKI7aRB2MwkL2rVHoQoWchACH5BAkHABAALAAAAAAYABgAAAWWICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkfbqjU83ZBB3e4WK0qrCxyU55peid0qcUwuixyNx6PhILsAcAJazXYj4lvz2MkLiFsHDAlEcABKZwwMBX8pBgoKQxAIigpBA1sLBj+PSDQkB4uSACYDlTMyBgWDEKVnl2QFBUigN61gBQYjtLV5JZ4jtlR6omMhACH5BAkHABAALAAAAAAYABgAAAWaICSOJLQsZZoGJEGQrDoGAioKwlzLIx7jIlqOFwSaXkdbidYanm7I4AjwYDh6saJuJ3JUG1mZi9srPA7EcRimJLrfJYWZUVC8TziXnEG3u/E+cIJaPAFrPQl1aQAIbRAGBZGHJQiMUQKRBkEKbQsAPZaEXQcslSYKmjMyAAdXj34ACkNEiUgDA5t+PAQHn6Ogjkuzry2DNwhuIQAh+QQFBwAQACwAAAAAGAAYAAAFnCAkjiS0LGVaBgBJEGSguo8zCsK4CPIsMg+ECCcKEH0ix6MwhJl4KiOp8UCdmrEbo6EoHpxF8A6aBBZ6vhf5dmAkkGr0CoWs21WGQ2FvsI9xC3l7B311fy93iWGKJQQOhHCAJQB6A3IqcWwJLU90i2FkUiMKlhBELEI6MwgDXRAGhQgAYD6tTqRFAJxpA6mvrqazSKJJhUWMpjlIIQA7) center no-repeat}[_nghost-%COMP%] .pdfViewer .page .loadingIcon.notVisible{background:none}[_nghost-%COMP%] .pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;user-select:none!important;cursor:not-allowed}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{padding-bottom:0}[_nghost-%COMP%] .pdfPresentationMode .spread{margin:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}`]})}return t})(),dq=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=gt({type:t});static \u0275inj=ft({})}return t})();var mq;try{mq=typeof Intl<"u"&&Intl.v8BreakIterator}catch{mq=!1}var ln=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Pd(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||mq)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||t)(ae(Oa))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var VS,Ace=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function pq(){if(VS)return VS;if(typeof document!="object"||!document)return VS=new Set(Ace),VS;let t=document.createElement("input");return VS=new Set(Ace.filter(n=>(t.setAttribute("type",n),t.type===n))),VS}var h2;function ZVe(){if(h2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h2=!0}))}finally{h2=h2||!1}return h2}function Ql(t){return ZVe()?t:!!t.capture}var Lh=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(Lh||{}),qO,C1;function WO(){if(C1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return C1=!1,C1;if("scrollBehavior"in document.documentElement.style)C1=!0;else{let t=Element.prototype.scrollTo;t?C1=!/\{\s*\[native code\]\s*\}/.test(t.toString()):C1=!1}}return C1}function BS(){if(typeof document!="object"||!document)return Lh.NORMAL;if(qO==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),qO=Lh.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,qO=t.scrollLeft===0?Lh.NEGATED:Lh.INVERTED),t.remove()}return qO}var uq;function JVe(){if(uq==null){let t=typeof document<"u"?document.head:null;uq=!!(t&&(t.createShadowRoot||t.attachShadow))}return uq}function kce(t){if(JVe()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Yf(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Fu(t){return t.composedPath?t.composedPath()[0]:t.target}function f2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function ho(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Sn(t){return t!=null&&`${t}`!="false"}function Jc(t,n=0){return e5e(t)?Number(t):n}function e5e(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function jS(t){return Array.isArray(t)?t:[t]}function zs(t){return t==null?"":typeof t=="string"?t:`${t}px`}function ed(t){return t instanceof Xe?t.nativeElement:t}function Mce(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let r of i){let o=`${r}`.trim();o&&e.push(o)}}return e}function t5e(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),i5e=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=ed(e);return new mn(r=>{let a=this._observeElement(i).pipe(st(s=>s.filter(l=>!t5e(l))),vi(s=>!!s.length)).subscribe(r);return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new qe,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static{this.\u0275fac=function(i){return new(i||t)(ae(Fce))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YO=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Jc(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ae,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe($o(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(i5e),E(Xe),E(ht))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[ve.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",at],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Ei]})}}return t})(),HS=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Fce]})}}return t})();var Rce=new Set,S1,n5e=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):o5e}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&r5e(e,this._nonce),this._matchMedia(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(ln),ae(GD,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function r5e(t,n){if(!Rce.has(t))try{S1||(S1=document.createElement("style"),n&&S1.setAttribute("nonce",n),S1.setAttribute("type","text/css"),document.head.appendChild(S1)),S1.sheet&&(S1.sheet.insertRule(`@media ${t} {body{ }}`,0),Rce.add(t))}catch(e){console.error(e)}}function o5e(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var KO=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new qe}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Pce(jS(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=Pce(jS(e)).map(a=>this._registerQuery(a).observable),o=vm(r);return o=If(o.pipe(cn(1)),o.pipe(Fy(1),$o(0))),o.pipe(st(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:u})=>{s.matches=s.matches||l,s.breakpoints[u]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new mn(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(kn(i),st(({matches:a})=>({query:e,matches:a})),Ft(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static{this.\u0275fac=function(i){return new(i||t)(ae(n5e),ae(ht))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Pce(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var Nce={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var jce=" ";function qS(t,n,e){let i=JO(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(jce)))}function xv(t,n,e){let i=JO(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(jce)):t.removeAttribute(n)}function JO(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var Hce="cdk-describedby-message",XO="cdk-describedby-host",gq=0,WS=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${gq++}`,this._document=e,this._id=Me(uS)+"-"+gq++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=hq(i,r);typeof i!="string"?(Oce(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=hq(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${XO}="${this._id}"]`);for(let i=0;ir.indexOf(Hce)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);qS(e,"aria-describedby",r.messageElement.id),e.setAttribute(XO,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,xv(e,"aria-describedby",r.messageElement.id),e.removeAttribute(XO)}_isElementDescribedByMessage(e,i){let r=JO(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(ln))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function hq(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function Oce(t,n){t.id||(t.id=`${Hce}-${n}-${gq++}`)}var eL=class{constructor(n,e){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new qe,this._typeaheadSubscription=Ji.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new qe,this.change=new qe,n instanceof js?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):WP(n)&&(this._effectRef=_p(()=>this._itemsChanged(n()),{injector:e}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ri(e=>this._pressedLetters.push(e)),$o(n),vi(()=>this._pressedLetters.length>0),st(()=>this._pressedLetters.join(""))).subscribe(e=>{let i=this._getItemsArray();for(let r=1;r!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e)));return}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),r=e[i];this._activeItem=r??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let r=(this._activeItemIndex+n*i+e.length)%e.length,o=e[r];if(!this._skipPredicateFn(o)){this.setActiveItem(r);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return WP(this._items)?this._items():this._items instanceof js?this._items.toArray():this._items}_itemsChanged(n){if(this._activeItem){let e=n.indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}}},US=class extends eL{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}},Ep=class extends eL{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var b0=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return g5e(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=f5e(w5e(e));if(i&&(Lce(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=Lce(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!C5e(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return S5e(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static{this.\u0275fac=function(i){return new(i||t)(ae(ln))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function f5e(t){try{return t.frameElement}catch{return null}}function g5e(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function _5e(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function v5e(t){return y5e(t)&&t.type=="hidden"}function b5e(t){return x5e(t)&&t.hasAttribute("href")}function y5e(t){return t.nodeName.toLowerCase()=="input"}function x5e(t){return t.nodeName.toLowerCase()=="a"}function zce(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function Lce(t){if(!zce(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function C5e(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function S5e(t){return v5e(t)?!1:_5e(t)||b5e(t)||t.hasAttribute("contenteditable")||zce(t)}function w5e(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var _q=class{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(cn(1)).subscribe(n)}},E1=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new _q(e,this._checker,this._ngZone,this._document,i)}static{this.\u0275fac=function(i){return new(i||t)(ae(b0),ae(ht),ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Uce=(()=>{class t{get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}constructor(e,i,r){this._elementRef=e,this._focusTrapFactory=i,this._previouslyFocusedElement=null,Me(ln).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Yf(),this.focusTrap?.focusInitialElementWhenReady()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(E1),E(ni))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[ve.HasDecoratorInputTransform,"cdkTrapFocus","enabled",at],autoCapture:[ve.HasDecoratorInputTransform,"cdkTrapFocusAutoCapture","autoCapture",at]},exportAs:["cdkTrapFocus"],standalone:!0,features:[Ei,Oi]})}}return t})();function v2(t){return t.buttons===0||t.detail===0}function b2(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var E5e=new ke("cdk-input-modality-detector-options"),I5e={ignoreKeys:[18,17,224,91,16]},Gce=650,zS=Ql({passive:!0,capture:!0}),D5e=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Tr(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(s=>s===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Fu(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(b2(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Fu(a)},this._options=Ve(Ve({},I5e),o),this.modalityDetected=this._modality.pipe(Fy(1)),this.modalityChanged=this.modalityDetected.pipe(Ls()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,zS),r.addEventListener("mousedown",this._onMousedown,zS),r.addEventListener("touchstart",this._onTouchstart,zS)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,zS),document.removeEventListener("mousedown",this._onMousedown,zS),document.removeEventListener("touchstart",this._onTouchstart,zS))}static{this.\u0275fac=function(i){return new(i||t)(ae(ln),ae(ht),ae(ni),ae(E5e,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),T5e=new ke("liveAnnouncerElement",{providedIn:"root",factory:A5e});function A5e(){return null}var k5e=new ke("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),M5e=0,tL=(()=>{class t{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{constructor(e,i,r,o,a){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new qe,this._rootNodeFocusAndBlurListener=s=>{let l=Fu(s);for(let u=l;u;u=u.parentElement)s.type==="focus"?this._onFocus(s,u):this._onBlur(s,u)},this._document=o,this._detectionMode=a?.detectionMode||ZO.IMMEDIATE}monitor(e,i=!1){let r=ed(e);if(!this._platform.isBrowser||r.nodeType!==1)return vt();let o=kce(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new qe,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=ed(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=ed(e),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ZO.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===ZO.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Gce:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Fu(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,QO),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,QO)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ft(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,QO),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,QO),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new Ae}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ua))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}}return t})(),w1=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(w1||{}),Vce="cdk-high-contrast-black-on-white",Bce="cdk-high-contrast-white-on-black",fq="cdk-high-contrast-active",yq=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=Me(KO).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return w1.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return w1.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return w1.BLACK_ON_WHITE}return w1.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(fq,Vce,Bce),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===w1.BLACK_ON_WHITE?e.add(fq,Vce):i===w1.WHITE_ON_BLACK&&e.add(fq,Bce)}}static{this.\u0275fac=function(i){return new(i||t)(ae(ln),ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Cv=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(i){return new(i||t)(ae(yq))}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[HS]})}}return t})();var R5e=new ke("cdk-dir-doc",{providedIn:"root",factory:P5e});function P5e(){return Me(ni)}var N5e=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function O5e(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?N5e.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Kr=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new Ae,e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.value=O5e(i||r||"ltr")}}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||t)(ae(R5e,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kf=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();var L5e=["text"],V5e=[[["mat-icon"]],"*"],B5e=["mat-icon","*"];function j5e(t,n){if(t&1&&H(0,"mat-pseudo-checkbox",1),t&2){let e=S();f("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function H5e(t,n){if(t&1&&H(0,"mat-pseudo-checkbox",3),t&2){let e=S();f("disabled",e.disabled)}}function z5e(t,n){if(t&1&&(d(0,"span",4),h(1),c()),t&2){let e=S();m(),ue("(",e.group.label,")")}}var U5e=["mat-internal-form-field",""],G5e=["*"];var Jce=(()=>{class t{static{this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)"}static{this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)"}static{this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)"}static{this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}}return t})(),ede=(()=>{class t{static{this.COMPLEX="375ms"}static{this.ENTERING="225ms"}static{this.EXITING="195ms"}}return t})();function $5e(){return!0}var q5e=new ke("mat-sanity-checks",{providedIn:"root",factory:$5e}),ki=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return f2()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[e]}static{this.\u0275fac=function(i){return new(i||t)(ae(yq),ae(q5e,8),ae(ni))}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Kf,Kf]})}}return t})();var Sv=class{constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var YS=new ke("MAT_DATE_LOCALE",{providedIn:"root",factory:W5e});function W5e(){return Me(Dh)}var Us=class{constructor(){this._localeChanges=new qe,this.localeChanges=this._localeChanges}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},jh=new ke("mat-date-formats"),Y5e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function xq(t,n){let e=Array(t);for(let i=0;i{class t extends Us{constructor(e){super(),this.useUtcForDisplay=!1,this._matDateLocale=Me(YS,{optional:!0}),e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return xq(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return xq(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return xq(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Gi(Ve({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(Y5e.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}static{this.\u0275fac=function(i){return new(i||t)(ae(YS,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),X5e={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var C2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Q5e()]})}}return t})();function Q5e(t=X5e){return[{provide:Us,useClass:K5e},{provide:jh,useValue:t}]}var Dp=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ip=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Ip||{}),wq=class{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=Ip.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},$ce=Ql({passive:!0,capture:!0}),Eq=class{constructor(){this._events=new Map,this._delegateEventHandler=n=>{let e=Fu(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$ce)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,$ce)))}},qce={enterDuration:225,exitDuration:150},Z5e=800,Wce=Ql({passive:!0,capture:!0}),Yce=["mousedown","touchstart"],Kce=["mouseup","mouseleave","touchend","touchcancel"],y2=class t{static{this._eventManager=new Eq}constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ed(i))}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Ve(Ve({},qce),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||J5e(n,e,r),s=n-r.left,l=e-r.top,u=o.enterDuration,p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=`${s-a}px`,p.style.top=`${l-a}px`,p.style.height=`${a*2}px`,p.style.width=`${a*2}px`,i.color!=null&&(p.style.backgroundColor=i.color),p.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(p);let g=window.getComputedStyle(p),_=g.transitionProperty,v=g.transitionDuration,y=_==="none"||v==="0s"||v==="0s, 0s"||r.width===0&&r.height===0,x=new wq(this,p,i,y);p.style.transform="scale3d(1, 1, 1)",x.state=Ip.FADING_IN,i.persistent||(this._mostRecentTransientRipple=x);let I=null;return!y&&(u||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let C=()=>this._finishRippleTransition(x),D=()=>this._destroyRipple(x);p.addEventListener("transitionend",C),p.addEventListener("transitioncancel",D),I={onTransitionEnd:C,onTransitionCancel:D}}),this._activeRipples.set(x,I),(y||!u)&&this._finishRippleTransition(x),x}fadeOutRipple(n){if(n.state===Ip.FADING_OUT||n.state===Ip.HIDDEN)return;let e=n.element,i=Ve(Ve({},qce),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=Ip.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=ed(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Yce.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Kce.forEach(e=>{this._triggerElement.addEventListener(e,this,Wce)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Ip.FADING_IN?this._startFadeOutTransition(n):n.state===Ip.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=Ip.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Ip.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){let e=v2(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===Ip.VISIBLE||n.config.terminateOnPointerUp&&n.state===Ip.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(Yce.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(Kce.forEach(e=>n.removeEventListener(e,this,Wce)),this._pointerUpEventsRegistered=!1))}};function J5e(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var wv=new ke("mat-ripple-global-options"),Jl=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new y2(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Ve(Ve(Ve({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,Ve(Ve({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Ve(Ve({},this.rippleConfig),e))}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht),E(ln),E(wv,8),E(Zn,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-ripple-unbounded",r.unbounded)},inputs:{color:[ve.None,"matRippleColor","color"],unbounded:[ve.None,"matRippleUnbounded","unbounded"],centered:[ve.None,"matRippleCentered","centered"],radius:[ve.None,"matRippleRadius","radius"],animation:[ve.None,"matRippleAnimation","animation"],disabled:[ve.None,"matRippleDisabled","disabled"],trigger:[ve.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return t})(),jd=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,ki]})}}return t})(),Iq=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(i){return new(i||t)(E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&yt("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[Dt],decls:0,vars:0,template:function(i,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return t})(),Dq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki]})}}return t})(),S2=new ke("MAT_OPTION_PARENT_COMPONENT");var w2=new ke("MatOptgroup");var eBe=0,x2=class{constructor(n,e=!1){this.source=n,this.isUserInput=e}},Mi=(()=>{class t{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${eBe++}`,this.onSelectionChange=new Ae,this._stateChanges=new qe}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!ho(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new x2(this,e))}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(S2,8),E(w2,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ot(L5e,7),i&2){let o;Pe(o=Ne())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&$("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(La("id",r.id),xt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),yt("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[Ei,Dt],ngContentSelectors:B5e,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(hi(V5e),k(0,j5e,1,2,"mat-pseudo-checkbox",1),ct(1),d(2,"span",2,0),ct(4,1),c(),k(5,H5e,1,1,"mat-pseudo-checkbox",3)(6,z5e,2,1,"span",4),H(7,"div",5)),i&2&&(Xt(0,r.multiple?0:-1),m(5),Xt(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),m(),Xt(6,r.group&&r.group._inert?6:-1),m(),f("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Iq,Jl],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();function rL(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}var KS=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[jd,ki,Dq]})}}return t})(),Xce={capture:!0},Qce=["focus","click","mouseenter","touchstart"],Cq="mat-ripple-loader-uninitialized",Sq="mat-ripple-loader-class-name",Zce="mat-ripple-loader-centered",nL="mat-ripple-loader-disabled",aL=(()=>{class t{constructor(){this._document=Me(ni,{optional:!0}),this._animationMode=Me(Zn,{optional:!0}),this._globalRippleOptions=Me(wv,{optional:!0}),this._platform=Me(ln),this._ngZone=Me(ht),this._hosts=new Map,this._onInteraction=e=>{if(!(e.target instanceof HTMLElement))return;let r=e.target.closest(`[${Cq}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let e of Qce)this._document?.addEventListener(e,this._onInteraction,Xce)})}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);for(let i of Qce)this._document?.removeEventListener(i,this._onInteraction,Xce)}configureRipple(e,i){e.setAttribute(Cq,""),(i.className||!e.hasAttribute(Sq))&&e.setAttribute(Sq,i.className||""),i.centered&&e.setAttribute(Zce,""),i.disabled&&e.setAttribute(nL,"")}getRipple(e){return this._hosts.get(e)||this._createRipple(e)}setDisabled(e,i){let r=this._hosts.get(e);if(r){r.disabled=i;return}i?e.setAttribute(nL,""):e.removeAttribute(nL)}_createRipple(e){if(!this._document)return;let i=this._hosts.get(e);if(i)return i;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Sq)),e.append(r);let o=new Jl(new Xe(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=e,o.centered=e.hasAttribute(Zce),o.disabled=e.hasAttribute(nL),this.attachRipple(e,o),o}attachRipple(e,i){e.removeAttribute(Cq),this._hosts.set(e,i)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.ngOnDestroy(),this._hosts.delete(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),XS=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Dt],attrs:U5e,ngContentSelectors:G5e,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}}return t})();var tde=["mat-button",""],lL=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],cL=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],tBe='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',Tq=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",iBe=["mat-fab",""],nBe=["mat-mini-fab",""],rBe='.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}',ide=["mat-icon-button",""],nde=["*"],oBe='.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',aBe=new ke("MAT_BUTTON_CONFIG");var sBe=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],E2=(()=>{class t{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}constructor(e,i,r,o){this._elementRef=e,this._platform=i,this._ngZone=r,this._animationMode=o,this._focusMonitor=Me(ua),this._rippleLoader=Me(aL),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;let a=Me(aBe,{optional:!0}),s=e.nativeElement,l=s.classList;this.disabledInteractive=a?.disabledInteractive??!1,this._rippleLoader?.configureRipple(s,{className:"mat-mdc-button-ripple"});for(let{attribute:u,mdcClasses:p}of sBe)s.hasAttribute(u)&&l.add(...p)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(i){Ky()}}static{this.\u0275dir=ze({type:t,inputs:{color:"color",disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],ariaDisabled:[ve.HasDecoratorInputTransform,"aria-disabled","ariaDisabled",at],disabledInteractive:[ve.HasDecoratorInputTransform,"disabledInteractive","disabledInteractive",at]},features:[Ei]})}}return t})();var rde=(()=>{class t extends E2{constructor(e,i,r,o){super(e,i,r,o),this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return this.ariaDisabled==null?this.disabled:this.ariaDisabled}static{this.\u0275fac=function(i){Ky()}}static{this.\u0275dir=ze({type:t,inputs:{tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?void 0:Gr(e)]},features:[Ei,qt]})}}return t})(),Ze=(()=>{class t extends E2{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[qt,Dt],attrs:tde,ngContentSelectors:cL,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(lL),H(0,"span",0),ct(1),d(2,"span",1),ct(3,1),c(),ct(4,2),H(5,"span",2)(6,"span",3)),i&2&&yt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);padding:0 var(--mat-text-button-horizontal-padding, 8px)}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);padding:0 var(--mat-filled-button-horizontal-padding, 16px)}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow)}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow)}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow)}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow)}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow)}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);padding:0 var(--mat-outlined-button-horizontal-padding, 15px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),ec=(()=>{class t extends rde{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[qt,Dt],attrs:tde,ngContentSelectors:cL,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(lL),H(0,"span",0),ct(1),d(2,"span",1),ct(3,1),c(),ct(4,2),H(5,"span",2)(6,"span",3)),i&2&&yt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[tBe,Tq],encapsulation:2,changeDetection:0})}}return t})(),ode=new ke("mat-mdc-fab-default-options",{providedIn:"root",factory:ade});function ade(){return{color:"accent"}}var sL=ade(),QS=(()=>{class t extends E2{constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||sL,this.color=this._options.color||sL.color}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8),E(ode,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0)("mdc-fab--extended",r.extended)("mat-mdc-extended-fab",r.extended))},inputs:{extended:[ve.HasDecoratorInputTransform,"extended","extended",at]},exportAs:["matButton"],standalone:!0,features:[Ei,qt,Dt],attrs:iBe,ngContentSelectors:cL,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(lL),H(0,"span",0),ct(1),d(2,"span",1),ct(3,1),c(),ct(4,2),H(5,"span",2)(6,"span",3)),i&2&&yt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-mini-fab{background-color:var(--mdc-fab-small-container-color)}.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-small-icon-size);height:var(--mdc-fab-small-icon-size);font-size:var(--mdc-fab-small-icon-size)}.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-small-container-shape)}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape);font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-extended-fab .mdc-fab__ripple{border-radius:var(--mdc-extended-fab-container-shape)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);flex-shrink:0}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab[disabled],.mat-mdc-fab[disabled]:focus,.mat-mdc-fab.mat-mdc-button-disabled,.mat-mdc-fab.mat-mdc-button-disabled:focus,.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab[disabled]:focus,.mat-mdc-mini-fab.mat-mdc-button-disabled,.mat-mdc-mini-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab.mat-mdc-button-disabled-interactive,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{color:var(--mat-fab-foreground-color, inherit);box-shadow:var(--mdc-fab-container-elevation-shadow)}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow)}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow)}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{color:var(--mat-fab-small-foreground-color, inherit);box-shadow:var(--mdc-fab-small-container-elevation-shadow)}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity)}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity)}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity)}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow)}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow)}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow)}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{box-shadow:var(--mdc-extended-fab-container-elevation-shadow)}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow)}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow)}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow)}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}'],encapsulation:2,changeDetection:0})}}return t})(),ma=(()=>{class t extends E2{constructor(e,i,r,o,a){super(e,i,r,o),this._options=a,this._isFab=!0,this._options=this._options||sL,this.color=this._options.color||sL.color}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8),E(ode,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[qt,Dt],attrs:nBe,ngContentSelectors:cL,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(lL),H(0,"span",0),ct(1),d(2,"span",1),ct(3,1),c(),ct(4,2),H(5,"span",2)(6,"span",3)),i&2&&yt("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[rBe],encapsulation:2,changeDetection:0})}}return t})();var fi=(()=>{class t extends E2{constructor(e,i,r,o){super(e,i,r,o),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[qt,Dt],attrs:ide,ngContentSelectors:nde,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(),H(0,"span",0),ct(1),H(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{color:var(--mdc-icon-button-icon-color)}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',Tq],encapsulation:2,changeDetection:0})}}return t})(),Ev=(()=>{class t extends rde{constructor(e,i,r,o){super(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ht),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(i,r){i&2&&(xt("disabled",r._getDisabledAttribute())("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-disabled",r._getDisabledAttribute()),In(r.color?"mat-"+r.color:""),yt("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mat-unthemed",!r.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[qt,Dt],attrs:ide,ngContentSelectors:nde,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(hi(),H(0,"span",0),ct(1),H(2,"span",1)(3,"span",2))},styles:[oBe,Tq],encapsulation:2,changeDetection:0})}}return t})(),Ic=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,jd,ki]})}}return t})();var lBe=["*"],dL;function cBe(){if(dL===void 0&&(dL=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(dL=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return dL}function I2(t){return cBe()?.createHTML(t)||t}function sde(t){return Error(`Unable to find icon with the name "${t}"`)}function dBe(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function lde(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function cde(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var y0=class{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}},Aq=(()=>{class t{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new y0(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){let a=this._sanitizer.sanitize(_s.HTML,r);if(!a)throw cde(r);let s=I2(a);return this._addSvgIconConfig(e,i,new y0("",s,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new y0(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){let o=this._sanitizer.sanitize(_s.HTML,i);if(!o)throw cde(i);let a=I2(o);return this._addSvgIconSetConfig(e,new y0("",a,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let i=this._sanitizer.sanitize(_s.RESOURCE_URL,e);if(!i)throw lde(e);let r=this._cachedIconsByUrl.get(i);return r?vt(uL(r)):this._loadSvgIconFromConfig(new y0(e,null)).pipe(ri(o=>this._cachedIconsByUrl.set(i,o)),st(o=>uL(o)))}getNamedSvgIcon(e,i=""){let r=dde(i,e),o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);let a=this._iconSetConfigs.get(i);return a?this._getSvgFromIconSetConfigs(e,a):Os(sde(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?vt(uL(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(st(i=>uL(i)))}_getSvgFromIconSetConfigs(e,i){let r=this._extractIconWithNameFromAnySet(e,i);if(r)return vt(r);let o=i.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Ma(s=>{let u=`Loading icon set URL: ${this._sanitizer.sanitize(_s.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(u)),vt(null)})));return $_(o).pipe(st(()=>{let a=this._extractIconWithNameFromAnySet(e,i);if(!a)throw sde(e);return a}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){let o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(a,e,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ri(i=>e.svgText=i),st(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?vt(null):this._fetchIcon(e).pipe(ri(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){let o=e.querySelector(`[id="${i}"]`);if(!o)return null;let a=o.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,r);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),r);let s=this._svgElementFromString(I2(""));return s.appendChild(a),this._setSvgAttributes(s,r)}_svgElementFromString(e){let i=this._document.createElement("DIV");i.innerHTML=e;let r=i.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){let i=this._svgElementFromString(I2("")),r=e.attributes;for(let o=0;oI2(u)),Vs(()=>this._inProgressUrlFetches.delete(a)),SD());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(dde(e,i),r),this}_addSvgIconSetConfig(e,i){let r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){let i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;rn?n.pathname+n.search:""}}var ude=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],fBe=ude.map(t=>`[${t}]`).join(", "),gBe=/^url\(['"]?#(.*?)['"]?\)$/,He=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){let i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){let i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}constructor(e,i,r,o,a,s){this._elementRef=e,this._iconRegistry=i,this._location=o,this._errorHandler=a,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Ji.EMPTY,s&&(s.color&&(this.color=this._defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){let r=e.childNodes[i];(r.nodeType!==1||r.nodeName.toLowerCase()==="svg")&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),i.forEach(r=>e.classList.add(r)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(a=>{o.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let i=e.querySelectorAll(fBe),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o{let s=i[o],l=s.getAttribute(a),u=l?l.match(gBe):null;if(u){let p=r.get(s);p||(p=[],r.set(s,p)),p.push({name:a,value:u[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(cn(1)).subscribe(o=>this._setSvgElement(o),o=>{let a=`Error retrieving icon ${i}:${r}! ${o.message}`;this._errorHandler.handleError(new Error(a))})}}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Aq),Sa("aria-hidden"),E(pBe),E(Sl),E(mBe,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(i,r){i&2&&(xt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet)("fontIcon",r._usingFontIcon()?r.fontIcon:null),In(r.color?"mat-"+r.color:""),yt("mat-icon-inline",r.inline)("mat-icon-no-color",r.color!=="primary"&&r.color!=="accent"&&r.color!=="warn"))},inputs:{color:"color",inline:[ve.HasDecoratorInputTransform,"inline","inline",at],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[Ei,Dt],ngContentSelectors:lBe,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return t})(),Hh=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,ki]})}}return t})();var mde=Ql({passive:!0}),pde=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ka;let i=ed(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new qe,a="cdk-text-field-autofilled",s=l=>{l.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",s,mde),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",s,mde)}}),o}stopMonitoring(e){let i=ed(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static{this.\u0275fac=function(i){return new(i||t)(ae(ln),ae(ht))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hde=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();var kq=class{constructor(n){this._box=n,this._destroyed=new qe,this._resizeSubject=new qe,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new mn(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(vi(e=>e.some(i=>i.target===n)),W_({bufferSize:1,refCount:!0}),Ft(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},fde=(()=>{class t{constructor(){this._observers=new Map,this._ngZone=Me(ht),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new kq(r)),this._observers.get(r).observe(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vBe=["notch"],bBe=["matFormFieldNotchedOutline",""],yBe=["*"],xBe=["textField"],CBe=["iconPrefixContainer"],SBe=["textPrefixContainer"],wBe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],EBe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function IBe(t,n){t&1&&H(0,"span",17)}function DBe(t,n){if(t&1&&(d(0,"label",16),ct(1,1),k(2,IBe,1,0,"span",17),c()),t&2){let e=S(2);f("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),xt("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),Xt(2,!e.hideRequiredMarker&&e._control.required?2:-1)}}function TBe(t,n){if(t&1&&k(0,DBe,3,5,"label",16),t&2){let e=S();Xt(0,e._hasFloatingLabel()?0:-1)}}function ABe(t,n){t&1&&H(0,"div",5)}function kBe(t,n){}function MBe(t,n){if(t&1&&k(0,kBe,0,0,"ng-template",11),t&2){S(2);let e=je(1);f("ngTemplateOutlet",e)}}function FBe(t,n){if(t&1&&(d(0,"div",7),k(1,MBe,1,1,null,11),c()),t&2){let e=S();f("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),Xt(1,e._forceDisplayInfixLabel()?-1:1)}}function RBe(t,n){t&1&&(d(0,"div",8,2),ct(2,2),c())}function PBe(t,n){t&1&&(d(0,"div",9,3),ct(2,3),c())}function NBe(t,n){}function OBe(t,n){if(t&1&&k(0,NBe,0,0,"ng-template",11),t&2){S();let e=je(1);f("ngTemplateOutlet",e)}}function LBe(t,n){t&1&&(d(0,"div",12),ct(1,4),c())}function VBe(t,n){t&1&&(d(0,"div",13),ct(1,5),c())}function BBe(t,n){t&1&&H(0,"div",14)}function jBe(t,n){if(t&1&&(d(0,"div",18),ct(1,6),c()),t&2){let e=S();f("@transitionMessages",e._subscriptAnimationState)}}function HBe(t,n){if(t&1&&(d(0,"mat-hint",20),h(1),c()),t&2){let e=S(2);f("id",e._hintLabelId),m(),U(e.hintLabel)}}function zBe(t,n){if(t&1&&(d(0,"div",19),k(1,HBe,2,2,"mat-hint",20),ct(2,7),H(3,"div",21),ct(4,8),c()),t&2){let e=S();f("@transitionMessages",e._subscriptAnimationState),m(),Xt(1,e.hintLabel?1:-1)}}var jt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-label"]],standalone:!0})}}return t})(),UBe=0,Sde=new ke("MatError"),Si=(()=>{class t{constructor(e,i){this.id=`mat-mdc-error-${UBe++}`,e||i.nativeElement.setAttribute("aria-live","polite")}static{this.\u0275fac=function(i){return new(i||t)(Sa("aria-live"),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&La("id",r.id)},inputs:{id:"id"},standalone:!0,features:[Zt([{provide:Sde,useExisting:t}])]})}}return t})(),GBe=0,pL=(()=>{class t{constructor(){this.align="start",this.id=`mat-mdc-hint-${GBe++}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(La("id",r.id),xt("align",null),yt("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0})}}return t})(),$Be=new ke("MatPrefix");var wde=new ke("MatSuffix"),ZS=(()=>{class t{constructor(){this._isText=!1}set _isTextSelector(e){this._isText=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[ve.None,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Zt([{provide:wde,useExisting:t}])]})}}return t})(),Ede=new ke("FloatingLabelParent"),gde=(()=>{class t{get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(e){this._elementRef=e,this._floating=!1,this._monitorResize=!1,this._resizeObserver=Me(fde),this._ngZone=Me(ht),this._parent=Me(Ede),this._resizeSubscription=new Ji}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return qBe(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return t})();function qBe(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var _de="mdc-line-ripple--active",mL="mdc-line-ripple--deactivating",vde=(()=>{class t{constructor(e,i){this._elementRef=e,this._handleTransitionEnd=r=>{let o=this._elementRef.nativeElement.classList,a=o.contains(mL);r.propertyName==="opacity"&&a&&o.remove(_de,mL)},i.runOutsideAngular(()=>{e.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(mL),e.add(_de)}deactivate(){this._elementRef.nativeElement.classList.add(mL)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht))}}static{this.\u0275dir=ze({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return t})(),bde=(()=>{class t{constructor(e,i){this._elementRef=e,this._ngZone=i,this.open=!1}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht))}}static{this.\u0275cmp=oe({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ot(vBe,5),i&2){let o;Pe(o=Ne())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mdc-notched-outline--notched",r.open)},inputs:{open:[ve.None,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[Dt],attrs:bBe,ngContentSelectors:yBe,decls:5,vars:0,consts:[["notch",""],[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],[1,"mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(hi(),H(0,"div",1),d(1,"div",2,0),ct(3),c(),H(4,"div",3))},encapsulation:2,changeDetection:0})}}return t})(),WBe={transitionMessages:Bo("transitionMessages",[cr("enter",$i({opacity:1,transform:"translateY(0%)"})),gr("void => enter",[$i({opacity:0,transform:"translateY(-5px)"}),xr("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Iv=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t})}}return t})();var x0=new ke("MatFormField"),Mq=new ke("MAT_FORM_FIELD_DEFAULT_OPTIONS"),yde=0,xde="fill",YBe="auto",Cde="fixed",KBe="translateY(-50%)",bt=(()=>{class t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Sn(e)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||YBe}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(e){let i=this._appearance,r=e||this._defaults?.appearance||xde;this._appearance=r,this._appearance==="outline"&&this._appearance!==i&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Cde}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Cde}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}constructor(e,i,r,o,a,s,l,u){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=o,this._platform=a,this._defaults=s,this._animationMode=l,this._hideRequiredMarker=!1,this.color="primary",this._appearance=xde,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${yde++}`,this._hintLabelId=`mat-mdc-hint-${yde++}`,this._subscriptAnimationState="",this._destroyed=new qe,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,s&&(s.appearance&&(this.appearance=s.appearance),this._hideRequiredMarker=!!s?.hideRequiredMarker,s.color&&(this.color=s.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){let e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${e.controlType}`),e.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Cn(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ft(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe(Ft(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let i=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,r=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdateOnStable=!0;return}let i=this._iconPrefixContainer?.nativeElement,r=this._textPrefixContainer?.nativeElement,o=i?.getBoundingClientRect().width??0,a=r?.getBoundingClientRect().width??0,s=this._dir.value==="rtl"?"-1":"1",l=`${o+a}px`,p=`calc(${s} * (${l} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( --mat-mdc-form-field-label-transform, ${KBe} translateX(${p}) )`}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(ht),E(Kr),E(ln),E(Mq,8),E(Zn,8),E(ni))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,jt,5),bi(o,jt,7),bi(o,Iv,5),bi(o,$Be,5),bi(o,wde,5),bi(o,Sde,5),bi(o,pL,5)),i&2){let a;Pe(a=Ne())&&(r._labelChildNonStatic=a.first),Pe(a=Ne())&&(r._labelChildStatic=a.first),Pe(a=Ne())&&(r._formFieldControl=a.first),Pe(a=Ne())&&(r._prefixChildren=a),Pe(a=Ne())&&(r._suffixChildren=a),Pe(a=Ne())&&(r._errorChildren=a),Pe(a=Ne())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(ot(xBe,5),ot(CBe,5),ot(SBe,5),ot(gde,5),ot(bde,5),ot(vde,5)),i&2){let o;Pe(o=Ne())&&(r._textField=o.first),Pe(o=Ne())&&(r._iconPrefixContainer=o.first),Pe(o=Ne())&&(r._textPrefixContainer=o.first),Pe(o=Ne())&&(r._floatingLabel=o.first),Pe(o=Ne())&&(r._notchedOutline=o.first),Pe(o=Ne())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(i,r){i&2&&yt("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-no-animations",r._animationMode==="NoopAnimations")("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-focused",r._control.focused)("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[Zt([{provide:x0,useExisting:t},{provide:Ede,useExisting:t}]),Dt],ngContentSelectors:EBe,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=ie();hi(wBe),k(0,TBe,1,1,"ng-template",null,0,Ii),d(2,"div",4,1),$("click",function(s){return W(o),Y(r._control.onContainerClick(s))}),k(4,ABe,1,0,"div",5),d(5,"div",6),k(6,FBe,2,2,"div",7)(7,RBe,3,0,"div",8)(8,PBe,3,0,"div",9),d(9,"div",10),k(10,OBe,1,1,null,11),ct(11),c(),k(12,LBe,2,0,"div",12)(13,VBe,2,0,"div",13),c(),k(14,BBe,1,0,"div",14),c(),d(15,"div",15),k(16,jBe,2,1)(17,zBe,5,2),c()}if(i&2){let o;m(2),yt("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),m(2),Xt(4,!r._hasOutline()&&!r._control.disabled?4:-1),m(2),Xt(6,r._hasOutline()?6:-1),m(),Xt(7,r._hasIconPrefix?7:-1),m(),Xt(8,r._hasTextPrefix?8:-1),m(2),Xt(10,!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),m(2),Xt(12,r._hasTextSuffix?12:-1),m(),Xt(13,r._hasIconSuffix?13:-1),m(),Xt(14,r._hasOutline()?-1:14),m(),yt("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic"),m(),Xt(16,(o=r._getDisplayedMessages())==="error"?16:o==="hint"?17:-1)}},dependencies:[gde,bde,ta,vde,pL],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 64px/0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 96px/0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px*2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-hover-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-hover-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-hover-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-hover-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(.75*var(--mdc-outlined-text-field-label-text-size))}.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mdc-outlined-text-field-label-text-size)}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px,var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px,var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px,calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color)}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font);line-height:var(--mat-form-field-subscript-text-line-height);font-size:var(--mat-form-field-subscript-text-size);letter-spacing:var(--mat-form-field-subscript-text-tracking);font-weight:var(--mat-form-field-subscript-text-weight)}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color)}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity)}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color)}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color)}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color)}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color)}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color)}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[WBe.transitionMessages]},changeDetection:0})}}return t})(),D2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,po,HS,ki]})}}return t})();var Fq=new ke("MAT_INPUT_VALUE_ACCESSOR"),XBe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],QBe=0,Wt=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=Sn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Se.required)??!1}set required(e){this._required=Sn(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&pq().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Sn(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,a,s,l,u,p,g){this._elementRef=e,this._platform=i,this.ngControl=r,this._autofillMonitor=u,this._formField=g,this._uid=`mat-input-${QBe++}`,this.focused=!1,this.stateChanges=new qe,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(y=>pq().has(y)),this._iOSKeyupListener=y=>{let x=y.target;!x.value&&x.selectionStart===0&&x.selectionEnd===0&&(x.setSelectionRange(1,1),x.setSelectionRange(0,0))};let _=this._elementRef.nativeElement,v=_.nodeName.toLowerCase();this._inputValueAccessor=l||_,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&p.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new Sv(s,r,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=v==="select",this._isTextarea=v==="textarea",this._isInFormField=!!g,this._isNativeSelect&&(this.controlType=_.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){XBe.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(Yc,10),E(kh,8),E(dt,8),E(Dp),E(Fq,10),E(pde),E(ht),E(x0,8))}}static{this.\u0275dir=ze({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(i,r){i&1&&$("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(La("id",r.id)("disabled",r.disabled)("required",r.required),xt("name",r.name||null)("readonly",r.readonly&&!r._isNativeSelect||null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),yt("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[ve.None,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[Zt([{provide:Iv,useExisting:t}]),Oi]})}}return t})(),T2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,D2,D2,hde,ki]})}}return t})();var A2=class{};function hL(t){return t&&typeof t.connect=="function"&&!(t instanceof j_)}var JS=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(JS||{}),k2=new ke("_ViewRepeater"),ew=class{applyChanges(n,e,i,r,o){n.forEachOperation((a,s,l)=>{let u,p;if(a.previousIndex==null){let g=i(a,s,l);u=e.createEmbeddedView(g.templateRef,g.context,g.index),p=JS.INSERTED}else l==null?(e.remove(s),p=JS.REMOVED):(u=e.get(s),e.move(u,l),p=JS.MOVED);o&&o({context:u?.context,operation:p,record:a})})}detach(){}};var id=class{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new qe,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}};var tw=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ZBe=20,C0=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new qe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=ZBe){return this._platform.isBrowser?new mn(i=>{this._globalSubscription||this._addGlobalListener();let r=e>0?this._scrolled.pipe(NR(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):vt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(vi(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=ed(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let e=this._getWindow();return xn(e.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||t)(ae(ht),ae(ln),ae(ni,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),S0=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new qe,this._elementScrolled=new mn(a=>this.ngZone.runOutsideAngular(()=>xn(this.elementRef.nativeElement,"scroll").pipe(Ft(this._destroyed)).subscribe(a)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&BS()!=Lh.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),BS()==Lh.INVERTED?e.left=e.right:BS()==Lh.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;WO()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&BS()==Lh.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&BS()==Lh.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(C0),E(ht),E(Kr,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return t})(),JBe=20,Dc=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new qe,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=JBe){return e>0?this._change.pipe(NR(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||t)(ae(ln),ae(ht),ae(ni,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Hd=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})(),M2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Kf,Hd,Kf,Hd]})}}return t})();var F2=class{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Nu=class extends F2{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}},$s=class extends F2{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},Pq=class extends F2{constructor(n){super(),this.element=n instanceof Xe?n.nativeElement:n}},Dv=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Nu)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof $s)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof Pq)return this._attachedPortal=n,this.attachDomPortal(n)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var R2=class extends Dv{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=a=>{this._document;let s=a.element;s.parentNode;let l=this._document.createComment("dom-portal");s.parentNode.insertBefore(l,s),this.outletElement.appendChild(s),this._attachedPortal=a,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(s,l)})},this._document=o}attachComponentPortal(n){let i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||ao.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}};var Ide=(()=>{class t extends $s{constructor(e,i){super(e,i)}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Er))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[qt]})}}return t})();var Tl=(()=>{class t extends Dv{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ae,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let s=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(s,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(a,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static{this.\u0275fac=function(i){return new(i||t)(E(xm),E(Er),E(ni))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[ve.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[qt]})}}return t})();var zd=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();var Dde=WO(),Nq=class{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=zs(-this._previousScrollPosition.left),n.style.top=zs(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),Dde&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Dde&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};var Oq=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(vi(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},fL=class{enable(){}disable(){}attach(){}};function Lq(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function Tde(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}var Vq=class{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Lq(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},e6e=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new fL,this.close=a=>new Oq(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new Nq(this._viewportRuler,this._document),this.reposition=a=>new Vq(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}static{this.\u0275fac=function(i){return new(i||t)(ae(C0),ae(Dc),ae(ht),ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ou=class{constructor(n){if(this.scrollStrategy=new fL,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Bq=class{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var Rde=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static{this.\u0275fac=function(i){return new(i||t)(ae(ni))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),t6e=(()=>{class t extends Rde{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let s=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(ht,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),i6e=(()=>{class t extends Rde{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Fu(o)},this._clickListener=o=>{let a=Fu(o),s=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let l=this._attachedOverlays.slice();for(let u=l.length-1;u>-1;u--){let p=l[u];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(p.overlayElement.contains(a)||p.overlayElement.contains(s))break;let g=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>g.next(o)):g.next(o)}}}add(e){if(super.add(e),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(ln),ae(ht,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iw=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||f2()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;othis._backdropClick.next(g),this._backdropTransitionendHandler=g=>{this._disposeBackdrop(g.target)},this._keydownEvents=new qe,this._outsidePointerEvents=new qe,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(cn(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Ve(Ve({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Gi(Ve({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=zs(this._config.width),n.height=zs(this._config.height),n.minWidth=zs(this._config.minWidth),n.minHeight=zs(this._config.minHeight),n.maxWidth=zs(this._config.maxWidth),n.maxHeight=zs(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let n=this._backdropElement;if(n){if(this._animationsDisabled){this._disposeBackdrop(n);return}n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){let r=jS(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{let n=this._ngZone.onStable.pipe(Ft(Cn(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},Ade="cdk-overlay-connected-position-bounding-box",n6e=/([A-Za-z%]+)$/,P2=class{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new qe,this._resizeSubscription=Ji.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(Ade),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),u=this._getOverlayPoint(l,e,s),p=this._getOverlayFit(u,e,i,s);if(p.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(p,u,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=p,s=u)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&D1(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ade),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=Mde(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),u=this._getOffset(r,"y");l&&(a+=l),u&&(s+=u);let p=0-a,g=a+o.width-i.width,_=0-s,v=s+o.height-i.height,y=this._subtractOverflows(o.width,p,g),x=this._subtractOverflows(o.height,_,v),I=y*x;return{visibleArea:I,isCompletelyWithinViewport:o.width*o.height===I,fitsInViewportVertically:x===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=kde(this._overlayRef.getConfig().minHeight),s=kde(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,u=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&u}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=Mde(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),u=Math.max(o.left-i.left-n.x,0),p=0,g=0;return r.width<=o.width?p=u||-a:p=n.xy&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-y/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,u=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,p,g,_;if(u)_=i.width-n.x+this._viewportMargin*2,p=n.x-this._viewportMargin;else if(l)g=n.x,p=i.right-n.x;else{let v=Math.min(i.right-n.x+i.left,n.x),y=this._lastBoundingBoxSize.width;p=v*2,g=n.x-v,p>y&&!this._isInitialRender&&!this._growAfterOpen&&(g=n.x-y/2)}return{top:a,left:g,bottom:s,right:_,width:p,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=zs(i.height),r.top=zs(i.top),r.bottom=zs(i.bottom),r.width=zs(i.width),r.left=zs(i.left),r.right=zs(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=zs(o)),a&&(r.maxWidth=zs(a))}this._lastBoundingBoxSize=i,D1(this._boundingBox.style,r)}_resetBoundingBoxStyles(){D1(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){D1(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let p=this._viewportRuler.getViewportScrollPosition();D1(i,this._getExactOverlayY(e,n,p)),D1(i,this._getExactOverlayX(e,n,p))}else i.position="static";let s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),u&&(s+=`translateY(${u}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=zs(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=zs(a.maxWidth):o&&(i.maxWidth="")),D1(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=zs(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=zs(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Tde(n,i),isOriginOutsideView:Lq(n,i),isOverlayClipped:Tde(e,i),isOverlayOutsideView:Lq(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&jS(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof Xe)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function D1(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function kde(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(n6e);return!e||e==="px"?parseFloat(n):null}return t||null}function Mde(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function r6e(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var Fde="cdk-global-overlay-wrapper",jq=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(Fde),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),p=this._xPosition,g=this._xOffset,_=this._overlayRef.getConfig().direction==="rtl",v="",y="",x="";l?x="flex-start":p==="center"?(x="center",_?y=g:v=g):_?p==="left"||p==="end"?(x="flex-end",v=g):(p==="right"||p==="start")&&(x="flex-start",y=g):p==="left"||p==="start"?(x="flex-start",v=g):(p==="right"||p==="end")&&(x="flex-end",y=g),n.position=this._cssPosition,n.marginLeft=l?"0":v,n.marginTop=u?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":y,e.justifyContent=x,e.alignItems=u?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(Fde),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},o6e=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new jq}flexibleConnectedTo(e){return new P2(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||t)(ae(Dc),ae(ni),ae(ln),ae(iw))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),a6e=0,lo=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g,_,v){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=s,this._ngZone=l,this._document=u,this._directionality=p,this._location=g,this._outsideClickDispatcher=_,this._animationsModuleType=v}create(e){let i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),a=new Ou(e);return a.direction=a.direction||this._directionality.value,new w0(o,i,r,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations")}position(){return this._positionBuilder}_createPaneElement(e){let i=this._document.createElement("div");return i.id=`cdk-overlay-${a6e++}`,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Wc)),new R2(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||t)(ae(e6e),ae(iw),ae(xm),ae(o6e),ae(t6e),ae(ao),ae(ht),ae(ni),ae(Kr),ae(Lf),ae(i6e),ae(Zn,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),s6e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Pde=new ke("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition()}}),N2=(()=>{class t{constructor(e){this.elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return t})(),Hq=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}constructor(e,i,r,o,a){this._overlay=e,this._dir=a,this._backdropSubscription=Ji.EMPTY,this._attachSubscription=Ji.EMPTY,this._detachSubscription=Ji.EMPTY,this._positionSubscription=Ji.EMPTY,this._disposeOnNavigation=!1,this._ngZone=Me(ht),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new Ae,this.positionChange=new Ae,this.attach=new Ae,this.detach=new Ae,this.overlayKeydown=new Ae,this.overlayOutsideClick=new Ae,this._templatePortal=new $s(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=s6e);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!ho(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Fu(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Ou({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof N2?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof N2?this.origin.elementRef.nativeElement:this.origin instanceof Xe?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Wg(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(lo),E(Mn),E(Er),E(Pde),E(Kr,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[ve.None,"cdkConnectedOverlayOrigin","origin"],positions:[ve.None,"cdkConnectedOverlayPositions","positions"],positionStrategy:[ve.None,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[ve.None,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[ve.None,"cdkConnectedOverlayOffsetY","offsetY"],width:[ve.None,"cdkConnectedOverlayWidth","width"],height:[ve.None,"cdkConnectedOverlayHeight","height"],minWidth:[ve.None,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[ve.None,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[ve.None,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[ve.None,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[ve.None,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[ve.None,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[ve.None,"cdkConnectedOverlayOpen","open"],disableClose:[ve.None,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[ve.None,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayHasBackdrop","hasBackdrop",at],lockPosition:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayLockPosition","lockPosition",at],flexibleDimensions:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",at],growAfterOpen:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",at],push:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayPush","push",at],disposeOnNavigation:[ve.HasDecoratorInputTransform,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",at]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[Ei,Oi]})}}return t})();function l6e(t){return()=>t.scrollStrategies.reposition()}var c6e={provide:Pde,deps:[lo],useFactory:l6e},nd=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[lo,c6e],imports:[Kf,zd,M2,M2]})}}return t})();var d6e=["trigger"],u6e=["panel"],m6e=[[["mat-select-trigger"]],"*"],p6e=["mat-select-trigger","*"];function h6e(t,n){if(t&1&&(d(0,"span",4),h(1),c()),t&2){let e=S();m(),U(e.placeholder)}}function f6e(t,n){t&1&&ct(0)}function g6e(t,n){if(t&1&&(d(0,"span",11),h(1),c()),t&2){let e=S(2);m(),U(e.triggerValue)}}function _6e(t,n){if(t&1&&(d(0,"span",10),k(1,f6e,1,0)(2,g6e,2,1),c()),t&2){let e=S();m(),Xt(1,e.customTrigger?1:2)}}function v6e(t,n){if(t&1){let e=ie();d(0,"div",12,1),$("@transformPanel.done",function(r){W(e);let o=S();return Y(o._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){W(e);let o=S();return Y(o._handleKeydown(r))}),ct(2,1),c()}if(t&2){let e=S();Cm("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),f("ngClass",e.panelClass)("@transformPanel","showing"),xt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var b6e={transformPanelWrap:Bo("transformPanelWrap",[gr("* => void",i1("@transformPanel",[t1()],{optional:!0}))]),transformPanel:Bo("transformPanel",[cr("void",$i({opacity:0,transform:"scale(1, 0.8)"})),gr("void => showing",xr("120ms cubic-bezier(0, 0, 0.2, 1)",$i({opacity:1,transform:"scale(1, 1)"}))),gr("* => void",xr("100ms linear",$i({opacity:0})))])};var Nde=0,Ode=new ke("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition()}});function y6e(t){return()=>t.scrollStrategies.reposition()}var x6e=new ke("MAT_SELECT_CONFIG"),C6e={provide:Ode,deps:[lo],useFactory:y6e},Lde=new ke("MatSelectTrigger"),zq=class{constructor(n,e){this.source=n,this.value=e}},Li=(()=>{class t{_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=rL(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=oL(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new zq(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Se.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,i,r,o,a,s,l,u,p,g,_,v,y,x){this._viewportRuler=e,this._changeDetectorRef=i,this._elementRef=a,this._dir=s,this._parentFormField=p,this.ngControl=g,this._liveAnnouncer=y,this._defaultOptions=x,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(I,C)=>I===C,this._uid=`mat-select-${Nde++}`,this._triggerAriaLabelledBy=null,this._destroy=new qe,this.stateChanges=new qe,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${Nde++}`,this._panelDoneAnimatingStream=new qe,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new qe,this.optionSelectionChanges=xu(()=>{let I=this.options;return I?I.changes.pipe(kn(I),Wi(()=>Cn(...I.map(C=>C.onSelectionChange)))):this._initialized.pipe(Wi(()=>this.optionSelectionChanges))}),this.openedChange=new Ae,this._openedStream=this.openedChange.pipe(vi(I=>I),st(()=>{})),this._closedStream=this.openedChange.pipe(vi(I=>!I),st(()=>{})),this.selectionChange=new Ae,this.valueChange=new Ae,this._trackedModal=null,this._skipPredicate=I=>this.panelOpen?!1:I.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),x?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._errorStateTracker=new Sv(o,g,u,l,this.stateChanges),this._scrollStrategyFactory=v,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(_)||0,this.id=this.id}ngOnInit(){this._selectionModel=new id(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ls(),Ft(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(Ft(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Ft(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(kn(null),Ft(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&xv(this._trackedModal,"aria-owns",i),qS(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;xv(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!ho(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!ho(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(cn(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return r.value!=null&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof N2?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new US(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=Cn(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ft(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Cn(...this.options.map(i=>i._stateChanges)).pipe(Ft(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),i=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(i+=" "+this.ariaLabelledby),i}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(i){return new(i||t)(E(Dc),E(Di),E(ht),E(Dp),E(Xe),E(Kr,8),E(kh,8),E(dt,8),E(x0,8),E(Yc,10),Sa("tabindex"),E(Ode),E(tL),E(x6e,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,Lde,5),bi(o,Mi,5),bi(o,w2,5)),i&2){let a;Pe(a=Ne())&&(r.customTrigger=a.first),Pe(a=Ne())&&(r.options=a),Pe(a=Ne())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ot(d6e,5),ot(u6e,5),ot(Hq,5)),i&2){let o;Pe(o=Ne())&&(r.trigger=o.first),Pe(o=Ne())&&(r.panel=o.first),Pe(o=Ne())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&$("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(xt("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),yt("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[ve.None,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Gr(e)],hideSingleSelectionIndicator:[ve.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",at],placeholder:"placeholder",required:[ve.HasDecoratorInputTransform,"required","required",at],multiple:[ve.HasDecoratorInputTransform,"multiple","multiple",at],disableOptionCentering:[ve.HasDecoratorInputTransform,"disableOptionCentering","disableOptionCentering",at],compareWith:"compareWith",value:"value",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[ve.HasDecoratorInputTransform,"typeaheadDebounceInterval","typeaheadDebounceInterval",Gr],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[Zt([{provide:Iv,useExisting:t},{provide:S2,useExisting:t}]),Ei,Oi,Dt],ngContentSelectors:p6e,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=ie();hi(m6e),d(0,"div",2,0),$("click",function(){return W(o),Y(r.open())}),d(3,"div",3),k(4,h6e,2,1,"span",4)(5,_6e,3,1),c(),d(6,"div",5)(7,"div",6),Na(),d(8,"svg",7),H(9,"path",8),c()()()(),k(10,v6e,3,9,"ng-template",9),$("backdropClick",function(){return W(o),Y(r.close())})("attach",function(){return W(o),Y(r._onAttached())})("detach",function(){return W(o),Y(r.close())})}if(i&2){let o=je(1);m(3),xt("id",r._valueId),m(),Xt(4,r.empty?4:5),m(6),f("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayOpen",r.panelOpen)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)}},dependencies:[N2,Hq,ji],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[b6e.transformPanel]},changeDetection:0})}}return t})(),Vde=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-select-trigger"]],standalone:!0,features:[Zt([{provide:Lde,useExisting:t}])]})}}return t})(),Tv=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[C6e],imports:[po,nd,KS,ki,Hd,D2,KS,ki]})}}return t})();var S6e=["tooltip"],Hde=20;var zde=new ke("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition({scrollThrottle:Hde})}});function w6e(t){return()=>t.scrollStrategies.reposition({scrollThrottle:Hde})}var E6e={provide:zde,deps:[lo],useFactory:w6e};function I6e(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var D6e=new ke("mat-tooltip-default-options",{providedIn:"root",factory:I6e});var Bde="tooltip-panel",jde=Ql({passive:!0}),T6e=8,A6e=8,k6e=24,M6e=200,yi=(()=>{class t{get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Sn(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Sn(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Jc(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Jc(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(e,i,r,o,a,s,l,u,p,g,_,v){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=a,this._platform=s,this._ariaDescriber=l,this._focusMonitor=u,this._dir=g,this._defaultOptions=_,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=F6e,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new qe,this._scrollStrategy=p,this._document=v,_&&(this._showDelay=_.showDelay,this._hideDelay=_.hideDelay,_.position&&(this.position=_.position),_.positionAtOrigin&&(this.positionAtOrigin=_.positionAtOrigin),_.touchGestures&&(this.touchGestures=_.touchGestures)),g.change.pipe(Ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=T6e}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ft(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,jde)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new Nu(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof Xe)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return r.positionChanges.pipe(Ft(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Bde}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ft(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&o.keyCode===27&&!ho(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Ve(Ve({},r.main),o.main)),this._addOffset(Ve(Ve({},r.fallback),o.fallback))])}_addOffset(e){let i=A6e,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(cn(1),Ft(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${Bde}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>this.show(void 0,r),this._defaultOptions.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,jde)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}static{this.\u0275fac=function(i){return new(i||t)(E(lo),E(Xe),E(C0),E(Er),E(ht),E(ln),E(WS),E(ua),E(zde),E(Kr),E(D6e,8),E(ni))}}static{this.\u0275dir=ze({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[ve.None,"matTooltipPosition","position"],positionAtOrigin:[ve.None,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[ve.None,"matTooltipDisabled","disabled"],showDelay:[ve.None,"matTooltipShowDelay","showDelay"],hideDelay:[ve.None,"matTooltipHideDelay","hideDelay"],touchGestures:[ve.None,"matTooltipTouchGestures","touchGestures"],message:[ve.None,"matTooltip","message"],tooltipClass:[ve.None,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0})}}return t})(),F6e=(()=>{class t{constructor(e,i,r){this._changeDetectorRef=e,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new qe,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=r==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>k6e&&e.width>=M6e}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(Xe),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ot(S6e,7),i&2){let o;Pe(o=Ne())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(i,r){i&1&&$("mouseleave",function(a){return r._handleMouseLeave(a)}),i&2&&Vo("zoom",r.isVisible()?1:null)},standalone:!0,features:[Dt],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1,0),$("animationend",function(s){return W(o),Y(r._handleAnimationEnd(s))}),d(2,"div",2),h(3),c()()}i&2&&(yt("mdc-tooltip--multiline",r._isMultiline),f("ngClass",r.tooltipClass),m(3),U(r.message))},dependencies:[ji],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}}return t})();var Av=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[E6e],imports:[Cv,po,nd,ki,ki,Hd]})}}return t})();function R6e(t,n){if(t&1&&(d(0,"mat-option",16),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function P6e(t,n){if(t&1){let e=ie();d(0,"mat-form-field",13)(1,"mat-select",15),$("selectionChange",function(r){W(e);let o=S(2);return Y(o._changePageSize(r.value))}),Md(2,R6e,2,2,"mat-option",16,kd),c()()}if(t&2){let e=S(2);f("appearance",e._formFieldAppearance)("color",e.color),m(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(),Fd(e._displayedPageSizeOptions)}}function N6e(t,n){if(t&1&&(d(0,"div",14),h(1),c()),t&2){let e=S(2);m(),U(e.pageSize)}}function O6e(t,n){if(t&1&&(d(0,"div",2)(1,"div",12),h(2),c(),k(3,P6e,4,7,"mat-form-field",13)(4,N6e,2,1,"div",14),c()),t&2){let e=S();m(),xt("id",e._pageSizeLabelId),m(),ue(" ",e._intl.itemsPerPageLabel," "),m(),Xt(3,e._displayedPageSizeOptions.length>1?3:-1),m(),Xt(4,e._displayedPageSizeOptions.length<=1?4:-1)}}function L6e(t,n){if(t&1){let e=ie();d(0,"button",17),$("click",function(){W(e);let r=S();return Y(r.firstPage())}),Na(),d(1,"svg",7),H(2,"path",18),c()()}if(t&2){let e=S();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),xt("aria-label",e._intl.firstPageLabel)}}function V6e(t,n){if(t&1){let e=ie();d(0,"button",19),$("click",function(){W(e);let r=S();return Y(r.lastPage())}),Na(),d(1,"svg",7),H(2,"path",20),c()()}if(t&2){let e=S();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),xt("aria-label",e._intl.lastPageLabel)}}var nw=(()=>{class t{constructor(){this.changes=new qe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,i,r)=>{if(r==0||i==0)return`0 of ${r}`;r=Math.max(r,0);let o=e*i,a=o{class t{get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>Gr(i,0)),this._updateDisplayedPageSizeOptions()}constructor(e,i,r){if(this._intl=e,this._changeDetectorRef=i,this._pageSizeLabelId=`mat-paginator-page-size-label-${U6e++}`,this._isInitialized=!1,this._initializedStream=new Gg(1),this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this.hidePageSize=!1,this.showFirstLastButtons=!1,this.selectConfig={},this.disabled=!1,this.page=new Ae,this.initialized=this._initializedStream,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){let{pageSize:o,pageSizeOptions:a,hidePageSize:s,showFirstLastButtons:l}=r;o!=null&&(this._pageSize=o),a!=null&&(this._pageSizeOptions=a),s!=null&&(this.hidePageSize=s),l!=null&&(this.showFirstLastButtons=l)}this._formFieldAppearance=r?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;let e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;let e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;let e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;let e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static{this.\u0275fac=function(i){return new(i||t)(E(nw),E(Di),E(z6e,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[ve.HasDecoratorInputTransform,"pageIndex","pageIndex",Gr],length:[ve.HasDecoratorInputTransform,"length","length",Gr],pageSize:[ve.HasDecoratorInputTransform,"pageSize","pageSize",Gr],pageSizeOptions:"pageSizeOptions",hidePageSize:[ve.HasDecoratorInputTransform,"hidePageSize","hidePageSize",at],showFirstLastButtons:[ve.HasDecoratorInputTransform,"showFirstLastButtons","showFirstLastButtons",at],selectConfig:"selectConfig",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},outputs:{page:"page"},exportAs:["matPaginator"],standalone:!0,features:[Ei,Dt],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),k(2,O6e,5,4,"div",2),d(3,"div",3)(4,"div",4),h(5),c(),k(6,L6e,3,5,"button",5),d(7,"button",6),$("click",function(){return r.previousPage()}),Na(),d(8,"svg",7),H(9,"path",8),c()(),e0(),d(10,"button",9),$("click",function(){return r.nextPage()}),Na(),d(11,"svg",7),H(12,"path",10),c()(),k(13,V6e,3,5,"button",11),c()()()),i&2&&(m(2),Xt(2,r.hidePageSize?-1:2),m(3),ue(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),m(),Xt(6,r.showFirstLastButtons?6:-1),m(),f("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),xt("aria-label",r._intl.previousPageLabel),m(3),f("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),xt("aria-label",r._intl.nextPageLabel),m(3),Xt(13,r.showFirstLastButtons?13:-1))},dependencies:[bt,Li,Mi,fi,yi],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking);--mat-form-field-container-height:var(--mat-paginator-form-field-container-height);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return t})(),Ude=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[j6e],imports:[Ic,Tv,Av,Uq]})}}return t})();var $6e=["mat-sort-header",""],q6e=["*"];function W6e(t,n){if(t&1){let e=ie();d(0,"div",2),$("@arrowPosition.start",function(){W(e);let r=S();return Y(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){W(e);let r=S();return Y(r._disableViewStateAnimation=!1)}),H(1,"div",3),d(2,"div",4),H(3,"div",5)(4,"div",6)(5,"div",7),c()()}if(t&2){let e=S();f("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),m(2),f("@indicator",e._getArrowDirectionState()),m(),f("@leftPointer",e._getArrowDirectionState()),m(),f("@rightPointer",e._getArrowDirectionState())}}var Gde=new ke("MAT_SORT_DEFAULT_OPTIONS"),Kn=(()=>{class t{get direction(){return this._direction}set direction(e){this._direction=e}constructor(e){this._defaultOptions=e,this._initializedStream=new Gg(1),this.sortables=new Map,this._stateChanges=new qe,this.start="asc",this._direction="",this.disabled=!1,this.sortChange=new Ae,this.initialized=this._initializedStream}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=Y6e(e.start||this.start,i),o=r.indexOf(this.direction)+1;return o>=r.length&&(o=0),r[o]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static{this.\u0275fac=function(i){return new(i||t)(E(Gde,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[ve.None,"matSortActive","active"],start:[ve.None,"matSortStart","start"],direction:[ve.None,"matSortDirection","direction"],disableClear:[ve.HasDecoratorInputTransform,"matSortDisableClear","disableClear",at],disabled:[ve.HasDecoratorInputTransform,"matSortDisabled","disabled",at]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],standalone:!0,features:[Ei,Oi]})}}return t})();function Y6e(t,n){let e=["asc","desc"];return t=="desc"&&e.reverse(),n||e.push(""),e}var kv=ede.ENTERING+" "+Jce.STANDARD_CURVE,rw={indicator:Bo("indicator",[cr("active-asc, asc",$i({transform:"translateY(0px)"})),cr("active-desc, desc",$i({transform:"translateY(10px)"})),gr("active-asc <=> active-desc",xr(kv))]),leftPointer:Bo("leftPointer",[cr("active-asc, asc",$i({transform:"rotate(-45deg)"})),cr("active-desc, desc",$i({transform:"rotate(45deg)"})),gr("active-asc <=> active-desc",xr(kv))]),rightPointer:Bo("rightPointer",[cr("active-asc, asc",$i({transform:"rotate(45deg)"})),cr("active-desc, desc",$i({transform:"rotate(-45deg)"})),gr("active-asc <=> active-desc",xr(kv))]),arrowOpacity:Bo("arrowOpacity",[cr("desc-to-active, asc-to-active, active",$i({opacity:1})),cr("desc-to-hint, asc-to-hint, hint",$i({opacity:.54})),cr("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",$i({opacity:0})),gr("* => asc, * => desc, * => active, * => hint, * => void",xr("0ms")),gr("* <=> *",xr(kv))]),arrowPosition:Bo("arrowPosition",[gr("* => desc-to-hint, * => desc-to-active",xr(kv,cv([$i({transform:"translateY(-25%)"}),$i({transform:"translateY(0)"})]))),gr("* => hint-to-desc, * => active-to-desc",xr(kv,cv([$i({transform:"translateY(0)"}),$i({transform:"translateY(25%)"})]))),gr("* => asc-to-hint, * => asc-to-active",xr(kv,cv([$i({transform:"translateY(25%)"}),$i({transform:"translateY(0)"})]))),gr("* => hint-to-asc, * => active-to-asc",xr(kv,cv([$i({transform:"translateY(0)"}),$i({transform:"translateY(-25%)"})]))),cr("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",$i({transform:"translateY(0)"})),cr("hint-to-desc, active-to-desc, desc",$i({transform:"translateY(-25%)"})),cr("hint-to-asc, active-to-asc, asc",$i({transform:"translateY(25%)"}))]),allowChildren:Bo("allowChildren",[gr("* <=> *",[i1("@*",t1(),{optional:!0})])])},gL=(()=>{class t{constructor(){this.changes=new qe}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function K6e(t){return t||new gL}var X6e={provide:gL,deps:[[new Iu,new bm,gL]],useFactory:K6e},Lr=(()=>{class t{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}constructor(e,i,r,o,a,s,l,u){this._intl=e,this._changeDetectorRef=i,this._sort=r,this._columnDef=o,this._focusMonitor=a,this._elementRef=s,this._ariaDescriber=l,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this.disabled=!1,this._sortActionDescription="Sort",u?.arrowPosition&&(this.arrowPosition=u?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=!!e;i!==this._showIndicatorHint&&(this._setIndicatorHintVisible(i),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){let e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=Cn(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),(this._viewState.toState==="hint"||this._viewState.toState==="active")&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&this._viewState.toState==="active"&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(i){return new(i||t)(E(gL),E(Di),E(Kn,8),E("MAT_SORT_HEADER_COLUMN_DEF",8),E(ua),E(Xe),E(WS,8),E(Gde,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&$("click",function(){return r._handleClick()})("keydown",function(a){return r._handleKeydown(a)})("mouseenter",function(){return r._setIndicatorHintVisible(!0)})("mouseleave",function(){return r._setIndicatorHintVisible(!1)}),i&2&&(xt("aria-sort",r._getAriaSortAttribute()),yt("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[ve.None,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],sortActionDescription:"sortActionDescription",disableClear:[ve.HasDecoratorInputTransform,"disableClear","disableClear",at]},exportAs:["matSortHeader"],standalone:!0,features:[Ei,Dt],attrs:$6e,ngContentSelectors:q6e,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(i,r){i&1&&(hi(),d(0,"div",0)(1,"div",1),ct(2),c(),k(3,W6e,6,6,"div",2),c()),i&2&&(yt("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before"),xt("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),m(3),Xt(3,r._renderArrow()?3:-1))},styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;color:var(--mat-sort-arrow-color);opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[rw.indicator,rw.leftPointer,rw.rightPointer,rw.arrowOpacity,rw.arrowPosition,rw.allowChildren]},changeDetection:0})}}return t})(),O2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[X6e],imports:[ki]})}}return t})();var Z6e=[[["caption"]],[["colgroup"],["col"]],"*"],J6e=["caption","colgroup, col","*"];function eje(t,n){t&1&&ct(0,2)}function tje(t,n){t&1&&(d(0,"thead",0),dn(1,1),c(),d(2,"tbody",0),dn(3,2)(4,3),c(),d(5,"tfoot",0),dn(6,4),c())}function ije(t,n){t&1&&dn(0,1)(1,2)(2,3)(3,4)}var zh=new ke("CDK_TABLE");var CL=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkCellDef",""]],standalone:!0})}}return t})(),SL=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}}return t})(),Wde=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}}return t})(),ow=(()=>{class t{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static{this.\u0275fac=function(i){return new(i||t)(E(zh,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(i&1&&(bi(o,CL,5),bi(o,SL,5),bi(o,Wde,5)),i&2){let a;Pe(a=Ne())&&(r.cell=a.first),Pe(a=Ne())&&(r.headerCell=a.first),Pe(a=Ne())&&(r.footerCell=a.first)}},inputs:{name:[ve.None,"cdkColumnDef","name"],sticky:[ve.HasDecoratorInputTransform,"sticky","sticky",at],stickyEnd:[ve.HasDecoratorInputTransform,"stickyEnd","stickyEnd",at]},standalone:!0,features:[Zt([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Ei]})}}return t})(),vL=class{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}},Yde=(()=>{class t extends vL{constructor(e,i){super(e,i)}static{this.\u0275fac=function(i){return new(i||t)(E(ow),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[qt]})}}return t})();var Kde=(()=>{class t extends vL{constructor(e,i){super(e,i);let r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static{this.\u0275fac=function(i){return new(i||t)(E(ow),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[qt]})}}return t})(),bL=class{constructor(){this.tasks=[],this.endTasks=[]}},yL=new ke("_COALESCED_STYLE_SCHEDULER"),$q=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new qe}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bL,this._getScheduleObservable().pipe(Ft(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){let e=this._currentSchedule;this._currentSchedule=new bL;for(let i of e.tasks)i();for(let i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Ur(Promise.resolve(void 0)):this._ngZone.onStable.pipe(cn(1))}static{this.\u0275fac=function(i){return new(i||t)(ae(ht))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();var qq=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){let i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof L2?e.headerCell.template:this instanceof Wq?e.footerCell.template:e.cell.template}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Nf))}}static{this.\u0275dir=ze({type:t,features:[Oi]})}}return t})(),L2=(()=>{class t extends qq{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Nf),E(zh,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[ve.None,"cdkHeaderRowDef","columns"],sticky:[ve.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",at]},standalone:!0,features:[Ei,qt,Oi]})}}return t})(),Wq=(()=>{class t extends qq{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Nf),E(zh,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[ve.None,"cdkFooterRowDef","columns"],sticky:[ve.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",at]},standalone:!0,features:[Ei,qt,Oi]})}}return t})(),wL=(()=>{class t extends qq{constructor(e,i,r){super(e,i),this._table=r}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Nf),E(zh,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[ve.None,"cdkRowDefColumns","columns"],when:[ve.None,"cdkRowDefWhen","when"]},standalone:!0,features:[qt]})}}return t})(),A1=(()=>{class t{static{this.mostRecentCellOutlet=null}constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static{this.\u0275fac=function(i){return new(i||t)(E(Er))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkCellOutlet",""]],standalone:!0})}}return t})(),Yq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Dt],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&dn(0,0)},dependencies:[A1],encapsulation:2})}}return t})();var Kq=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Dt],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&dn(0,0)},dependencies:[A1],encapsulation:2})}}return t})(),Xde=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}}return t})(),$de=["top","bottom","left","right"],Gq=class{constructor(n,e,i,r,o=!0,a=!0,s){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){let i=[];for(let r of n)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o{for(let r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(n,e,i,r=!0){if(!n.length||!this._isBrowser||!(e.some(o=>o)||i.some(o=>o))){this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}));return}this._coalescedStyleScheduler.schedule(()=>{let o=n[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,i),p=e.lastIndexOf(!0),g=i.indexOf(!0),_=this.direction==="rtl",v=_?"right":"left",y=_?"left":"right";for(let x of n)for(let I=0;Ie[I]?x:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:g===-1?[]:s.slice(g).map((x,I)=>i[I+g]?x:null).reverse()}))})}stickRows(n,e,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{let r=i==="bottom"?n.slice().reverse():n,o=i==="bottom"?e.slice().reverse():e,a=[],s=[],l=[];for(let p=0,g=0;p{let i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(n,e){for(let r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);$de.some(r=>e.indexOf(r)===-1&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){let e={top:100,bottom:10,left:1,right:1},i=0;for(let r of $de)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let i=[],r=n.children;for(let o=0;o0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}};var xL=new ke("CDK_SPL");var Xq=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=Me(zh);r._rowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}}return t})(),Qq=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=Me(zh);r._headerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}}return t})(),Zq=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=Me(zh);r._footerRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}}return t})(),Jq=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;let r=Me(zh);r._noDataRowOutlet=this,r._outletAssigned()}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}}return t})();var eW=(()=>{class t{_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role"),i=e==="grid"||e==="treegrid"?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&i==="cell"?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,r,o,a,s,l,u,p,g,_,v){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=a,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=p,this._viewportRuler=g,this._stickyPositioningListener=_,this._ngZone=v,this._onDestroy=new qe,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new Ae,this.viewChange=new Tr({start:0,end:Number.MAX_VALUE}),o||r.nativeElement.setAttribute("role","table"),this._document=s,this._isServer=!l.isBrowser,this._isNativeHtmlTable=r.nativeElement.nodeName==="TABLE"}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(Ft(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),hL(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,a)=>this._getEmbeddedViewArgs(r.item,a),r=>r.item.data,r=>{r.operation===JS.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{let o=i.get(r.currentIndex);o.context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&ht.isInAngularZone()?this._ngZone.onStable.pipe(cn(1),Ft(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let r=qde(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}let i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let r=qde(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}let i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,a)=>{this._addStickyColumnStyles([o],this._headerRowDefs[a])}),this._rowDefs.forEach(o=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([o],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{let s=r&&r.has(a)?r.get(a):[];if(s.length){let l=s.shift();return l.dataIndex=i,l}else return{data:e,rowDef:a,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_L(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=_L(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_L(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_L(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(i=>!i.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>a||!!s.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();let r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();let o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],hL(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;hL(this.dataSource)?e=this.dataSource.connect(this):$g(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=vt(this.dataSource)),this._renderChangeSubscription=e.pipe(Ft(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){let r=Array.from(i.columns||[]).map(s=>{let l=this._columnDefsByName.get(s);return l}),o=r.map(s=>s.sticky),a=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let i=[];for(let r=0;r!o.when||o.when(i,e));else{let o=this._rowDefs.find(a=>a.when&&a.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r.length,r}_getEmbeddedViewArgs(e,i){let r=e.rowDef,o={$implicit:e.data};return{templateRef:r.template,context:o,index:i}}_renderRow(e,i,r,o={}){let a=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),a}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))A1.mostRecentCellOutlet&&A1.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i{let r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new Gq(this._isNativeHtmlTable,this.stickyCssClass,e,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:vt()).pipe(Ft(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let i=this._rowOutlet.viewContainer.length===0;if(i===this._isShowingNoDataRow)return;let r=this._noDataRowOutlet.viewContainer;if(i){let o=r.createEmbeddedView(e.templateRef),a=o.rootNodes[0];o.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(i){return new(i||t)(E(Nf),E(Di),E(Xe),Sa("role"),E(Kr,8),E(ni),E(ln),E(k2),E(yL),E(Dc),E(xL,12),E(ht,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(i&1&&(bi(o,Xde,5),bi(o,ow,5),bi(o,wL,5),bi(o,L2,5),bi(o,Wq,5)),i&2){let a;Pe(a=Ne())&&(r._noDataRow=a.first),Pe(a=Ne())&&(r._contentColumnDefs=a),Pe(a=Ne())&&(r._contentRowDefs=a),Pe(a=Ne())&&(r._contentHeaderRowDefs=a),Pe(a=Ne())&&(r._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){i&2&&yt("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[ve.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",at],fixedLayout:[ve.HasDecoratorInputTransform,"fixedLayout","fixedLayout",at]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[Zt([{provide:zh,useExisting:t},{provide:k2,useClass:ew},{provide:yL,useClass:$q},{provide:xL,useValue:null}]),Ei,Dt],ngContentSelectors:J6e,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(hi(Z6e),ct(0),ct(1,1),k(2,eje,1,0)(3,tje,7,0)(4,ije,4,0)),i&2&&(m(2),Xt(2,r._isServer?2:-1),m(),Xt(3,r._isNativeHtmlTable?3:4))},dependencies:[Qq,Xq,Jq,Zq],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}}return t})();function _L(t,n){return t.concat(Array.from(n))}function qde(t,n){let e=n.toUpperCase(),i=t.viewContainer.element.nativeElement;for(;i;){let r=i.nodeType===1?i.nodeName:null;if(r===e)return i;if(r==="TABLE")break;i=i.parentNode}return null}var Qde=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[M2]})}}return t})();var nje=[[["caption"]],[["colgroup"],["col"]],"*"],rje=["caption","colgroup, col","*"];function oje(t,n){t&1&&ct(0,2)}function aje(t,n){t&1&&(d(0,"thead",0),dn(1,1),c(),d(2,"tbody",2),dn(3,3)(4,4),c(),d(5,"tfoot",0),dn(6,5),c())}function sje(t,n){t&1&&dn(0,1)(1,3)(2,4)(3,5)}var V2=(()=>{class t extends eW{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[Zt([{provide:eW,useExisting:t},{provide:zh,useExisting:t},{provide:yL,useClass:$q},{provide:k2,useClass:ew},{provide:xL,useValue:null}]),qt,Dt],ngContentSelectors:rje,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){i&1&&(hi(nje),ct(0),ct(1,1),k(2,oje,1,0)(3,aje,7,0)(4,sje,4,0)),i&2&&(m(2),Xt(2,r._isServer?2:-1),m(),Xt(3,r._isNativeHtmlTable?3:4))},dependencies:[Qq,Xq,Jq,Zq],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}}return t})(),Hn=(()=>{class t extends CL{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matCellDef",""]],standalone:!0,features:[Zt([{provide:CL,useExisting:t}]),qt]})}}return t})(),zn=(()=>{class t extends SL{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[Zt([{provide:SL,useExisting:t}]),qt]})}}return t})();var Vn=(()=>{class t extends ow{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[ve.None,"matColumnDef","name"]},standalone:!0,features:[Zt([{provide:ow,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),qt]})}}return t})(),tr=(()=>{class t extends Yde{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[qt]})}}return t})();var ir=(()=>{class t extends Kde{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[qt]})}}return t})();var Mm=(()=>{class t extends L2{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[ve.None,"matHeaderRowDef","columns"],sticky:[ve.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",at]},standalone:!0,features:[Zt([{provide:L2,useExisting:t}]),Ei,qt]})}}return t})();var Fm=(()=>{class t extends wL{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[ve.None,"matRowDefColumns","columns"],when:[ve.None,"matRowDefWhen","when"]},standalone:!0,features:[Zt([{provide:wL,useExisting:t}]),qt]})}}return t})(),Uh=(()=>{class t extends Yq{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[Zt([{provide:Yq,useExisting:t}]),qt,Dt],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&dn(0,0)},dependencies:[A1],encapsulation:2})}}return t})();var Gh=(()=>{class t extends Kq{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[Zt([{provide:Kq,useExisting:t}]),qt,Dt],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){i&1&&dn(0,0)},dependencies:[A1],encapsulation:2})}}return t})();var B2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,Qde,ki]})}}return t})();var Tp=t=>({"full-screen":t}),lje=(t,n)=>({"border-radius":t,"background-color":n}),cje=(t,n,e,i)=>({"border-top-color":t,"border-right-color":n,"border-bottom-color":e,"border-left-color":i}),Ha=t=>({"background-color":t}),dje=t=>({color:t});function uje(t,n){if(t&1&&H(0,"div",14),t&2){let e=S(2);f("ngClass",Le(2,Tp,e.config.fullScreenBackdrop===!0))("ngStyle",doe(4,cje,e.config.secondaryColour,e.config.secondaryColour,e.config.secondaryColour,e.config.primaryColour))}}function mje(t,n){if(t&1&&(d(0,"div",15),H(1,"div",16)(2,"div",17)(3,"div",18)(4,"div",19)(5,"div",20)(6,"div",21)(7,"div",22)(8,"div",23)(9,"div",24),c()),t&2){let e=S(2);f("ngClass",Le(10,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(12,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(14,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(16,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(18,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(20,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(22,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(24,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(26,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(28,Ha,e.config.primaryColour))}}function pje(t,n){if(t&1&&H(0,"div",25),t&2){let e=S(2);f("ngStyle",Le(2,Ha,e.config.primaryColour))("ngClass",Le(4,Tp,e.config.fullScreenBackdrop===!0))}}function hje(t,n){if(t&1&&(d(0,"div",26),H(1,"div",27)(2,"div",28)(3,"div",29)(4,"div",30)(5,"div",31),c()),t&2){let e=S(2);f("ngClass",Le(6,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(8,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(10,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(12,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(14,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(16,Ha,e.config.primaryColour))}}function fje(t,n){if(t&1&&(d(0,"div",32),H(1,"div",33)(2,"div",34),c()),t&2){let e=S(2);f("ngClass",Le(3,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(5,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(7,Ha,e.config.secondaryColour))}}function gje(t,n){if(t&1&&(d(0,"div",35),H(1,"div",36)(2,"div",37),c()),t&2){let e=S(2);f("ngClass",Le(3,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(5,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(7,Ha,e.config.secondaryColour))}}function _je(t,n){if(t&1&&H(0,"div",38),t&2){let e=S(2);f("ngClass",Le(2,Tp,e.config.fullScreenBackdrop===!0))("ngStyle",Le(4,Ha,e.config.primaryColour))}}function vje(t,n){if(t&1&&(d(0,"div",39),H(1,"div",40)(2,"div",41),c()),t&2){let e=S(2);f("ngClass",Le(3,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(5,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(7,Ha,e.config.secondaryColour))}}function bje(t,n){if(t&1&&H(0,"div",42),t&2){let e=S(2);f("ngClass",Le(2,Tp,e.config.fullScreenBackdrop===!0))("ngStyle",Le(4,dje,e.config.primaryColour))}}function yje(t,n){if(t&1&&H(0,"div",43),t&2){let e=S(2);f("ngClass",Le(1,Tp,e.config.fullScreenBackdrop===!0))}}function xje(t,n){if(t&1&&(d(0,"div",44),H(1,"div",45)(2,"div",46)(3,"div",47),c()),t&2){let e=S(2);f("ngClass",Le(4,Tp,e.config.fullScreenBackdrop===!0)),m(),f("ngStyle",Le(6,Ha,e.config.primaryColour)),m(),f("ngStyle",Le(8,Ha,e.config.secondaryColour)),m(),f("ngStyle",Le(10,Ha,e.config.tertiaryColour))}}function Cje(t,n){t&1&&dn(0)}function Sje(t,n){if(t&1&&(he(0),k(1,Cje,1,0,"ng-container",48),fe()),t&2){let e=S(2);m(),f("ngTemplateOutlet",e.template)}}function wje(t,n){if(t&1&&(d(0,"div"),H(1,"div",1),d(2,"div",2),k(3,uje,1,9,"div",3)(4,mje,10,30,"div",4)(5,pje,1,6,"div",5)(6,hje,6,18,"div",6)(7,fje,3,9,"div",7)(8,gje,3,9,"div",8)(9,_je,1,6,"div",9)(10,vje,3,9,"div",10)(11,bje,1,6,"div",11)(12,yje,1,3,"div",12)(13,xje,4,12,"div",13)(14,Sje,2,1,"ng-container",0),c()()),t&2){let e=S();m(),f("ngClass",Le(14,Tp,e.config.fullScreenBackdrop===!0))("ngStyle",so(16,lje,e.config.backdropBorderRadius,e.config.backdropBackgroundColour)),m(),f("ngSwitch",e.config.animationType),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.circle),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.cubeGrid),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.rotatingPlane),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.rectangleBounce),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.wanderingCubes),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.doubleBounce),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.pulse),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.chasingDots),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.circleSwish),m(),f("ngSwitchCase",e.ngxLoadingAnimationTypes.none),m(2),f("ngIf",e.template)}}var EL=class{constructor(n={}){this.backdropBorderRadius=n.backdropBorderRadius,this.backdropBackgroundColour=n.backdropBackgroundColour,this.fullScreenBackdrop=n.fullScreenBackdrop,this.animationType=n.animationType,this.primaryColour=n.primaryColour,this.secondaryColour=n.secondaryColour,this.tertiaryColour=n.tertiaryColour}},IL={chasingDots:"chasing-dots",circle:"sk-circle",circleSwish:"circleSwish",cubeGrid:"sk-cube-grid",doubleBounce:"double-bounce",none:"none",pulse:"pulse",rectangleBounce:"rectangle-bounce",rotatingPlane:"rotating-plane",threeBounce:"three-bounce",wanderingCubes:"wandering-cubes"},Eje=(()=>{class t{constructor(e){this.config=e,this.loadingConfig=this.config||new EL}static{this.\u0275fac=function(i){return new(i||t)(ae("loadingConfig",8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),li=(()=>{class t{constructor(e){this.LoadingService=e,this.show=!1,this.config=new EL,this.defaultConfig={animationType:IL.threeBounce,backdropBackgroundColour:"rgba(0, 0, 0, 0.3)",backdropBorderRadius:"0px",fullScreenBackdrop:!1,primaryColour:"#ffffff",secondaryColour:"#ffffff",tertiaryColour:"#ffffff"},this.ngxLoadingAnimationTypes=IL}ngOnInit(){this.setupConfig()}setupConfig(){for(let e in this.defaultConfig)this.config[e]==null&&(this.config[e]=this.LoadingService.loadingConfig[e]!=null?this.LoadingService.loadingConfig[e]:this.defaultConfig[e])}static{this.\u0275fac=function(i){return new(i||t)(E(Eje))}}static{this.\u0275cmp=oe({type:t,selectors:[["ngx-loading"]],inputs:{show:"show",config:"config",template:"template"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"backdrop",3,"ngClass","ngStyle"],[3,"ngSwitch"],["class","spinner-circle",3,"ngClass","ngStyle",4,"ngSwitchCase"],["class","sk-cube-grid",3,"ngClass",4,"ngSwitchCase"],["class","spinner-sk-rotateplane",3,"ngStyle","ngClass",4,"ngSwitchCase"],["class","spinner-rectangle-bounce",3,"ngClass",4,"ngSwitchCase"],["class","spinner-wandering-cubes",3,"ngClass",4,"ngSwitchCase"],["class","spinner-double-bounce",3,"ngClass",4,"ngSwitchCase"],["class","spinner-pulse",3,"ngClass","ngStyle",4,"ngSwitchCase"],["class","spinner-chasing-dots",3,"ngClass",4,"ngSwitchCase"],["class","spinner-circle-swish",3,"ngClass","ngStyle",4,"ngSwitchCase"],[3,"ngClass",4,"ngSwitchCase"],["class","spinner-three-bounce",3,"ngClass",4,"ngSwitchDefault"],[1,"spinner-circle",3,"ngClass","ngStyle"],[1,"sk-cube-grid",3,"ngClass"],[1,"sk-cube","sk-cube1",3,"ngStyle"],[1,"sk-cube","sk-cube2",3,"ngStyle"],[1,"sk-cube","sk-cube3",3,"ngStyle"],[1,"sk-cube","sk-cube4",3,"ngStyle"],[1,"sk-cube","sk-cube5",3,"ngStyle"],[1,"sk-cube","sk-cube6",3,"ngStyle"],[1,"sk-cube","sk-cube7",3,"ngStyle"],[1,"sk-cube","sk-cube8",3,"ngStyle"],[1,"sk-cube","sk-cube9",3,"ngStyle"],[1,"spinner-sk-rotateplane",3,"ngStyle","ngClass"],[1,"spinner-rectangle-bounce",3,"ngClass"],[1,"rect1",3,"ngStyle"],[1,"rect2",3,"ngStyle"],[1,"rect3",3,"ngStyle"],[1,"rect4",3,"ngStyle"],[1,"rect5",3,"ngStyle"],[1,"spinner-wandering-cubes",3,"ngClass"],[1,"cube1",3,"ngStyle"],[1,"cube2",3,"ngStyle"],[1,"spinner-double-bounce",3,"ngClass"],[1,"double-bounce1",3,"ngStyle"],[1,"double-bounce2",3,"ngStyle"],[1,"spinner-pulse",3,"ngClass","ngStyle"],[1,"spinner-chasing-dots",3,"ngClass"],[1,"dot1",3,"ngStyle"],[1,"dot2",3,"ngStyle"],[1,"spinner-circle-swish",3,"ngClass","ngStyle"],[3,"ngClass"],[1,"spinner-three-bounce",3,"ngClass"],[1,"bounce1",3,"ngStyle"],[1,"bounce2",3,"ngStyle"],[1,"bounce3",3,"ngStyle"],[4,"ngTemplateOutlet"]],template:function(i,r){i&1&&k(0,wje,15,19,"div",0),i&2&&f("ngIf",r.show)},dependencies:[ji,Ee,ta,av,vs,rl,v3],styles:['.backdrop[_ngcontent-%COMP%]{z-index:1999;position:absolute;inset:0;background-color:#0000004d}.spinner-circle[_ngcontent-%COMP%], .spinner-circle[_ngcontent-%COMP%]:after{border-radius:50%;width:10em;height:10em}.spinner-circle[_ngcontent-%COMP%]{font-size:6px;border-top:1.1em solid rgba(255,255,255,.2);border-right:1.1em solid rgba(255,255,255,.2);border-bottom:1.1em solid rgba(255,255,255,.2);border-left:1.1em solid #ffffff;position:absolute;inset:0;margin:auto;z-index:2000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:_ngcontent-%COMP%_load8 1.1s infinite linear;animation:_ngcontent-%COMP%_load8 1.1s infinite linear}@-webkit-keyframes _ngcontent-%COMP%_load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-circle-swish[_ngcontent-%COMP%]{font-size:60px;overflow:hidden;width:1em;height:1em;border-radius:50%;position:absolute;inset:0;margin:auto;z-index:2000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:_ngcontent-%COMP%_load6 1.7s infinite ease;animation:_ngcontent-%COMP%_load6 1.7s infinite ease}@-webkit-keyframes _ngcontent-%COMP%_load6{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em;-webkit-transform:rotate(0deg)}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em;-webkit-transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_load6{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em;transform:rotate(0)}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em;transform:rotate(360deg)}}.sk-cube-grid[_ngcontent-%COMP%]{width:40px;height:40px;position:absolute;inset:0;margin:auto;z-index:2000}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube[_ngcontent-%COMP%]{width:33%;height:33%;background-color:#333;float:left;-webkit-animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-cubeGridScaleDelay 1.3s infinite ease-in-out}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube1[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube2[_ngcontent-%COMP%]{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube3[_ngcontent-%COMP%]{-webkit-animation-delay:.4s;animation-delay:.4s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube4[_ngcontent-%COMP%]{-webkit-animation-delay:.1s;animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube5[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube6[_ngcontent-%COMP%]{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube7[_ngcontent-%COMP%]{-webkit-animation-delay:0s;animation-delay:0s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube8[_ngcontent-%COMP%]{-webkit-animation-delay:.1s;animation-delay:.1s}.sk-cube-grid[_ngcontent-%COMP%] .sk-cube9[_ngcontent-%COMP%]{-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{-webkit-transform:scale3D(1,1,1);transform:scaleZ(1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@keyframes _ngcontent-%COMP%_sk-cubeGridScaleDelay{0%,70%,to{-webkit-transform:scale3D(1,1,1);transform:scaleZ(1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}.spinner-double-bounce[_ngcontent-%COMP%]{width:40px;height:40px;position:absolute;inset:0;margin:auto;z-index:2000}.double-bounce1[_ngcontent-%COMP%], .double-bounce2[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:_ngcontent-%COMP%_sk-bounce 2s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-bounce 2s infinite ease-in-out}.double-bounce2[_ngcontent-%COMP%]{-webkit-animation-delay:-1s;animation-delay:-1s}.spinner-pulse[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#333;position:absolute;inset:0;margin:auto;z-index:2000;border-radius:100%;-webkit-animation:_ngcontent-%COMP%_sk-scaleout 1s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-scaleout 1s infinite ease-in-out}@-webkit-keyframes _ngcontent-%COMP%_sk-scaleout{0%{-webkit-transform:scale(0)}to{-webkit-transform:scale(1);opacity:0}}@keyframes _ngcontent-%COMP%_sk-scaleout{0%{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.spinner-three-bounce[_ngcontent-%COMP%]{width:70px;text-align:center;position:absolute;inset:0;height:20px;margin:auto;z-index:2000}.spinner-three-bounce[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:18px;height:18px;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation:_ngcontent-%COMP%_sk-bouncedelay 1.4s infinite ease-in-out both;animation:_ngcontent-%COMP%_sk-bouncedelay 1.4s infinite ease-in-out both}.spinner-three-bounce[_ngcontent-%COMP%] .bounce1[_ngcontent-%COMP%]{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner-three-bounce[_ngcontent-%COMP%] .bounce2[_ngcontent-%COMP%]{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes _ngcontent-%COMP%_sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes _ngcontent-%COMP%_sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.spinner-sk-rotateplane[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;text-align:center;position:absolute;inset:0;margin:auto;z-index:2000;-webkit-animation:_ngcontent-%COMP%_sk-rotateplane 1.2s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-rotateplane 1.2s infinite ease-in-out}@-webkit-keyframes _ngcontent-%COMP%_sk-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}to{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes _ngcontent-%COMP%_sk-rotateplane{0%{transform:perspective(120px) rotateX(0) rotateY(0);-webkit-transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0);-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}.spinner-rectangle-bounce[_ngcontent-%COMP%]{width:50px;height:40px;font-size:10px;text-align:center;position:absolute;inset:0;margin:auto;z-index:2000}.spinner-rectangle-bounce[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#fff;height:100%;width:6px;display:inline-block;-webkit-animation:_ngcontent-%COMP%_sk-stretchdelay 1.2s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-stretchdelay 1.2s infinite ease-in-out}.spinner-rectangle-bounce[_ngcontent-%COMP%] .rect2[_ngcontent-%COMP%]{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.spinner-rectangle-bounce[_ngcontent-%COMP%] .rect3[_ngcontent-%COMP%]{-webkit-animation-delay:-1s;animation-delay:-1s}.spinner-rectangle-bounce[_ngcontent-%COMP%] .rect4[_ngcontent-%COMP%]{-webkit-animation-delay:-.9s;animation-delay:-.9s}.spinner-rectangle-bounce[_ngcontent-%COMP%] .rect5[_ngcontent-%COMP%]{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes _ngcontent-%COMP%_sk-stretchdelay{0%,40%,to{-webkit-transform:scaleY(.4)}20%{-webkit-transform:scaleY(1)}}@keyframes _ngcontent-%COMP%_sk-stretchdelay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}.spinner-wandering-cubes[_ngcontent-%COMP%]{width:60px;height:58px;font-size:10px;text-align:center;position:absolute;inset:0;margin:auto;z-index:2000}.cube1[_ngcontent-%COMP%], .cube2[_ngcontent-%COMP%]{background-color:#fff;width:15px;height:15px;position:absolute;top:0;left:0;-webkit-animation:_ngcontent-%COMP%_sk-cubemove 1.8s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-cubemove 1.8s infinite ease-in-out}.cube2[_ngcontent-%COMP%]{-webkit-animation-delay:-.9s;animation-delay:-.9s}@-webkit-keyframes _ngcontent-%COMP%_sk-cubemove{25%{-webkit-transform:translateX(42px) rotate(-90deg) scale(.5)}50%{-webkit-transform:translateX(42px) translateY(42px) rotate(-180deg)}75%{-webkit-transform:translateX(0px) translateY(42px) rotate(-270deg) scale(.5)}to{-webkit-transform:rotate(-360deg)}}@keyframes _ngcontent-%COMP%_sk-cubemove{25%{transform:translate(42px) rotate(-90deg) scale(.5);-webkit-transform:translateX(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg);-webkit-transform:translateX(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg);-webkit-transform:translateX(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5);-webkit-transform:translateX(0px) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg);-webkit-transform:rotate(-360deg)}}.sk-circle[_ngcontent-%COMP%]{width:40px;height:40px;position:absolute;inset:0;margin:auto;z-index:2000}.sk-circle[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;left:0;top:0}.sk-circle[_ngcontent-%COMP%] .sk-child[_ngcontent-%COMP%]:before{content:"";display:block;margin:0 auto;width:15%;height:15%;background-color:#333;border-radius:100%;-webkit-animation:_ngcontent-%COMP%_sk-circleBounceDelay 1.2s infinite ease-in-out both;animation:_ngcontent-%COMP%_sk-circleBounceDelay 1.2s infinite ease-in-out both}.sk-circle[_ngcontent-%COMP%] .sk-circle2[_ngcontent-%COMP%]{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle3[_ngcontent-%COMP%]{-webkit-transform:rotate(60deg);-ms-transform:rotate(60deg);transform:rotate(60deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle4[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle5[_ngcontent-%COMP%]{-webkit-transform:rotate(120deg);-ms-transform:rotate(120deg);transform:rotate(120deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle6[_ngcontent-%COMP%]{-webkit-transform:rotate(150deg);-ms-transform:rotate(150deg);transform:rotate(150deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle7[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle8[_ngcontent-%COMP%]{-webkit-transform:rotate(210deg);-ms-transform:rotate(210deg);transform:rotate(210deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle9[_ngcontent-%COMP%]{-webkit-transform:rotate(240deg);-ms-transform:rotate(240deg);transform:rotate(240deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle10[_ngcontent-%COMP%]{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle11[_ngcontent-%COMP%]{-webkit-transform:rotate(300deg);-ms-transform:rotate(300deg);transform:rotate(300deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle12[_ngcontent-%COMP%]{-webkit-transform:rotate(330deg);-ms-transform:rotate(330deg);transform:rotate(330deg)}.sk-circle[_ngcontent-%COMP%] .sk-circle2[_ngcontent-%COMP%]:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-circle[_ngcontent-%COMP%] .sk-circle3[_ngcontent-%COMP%]:before{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-circle[_ngcontent-%COMP%] .sk-circle4[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.sk-circle[_ngcontent-%COMP%] .sk-circle5[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-circle[_ngcontent-%COMP%] .sk-circle6[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.sk-circle[_ngcontent-%COMP%] .sk-circle7[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.sk-circle[_ngcontent-%COMP%] .sk-circle8[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.sk-circle[_ngcontent-%COMP%] .sk-circle9[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sk-circle[_ngcontent-%COMP%] .sk-circle10[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sk-circle[_ngcontent-%COMP%] .sk-circle11[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sk-circle[_ngcontent-%COMP%] .sk-circle12[_ngcontent-%COMP%]:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes _ngcontent-%COMP%_sk-circleBounceDelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes _ngcontent-%COMP%_sk-circleBounceDelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.spinner-chasing-dots[_ngcontent-%COMP%]{width:40px;height:40px;position:absolute;inset:0;margin:auto;z-index:2000;text-align:center;-webkit-animation:_ngcontent-%COMP%_sk-rotate 2s infinite linear;animation:_ngcontent-%COMP%_sk-rotate 2s infinite linear}.dot1[_ngcontent-%COMP%], .dot2[_ngcontent-%COMP%]{width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:#333;border-radius:100%;-webkit-animation:_ngcontent-%COMP%_sk-bounce 2s infinite ease-in-out;animation:_ngcontent-%COMP%_sk-bounce 2s infinite ease-in-out}.dot2[_ngcontent-%COMP%]{top:auto;bottom:0;-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes _ngcontent-%COMP%_sk-rotate{to{-webkit-transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_sk-rotate{to{transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@-webkit-keyframes _ngcontent-%COMP%_sk-bounce{0%,to{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes _ngcontent-%COMP%_sk-bounce{0%,to{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}.full-screen[_ngcontent-%COMP%]{position:fixed;position:-ms-page}']})}}return t})(),j2=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:"loadingConfig",useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[po]})}}return t})();function Ije(t,n){if(t&1&&(d(0,"mat-header-cell",3),h(1),c()),t&2){let e=S();m(),ue(" ",e.label||e.capitalizedName," ")}}function Dje(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit,i=S();m(),ue(" ",i.getData(e)," ")}}function Tje(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Aje(t,n){if(t&1){let e=ie();d(0,"mat-form-field",11)(1,"mat-select",13),$("selectionChange",function(r){W(e);let o=S(2);return Y(o._changePageSize(r.value))}),Md(2,Tje,2,2,"mat-option",14,kd),c()()}if(t&2){let e=S(2);f("appearance",e._formFieldAppearance)("color",e.color),m(),f("value",e.pageSize)("disabled",e.disabled)("aria-labelledby",e._pageSizeLabelId)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),m(),Fd(e._displayedPageSizeOptions)}}function kje(t,n){if(t&1&&(d(0,"div",12),h(1),c()),t&2){let e=S(2);m(),U(e.pageSize)}}function Mje(t,n){if(t&1&&(d(0,"div",2)(1,"div",10),h(2),c(),k(3,Aje,4,7,"mat-form-field",11)(4,kje,2,1,"div",12),c()),t&2){let e=S();m(),xt("id",e._pageSizeLabelId),m(),ue(" ",e._intl.itemsPerPageLabel," "),m(),Xt(3,e._displayedPageSizeOptions.length>1?3:-1),m(),Xt(4,e._displayedPageSizeOptions.length<=1?4:-1)}}function Fje(t,n){if(t&1){let e=ie();d(0,"button",15),$("click",function(){W(e);let r=S();return Y(r.firstPage())}),d(1,"mat-icon",7),h(2,"first_page"),c()()}if(t&2){let e=S();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),xt("aria-label",e._intl.firstPageLabel)}}function Rje(t,n){if(t&1){let e=ie();d(0,"button",16),$("click",function(){W(e);let r=S();return Y(r.lastPage())}),d(1,"mat-icon",7),h(2,"last_page"),c()()}if(t&2){let e=S();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),xt("aria-label",e._intl.lastPageLabel)}}var Pje=["searchInput"],Nje=[[["","lac-table-title",""]],"*",[["","lac-table-empty",""]]],Oje=["[lac-table-title]","*","[lac-table-empty]"],Jde=t=>({"mr-3":t}),Lje=t=>({"mat-paginator-sticky":t});function Vje(t,n){if(t&1){let e=ie();d(0,"button",13),$("click",function(){W(e);let r=S();return Y(r.onExport())}),d(1,"mat-icon",14),h(2,"save_alt"),c()()}if(t&2){let e=S();f("ngClass",Le(1,Jde,!e.showRefresh))}}function Bje(t,n){if(t&1){let e=ie();d(0,"button",15),$("click",function(){W(e);let r=S();return Y(r.refresh())}),d(1,"mat-icon",14),h(2,"refresh"),c()()}if(t&2){let e=S();f("ngClass",Le(1,Jde,!e.disableSearch))}}function jje(t,n){t&1&&(d(0,"mat-icon",20),h(1,"search"),c())}function Hje(t,n){t&1&&(d(0,"mat-icon",21),h(1,"search"),c())}function zje(t,n){if(t&1&&(he(0),k(1,jje,2,0,"mat-icon",16),d(2,"mat-form-field",17),H(3,"input",18,0),c(),k(5,Hje,2,0,"mat-icon",19),fe()),t&2){let e=S();m(),f("ngIf",!e.searchOnRight),m(2),f("placeholder",e.searchLabel),m(2),f("ngIf",e.searchOnRight)}}function Uje(t,n){t&1&&H(0,"mat-header-row")}function Gje(t,n){if(t&1&&(d(0,"div"),k(1,Uje,1,0,"mat-header-row",22),c()),t&2){let e=S();m(),f("matHeaderRowDef",e.backupColumnsToDisplay)}}function $je(t,n){t&1&&H(0,"mat-row")}function qje(t,n){if(t&1&&(he(0),H(1,"lac-paginator",23),fe()),t&2){let e=S();m(),f("ngClass",Le(8,Lje,e.stickyPaginator))("length",e.lacunaDataSource?e.lacunaDataSource.totalCount:0)("pageIndex",e.initialPageIndex)("pageSize",e.initialPageSize)("hidePageSize",e.hidePageSize)("pageSizeOptions",e.pageSizeOptions)("hasPreviousElement",e.isCursorEnabled?e.cursors[e.cursors.length-2]:void 0)("hasNextElement",e.isCursorEnabled?e.cursors[e.cursors.length-1]:void 0)}}var k1=function(t){return t.Array="Array",t.SearchService="SearchService",t.PaginatedSearchService="PaginatedSearchService",t.CursorBasedSearchService="CursorBasedSearchService",t}(k1||{}),Ud=class{constructor(){this.searchTerm="",this.offset=0,this.limit=10,this.order="asc",this.orderBy="",this.nextCursor=null}withSearchTerm(n){return this.searchTerm=n,this}withOrder(n,e){return this.orderBy=n,this.order=e,this}withPage(n,e){return this.offset=n*e,this.limit=e,this}withLimit(n,e){return this.limit=n,this.offset=e||0,this}withNextCursor(n){return this.nextCursor=n,this}getHttpParams(){return new $a({fromObject:{q:this.searchTerm,offset:this.offset.toString(),limit:this.limit.toString(),order:this.order,orderBy:this.orderBy,cursor:this.nextCursor}})}};function tW(t){return t.list!==void 0}function iW(t){return t.listPaginated!==void 0}function nW(t){return t.listPaginatedWithCursor!==void 0}function Wje(t){return t.changed!==void 0}var Al=class extends A2{get loading(){return this.loadingSubject.value}get nextCursorSnapshot(){return this.nextCursorSubject.value}get currentItems(){return this.itemsSubject.value}constructor(n,e=!1,i,r){if(super(),this.tableDataSource=n,this.disablePagination=e,this.filterFn=i,this.sortFn=r,this.itemsSubject=new Tr([]),this.loadingSubject=new Tr(!1),this.nextCursorSubject=new Tr(null),this.onItemsChanges=!1,this.lastParams=new Ud,this.totalCount=0,this.loading$=this.loadingSubject.asObservable(),this.nextCursor$=this.nextCursorSubject.asObservable(),!tW(n)&&!iW(n)&&!nW(n)&&!Array.isArray(n))throw"Data Source needs to be either a SearchService, or a PaginatedSearchService, or a CursorBasedSearchService, or a simple array.";i||(this.filterFn=this.defaultFilterFn),r||(this.sortFn=this.defaultSortFn),Wje(n)&&(this.$changesSubscription=n.changed.subscribe(()=>{this.onItemsChanges=!0,this.loadItems(this.lastParams),this.onItemsChanges=!1})),this.dataSourceType=this.getDataSourceType(n)}getDataSourceType(n){return nW(n)?k1.CursorBasedSearchService:iW(n)?k1.PaginatedSearchService:tW(n)?k1.SearchService:k1.Array}defaultFilterFn(n,e){var i=r=>r.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();for(let r of Object.keys(n))if(n[r]!=null&&!(n[r]instanceof Object)&&!Array.isArray(n[r])&&i(n[r]).includes(i(e)))return!0;return!1}defaultSortFn(n,e,i){return n==null&&e==null?0:n==null?-1:e==null?1:n[i.orderBy]>e[i.orderBy]?this.isAscending(i.order)?1:-1:n[i.orderBy](this.totalCount=e.totalCount,e.items)),Ma(e=>(console.log(e),vt([]))),Vs(()=>this.loadingSubject.next(!1))).subscribe(e=>this.itemsSubject.next(e))):nW(this.tableDataSource)?(this.loadingSubject.next(!0),this.tableDataSource.listPaginatedWithCursor(n).pipe(st(e=>(this.totalCount=e.totalCount|0,this.nextCursorSubject.next(e.nextCursor),e.items)),Ma(e=>(console.log(e),vt([]))),Vs(()=>this.loadingSubject.next(!1))).subscribe(e=>this.itemsSubject.next(e))):tW(this.tableDataSource)?this.items===void 0||this.onItemsChanges||this.isRefreshing?(this.loadingSubject.next(!0),this.tableDataSource.list().pipe(Ma(()=>vt([])),Vs(()=>this.loadingSubject.next(!1))).subscribe(e=>{this.items=e,this.processAndEmitItems(n)})):this.processAndEmitItems(n):(this.items===void 0&&(this.items=this.tableDataSource),this.processAndEmitItems(n))}processAndEmitItems(n){let e=this.items;if(e==null){this.totalCount=0,this.itemsSubject.next(e);return}n.searchTerm&&(e=e.filter(i=>this.filterFn(i,n.searchTerm))),n.orderBy&&e.sort((i,r)=>this.sortFn(i,r,n)),this.totalCount=e.length,this.itemsSubject.next(this.disablePagination?e:e.slice(n.offset,n.offset+n.limit))}isAscending(n){return n==="asc"||!n}};var Yje=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._syncColumnDefName()}get capitalizedName(){return this.name.charAt(0).toUpperCase()+this.name.slice(1)}constructor(e){this._table=e}ngOnInit(){this._syncColumnDefName(),this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}getData(e){return this.dataAccessor?this.dataAccessor(e,this.name):e[this.name]}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}static{this.\u0275fac=function(i){return new(i||t)(E(V2,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["lac-simple-column"]],viewQuery:function(i,r){if(i&1&&(ot(Vn,7),ot(zn,7),ot(Hn,7),ot(Lr,5)),i&2){let o;Pe(o=Ne())&&(r.columnDef=o.first),Pe(o=Ne())&&(r.headerCell=o.first),Pe(o=Ne())&&(r.cell=o.first),Pe(o=Ne())&&(r.sortHeader=o.first)}},inputs:{name:"name",label:"label",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["matColumnDef",""],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""]],template:function(i,r){i&1&&(he(0,0),k(1,Ije,2,1,"mat-header-cell",1)(2,Dje,2,1,"mat-cell",2),fe())},dependencies:[zn,Vn,Hn,tr,ir,Lr],encapsulation:2})}}return t})(),Zde=(()=>{class t extends Uq{constructor(){super(...arguments),this.getNoCountRangeLabel=(e,i)=>{let r=this._intl;if(r.getNoCountRangeLabel)return r.getNoCountRangeLabel(e,i);let o=e*i,a=r.prepositionPageLabel??"of",s=r.noCountLabel??"many",l=o{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["lac-paginator"]],inputs:{hasPreviousElement:"hasPreviousElement",hasNextElement:"hasNextElement"},features:[qt],decls:14,vars:14,consts:[[1,"lac-mdc-paginator-outer-container"],[1,"lac-mdc-paginator-container"],[1,"lac-mdc-paginator-page-size"],[1,"lac-mdc-paginator-range-actions"],["aria-live","polite",1,"lac-mdc-paginator-range-label"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"lac-mdc-paginator-icon"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],[1,"lac-mdc-paginator-page-size-label"],[1,"lac-mdc-paginator-page-size-select",3,"appearance","color"],[1,"lac-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"],["mat-icon-button","","type","button",1,"lac-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","matTooltipPosition","disabled"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),k(2,Mje,5,4,"div",2),d(3,"div",3)(4,"div",4),h(5),c(),k(6,Fje,3,5,"button",5),d(7,"button",6),$("click",function(){return r.previousPage()}),d(8,"mat-icon",7),h(9,"chevron_left"),c()(),d(10,"button",8),$("click",function(){return r.nextPage()}),d(11,"mat-icon",7),h(12,"chevron_right"),c()(),k(13,Rje,3,5,"button",9),c()()()),i&2&&(m(2),Xt(2,r.hidePageSize?-1:2),m(3),ue(" ",r.length==-1?r.getNoCountRangeLabel(r.pageIndex,r.pageSize):r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),m(),Xt(6,r.showFirstLastButtons?6:-1),m(),f("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),xt("aria-label",r._intl.previousPageLabel),m(3),f("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),xt("aria-label",r._intl.nextPageLabel),m(3),Xt(13,r.showFirstLastButtons?13:-1))},dependencies:[fi,bt,He,yi,Li,Mi],styles:[`.lac-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.lac-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.lac-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.lac-mdc-paginator .mat-mdc-select{line-height:1.5}.lac-mdc-paginator-outer-container{display:flex}.lac-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size)}.lac-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .lac-mdc-paginator-page-size{margin-right:0;margin-left:8px}.lac-mdc-paginator-page-size-label{margin:0 4px}.lac-mdc-paginator-page-size-select{margin:0 4px;width:84px}.lac-mdc-paginator-range-label{margin:0 32px 0 24px}.lac-mdc-paginator-range-actions{display:flex;align-items:center}.lac-mdc-paginator-icon{display:inline-block;width:24px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .lac-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .lac-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .lac-mdc-paginator-icon,.cdk-high-contrast-active .lac-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .lac-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.lac-mdc-paginator-range-actions .mat-mdc-icon-button{padding:8px} `],encapsulation:2})}}return t})(),Xr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","lac-table-empty",""]]})}}return t})(),dr=(()=>{class t{get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Sn(e)}get disableSearch(){return this._disableSearch}set disableSearch(e){this._disableSearch=Sn(e)}get disableAutoLoad(){return this._disableAutoLoad}set disableAutoLoad(e){this._disableAutoLoad=Sn(e)}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Sn(e)}get searchOnRight(){return this._searchOnRight}set searchOnRight(e){this._searchOnRight=Sn(e)}get stickyPaginator(){return this._stickyPaginator}set stickyPaginator(e){this._stickyPaginator=Sn(e)}get showRefresh(){return this._showRefresh}set showRefresh(e){this._showRefresh=Sn(e)}get showExport(){return this._showExport}set showExport(e){this._showExport=Sn(e)}get isCursorEnabled(){return this.lacunaDataSource?.dataSourceType==k1.CursorBasedSearchService}get isEmpty(){return this.lacunaDataSource?this.lacunaDataSource.totalCount==0&&!this.lacunaDataSource.loading:!1}get currentParams(){let e=new Ud().withOrder(this.sort.active,this.sort.direction);return this.disablePagination||this.paginator&&(this.isCursorEnabled?(e.withLimit(this.paginator.pageSize),this.cursors.length&&(e=e.withNextCursor(this.cursors[this.cursors.length-1]))):e=e.withPage(this.paginator.pageIndex,this.paginator.pageSize)),this.disableSearch||(e=e.withSearchTerm(this.searchInput.nativeElement.value)),e}constructor(e,i){this.sort=e,this.intl=i,this.$toUnsubscribe=[],this.$nextCursorSubscription=null,this.initialPageIndex=0,this.initialPageSize=10,this.debounce=150,this.pageSizeOptions=[10,25,50,100],this.ngxLoadingConfig={},this._disablePagination=!1,this._disableSearch=!1,this._disableAutoLoad=!1,this._hidePageSize=!1,this._searchOnRight=!1,this._stickyPaginator=!1,this._showRefresh=!1,this._showExport=!1,this.cursors=[],this.countPendingRequestWithCursor=0,this.export=new Ae,this.isRowDefEmpty=(r,o)=>this.rowDefs.length==0,this.backupColumnsToDisplay=[],this.columnsHaveHeaders=!0,this.DataSourceType=k1,i&&(this.searchLabel=i.searchLabel??"Buscar")}ngOnChanges(){if(this.dataSource){if(!this.sort)throw"MatSort directive wasn't passed to LacunaMaterialTable. The table needs it in order to work correctly.";if((!this.lacunaDataSource||this.lacunaDataSourceDataSource&&this.lacunaDataSourceDataSource!=this.dataSource)&&(this.lacunaDataSourceDataSource=this.dataSource,this.lacunaDataSource=this.dataSource instanceof Al?this.dataSource:new Al(this.dataSource,this.disablePagination,this.filterFn,this.sortFn),this.$nextCursorSubscription&&this.$nextCursorSubscription.unsubscribe(),this.$nextCursorSubscription=this.lacunaDataSource.nextCursor$.subscribe(e=>{this.isCursorEnabled&&(this.countPendingRequestWithCursor&&(this.cursors=[],this.paginator.pageIndex=0,this.countPendingRequestWithCursor--),this.cursors.push(e))})),!this.disableAutoLoad){let e=new Ud().withOrder(this.sort.active,this.sort.direction||"asc");this.paginator?(this.paginator.pageIndex=this.initialPageIndex,e.withPage(this.paginator.pageIndex,this.paginator.pageSize)):e.withPage(this.initialPageIndex,this.initialPageSize),this.lacunaDataSource.loadItems(e)}}}ngAfterContentInit(){this.simpleColumns.forEach(e=>{this.table.addColumnDef(e.columnDef),this.backupColumnsToDisplay.push(e.name)}),this.columnDefs.forEach(e=>{this.table.addColumnDef(e),this.backupColumnsToDisplay.push(e.name),this.columnsHaveHeaders=this.columnsHaveHeaders&&e.headerCell!=null}),this.rowDefs.forEach(e=>{this.table.addRowDef(e)}),this.headerRowDef&&this.table.addHeaderRowDef(this.headerRowDef),this.sort.disableClear=this.sort.disableClear!==void 0?this.sort.disableClear:!0,this.sort.direction=this.sort.direction||"asc"}ngAfterViewInit(){this.searchInput&&this.$toUnsubscribe.push(xn(this.searchInput.nativeElement,"keyup").pipe($o(this.debounce),Ls()).subscribe(()=>{this.disablePagination||this.paginator&&(this.isCursorEnabled?(this.cursors=[],this.paginator.pageIndex=0,this.countPendingRequestWithCursor++):this.paginator.pageIndex=this.initialPageIndex),this.loadItemsPage()})),this.$toUnsubscribe.push(this.sort.sortChange.subscribe(()=>{this.disablePagination||this.paginator&&(this.isCursorEnabled?(this.cursors=[],this.paginator.pageIndex=0):this.paginator.pageIndex=this.initialPageIndex),this.loadItemsPage()})),this.disablePagination||this.paginator&&(this.$toUnsubscribe.push(this.paginator.page.subscribe(e=>{this.isCursorEnabled&&(e.previousPageIndex>e.pageIndex?(this.cursors.pop(),this.cursors.pop()):e.previousPageIndex==e.pageIndex&&(this.cursors=[])),this.loadItemsPage()})),this.lacunaDataSource&&this.$toUnsubscribe.push(this.lacunaDataSource.loading$.subscribe(e=>{this.isCursorEnabled||this.lacunaDataSource.totalCount==-1?this.paginator.disabled=e:this.paginator.disabled=!1})))}loadItemsPage(){this.lacunaDataSource&&this.lacunaDataSource.loadItems(this.currentParams)}refresh(){this.lacunaDataSource&&(this.lacunaDataSource.isRefreshing=!0,this.isCursorEnabled&&(this.cursors=[],this.paginator.pageIndex=0,this.countPendingRequestWithCursor++),this.loadItemsPage(),this.lacunaDataSource.isRefreshing=!1)}onExport(){this.export.emit()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe();this.$nextCursorSubscription&&this.$nextCursorSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Kn,10),E(nw))}}static{this.\u0275cmp=oe({type:t,selectors:[["lac-table"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,Mm,5),bi(o,Xr,5),bi(o,Vn,4),bi(o,Fm,4),bi(o,Yje,4)),i&2){let a;Pe(a=Ne())&&(r.headerRowDef=a.first),Pe(a=Ne())&&(r.lacTableEmptyElement=a.first),Pe(a=Ne())&&(r.columnDefs=a),Pe(a=Ne())&&(r.rowDefs=a),Pe(a=Ne())&&(r.simpleColumns=a)}},viewQuery:function(i,r){if(i&1&&(ot(V2,7),ot(Pje,5),ot(Zde,5)),i&2){let o;Pe(o=Ne())&&(r.table=o.first),Pe(o=Ne())&&(r.searchInput=o.first),Pe(o=Ne())&&(r.paginator=o.first)}},inputs:{dataSource:"dataSource",initialPageIndex:"initialPageIndex",initialPageSize:"initialPageSize",debounce:"debounce",searchLabel:"searchLabel",pageSizeOptions:"pageSizeOptions",ngxLoadingConfig:"ngxLoadingConfig",filterFn:"filterFn",sortFn:"sortFn",disablePagination:"disablePagination",disableSearch:"disableSearch",disableAutoLoad:"disableAutoLoad",hidePageSize:"hidePageSize",searchOnRight:"searchOnRight",stickyPaginator:"stickyPaginator",showRefresh:"showRefresh",showExport:"showExport"},outputs:{export:"export"},features:[Oi],ngContentSelectors:Oje,decls:19,vars:14,consts:[["searchInput",""],[1,"material-table"],[1,"row","m-0"],[1,"col-md-8","col-12","p-0"],[1,"table-search","col-md-4","col-12","p-0"],["mat-icon-button","","class","me-1","color","primary","matTooltip","Exportar os dados da tabela",3,"ngClass","click",4,"ngIf"],["mat-icon-button","","color","primary","matTooltip","Atualizar a tabela",3,"ngClass","click",4,"ngIf"],[4,"ngIf"],[3,"hidden"],[1,"table-wrapper"],[3,"show","config"],[1,"lessons-table",3,"dataSource"],[4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-icon-button","","color","primary","matTooltip","Exportar os dados da tabela",1,"me-1",3,"click","ngClass"],[1,"text-primary"],["mat-icon-button","","color","primary","matTooltip","Atualizar a tabela",3,"click","ngClass"],["class","me-3 search-color",4,"ngIf"],[1,"responsive-table-header"],["matInput","",3,"placeholder"],["class","ms-3 search-color",4,"ngIf"],[1,"me-3","search-color"],[1,"ms-3","search-color"],[4,"matHeaderRowDef"],[3,"ngClass","length","pageIndex","pageSize","hidePageSize","pageSizeOptions","hasPreviousElement","hasNextElement"]],template:function(i,r){i&1&&(hi(Nje),d(0,"div",1)(1,"div",2)(2,"div",3),ct(3,0,[1,"table-title"]),c(),d(4,"div",4),k(5,Vje,3,3,"button",5)(6,Bje,3,3,"button",6)(7,zje,6,3,"ng-container",7),c()(),d(8,"div",8)(9,"div",9),H(10,"ngx-loading",10),ce(11,"async"),d(12,"mat-table",11),ct(13,1),k(14,Gje,2,1,"div",7)(15,$je,1,0,"mat-row",12),c()(),k(16,qje,2,10,"ng-container",7),c()(),d(17,"div",8),ct(18,2),c()),i&2&&(m(5),f("ngIf",r.showExport),m(),f("ngIf",r.showRefresh),m(),f("ngIf",!r.disableSearch),m(),f("hidden",r.isEmpty&&r.lacTableEmptyElement!=null),m(2),f("show",r.lacunaDataSource?xe(11,12,r.lacunaDataSource.loading$):!1)("config",r.ngxLoadingConfig),m(2),f("dataSource",r.lacunaDataSource),m(2),f("ngIf",!r.headerRowDef&&r.columnsHaveHeaders),m(),f("matRowDefColumns",r.backupColumnsToDisplay)("matRowDefWhen",r.isRowDefEmpty),m(),f("ngIf",!r.disablePagination),m(),f("hidden",!r.isEmpty))},dependencies:[ji,Ee,li,fi,V2,Mm,Fm,Uh,Gh,Wt,bt,He,yi,Zde,Ea],styles:[`.table-wrapper{position:relative}.responsive-table-header{display:flex;justify-content:space-between;align-items:center;overflow:hidden}.table-search{display:flex;align-items:center;justify-content:flex-end;margin-left:auto}.table-search .mat-mdc-form-field{display:inline-block;flex-grow:1}.table-title{font:inherit}.mat-paginator-sticky,.lac-paginator-sticky{bottom:0;position:sticky;z-index:10;outline:2px solid #fff} `],encapsulation:2})}}return t})(),rW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[{provide:Mq,useValue:{subscriptSizing:"dynamic"}}],imports:[po,j2,Ic,B2,Ude,O2,T2,Hh,Av,Tv,B2,O2]})}}return t})();var Kje=["container"],eue=new ke("LottieOptions");function Xje(t,n){let e=t();return(e instanceof Promise?Ur(e).pipe(st(r=>r.default||r)):vt(e)).pipe(ri(r=>r.useWebWorker(n)),W_({bufferSize:1,refCount:!0}))}var tue=(()=>{class t{constructor(e,i){this.ngZone=e,this.options=i,this.player$=Xje(this.options.player,this.options.useWebWorker).pipe(Ay(HC))}loadAnimation(e){return this.player$.pipe(st(i=>this.createAnimationItem(i,e)))}resolveOptions(e,i){return Object.assign({container:i,renderer:"svg",loop:!0,autoplay:!0},e)}createAnimationItem(e,i){return this.ngZone.runOutsideAngular(()=>e.loadAnimation(i))}}return t.\u0275fac=function(e){return new(e||t)(ae(ht),ae(eue))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Qje=(()=>{class t{constructor(e,i,r){this.ngZone=e,this.platformId=i,this.animationLoader=r,this.options=null,this.containerClass=null,this.styles=null,this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.destroy$=new qe,this.loadAnimation$=new qe,this.animationItem$=new Tr(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroy$.next(),this.destroyAnimation()}loadAnimation(e,i){this.ngZone.runOutsideAngular(()=>this.loadAnimation$.next([e,i]))}getAnimationItem(){return xu(()=>this.animationItem$).pipe(vi(e=>e!==null))}awaitAnimationItemAndStartListening(e){return this.getAnimationItem().pipe(Wi(i=>new mn(r=>{this.ngZone.runOutsideAngular(()=>{i.addEventListener(e,o=>{this.ngZone.runOutsideAngular(()=>{r.next(o)})})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe(vi(([i])=>Pd(this.platformId)&&i.options!==void 0)).pipe(Wi(([i,r])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(i.options.currentValue,r)))),Ft(this.destroy$)).subscribe(i=>{this.ngZone.run(()=>this.animationItem$.next(i))})}destroyAnimation(){let e=this.animationItem$.getValue();e!==null&&(e.destroy(),this.animationItem$.next(null))}}return t.\u0275fac=function(e){return new(e||t)(E(ht),E(Oa),E(tue))},t.\u0275dir=ze({type:t,selectors:[["","lottie",""]],inputs:{options:"options",containerClass:"containerClass",styles:"styles"},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"}}),t})();var Zje=(()=>{class t extends Qje{constructor(e,i,r){super(e,i,r),this.width=null,this.height=null,this.container=null}ngOnChanges(e){super.loadAnimation(e,this.container.nativeElement)}}return t.\u0275fac=function(e){return new(e||t)(E(ht),E(Oa),E(tue))},t.\u0275cmp=oe({type:t,selectors:[["ng-lottie"]],viewQuery:function(e,i){if(e&1&&ot(Kje,7),e&2){let r;Pe(r=Ne())&&(i.container=r.first)}},inputs:{width:"width",height:"height"},standalone:!0,features:[qt,Oi,Dt],decls:2,vars:6,consts:[["container",""],[3,"ngStyle","ngClass"]],template:function(e,i){e&1&&H(0,"div",1,0),e&2&&(Vo("width",i.width||"100%")("height",i.height||"100%"),f("ngStyle",i.styles)("ngClass",i.containerClass))},dependencies:[po,ji,av],encapsulation:2,changeDetection:0}),t})(),iue=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:eue,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gt({type:t}),t.\u0275inj=ft({imports:[Zje]}),t})();var F0e=gc(nue(),1);var Jje=["fullscreenElement"];function e8e(t,n){t&1&&(d(0,"div",8),H(1,"div",9),c())}function t8e(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S();return Y(r.rotateCounterClockwise())}),H(1,"span"),c()}if(t&2){let e=S();In(e.config.btnClass),m(),In(e.config.btnIcons.rotateCounterClockwise)}}function i8e(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S();return Y(r.rotateClockwise())}),H(1,"span"),c()}if(t&2){let e=S();In(e.config.btnClass),m(),In(e.config.btnIcons.rotateClockwise)}}function n8e(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S();return Y(r.zoomOut())}),H(1,"span"),c()}if(t&2){let e=S();In(e.config.btnClass),m(),In(e.config.btnIcons.zoomOut)}}function r8e(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S();return Y(r.zoomIn())}),H(1,"span"),c()}if(t&2){let e=S();In(e.config.btnClass),m(),In(e.config.btnIcons.zoomIn)}}function o8e(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){let r=W(e).$implicit,o=S();return Y(o.fireCustomEvent(r.name,o.index))}),H(1,"span"),c()}if(t&2){let e=n.$implicit,i=S();In(i.config.btnClass),m(),In(e.icon)}}function a8e(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S();return Y(r.toggleFullscreen())}),H(1,"span"),c()}if(t&2){let e=S();In(e.config.btnClass),m(),In(e.config.btnIcons.fullscreen)}}function s8e(t,n){if(t&1){let e=ie();d(0,"div",12)(1,"button",13),$("click",function(r){W(e);let o=S();return Y(o.prevImage(r))}),H(2,"span"),c(),d(3,"button",13),$("click",function(r){W(e);let o=S();return Y(o.nextImage(r))}),H(4,"span"),c()()}if(t&2){let e=S();m(),In(e.config.btnClass),f("disabled",e.index===0),m(),In(e.config.btnIcons.prev),m(),In(e.config.btnClass),f("disabled",e.index===e.src.length-1),m(),In(e.config.btnIcons.next)}}var oW=class{constructor(n,e){this.name=n,this.imageIndex=e}},l8e={btnClass:"mat-mini-fab",zoomFactor:.1,containerBackgroundColor:"#ccc",allowCtrlWheelZoom:!0,allowFullscreen:!0,allowKeyboardNavigation:!0,allowDrag:!0,btnShow:{zoomIn:!0,zoomOut:!0,rotateClockwise:!0,rotateCounterClockwise:!0,next:!0,prev:!0},btnIcons:{zoomIn:"material-icons zoom-in",zoomOut:"material-icons zoom-out",rotateClockwise:"material-icons rotate-clockwise",rotateCounterClockwise:"material-icons rotate-counterclock",next:"material-icons next",prev:"material-icons prev",fullscreen:"material-icons fullscreen"}},rue=(()=>{class t{constructor(e,i){this.document=e,this.moduleConfig=i,this.index=0,this.indexChange=new Ae,this.configChange=new Ae,this.customEvent=new Ae,this.style={transform:"",msTransform:"",oTransform:"",webkitTransform:""},this.fullscreen=!1,this.loading=!0,this.scale=1,this.rotation=0,this.translateX=0,this.translateY=0,this.hovered=!1}ngOnInit(){let e=this.mergeConfig(l8e,this.moduleConfig);this.config=this.mergeConfig(e,this.config),this.triggerConfigBinding()}checkFullscreenmode(e){document.fullscreenElement?this.fullscreen=!0:this.fullscreen=!1}nextImage(e){this.canNavigate(e)&&this.index0&&(this.loading=!0,this.index--,this.triggerIndexBinding(),this.reset())}zoomIn(){this.scale*=1+this.config.zoomFactor,this.updateStyle()}zoomOut(){this.scale>this.config.zoomFactor&&(this.scale/=1+this.config.zoomFactor),this.updateStyle()}scrollZoom(e){if(this.config.allowCtrlWheelZoom&&e.ctrlKey)return e.deltaY>0?this.zoomOut():this.zoomIn(),!1}rotateClockwise(){this.rotation+=90,this.updateStyle()}rotateCounterClockwise(){this.rotation-=90,this.updateStyle()}onLoad(){this.loading=!1}onLoadStart(){this.loading=!0}onDragOver(e){this.config.allowDrag&&(this.translateX+=e.clientX-this.prevX,this.translateY+=e.clientY-this.prevY,this.prevX=e.clientX,this.prevY=e.clientY,this.updateStyle())}onDragStart(e){this.config.allowDrag&&(e.dataTransfer&&e.dataTransfer.setDragImage&&e.dataTransfer.setDragImage(e.target.nextElementSibling,0,0),this.prevX=e.clientX,this.prevY=e.clientY)}toggleFullscreen(){this.fullscreen?this.closeFullscreen():this.openFullscreen()}openFullscreen(){this.fullscreenElement.nativeElement.requestFullscreen?this.fullscreenElement.nativeElement.requestFullscreen():this.fullscreenElement.nativeElement.mozRequestFullScreen?this.fullscreenElement.nativeElement.mozRequestFullScreen():this.fullscreenElement.nativeElement.webkitRequestFullscreen?this.fullscreenElement.nativeElement.webkitRequestFullscreen():this.fullscreenElement.nativeElement.msRequestFullscreen?this.fullscreenElement.nativeElement.msRequestFullscreen():console.error("Unable to open in fullscreen")}closeFullscreen(){this.document.exitFullscreen?this.document.exitFullscreen():this.document.mozCancelFullScreen?this.document.mozCancelFullScreen():this.document.webkitExitFullscreen?this.document.webkitExitFullscreen():this.document.msExitFullscreen?this.document.msExitFullscreen():console.error("Unable to close fullscreen")}triggerIndexBinding(){this.indexChange.emit(this.index)}triggerConfigBinding(){this.configChange.next(this.config)}fireCustomEvent(e,i){this.customEvent.emit(new oW(e,i))}reset(){this.scale=1,this.rotation=0,this.translateX=0,this.translateY=0,this.updateStyle()}onMouseOver(){this.hovered=!0}onMouseLeave(){this.hovered=!1}canNavigate(e){return e==null||this.config.allowKeyboardNavigation&&this.hovered}updateStyle(){this.style.transform=`translate(${this.translateX}px, ${this.translateY}px) rotate(${this.rotation}deg) scale(${this.scale})`,this.style.msTransform=this.style.transform,this.style.webkitTransform=this.style.transform,this.style.oTransform=this.style.transform}mergeConfig(e,i){let r=Ve({},e);return i&&(r=Ve(Ve({},e),i),i.btnIcons&&(r.btnIcons=Ve(Ve({},e.btnIcons),i.btnIcons))),r}static{this.\u0275fac=function(i){return new(i||t)(E(ni),E("config",8))}}static{this.\u0275cmp=oe({type:t,selectors:[["ngx-image-viewer"]],viewQuery:function(i,r){if(i&1&&ot(Jje,7),i&2){let o;Pe(o=Ne())&&(r.fullscreenElement=o.first)}},hostBindings:function(i,r){i&1&&$("fullscreenchange",function(a){return r.checkFullscreenmode(a)},!1,qD)("webkitfullscreenchange",function(a){return r.checkFullscreenmode(a)},!1,qD)("mozfullscreenchange",function(a){return r.checkFullscreenmode(a)},!1,qD)("MSFullscreenChange",function(a){return r.checkFullscreenmode(a)},!1,qD)("keyup.ArrowRight",function(a){return r.nextImage(a)},!1,Rf)("keyup.ArrowLeft",function(a){return r.prevImage(a)},!1,Rf)("mouseover",function(){return r.onMouseOver()})("mouseleave",function(){return r.onMouseLeave()})},inputs:{src:"src",index:"index",config:"config"},outputs:{indexChange:"indexChange",configChange:"configChange",customEvent:"customEvent"},decls:12,vars:12,consts:[["fullscreenElement",""],[1,"img-container",3,"wheel","dragover"],["alt","Image not found...",3,"dragstart","load","loadstart","src","ngStyle"],["class","spinner-container",4,"ngIf"],["type","button","mat-mini-fab","",3,"class","click",4,"ngIf"],["type","button","mat-mini-fab","",3,"class","click",4,"ngFor","ngForOf"],["type","button","id","ngx-fs-btn","mat-mini-fab","",3,"class","click",4,"ngIf"],["class","nav-button-container",4,"ngIf"],[1,"spinner-container"],[1,"spinner"],["type","button","mat-mini-fab","",3,"click"],["type","button","id","ngx-fs-btn","mat-mini-fab","",3,"click"],[1,"nav-button-container"],["type","button","mat-mini-fab","",3,"click","disabled"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1,0),$("wheel",function(s){return W(o),Y(r.scrollZoom(s))})("dragover",function(s){return W(o),Y(r.onDragOver(s))}),d(2,"img",2),$("dragstart",function(s){return W(o),Y(r.onDragStart(s))})("load",function(){return W(o),Y(r.onLoad())})("loadstart",function(){return W(o),Y(r.onLoadStart())}),c(),H(3,"div"),k(4,e8e,2,0,"div",3)(5,t8e,2,4,"button",4)(6,i8e,2,4,"button",4)(7,n8e,2,4,"button",4)(8,r8e,2,4,"button",4)(9,o8e,2,4,"button",5)(10,a8e,2,4,"button",6)(11,s8e,5,10,"div",7),c()}i&2&&(Vo("background-color",r.config.containerBackgroundColor),m(2),f("src",r.src[r.index],qo)("ngStyle",r.style),m(2),f("ngIf",r.loading),m(),f("ngIf",r.config.btnShow.rotateCounterClockwise),m(),f("ngIf",r.config.btnShow.rotateClockwise),m(),f("ngIf",r.config.btnShow.zoomOut),m(),f("ngIf",r.config.btnShow.zoomIn),m(),f("ngForOf",r.config.customBtns),m(),f("ngIf",r.config.allowFullscreen),m(),f("ngIf",r.src.length>1))},dependencies:[Vt,Ee,av,ma],styles:['.img-container[_ngcontent-%COMP%]{height:100%;width:100%;min-height:300px;overflow:hidden;position:relative}.img-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{z-index:2;margin:0 auto;display:block;max-width:100%;max-height:100%}.img-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{z-index:99;position:absolute;right:15px}.img-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not(:disabled){cursor:pointer}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(1):not(#ngx-fs-btn){bottom:15px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(2):not(#ngx-fs-btn){bottom:65px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(3):not(#ngx-fs-btn){bottom:115px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(4):not(#ngx-fs-btn){bottom:165px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(5):not(#ngx-fs-btn){bottom:215px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(6):not(#ngx-fs-btn){bottom:265px}.img-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-of-type(7):not(#ngx-fs-btn){bottom:315px}#ngx-fs-btn[_ngcontent-%COMP%]{top:15px}button.default[_ngcontent-%COMP%]{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default[_ngcontent-%COMP%]:hover{opacity:1}button.default[_ngcontent-%COMP%]:disabled{opacity:.25}button[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{display:flex}.nav-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:relative;right:0;margin:0 10px}.nav-button-container[_ngcontent-%COMP%]{text-align:center;position:absolute;z-index:98;bottom:10px;left:0;right:0}.spinner-container[_ngcontent-%COMP%]{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner[_ngcontent-%COMP%]{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;-webkit-animation:_ngcontent-%COMP%_rotation 2s linear infinite;-moz-animation:rotation 2s linear infinite;-o-animation:rotation 2s linear infinite;animation:_ngcontent-%COMP%_rotation 2s linear infinite}@keyframes _ngcontent-%COMP%_rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-webkit-keyframes _ngcontent-%COMP%_rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-moz-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}@-o-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}.zoom-in[_ngcontent-%COMP%]:after{content:"zoom_in"}.zoom-out[_ngcontent-%COMP%]:after{content:"zoom_out"}.rotate-clockwise[_ngcontent-%COMP%]:after{content:"rotate_right"}.rotate-counterclock[_ngcontent-%COMP%]:after{content:"rotate_left"}.next[_ngcontent-%COMP%]:after{content:"keyboard_arrow_right"}.prev[_ngcontent-%COMP%]:after{content:"keyboard_arrow_left"}.fullscreen[_ngcontent-%COMP%]:after{content:"fullscreen"}']})}}return t})(),oue=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:"config",useValue:e}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[po,Ic,Hh]})}}return t})();var DL=gc(due(),1);var sW=class{constructor(n){this.translations=n}getTranslation(n){return vt(this.translations.get(n)||{})}},pW=new ke("TRANSLOCO_LOADER");function U2(t,n){return t&&(Object.prototype.hasOwnProperty.call(t,n)?t[n]:n.split(".").reduce((e,i)=>e?.[i],t))}function hW(t,n,e){t=Ve({},t);let i=n.split("."),r=i.length-1;return i.reduce((o,a,s)=>(s===r?o[a]=e:o[a]=Array.isArray(o[a])?o[a].slice():Ve({},o[a]),o&&o[a]),t),t}function pue(t){return t?Array.isArray(t)?t.length:G2(t)?Object.keys(t).length:t?t.length:0:0}function d8e(t){return pue(t)===0}function u8e(t){return typeof t=="function"}function aw(t){return typeof t=="string"}function G2(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function hue(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(n,e)=>e==0?n.toLowerCase():n.toUpperCase()).replace(/\s+|_|-|\//g,"")}function lW(t){return t==null}function uue(t){return lW(t)===!1}function fue(t){return t&&typeof t.scope=="string"}function m8e(t){return t&&G2(t.loader)}function p8e(t){return(0,DL.unflatten)(t)}function mue(t){return(0,DL.flatten)(t,{safe:!0})}var Xf=new ke("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>({defaultLang:"en"})}),gue={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};var TL=new ke("TRANSLOCO_TRANSPILER"),fW=(()=>{class t{constructor(e){this.interpolationMatcher=h8e(e)}transpile(e,i={},r,o){return aw(e)?e.replace(this.interpolationMatcher,(a,s)=>(s=s.trim(),uue(i[s])?i[s]:uue(r[s])?this.transpile(r[s],i,r,o):"")):(i&&(G2(e)?e=this.handleObject(e,i,r,o):Array.isArray(e)&&(e=this.handleArray(e,i,r,o))),e)}handleObject(e,i={},r,o){let a=e;return Object.keys(i).forEach(s=>{let l=U2(a,s),u=U2(i,s),p=this.transpile(l,u,r,o);a=hW(a,s,p)}),a}handleArray(e,i={},r,o){return e.map(a=>this.transpile(a,i,r,o))}}return t.\u0275fac=function(e){return new(e||t)(ae(Xf,8))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function h8e(t){let[n,e]=t&&t.interpolation?t.interpolation:gue.interpolation;return new RegExp(`${n}(.*?)${e}`,"g")}var _ue=new ke("TRANSLOCO_MISSING_HANDLER"),f8e=(()=>{class t{handle(e,i){if(i.missingHandler.logMissingKey&&!i.prodMode){let r=`Missing translation for '${e}'`;console.warn(`%c ${r}`,"font-size: 12px; color: red")}return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),vue=new ke("TRANSLOCO_INTERCEPTOR"),g8e=(()=>{class t{preSaveTranslation(e){return e}preSaveTranslationKey(e,i){return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})(),bue=new ke("TRANSLOCO_FALLBACK_STRATEGY"),_8e=(()=>{class t{constructor(e){this.userConfig=e}getNextLangs(){let e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}}return t.\u0275fac=function(e){return new(e||t)(ae(Xf))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac}),t})();function v8e(t,n){return Gi(Ve(Ve({},t),n),{missingHandler:Ve(Ve({},t.missingHandler),n.missingHandler),flatten:Ve(Ve({},t.flatten),n.flatten)})}function z2(t){if(!t)return"";let n=t.split("/");return n.pop(),n.join("/")}function Mv(t){return t?t.split("/").pop():""}function cW(t,n,e="|"){if(aw(t)){let i=t.split(e),r=i.pop();return r===n?[!0,i.toString()]:[!1,r]}return[!1,""]}function b8e(t,n){let[e]=cW(n,"static");return e?!1:!!t.config.reRenderOnLangChange}function y8e(t){return t?n=>n:cn(1)}function x8e(t,n){return Object.keys(t).reduce((e,i)=>(e[`${n}/${i}`]=t[i],e),{})}function yue(t,n){return m8e(t)?x8e(t.loader,n):void 0}function aW(t){return{scope:z2(t)||null,langName:Mv(t)}}function xue(t){let{path:n,inlineLoader:e,mainLoader:i,data:r}=t;if(e){let o=e[n];if(u8e(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${n}`;return e[n]().then(a=>a.default?a.default:a)}return i.getTranslation(n,r)}function C8e({mainLoader:t,path:n,data:e,fallbackPath:i,inlineLoader:r}){return(i?[n,i]:[n]).map(a=>{let s=xue({path:a,mainLoader:t,inlineLoader:r,data:e});return Ur(s).pipe(st(l=>({translation:l,lang:a})))})}var S8e;var ur=(()=>{class t{constructor(e,i,r,o,a,s){this.loader=e,this.parser=i,this.missingHandler=r,this.interceptor=o,this.userConfig=a,this.fallbackStrategy=s,this.subscription=null,this.translations=new Map,this.cache=new Map,this.defaultLang="",this.availableLangs=[],this.isResolvedMissingOnce=!1,this.failedLangs=new Set,this.events=new qe,this.events$=this.events.asObservable(),this.loader||(this.loader=new sW(this.translations)),S8e=this,this.mergedConfig=v8e(gue,this.userConfig),this.setAvailableLangs(this.mergedConfig.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.mergedConfig),this.setDefaultLang(this.mergedConfig.defaultLang),this.lang=new Tr(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(l=>{l.type==="translationLoadSuccess"&&l.wasFailure&&this.setActiveLang(l.payload.langName)})}get config(){return this.mergedConfig}getDefaultLang(){return this.defaultLang}setDefaultLang(e){this.defaultLang=e}getActiveLang(){return this.lang.getValue()}setActiveLang(e){return this.parser.onLangChanged?.(e),this.lang.next(e),this.events.next({type:"langChanged",payload:aW(e)}),this}setAvailableLangs(e){this.availableLangs=e}getAvailableLangs(){return this.availableLangs}load(e,i={}){let r=this.cache.get(e);if(r)return r;let o,a=this._isLangScoped(e),s;a&&(s=z2(e));let l={path:e,mainLoader:this.loader,inlineLoader:i.inlineLoader,data:a?{scope:s}:void 0};if(this.useFallbackTranslation(e)){let p=a?`${s}/${this.firstFallbackLang}`:this.firstFallbackLang,g=C8e(Gi(Ve({},l),{fallbackPath:p}));o=$_(g)}else{let p=xue(l);o=Ur(p)}let u=o.pipe(oH(this.config.failedRetries),ri(p=>{if(Array.isArray(p)){p.forEach(g=>{this.handleSuccess(g.lang,g.translation),g.lang!==e&&this.cache.set(g.lang,vt({}))});return}this.handleSuccess(e,p)}),Ma(p=>(this.mergedConfig.prodMode||console.error(`Error while trying to load "${e}"`,p),this.handleFailure(e,i))),W_(1));return this.cache.set(e,u),u}translate(e,i={},r=this.getActiveLang()){if(!e)return e;let{scope:o,resolveLang:a}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(u=>this.translate(o?`${o}.${u}`:u,i,a));e=o?`${o}.${e}`:e;let s=this.getTranslation(a),l=s[e];return l?this.parser.transpile(l,i,s,e):this._handleMissingKey(e,l,i)}selectTranslate(e,i,r,o=!1){let a,s=(u,p)=>this.load(u,p).pipe(st(()=>o?this.translateObject(e,i,u):this.translate(e,i,u)));if(lW(r))return this.langChanges$.pipe(Wi(u=>s(u)));if(fue(r)){let u=r;r=u.scope,a=yue(u,u.scope)}if(r=r,this.isLang(r)||this.isScopeWithLang(r))return s(r);let l=r;return this.langChanges$.pipe(Wi(u=>s(`${l}/${u}`,{inlineLoader:a})))}isScopeWithLang(e){return this.isLang(Mv(e))}translateObject(e,i={},r=this.getActiveLang()){if(aw(e)||Array.isArray(e)){let{resolveLang:a,scope:s}=this.resolveLangAndScope(r);if(Array.isArray(e))return e.map(p=>this.translateObject(s?`${s}.${p}`:p,i,a));let l=this.getTranslation(a);e=s?`${s}.${e}`:e;let u=p8e(this.getObjectByKey(l,e));return d8e(u)?this.translate(e,i,r):this.parser.transpile(u,i,l,e)}let o=[];for(let[a,s]of this.getEntries(e))o.push(this.translateObject(a,s,r));return o}selectTranslateObject(e,i,r){if(aw(e)||Array.isArray(e))return this.selectTranslate(e,i,r,!0);let[[o,a],...s]=this.getEntries(e);return this.selectTranslateObject(o,a,r).pipe(st(l=>{let u=[l];for(let[p,g]of s)u.push(this.translateObject(p,g,r));return u}))}getTranslation(e){if(e){if(this.isLang(e))return this.translations.get(e)||{};{let{scope:i,resolveLang:r}=this.resolveLangAndScope(e),o=this.translations.get(r)||{};return this.getObjectByKey(o,i)}}return this.translations}selectTranslation(e){let i=this.langChanges$;if(e){let r=Mv(e)!==e;this.isLang(e)||r?i=vt(e):i=this.langChanges$.pipe(st(o=>`${e}/${o}`))}return i.pipe(Wi(r=>this.load(r).pipe(st(()=>this.getTranslation(r)))))}setTranslation(e,i=this.getActiveLang(),r={}){let a=Ve(Ve({},{merge:!0,emitChange:!0}),r),s=z2(i),l=e;if(s){let v=this.getMappedScope(s);l=mue({[v]:e})}let u=s?Mv(i):i,p=Ve(Ve({},a.merge&&this.getTranslation(u)),l),g=this.mergedConfig.flatten.aot?p:mue(p),_=this.interceptor.preSaveTranslation(g,u);this.translations.set(u,_),a.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(e,i,r=this.getActiveLang(),o={}){let a=this.interceptor.preSaveTranslationKey(e,i,r),s={[e]:a};this.setTranslation(s,r,Gi(Ve({},o),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:e}){let i=Array.isArray(e)?e[0]:e;e&&this.useFallbackTranslation(i)&&(this.firstFallbackLang=i)}_handleMissingKey(e,i,r){if(this.config.missingHandler.allowEmpty&&i==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(e,r,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(e,this.getMissingHandlerData(),r)}_isLangScoped(e){return this.getAvailableLangsIds().indexOf(e)===-1}isLang(e){return this.getAvailableLangsIds().indexOf(e)!==-1}_loadDependencies(e,i){let r=Mv(e);return this._isLangScoped(e)&&!this.isLoadedTranslation(r)?vm(this.load(r),this.load(e,{inlineLoader:i})):this.load(e,{inlineLoader:i})}_completeScopeWithLang(e){return this._isLangScoped(e)&&!this.isLang(Mv(e))?`${e}/${this.getActiveLang()}`:e}_setScopeAlias(e,i){this.mergedConfig.scopeMapping||(this.mergedConfig.scopeMapping={}),this.mergedConfig.scopeMapping[e]=i}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(e){return pue(this.getTranslation(e))}getAvailableLangsIds(){let e=this.getAvailableLangs()[0];return aw(e)?this.getAvailableLangs():this.getAvailableLangs().map(i=>i.id)}getMissingHandlerData(){return Gi(Ve({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(e){return this.config.missingHandler.useFallbackTranslation&&e!==this.firstFallbackLang}handleSuccess(e,i){this.setTranslation(i,e,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:aW(e)}),this.failedLangs.forEach(r=>this.cache.delete(r)),this.failedLangs.clear()}handleFailure(e,i){lW(i.failedCounter)&&(i.failedCounter=0,i.fallbackLangs||(i.fallbackLangs=this.fallbackStrategy.getNextLangs(e)));let r=e.split("/"),a=i.fallbackLangs[i.failedCounter];if(this.failedLangs.add(e),this.cache.has(a))return this.handleSuccess(a,this.getTranslation(a)),ka;let s=a===r[r.length-1];if(!a||s){let u="Unable to load translation and all the fallback languages";throw r.length>1&&(u+=", did you misspelled the scope name?"),new Error(u)}let l=a;return r.length>1&&(r[r.length-1]=a,l=r.join("/")),i.failedCounter++,this.events.next({type:"translationLoadFailure",payload:aW(e)}),this.load(l,i)}getMappedScope(e){let{scopeMapping:i={}}=this.config;return i[e]||hue(e)}resolveLangAndScope(e){let i=e,r;if(this._isLangScoped(e)){let o=Mv(e),a=this.isLang(o);i=a?o:this.getActiveLang(),r=this.getMappedScope(a?z2(e):e)}return{scope:r,resolveLang:i}}getObjectByKey(e,i){let r={},o=`${i}.`;for(let a in e)a.startsWith(o)&&(r[a.replace(o,"")]=e[a]);return r}getEntries(e){return e instanceof Map?e.entries():Object.entries(e)}}return t.\u0275fac=function(e){return new(e||t)(ae(pW,8),ae(TL),ae(_ue),ae(vue),ae(Xf),ae(bue))},t.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),w8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=oe({type:t,selectors:[["ng-component"]],inputs:{html:"html"},decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(e,i){e&1&&H(0,"div",0),e&2&&f("innerHTML",i.html,qc)},encapsulation:2}),t})(),dW=class{constructor(n,e){this.view=n,this.vcr=e,this.injector=this.vcr.injector}attachView(){if(this.view instanceof Mn)this.vcr.createEmbeddedView(this.view);else if(aw(this.view)){let n=this.createComponent(w8e);n.instance.html=this.view,n.hostView.detectChanges()}else this.createComponent(this.view)}detachView(){this.vcr.clear()}createComponent(n){let i=this.injector.get(xm).resolveComponentFactory(n);return this.vcr.createComponent(i)}},E8e=new ke("TRANSLOCO_LANG"),I8e=new ke("TRANSLOCO_LOADING_TEMPLATE"),D8e=new ke("TRANSLOCO_SCOPE"),uW=class{constructor(){this.initialized=!1}resolve({inline:n,provider:e,active:i}){let r=i;if(this.initialized)return r=i,r;if(e){let[,o]=cW(e,"static");r=o}if(n){let[,o]=cW(n,"static");r=o}return this.initialized=!0,r}resolveLangBasedOnScope(n){return z2(n)?Mv(n):n}resolveLangPath(n,e){return e?`${e}/${n}`:n}},mW=class{constructor(n){this.translocoService=n}resolve({inline:n,provider:e}={inline:void 0,provider:void 0}){if(n)return n;if(e){if(fue(e)){let{scope:i,alias:r=hue(i)}=e;return this.translocoService._setScopeAlias(i,r),i}return e}}},Fn=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.translocoService=e,this.tpl=i,this.providerScope=r,this.providerLang=o,this.providedLoadingTpl=a,this.vcr=s,this.cdr=l,this.host=u,this.renderer=p,this.subscription=null,this.translationMemo={},this.params={},this.initialized=!1,this.langResolver=new uW,this.scopeResolver=new mW(this.translocoService),this.strategy=this.tpl===null?"attribute":"structural"}static ngTemplateContextGuard(e,i){return!0}ngOnInit(){let e=b8e(this.translocoService,this.providerLang||this.inlineLang);this.subscription=this.translocoService.langChanges$.pipe(Wi(r=>{let o=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:r});return Array.isArray(this.providerScope)?$_(this.providerScope.map(a=>this.resolveScope(o,a))):this.resolveScope(o,this.providerScope)}),y8e(e)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.inlineRead),this.cdr.markForCheck(),this.initialized=!0});let i=this.getLoadingTpl();!this.initialized&&i&&(this.loaderTplHandler=new dW(i,this.vcr),this.loaderTplHandler.attachView())}ngOnChanges(e){this.strategy==="attribute"&&Object.keys(e).some(r=>!e[r].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.translocoService.translate(this.key,this.params,this.currentLang))}structuralStrategy(e,i){this.translationMemo={},this.view?(this.view.context.$implicit=this.getTranslateFn(e,i),this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:this.getTranslateFn(e,i),currentLang:this.currentLang}))}getTranslateFn(e,i){return(r,o)=>{let a=i?`${i}.${r}`:r,s=o?`${a}${JSON.stringify(o)}`:a;return Object.prototype.hasOwnProperty.call(this.translationMemo,s)?this.translationMemo[s].value:(this.translationMemo[s]={params:o,value:this.translocoService.translate(a,o,e)},this.translationMemo[s].value)}}getLoadingTpl(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(e,i){let r=this.scopeResolver.resolve({inline:this.inlineScope,provider:i});this.path=this.langResolver.resolveLangPath(e,r);let o=yue(i,r);return this.translocoService._loadDependencies(this.path,o)}}return t.\u0275fac=function(e){return new(e||t)(E(ur),E(Mn,8),E(D8e,8),E(E8e,8),E(I8e,8),E(Er),E(Di),E(Xe),E(Sc))},t.\u0275dir=ze({type:t,selectors:[["","transloco",""]],inputs:{key:[ve.None,"transloco","key"],params:[ve.None,"translocoParams","params"],inlineScope:[ve.None,"translocoScope","inlineScope"],inlineRead:[ve.None,"translocoRead","inlineRead"],inlineLang:[ve.None,"translocoLang","inlineLang"],inlineTpl:[ve.None,"translocoLoadingTpl","inlineTpl"]},features:[Oi]}),t})();var T8e=[{provide:TL,useClass:fW,deps:[Xf]},{provide:_ue,useClass:f8e},{provide:vue,useClass:g8e},{provide:bue,useClass:_8e,deps:[Xf]}];var gW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gt({type:t}),t.\u0275inj=ft({providers:[T8e]}),t})(),A8t=new ke("TRANSLOCO_TEST_LANGS - Available testing languages"),k8t=new ke("TRANSLOCO_TEST_OPTIONS - Testing options");var A8e=["panel"],k8e=["*"];function M8e(t,n){if(t&1){let e=ie();d(0,"div",1,0),$("@panelAnimation.done",function(r){W(e);let o=S();return Y(o._animationDone.next(r))}),ct(2),c()}if(t&2){let e=n.id,i=S();In(i._classList),yt("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),f("id",i.id)("@panelAnimation",i.isOpen?"visible":"hidden"),xt("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var F8e=Bo("panelAnimation",[cr("void, hidden",$i({opacity:0,transform:"scaleY(0.8)"})),gr(":enter, hidden => visible",[oT([xr("0.03s linear",$i({opacity:1})),xr("0.12s cubic-bezier(0, 0, 0.2, 1)",$i({transform:"scaleY(1)"}))])]),gr(":leave, visible => hidden",[xr("0.075s linear",$i({opacity:0}))])]),R8e=0,_W=class{constructor(n,e){this.source=n,this.option=e}},Cue=new ke("mat-autocomplete-default-options",{providedIn:"root",factory:P8e});function P8e(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var AL=(()=>{class t{get isOpen(){return this._isOpen&&this.showPanel}_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}constructor(e,i,r,o){this._changeDetectorRef=e,this._elementRef=i,this._defaults=r,this._activeOptionChanges=Ji.EMPTY,this._animationDone=new Ae,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Ae,this.opened=new Ae,this.closed=new Ae,this.optionActivated=new Ae,this.id=`mat-autocomplete-${R8e++}`,this.inertGroups=o?.SAFARI||!1,this.autoActiveFirstOption=!!r.autoActiveFirstOption,this.autoSelectActiveOption=!!r.autoSelectActiveOption,this.requireSelection=!!r.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new US(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new _W(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(Xe),E(Cue),E(ln))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,Mi,5),bi(o,w2,5)),i&2){let a;Pe(a=Ne())&&(r.options=a),Pe(a=Ne())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ot(Mn,7),ot(A8e,5)),i&2){let o;Pe(o=Ne())&&(r.template=o.first),Pe(o=Ne())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[ve.HasDecoratorInputTransform,"autoActiveFirstOption","autoActiveFirstOption",at],autoSelectActiveOption:[ve.HasDecoratorInputTransform,"autoSelectActiveOption","autoSelectActiveOption",at],requireSelection:[ve.HasDecoratorInputTransform,"requireSelection","requireSelection",at],panelWidth:"panelWidth",disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],classList:[ve.None,"class","classList"],hideSingleSelectionIndicator:[ve.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",at]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Zt([{provide:S2,useExisting:t}]),Ei,Dt],ngContentSelectors:k8e,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(hi(),k(0,M8e,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape);box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[F8e]},changeDetection:0})}}return t})();var N8e={provide:ys,useExisting:fr(()=>$2),multi:!0};var Sue=new ke("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition()}});function O8e(t){return()=>t.scrollStrategies.reposition()}var L8e={provide:Sue,deps:[lo],useFactory:O8e},$2=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g,_){this._element=e,this._overlay=i,this._viewContainerRef=r,this._zone=o,this._changeDetectorRef=a,this._dir=l,this._formField=u,this._document=p,this._viewportRuler=g,this._defaults=_,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ji.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new qe,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=xu(()=>{let v=this.autocomplete?this.autocomplete.options:null;return v?v.changes.pipe(kn(v),Wi(()=>Cn(...v.map(y=>y.onSelectionChange)))):this._zone.onStable.pipe(cn(1),Wi(()=>this.optionSelections))}),this._handlePanelKeydown=v=>{(v.keyCode===27&&!ho(v)||v.keyCode===38&&ho(v,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),v.stopPropagation(),v.preventDefault())},this._trackedModal=null,this._scrollStrategy=s}ngAfterViewInit(){let e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&xv(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Cn(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(vi(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(vi(()=>this._overlayAttached)):vt()).pipe(st(e=>e instanceof x2?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Cn(xn(this._document,"click"),xn(this._document,"auxclick"),xn(this._document,"touchend")).pipe(vi(e=>{let i=Fu(e),r=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,o=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!o||!o.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e.keyCode,r=ho(e);if(i===27&&!r&&e.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&i===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){let o=this.autocomplete._keyManager.activeItem,a=i===38||i===40;i===9||a&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(a||this.autocomplete._keyManager.activeItem!==o)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===e.target){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=this._zone.onStable.pipe(cn(1)),i=this.autocomplete.options.changes.pipe(ri(()=>this._positionStrategy.reapplyLastPosition()),Wl(0));return Cn(e,i).pipe(Wi(()=>(this._zone.run(()=>{let r=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit())}),this.panelClosingActions)),cn(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),i._animationDone?i._animationDone.pipe(cn(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;qS(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new $s(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Ou({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&xv(this._trackedModal,"aria-owns",i),qS(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;xv(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(lo),E(Er),E(ht),E(Di),E(Sue),E(Kr,8),E(x0,9),E(ni,8),E(Dc),E(Cue,8))}}static{this.\u0275dir=ze({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&$("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&xt("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[ve.None,"matAutocomplete","autocomplete"],position:[ve.None,"matAutocompletePosition","position"],connectedTo:[ve.None,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[ve.None,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[ve.HasDecoratorInputTransform,"matAutocompleteDisabled","autocompleteDisabled",at]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Zt([N8e]),Ei,Oi]})}}return t})(),vW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[L8e],imports:[nd,KS,ki,po,Hd,KS,ki]})}}return t})();var V8e=["*"];var B8e=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],j8e=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]`,"*"],H8e=new ke("MAT_CARD_CONFIG"),ws=(()=>{class t{constructor(e){this.appearance=e?.appearance||"raised"}static{this.\u0275fac=function(i){return new(i||t)(E(H8e,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(i,r){i&2&&yt("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],standalone:!0,features:[Dt],ngContentSelectors:V8e,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation)}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}}return t})(),Eue=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"],standalone:!0})}}return t})();var lw=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"],standalone:!0})}}return t})();var Iue=(()=>{class t{constructor(){this.align="start"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-mdc-card-actions-align-end",r.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"],standalone:!0})}}return t})(),kL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],standalone:!0,features:[Dt],ngContentSelectors:j8e,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(i,r){i&1&&(hi(B8e),ct(0),d(1,"div",0),ct(2,1),c(),ct(3,2))},encapsulation:2,changeDetection:0})}}return t})();var ML=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"],standalone:!0})}}return t})();var q2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,po,ki]})}}return t})();var U8e=["input"],G8e=["label"],$8e=["*"],yW=new ke("mat-checkbox-default-options",{providedIn:"root",factory:Tue});function Tue(){return{color:"accent",clickAction:"check-indeterminate"}}var rd=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(rd||{}),q8e={provide:ys,useExisting:fr(()=>Co),multi:!0},bW=class{},W8e=0,Due=Tue(),Co=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let i=new bW;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,a,s){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._animationMode=a,this._options=s,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new Ae,this.indeterminateChange=new Ae,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=rd.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Due,this.color=this._options.color||Due.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId=`mat-mdc-checkbox-${++W8e}`}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){let i=e!=this._indeterminate;this._indeterminate=e,i&&(this._indeterminate?this._transitionCheckState(rd.Indeterminate):this._transitionCheckState(this.checked?rd.Checked:rd.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(!(i===e||!r)&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);let o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?rd.Checked:rd.Unchecked),this._emitChangeEvent()):!this.disabled&&e==="noop"&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if(this._animationMode==="NoopAnimations")return"";switch(e){case rd.Init:if(i===rd.Checked)return this._animationClasses.uncheckedToChecked;if(i==rd.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case rd.Unchecked:return i===rd.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case rd.Checked:return i===rd.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case rd.Indeterminate:return i===rd.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(ht),Sa("tabindex"),E(Zn,8),E(yW,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(i&1&&(ot(U8e,5),ot(G8e,5),ot(Jl,5)),i&2){let o;Pe(o=Ne())&&(r._inputElement=o.first),Pe(o=Ne())&&(r._labelElement=o.first),Pe(o=Ne())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(i,r){i&2&&(La("id",r.id),xt("tabindex",null)("aria-label",null)("aria-labelledby",null),In(r.color?"mat-"+r.color:"mat-accent"),yt("_mat-animation-noopable",r._animationMode==="NoopAnimations")("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ve.None,"aria-describedby","ariaDescribedby"],id:"id",required:[ve.HasDecoratorInputTransform,"required","required",at],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?void 0:Gr(e)],color:"color",checked:[ve.HasDecoratorInputTransform,"checked","checked",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],indeterminate:[ve.HasDecoratorInputTransform,"indeterminate","indeterminate",at]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[Zt([q8e,{provide:wl,useExisting:t,multi:!0}]),Ei,Oi,Dt],ngContentSelectors:$8e,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"div",3),$("click",function(s){return W(o),Y(r._preventBubblingFromLabel(s))}),d(1,"div",4,0)(3,"div",5),$("click",function(){return W(o),Y(r._onTouchTargetClick())}),c(),d(4,"input",6,1),$("blur",function(){return W(o),Y(r._onBlur())})("click",function(){return W(o),Y(r._onInputClick())})("change",function(s){return W(o),Y(r._onInteractionEvent(s))}),c(),H(6,"div",7),d(7,"div",8),Na(),d(8,"svg",9),H(9,"path",10),c(),e0(),H(10,"div",11),c(),H(11,"div",12),c(),d(12,"label",13,2),ct(14),c()()}if(i&2){let o=je(2);f("labelPosition",r.labelPosition),m(4),yt("mdc-checkbox--selected",r.checked),f("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),xt("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),m(7),f("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),m(),f("for",r.inputId)}},dependencies:[Jl,XS],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();var xW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Co,ki,ki]})}}return t})();function Y8e(t,n){}var M1=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var SW=(()=>{class t extends Dv{constructor(e,i,r,o,a,s,l,u){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=a,this._ngZone=s,this._overlayRef=l,this._focusMonitor=u,this._platform=Me(ln),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=Me(Di),this.attachDomPortal=p=>{this._portalOutlet.hasAttached();let g=this._portalOutlet.attachDomPortal(p);return this._contentAttached(),g},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Yf(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let e=this._elementRef.nativeElement,i=Yf();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Yf()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(E1),E(ni,8),E(M1),E(b0),E(ht),E(w0),E(ua))}}static{this.\u0275cmp=oe({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ot(Tl,7),i&2){let o;Pe(o=Ne())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&xt("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[qt,Dt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&k(0,Y8e,0,0,"ng-template",0)},dependencies:[Tl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return t})(),W2=class{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new qe,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!ho(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},K8e=new ke("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.block()}}),X8e=new ke("DialogData"),Q8e=new ke("DefaultDialogConfig");var Z8e=0,wW=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,a,s){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this._ariaHiddenElements=new Map,this.afterAllClosed=xu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(kn(void 0))),this._scrollStrategy=s}open(e,i){let r=this._defaultOptions||new M1;i=Ve(Ve({},r),i),i.id=i.id||`cdk-dialog-${Z8e++}`,i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=this._overlay.create(o),s=new W2(a,i),l=this._attachContainer(a,s,i);return s.containerInstance=l,this._attachDialogContent(e,s,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){CW(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){CW(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),CW(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new Ou({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:M1,useValue:r},{provide:W2,useValue:i},{provide:w0,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=SW;let l=new Nu(s,r.viewContainerRef,ao.create({parent:o||this._injector,providers:a}),r.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Mn){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=Ve(Ve({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new $s(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new Nu(e,o.viewContainerRef,a,o.componentFactoryResolver));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:X8e,useValue:e.data},{provide:W2,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(Kr,null,{optional:!0}))&&s.push({provide:Kr,useValue:{value:e.direction,change:vt()}}),ao.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let e=this._overlayContainer.getContainerElement();if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(i){return new(i||t)(ae(lo),ae(ao),ae(Q8e,8),ae(t,12),ae(iw),ae(K8e))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function CW(t,n){let e=t.length;for(;e--;)n(t[e])}var Aue=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[wW],imports:[nd,zd,Cv,zd]})}}return t})();function J8e(t,n){}var Y2=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},EW="mdc-dialog--open",kue="mdc-dialog--opening",Mue="mdc-dialog--closing",eHe=150,tHe=75,iHe=(()=>{class t extends SW{constructor(e,i,r,o,a,s,l,u,p){super(e,i,r,o,a,s,l,p),this._animationMode=u,this._animationStateChanged=new Ae,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Rue(this._config.enterAnimationDuration)??eHe:0,this._exitAnimationDuration=this._animationsEnabled?Rue(this._config.exitAnimationDuration)??tHe:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Fue,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(kue,EW)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(EW),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(EW),this._animationsEnabled?(this._hostElement.style.setProperty(Fue,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Mue)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(kue,Mue)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(E1),E(ni,8),E(Y2),E(b0),E(ht),E(w0),E(Zn,8),E(ua))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(La("id",r._config.id),xt("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),yt("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[qt,Dt],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),k(2,J8e,0,0,"ng-template",2),c()())},dependencies:[Tl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-title{padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}}return t})(),Fue="--mat-dialog-transition-duration";function Rue(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Jc(t.substring(0,t.length-2)):t.endsWith("s")?Jc(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var FL=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(FL||{}),Qr=class{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new qe,this._beforeClosed=new qe,this._state=FL.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(vi(r=>r.state==="opened"),cn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(vi(r=>r.state==="closed"),cn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Cn(this.backdropClick(),this.keydownEvents().pipe(vi(r=>r.keyCode===27&&!this.disableClose&&!ho(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),Pue(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(vi(e=>e.state==="closing"),cn(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=FL.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=FL.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Pue(t,n,e){return t._closeInteractionType=n,t.close(e)}var mr=new ke("MatMdcDialogData"),IW=new ke("mat-mdc-dialog-default-options"),nHe=new ke("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.block()}});var rHe=0,Dn=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,a,s,l,u){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=a,this._parentDialog=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new qe,this._afterOpenedAtThisLevel=new qe,this.dialogConfigClass=Y2,this.afterAllClosed=xu(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(kn(void 0))),this._dialog=i.get(wW),this._dialogRefConstructor=Qr,this._dialogContainerType=iHe,this._dialogDataToken=mr}open(e,i){let r;i=Ve(Ve({},this._defaultOptions||new Y2),i),i.id=i.id||`mat-mdc-dialog-${rHe++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Gi(Ve({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:M1,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static{this.\u0275fac=function(i){return new(i||t)(ae(lo),ae(ao),ae(Lf,8),ae(IW,8),ae(nHe),ae(t,12),ae(iw),ae(Zn,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oHe=0,Lu=(()=>{class t{constructor(e,i,r){this.dialogRef=e,this._elementRef=i,this._dialog=r,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Oue(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Pue(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(i){return new(i||t)(E(Qr,8),E(Xe),E(Dn))}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&$("click",function(a){return r._onButtonClick(a)}),i&2&&xt("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[ve.None,"aria-label","ariaLabel"],type:"type",dialogResult:[ve.None,"mat-dialog-close","dialogResult"],_matDialogClose:[ve.None,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[Oi]})}}return t})(),Nue=(()=>{class t{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r}ngOnInit(){this._dialogRef||(this._dialogRef=Oue(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(i){return new(i||t)(E(Qr,8),E(Xe),E(Dn))}}static{this.\u0275dir=ze({type:t,standalone:!0})}}return t})(),RL=(()=>{class t extends Nue{constructor(){super(...arguments),this.id=`mat-mdc-dialog-title-${oHe++}`}_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,r){i&2&&La("id",r.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0,features:[qt]})}}return t})(),Ac=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0})}}return t})(),Pm=(()=>{class t extends Nue{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&yt("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},standalone:!0,features:[qt]})}}return t})();function Oue(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var DW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Dn],imports:[Aue,nd,zd,ki,ki]})}}return t})();var aHe=0,TW=new ke("CdkAccordion"),Lue=(()=>{class t{constructor(){this._stateChanges=new qe,this._openCloseAllActions=new qe,this.id=`cdk-accordion-${aHe++}`,this.multi=!1}openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[ve.HasDecoratorInputTransform,"multi","multi",at]},exportAs:["cdkAccordion"],standalone:!0,features:[Zt([{provide:TW,useExisting:t}]),Ei,Oi]})}}return t})(),sHe=0,Vue=(()=>{class t{get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let i=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,i)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}constructor(e,i,r){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=r,this._openCloseAllSubscription=Ji.EMPTY,this.closed=new Ae,this.opened=new Ae,this.destroyed=new Ae,this.expandedChange=new Ae,this.id=`cdk-accordion-child-${sHe++}`,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((o,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==o&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static{this.\u0275fac=function(i){return new(i||t)(E(TW,12),E(Di),E(tw))}}static{this.\u0275dir=ze({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[ve.HasDecoratorInputTransform,"expanded","expanded",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[Zt([{provide:TW,useValue:void 0}]),Ei]})}}return t})(),Bue=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})();var lHe=["body"],cHe=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],dHe=["mat-expansion-panel-header","*","mat-action-row"];function uHe(t,n){}var mHe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],pHe=["mat-panel-title","mat-panel-description","*"];function hHe(t,n){if(t&1&&(d(0,"span",1),Na(),d(1,"svg",2),H(2,"path",3),c()()),t&2){let e=S();f("@indicatorRotate",e._getExpandedState())}}var AW=new ke("MAT_ACCORDION"),jue="225ms cubic-bezier(0.4,0.0,0.2,1)",zue={indicatorRotate:Bo("indicatorRotate",[cr("collapsed, void",$i({transform:"rotate(0deg)"})),cr("expanded",$i({transform:"rotate(180deg)"})),gr("expanded <=> collapsed, void => collapsed",xr(jue))]),bodyExpansion:Bo("bodyExpansion",[cr("collapsed, void",$i({height:"0px",visibility:"hidden"})),cr("expanded",$i({height:"*",visibility:""})),gr("expanded <=> collapsed, void => collapsed",xr(jue))])},Uue=new ke("MAT_EXPANSION_PANEL"),fHe=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Uue,8))}}static{this.\u0275dir=ze({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0})}}return t})(),gHe=0,Gue=new ke("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),F1=(()=>{class t extends Vue{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}constructor(e,i,r,o,a,s,l){super(e,i,r),this._viewContainerRef=o,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new Ae,this.afterCollapse=new Ae,this._inputChanges=new qe,this._headerId=`mat-expansion-panel-header-${gHe++}`,this.accordion=e,this._document=a,this._animationsDisabled=s==="NoopAnimations",l&&(this.hideToggle=l.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(kn(null),vi(()=>this.expanded&&!this._portal),cn(1)).subscribe(()=>{this._portal=new $s(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}_animationStarted(e){!Hue(e)&&!this._animationsDisabled&&this._body&&this._body?.nativeElement.setAttribute("inert","")}_animationDone(e){Hue(e)||(e.toState==="expanded"?this.afterExpand.emit():e.toState==="collapsed"&&this.afterCollapse.emit(),!this._animationsDisabled&&this._body&&this._body.nativeElement.removeAttribute("inert"))}static{this.\u0275fac=function(i){return new(i||t)(E(AW,12),E(Di),E(tw),E(Er),E(ni),E(Zn,8),E(Gue,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(i,r,o){if(i&1&&bi(o,fHe,5),i&2){let a;Pe(a=Ne())&&(r._lazyContent=a.first)}},viewQuery:function(i,r){if(i&1&&ot(lHe,5),i&2){let o;Pe(o=Ne())&&(r._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(i,r){i&2&&yt("mat-expanded",r.expanded)("_mat-animation-noopable",r._animationsDisabled)("mat-expansion-panel-spacing",r._hasSpacing())},inputs:{hideToggle:[ve.HasDecoratorInputTransform,"hideToggle","hideToggle",at],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[Zt([{provide:AW,useValue:void 0},{provide:Uue,useExisting:t}]),Ei,qt,Oi,Dt],ngContentSelectors:dHe,decls:7,vars:4,consts:[["body",""],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(i,r){if(i&1){let o=ie();hi(cHe),ct(0),d(1,"div",1,0),$("@bodyExpansion.start",function(s){return W(o),Y(r._animationStarted(s))})("@bodyExpansion.done",function(s){return W(o),Y(r._animationDone(s))}),d(3,"div",2),ct(4,1),k(5,uHe,0,0,"ng-template",3),c(),ct(6,2),c()}i&2&&(m(),f("@bodyExpansion",r._getExpandedState())("id",r.id),xt("aria-labelledby",r._headerId),m(4),f("cdkPortalOutlet",r._portal))},dependencies:[Tl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[zue.bodyExpansion]},changeDetection:0})}}return t})();function Hue(t){return t.fromState==="void"}var R1=(()=>{class t{constructor(e,i,r,o,a,s,l){this.panel=e,this._element=i,this._focusMonitor=r,this._changeDetectorRef=o,this._animationMode=s,this._parentChangeSubscription=Ji.EMPTY,this.tabIndex=0;let u=e.accordion?e.accordion._stateChanges.pipe(vi(p=>!!(p.hideToggle||p.togglePosition))):ka;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Cn(e.opened,e.closed,u,e._inputChanges.pipe(vi(p=>!!(p.hideToggle||p.disabled||p.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(vi(()=>e._containsFocus())).subscribe(()=>r.focusVia(i,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:ho(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static{this.\u0275fac=function(i){return new(i||t)(E(F1,1),E(Xe),E(ua),E(Di),E(Gue,8),E(Zn,8),Sa("tabindex"))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(i,r){i&1&&$("click",function(){return r._toggle()})("keydown",function(a){return r._keydown(a)}),i&2&&(xt("id",r.panel._headerId)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r._getPanelId())("aria-expanded",r._isExpanded())("aria-disabled",r.panel.disabled),Vo("height",r._getHeaderHeight()),yt("mat-expanded",r._isExpanded())("mat-expansion-toggle-indicator-after",r._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",r._getTogglePosition()==="before")("_mat-animation-noopable",r._animationMode==="NoopAnimations"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Gr(e)]},standalone:!0,features:[Ei,Dt],ngContentSelectors:pHe,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(i,r){i&1&&(hi(mHe),d(0,"span",0),ct(1),ct(2,1),ct(3,2),c(),k(4,hHe,3,1,"span",1)),i&2&&(yt("mat-content-hide-toggle",!r._showToggle()),m(4),Xt(4,r._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color);display:inline-block;display:var(--mat-expansion-legacy-header-indicator-display, inline-block)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color);display:none;display:var(--mat-expansion-header-indicator-display, none)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[zue.indicatorRotate]},changeDetection:0})}}return t})();var cw=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"],standalone:!0})}}return t})(),PL=(()=>{class t extends Lue{constructor(){super(...arguments),this._ownHeaders=new js,this.hideToggle=!1,this.displayMode="default",this.togglePosition="after"}ngAfterContentInit(){this._headers.changes.pipe(kn(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Ep(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["mat-accordion"]],contentQueries:function(i,r,o){if(i&1&&bi(o,R1,5),i&2){let a;Pe(a=Ne())&&(r._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-accordion-multi",r.multi)},inputs:{hideToggle:[ve.HasDecoratorInputTransform,"hideToggle","hideToggle",at],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],standalone:!0,features:[Zt([{provide:AW,useExisting:t}]),Ei,qt]})}}return t})(),kW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,Bue,zd]})}}return t})();var kc=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=Sn(e)}get inset(){return this._inset}set inset(e){this._inset=Sn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(i,r){i&2&&(xt("aria-orientation",r.vertical?"vertical":"horizontal"),yt("mat-divider-vertical",r.vertical)("mat-divider-horizontal",!r.vertical)("mat-divider-inset",r.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[Dt],decls:0,vars:0,template:function(i,r){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color);border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color);border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return t})(),$ue=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,ki]})}}return t})();var que=["*"],Wue='@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-list-divider::after{content:"";display:block;border-bottom-width:1px;border-bottom-style:solid}}.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item__wrapper{display:block}.mdc-list-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer}.mdc-list-item:focus{outline:none}.mdc-list-item.mdc-list-item--with-one-line{height:48px}.mdc-list-item.mdc-list-item--with-two-lines{height:64px}.mdc-list-item.mdc-list-item--with-three-lines{height:88px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--disabled,.mdc-list-item.mdc-list-item--non-interactive{cursor:auto}.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item:not(.mdc-list-item--selected):focus::before,.mdc-list-item.mdc-ripple-upgraded--background-focused::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px double rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected::before{border-color:CanvasText}}.mdc-list-item.mdc-list-item--selected:focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:3px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-list-item.mdc-list-item--selected:focus::before{border-color:CanvasText}}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__content[for]{pointer-events:none}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;line-height:normal}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item__overline-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:24px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start,.mdc-list-item--with-leading-avatar .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-avatar .mdc-list-item__start{border-radius:50%}.mdc-list-item--with-leading-icon.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start,.mdc-list-item--with-leading-icon .mdc-list-item__start[dir=rtl]{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-thumbnail.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-thumbnail.mdc-list-item,.mdc-list-item--with-leading-thumbnail.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-thumbnail .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-thumbnail .mdc-list-item__start,.mdc-list-item--with-leading-thumbnail .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-thumbnail.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-image.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-image.mdc-list-item,.mdc-list-item--with-leading-image.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-image .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-image .mdc-list-item__start,.mdc-list-item--with-leading-image .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-image.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-image.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-video.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-video.mdc-list-item,.mdc-list-item--with-leading-video.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-video .mdc-list-item__start{margin-left:0;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-video .mdc-list-item__start,.mdc-list-item--with-leading-video .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-video.mdc-list-item--with-one-line{height:72px}.mdc-list-item--with-leading-video.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-checkbox.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-radio.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-radio.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-radio .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-radio .mdc-list-item__start[dir=rtl]{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-leading-switch.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-list-item--with-leading-switch.mdc-list-item,.mdc-list-item--with-leading-switch.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0}.mdc-list-item--with-leading-switch .mdc-list-item__start{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-leading-switch .mdc-list-item__start,.mdc-list-item--with-leading-switch .mdc-list-item__start[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines .mdc-list-item__overline-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-switch.mdc-list-item--with-one-line{height:56px}.mdc-list-item--with-leading-switch.mdc-list-item--with-two-lines{height:72px}.mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item,.mdc-list-item--with-trailing-icon.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-icon .mdc-list-item__end,.mdc-list-item--with-trailing-icon .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item,.mdc-list-item--with-trailing-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-trailing-meta .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);line-height:var(--mdc-typography-caption-line-height);font-weight:var(--mdc-typography-caption-font-weight);letter-spacing:var(--mdc-typography-caption-letter-spacing);text-decoration:var(--mdc-typography-caption-text-decoration);text-transform:var(--mdc-typography-caption-text-transform)}.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-radio.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-radio .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-radio .mdc-list-item__end[dir=rtl]{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-switch.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-switch.mdc-list-item,.mdc-list-item--with-trailing-switch.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto}.mdc-list-item--with-trailing-switch .mdc-list-item__end{margin-left:16px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-switch .mdc-list-item__end,.mdc-list-item--with-trailing-switch .mdc-list-item__end[dir=rtl]{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-switch.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-overline.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-list-item,.mdc-list-item[dir=rtl]{padding-left:16px;padding-right:16px}.mdc-list-group .mdc-deprecated-list{padding:0}.mdc-list-group__subheader{margin:calc((3rem - 1.5rem)/2) 16px}.mdc-list-divider{padding:0;background-clip:content-box}.mdc-list-divider.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset{padding-left:16px;padding-right:auto}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset,.mdc-list-divider.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-leading-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:16px}.mdc-list-divider.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset{padding-left:auto;padding-right:16px}[dir=rtl] .mdc-list-divider.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset,[dir=rtl] .mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset,.mdc-list-divider.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-text.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-icon.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-image.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-thumbnail.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-avatar.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-checkbox.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-switch.mdc-list-divider--with-trailing-inset[dir=rtl],.mdc-list-divider--with-leading-radio.mdc-list-divider--with-trailing-inset[dir=rtl]{padding-left:16px;padding-right:auto}.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset{padding-left:0px;padding-right:auto}[dir=rtl] .mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset,.mdc-list-divider--with-leading-video.mdc-list-divider--with-leading-inset[dir=rtl]{padding-left:auto;padding-right:0px}[dir=rtl] .mdc-list-divider,.mdc-list-divider[dir=rtl]{padding:0}.mdc-list-item{background-color:var(--mdc-list-list-item-container-color)}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item--with-one-line{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-avatar,.mdc-list-item--with-one-line.mdc-list-item--with-leading-icon,.mdc-list-item--with-one-line.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-one-line.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-one-line.mdc-list-item--with-leading-radio,.mdc-list-item--with-one-line.mdc-list-item--with-leading-switch{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-one-line.mdc-list-item--with-leading-image,.mdc-list-item--with-one-line.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-two-lines.mdc-list-item--with-leading-avatar,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-icon,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-thumbnail,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-checkbox,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-radio,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-switch,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-image,.mdc-list-item--with-two-lines.mdc-list-item--with-leading-video{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item--with-three-lines{border-radius:var(--mdc-list-list-item-container-shape)}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height)}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height)}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height)}.mdc-list-item__primary-text{color:var(--mdc-list-list-item-label-text-color)}.mdc-list-item__primary-text{font-family:var(--mdc-list-list-item-label-text-font);line-height:var(--mdc-list-list-item-label-text-line-height);font-size:var(--mdc-list-list-item-label-text-size);font-weight:var(--mdc-list-list-item-label-text-weight);letter-spacing:var(--mdc-list-list-item-label-text-tracking)}.mdc-list-item__secondary-text{color:var(--mdc-list-list-item-supporting-text-color)}.mdc-list-item__secondary-text{font-family:var(--mdc-list-list-item-supporting-text-font);line-height:var(--mdc-list-list-item-supporting-text-line-height);font-size:var(--mdc-list-list-item-supporting-text-size);font-weight:var(--mdc-list-list-item-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-supporting-text-tracking)}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color)}.mdc-list-item--with-leading-icon .mdc-list-item__start{width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start>i{font-size:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon{font-size:var(--mdc-list-list-item-leading-icon-size);width:var(--mdc-list-list-item-leading-icon-size);height:var(--mdc-list-list-item-leading-icon-size)}.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon,.mdc-list-item--with-leading-icon .mdc-list-item__start .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size);height:var(--mdc-list-list-item-leading-avatar-size)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color)}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font);line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height);font-size:var(--mdc-list-list-item-trailing-supporting-text-size);font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight);letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color)}.mdc-list-item--with-trailing-icon .mdc-list-item__end{width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end>i{font-size:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon{font-size:var(--mdc-list-list-item-trailing-icon-size);width:var(--mdc-list-list-item-trailing-icon-size);height:var(--mdc-list-list-item-trailing-icon-size)}.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon,.mdc-list-item--with-trailing-icon .mdc-list-item__end .mdc-list-item__icon>.materialdesignWizIconSvgsSvgIcon{display:block}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color)}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text,.mdc-list-item--disabled .mdc-list-item__overline-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity)}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color)}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color)}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color)}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color);opacity:var(--mdc-list-list-item-hover-state-layer-opacity)}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color);opacity:var(--mdc-list-list-item-disabled-state-layer-opacity)}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color);opacity:var(--mdc-list-list-item-focus-state-layer-opacity)}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape);background-color:var(--mdc-list-list-item-leading-avatar-color)}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size)}.cdk-high-contrast-active a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none}.mat-mdc-list-item>.mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-mdc-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape);--mat-mdc-focus-indicator-border-radius:var(--mat-list-active-indicator-shape)}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color)}',_He=["unscopedContent"],vHe=["text"],bHe=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],yHe=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var xHe=new ke("ListOption"),FW=(()=>{class t{constructor(e){this._elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"],standalone:!0})}}return t})(),CHe=(()=>{class t{constructor(e){this._elementRef=e}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"],standalone:!0})}}return t})(),SHe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"],standalone:!0})}}return t})(),Yue=(()=>{class t{constructor(e){this._listOption=e}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static{this.\u0275fac=function(i){return new(i||t)(E(xHe,8))}}static{this.\u0275dir=ze({type:t,hostVars:4,hostBindings:function(i,r){i&2&&yt("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())},standalone:!0})}}return t})(),wHe=(()=>{class t extends Yue{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],standalone:!0,features:[qt]})}}return t})(),RW=(()=>{class t extends Yue{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],standalone:!0,features:[qt]})}}return t})(),EHe=new ke("MAT_LIST_CONFIG"),dw=(()=>{class t{constructor(){this._isNonInteractive=!0,this._disableRipple=!1,this._disabled=!1,this._defaultOptions=Me(EHe,{optional:!0})}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Sn(e)}get disabled(){return this._disabled}set disabled(e){this._disabled=Sn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,hostVars:1,hostBindings:function(i,r){i&2&&xt("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}}return t})(),IHe=(()=>{class t{set lines(e){this._explicitLines=Jc(e,null),this._updateItemLines(!1)}get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Sn(e)}get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=Sn(e)}get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(e,i,r,o,a,s){this._elementRef=e,this._ngZone=i,this._listBase=r,this._platform=o,this._explicitLines=null,this._disableRipple=!1,this._disabled=!1,this._subscriptions=new Ji,this._rippleRenderer=null,this._hasUnscopedTextContent=!1,this.rippleConfig=a||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=s==="NoopAnimations",r&&!r._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new y2(this,this._ngZone,this._hostElement,this._platform),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Cn(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht),E(dw,8),E(ln),E(wv,8),E(Zn,8))}}static{this.\u0275dir=ze({type:t,contentQueries:function(i,r,o){if(i&1&&(bi(o,wHe,4),bi(o,RW,4)),i&2){let a;Pe(a=Ne())&&(r._avatars=a),Pe(a=Ne())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(xt("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),yt("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"},standalone:!0})}}return t})();var N1=(()=>{class t extends dw{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],standalone:!0,features:[Zt([{provide:dw,useExisting:t}]),qt,Dt],ngContentSelectors:que,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},styles:[Wue],encapsulation:2,changeDetection:0})}}return t})(),E0=(()=>{class t extends IHe{get activated(){return this._activated}set activated(e){this._activated=Sn(e)}constructor(e,i,r,o,a,s){super(e,i,r,o,a,s),this._activated=!1}_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht),E(dw,8),E(ln),E(wv,8),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(i,r,o){if(i&1&&(bi(o,CHe,5),bi(o,FW,5),bi(o,SHe,5)),i&2){let a;Pe(a=Ne())&&(r._lines=a),Pe(a=Ne())&&(r._titles=a),Pe(a=Ne())&&(r._meta=a)}},viewQuery:function(i,r){if(i&1&&(ot(_He,5),ot(vHe,5)),i&2){let o;Pe(o=Ne())&&(r._unscopedContent=o.first),Pe(o=Ne())&&(r._itemText=o.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&2&&(xt("aria-current",r._getAriaCurrent()),yt("mdc-list-item--activated",r.activated)("mdc-list-item--with-leading-avatar",r._avatars.length!==0)("mdc-list-item--with-leading-icon",r._icons.length!==0)("mdc-list-item--with-trailing-meta",r._meta.length!==0)("_mat-animation-noopable",r._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],standalone:!0,features:[qt,Dt],ngContentSelectors:yHe,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-mdc-focus-indicator"]],template:function(i,r){if(i&1){let o=ie();hi(bHe),ct(0),d(1,"span",1),ct(2,1),ct(3,2),d(4,"span",2,0),$("cdkObserveContent",function(){return W(o),Y(r._updateItemLines(!0))}),ct(6,3),c()(),ct(7,4),ct(8,5),H(9,"div",3)}},dependencies:[YO],encapsulation:2,changeDetection:0})}}return t})();var Kue=(()=>{class t extends dw{constructor(){super(...arguments),this._isNonInteractive=!1}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],standalone:!0,features:[Zt([{provide:dw,useExisting:t}]),qt,Dt],ngContentSelectors:que,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},styles:[Wue],encapsulation:2,changeDetection:0})}}return t})();var K2=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[HS,po,ki,jd,Dq,$ue]})}}return t})();var DHe=["mat-menu-item",""],THe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],AHe=["mat-icon, [matMenuItemIcon]","*"];function kHe(t,n){t&1&&(Na(),d(0,"svg",2),H(1,"polygon",3),c())}var MHe=["*"];function FHe(t,n){if(t&1){let e=ie();d(0,"div",0),$("keydown",function(r){W(e);let o=S();return Y(o._handleKeydown(r))})("click",function(){W(e);let r=S();return Y(r.closed.emit("click"))})("@transformMenu.start",function(r){W(e);let o=S();return Y(o._onAnimationStart(r))})("@transformMenu.done",function(r){W(e);let o=S();return Y(o._onAnimationDone(r))}),d(1,"div",1),ct(2),c()()}if(t&2){let e=S();In(e._classList),f("id",e.panelId)("@transformMenu",e._panelAnimationState),xt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var PW=new ke("MAT_MENU_PANEL"),Gd=(()=>{class t{constructor(e,i,r,o,a){this._elementRef=e,this._document=i,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=a,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new qe,this._focused=new qe,this._highlighted=!1,this._triggersSubmenu=!1,o?.addItem?.(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),i=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r enter",xr("120ms cubic-bezier(0, 0, 0.2, 1)",$i({opacity:1,transform:"scale(1)"}))),gr("* => void",xr("100ms 25ms linear",$i({opacity:0})))]),fadeInItems:Bo("fadeInItems",[cr("showing",$i({opacity:1})),gr("void => *",[$i({opacity:0}),xr("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Uzt=OL.fadeInItems,Gzt=OL.transformMenu,PHe=0,NHe=new ke("mat-menu-default-options",{providedIn:"root",factory:OHe});function OHe(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Ia=(()=>{class t{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let i=this._previousPanelClass,r=Ve({},this._classList);i&&i.length&&i.split(" ").forEach(o=>{r[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{r[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=r}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,i,r,o){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=o,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new js,this._classList={},this._panelAnimationState="void",this._animationDone=new qe,this.closed=new Ae,this.close=this.closed,this.panelId=`mat-menu-panel-${PHe++}`,this.overlayPanelClass=r.overlayPanelClass||"",this._xPosition=r.xPosition,this._yPosition=r.yPosition,this.backdropClass=r.backdropClass,this.overlapTrigger=r.overlapTrigger,this.hasBackdrop=r.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ep(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(kn(this._directDescendantItems),Wi(e=>Cn(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let i=this._keyManager;if(this._panelAnimationState==="enter"&&i.activeItem?._hasFocus()){let r=e.toArray(),o=Math.max(0,Math.min(r.length-1,i.activeItemIndex||0));r[o]&&!r[o].disabled?i.setActiveItem(o):i.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(kn(this._directDescendantItems),Wi(i=>Cn(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let i=e.keyCode,r=this._keyManager;switch(i){case 27:ho(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(i===38||i===40)&&r.setFocusOrigin("keyboard"),r.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe(cn(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){let r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){let i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));if(!o||o===this._previousElevation){let a=Ve({},this._classList);this._previousElevation&&(a[this._previousElevation]=!1),a[r]=!0,this._previousElevation=r,this._classList=a}}setPositionClasses(e=this.xPosition,i=this.yPosition){this._classList=Gi(Ve({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":i==="above","mat-menu-below":i==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(kn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht),E(NHe),E(Di))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-menu"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,RHe,5),bi(o,Gd,5),bi(o,Gd,4)),i&2){let a;Pe(a=Ne())&&(r.lazyContent=a.first),Pe(a=Ne())&&(r._allItems=a),Pe(a=Ne())&&(r.items=a)}},viewQuery:function(i,r){if(i&1&&ot(Mn,5),i&2){let o;Pe(o=Ne())&&(r.templateRef=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&xt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ve.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[ve.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",at],hasBackdrop:[ve.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>e==null?null:at(e)],panelClass:[ve.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Zt([{provide:PW,useExisting:t}]),Ei,Dt],ngContentSelectors:MHe,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(i,r){i&1&&(hi(),k(0,FHe,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[OL.transformMenu,OL.fadeInItems]},changeDetection:0})}}return t})(),Que=new ke("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition()}});function LHe(t){return()=>t.scrollStrategies.reposition()}var VHe={provide:Que,deps:[lo],useFactory:LHe},Xue=Ql({passive:!0});var Es=(()=>{class t{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,i,r,o,a,s,l,u,p){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=l,this._focusMonitor=u,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ji.EMPTY,this._hoverSubscription=Ji.EMPTY,this._menuCloseSubscription=Ji.EMPTY,this._changeDetectorRef=Me(Di),this._handleTouchStart=g=>{b2(g)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Ae,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ae,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=a instanceof Ia?a:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,Xue)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Xue),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let i=this._createOverlay(e),r=i.getConfig(),o=r.positionStrategy;this._setPosition(e,o),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Ia&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ft(e.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Ia?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(vi(r=>r.toState==="void"),cn(1),Ft(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,r=e.parentMenu;for(;r;)i++,r=r.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Ou({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(r=>{let o=r.connectionPair.overlayX==="start"?"after":"before",a=r.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(o,a)):e.setPositionClasses(o,a)})}_setPosition(e,i){let[r,o]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,u]=[a,s],[p,g]=[r,o],_=0;if(this.triggersSubmenu()){if(g=r=e.xPosition==="before"?"start":"end",o=p=r==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let v=this._parentMaterialMenu.items.first;this._parentInnerPadding=v?v._getHostElement().offsetTop:0}_=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=a==="top"?"bottom":"top",u=s==="top"?"bottom":"top");i.withPositions([{originX:r,originY:l,overlayX:p,overlayY:a,offsetY:_},{originX:o,originY:l,overlayX:g,overlayY:a,offsetY:_},{originX:r,originY:u,overlayX:p,overlayY:s,offsetY:-_},{originX:o,originY:u,overlayX:g,overlayY:s,offsetY:-_}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:vt(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(vi(a=>a!==this._menuItemInstance),vi(()=>this._menuOpen)):vt();return Cn(e,r,o,i)}_handleMousedown(e){v2(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(vi(e=>e===this._menuItemInstance&&!e.disabled),Wl(0,xD)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ia&&this.menu._isAnimating?this.menu._animationDone.pipe(cn(1),Wl(0,xD),Ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new $s(e.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(i){return new(i||t)(E(lo),E(Xe),E(Er),E(Que),E(PW,8),E(Gd,10),E(Kr,8),E(ua),E(ht))}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,r){i&1&&$("click",function(a){return r._handleClick(a)})("mousedown",function(a){return r._handleMousedown(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&xt("aria-haspopup",r.menu?"menu":null)("aria-expanded",r.menuOpen)("aria-controls",r.menuOpen?r.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[ve.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[ve.None,"matMenuTriggerFor","menu"],menuData:[ve.None,"matMenuTriggerData","menuData"],restoreFocus:[ve.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0})}}return t})(),uw=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[VHe],imports:[po,jd,ki,nd,Hd,ki]})}}return t})();function BHe(t,n){t&1&&H(0,"div",2)}var jHe=new ke("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var mw=(()=>{class t{constructor(e,i,r,o,a){this._elementRef=e,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=o,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new Ae,this._mode="determinate",this._transitionendHandler=s=>{this.animationEnd.observers.length===0||!s.target||!s.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation=o==="NoopAnimations",a&&(a.color&&(this.color=this._defaultColor=a.color),this.mode=a.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(e){this._color=e}get value(){return this._value}set value(e){this._value=Zue(e||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=Zue(e||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht),E(Di),E(Zn,8),E(jHe,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(i,r){i&2&&(xt("aria-valuenow",r._isIndeterminate()?null:r.value)("mode",r.mode),In("mat-"+r.color),yt("_mat-animation-noopable",r._isNoopAnimation)("mdc-linear-progress--animation-ready",!r._isNoopAnimation)("mdc-linear-progress--indeterminate",r._isIndeterminate()))},inputs:{color:"color",value:[ve.HasDecoratorInputTransform,"value","value",Gr],bufferValue:[ve.HasDecoratorInputTransform,"bufferValue","bufferValue",Gr],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[Ei,Dt],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"div",1),k(2,BHe,1,0,"div",2),c(),d(3,"div",3),H(4,"span",4),c(),d(5,"div",5),H(6,"span",4),c()),i&2&&(m(),Vo("flex-basis",r._getBufferBarFlexBasis()),m(),Xt(2,r.mode==="buffer"?2:-1),m(),Vo("transform",r._getPrimaryBarTransform()))},styles:[`@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}.mdc-linear-progress__buffer-dots{background-color:var(--mdc-linear-progress-track-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(244, 67, 54, 0.25)'/%3E%3C/svg%3E")}}.mdc-linear-progress__buffer-bar{background-color:var(--mdc-linear-progress-track-color)}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{display:block;text-align:start;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}`],encapsulation:2,changeDetection:0})}}return t})();function Zue(t,n=0,e=100){return Math.max(n,Math.min(e,t))}var LL=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki]})}}return t})();var HHe=["determinateSpinner"];function zHe(t,n){if(t&1&&(Na(),d(0,"svg",11),H(1,"circle",12),c()),t&2){let e=S();xt("viewBox",e._viewBox()),m(),Vo("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),xt("r",e._circleRadius())}}var UHe=new ke("mat-progress-spinner-default-options",{providedIn:"root",factory:GHe});function GHe(){return{diameter:Jue}}var Jue=100,$He=10,pw=(()=>{class t{get color(){return this._color||this._defaultColor}set color(e){this._color=e}constructor(e,i,r){this._elementRef=e,this._defaultColor="primary",this._value=0,this._diameter=Jue,this._noopAnimations=i==="NoopAnimations"&&!!r&&!r._forceAnimations,this.mode=e.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",r&&(r.color&&(this.color=this._defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_circleRadius(){return(this.diameter-$He)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Zn,8),E(UHe))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(i,r){if(i&1&&ot(HHe,5),i&2){let o;Pe(o=Ne())&&(r._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(i,r){i&2&&(xt("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",r.mode==="determinate"?r.value:null)("mode",r.mode),In("mat-"+r.color),Vo("width",r.diameter,"px")("height",r.diameter,"px")("--mdc-circular-progress-size",r.diameter+"px")("--mdc-circular-progress-active-indicator-width",r.diameter+"px"),yt("_mat-animation-noopable",r._noopAnimations)("mdc-circular-progress--indeterminate",r.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[ve.HasDecoratorInputTransform,"value","value",Gr],diameter:[ve.HasDecoratorInputTransform,"diameter","diameter",Gr],strokeWidth:[ve.HasDecoratorInputTransform,"strokeWidth","strokeWidth",Gr]},exportAs:["matProgressSpinner"],standalone:!0,features:[Ei,Dt],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(i,r){if(i&1&&(k(0,zHe,2,8,"ng-template",null,0,Ii),d(2,"div",2,1),Na(),d(4,"svg",3),H(5,"circle",4),c()(),e0(),d(6,"div",5)(7,"div",6)(8,"div",7),dn(9,8),c(),d(10,"div",9),dn(11,8),c(),d(12,"div",10),dn(13,8),c()()()),i&2){let o=je(1);m(4),xt("viewBox",r._viewBox()),m(),Vo("stroke-dasharray",r._strokeCircumference(),"px")("stroke-dashoffset",r._strokeDashOffset(),"px")("stroke-width",r._circleStrokeWidth(),"%"),xt("r",r._circleRadius()),m(4),f("ngTemplateOutlet",o),m(2),f("ngTemplateOutlet",o),m(2),f("ngTemplateOutlet",o)}},dependencies:[ta],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}}return t})();var OW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[po,ki]})}}return t})();var jL=["*"],qHe=["content"],WHe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],YHe=["mat-drawer","mat-drawer-content","*"];function KHe(t,n){if(t&1){let e=ie();d(0,"div",1),$("click",function(){W(e);let r=S();return Y(r._onBackdropClicked())}),c()}if(t&2){let e=S();yt("mat-drawer-shown",e._isShowingBackdrop())}}function XHe(t,n){t&1&&(d(0,"mat-drawer-content"),ct(1,2),c())}var QHe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ZHe=["mat-sidenav","mat-sidenav-content","*"];function JHe(t,n){if(t&1){let e=ie();d(0,"div",1),$("click",function(){W(e);let r=S();return Y(r._onBackdropClicked())}),c()}if(t&2){let e=S();yt("mat-drawer-shown",e._isShowingBackdrop())}}function e7e(t,n){t&1&&(d(0,"mat-sidenav-content"),ct(1,2),c())}var t7e='.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}',tme={transformDrawer:Bo("transform",[cr("open, open-instant",$i({transform:"none",visibility:"visible"})),cr("void",$i({"box-shadow":"none",visibility:"hidden"})),gr("void => open-instant",xr("0ms")),gr("void <=> open, open-instant => void",xr("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var i7e=new ke("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:n7e}),LW=new ke("MAT_DRAWER_CONTAINER");function n7e(){return!1}var VL=(()=>{class t extends S0{constructor(e,i,r,o,a){super(r,o,a),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(fr(()=>nme)),E(Xe),E(C0),E(ht))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(i,r){i&2&&Vo("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[Zt([{provide:S0,useExisting:t}]),qt,Dt],ngContentSelectors:jL,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},encapsulation:2,changeDetection:0})}}return t})(),ime=(()=>{class t{get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Sn(e)}get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=Sn(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Sn(e))}constructor(e,i,r,o,a,s,l,u){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._interactivityChecker=s,this._doc=l,this._container=u,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new qe,this._animationEnd=new qe,this._animationState="void",this.openedChange=new Ae(!0),this._openedStream=this.openedChange.pipe(vi(p=>p),st(()=>{})),this.openedStart=this._animationStarted.pipe(vi(p=>p.fromState!==p.toState&&p.toState.indexOf("open")===0),bh(void 0)),this._closedStream=this.openedChange.pipe(vi(p=>!p),st(()=>{})),this.closedStart=this._animationStarted.pipe(vi(p=>p.fromState!==p.toState&&p.toState==="void"),bh(void 0)),this._destroyed=new qe,this.onPositionChanged=new Ae,this._modeChanged=new qe,this.openedChange.subscribe(p=>{p?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{xn(this._elementRef.nativeElement,"keydown").pipe(vi(p=>p.keyCode===27&&!this.disableClose&&!ho(p)),Ft(this._destroyed)).subscribe(p=>this._ngZone.run(()=>{this.close(),p.stopPropagation(),p.preventDefault()}))}),this._animationEnd.pipe(Ls((p,g)=>p.fromState===g.fromState&&p.toState===g.toState)).subscribe(p=>{let{fromState:g,toState:_}=p;(_.indexOf("open")===0&&g==="void"||_==="void"&&g.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&typeof this._elementRef.nativeElement.focus=="function"&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);let r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(cn(1)).subscribe(a=>o(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let i=this._elementRef.nativeElement,r=i.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,i)),r.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(E1),E(ua),E(ln),E(ht),E(b0),E(ni,8),E(LW,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-drawer"]],viewQuery:function(i,r){if(i&1&&ot(qHe,5),i&2){let o;Pe(o=Ne())&&(r._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(i,r){i&1&&Qy("@transform.start",function(a){return r._animationStarted.next(a)})("@transform.done",function(a){return r._animationEnd.next(a)}),i&2&&(Xy("@transform",r._animationState),xt("align",null),yt("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[Dt],ngContentSelectors:jL,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(hi(),d(0,"div",1,0),ct(2),c())},dependencies:[S0],encapsulation:2,data:{animation:[tme.transformDrawer]},changeDetection:0})}}return t})(),nme=(()=>{class t{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Sn(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Sn(e)}get scrollable(){return this._userContent||this._content}constructor(e,i,r,o,a,s=!1,l){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new js,this.backdropClick=new Ae,this._destroyed=new qe,this._doCheckSubject=new qe,this._contentMargins={left:null,right:null},this._contentMarginChanges=new qe,e&&e.change.pipe(Ft(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Ft(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}ngAfterContentInit(){this._allDrawers.changes.pipe(kn(this._allDrawers),Ft(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(kn(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe($o(10),Ft(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let r=this._left._getWidth();e+=r,i-=r}}if(this._right&&this._right.opened){if(this._right.mode=="side")i+=this._right._getWidth();else if(this._right.mode=="push"){let r=this._right._getWidth();i+=r,e-=r}}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(vi(i=>i.fromState!==i.toState),Ft(this._drawers.changes)).subscribe(i=>{i.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(Ft(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Ft(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(cn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ft(Cn(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static{this.\u0275fac=function(i){return new(i||t)(E(Kr,8),E(Xe),E(ht),E(Di),E(Dc),E(i7e),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,VL,5),bi(o,ime,5)),i&2){let a;Pe(a=Ne())&&(r._content=a.first),Pe(a=Ne())&&(r._allDrawers=a)}},viewQuery:function(i,r){if(i&1&&ot(VL,5),i&2){let o;Pe(o=Ne())&&(r._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-drawer-container-explicit-backdrop",r._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[Zt([{provide:LW,useExisting:t}]),Dt],ngContentSelectors:YHe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(hi(WHe),k(0,KHe,1,2,"div",0),ct(1),ct(2,1),k(3,XHe,2,0,"mat-drawer-content")),i&2&&(Xt(0,r.hasBackdrop?0:-1),m(3),Xt(3,r._content?-1:3))},dependencies:[VL],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color);box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}}return t})(),BL=(()=>{class t extends VL{constructor(e,i,r,o,a){super(e,i,r,o,a)}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(fr(()=>VW)),E(Xe),E(C0),E(ht))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(i,r){i&2&&Vo("margin-left",r._container._contentMargins.left,"px")("margin-right",r._container._contentMargins.right,"px")},standalone:!0,features:[Zt([{provide:S0,useExisting:t}]),qt,Dt],ngContentSelectors:jL,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},encapsulation:2,changeDetection:0})}}return t})(),X2=(()=>{class t extends ime{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Sn(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Jc(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Jc(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(i,r){i&2&&(xt("align",null),Vo("top",r.fixedInViewport?r.fixedTopGap:null,"px")("bottom",r.fixedInViewport?r.fixedBottomGap:null,"px"),yt("mat-drawer-end",r.position==="end")("mat-drawer-over",r.mode==="over")("mat-drawer-push",r.mode==="push")("mat-drawer-side",r.mode==="side")("mat-drawer-opened",r.opened)("mat-sidenav-fixed",r.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],standalone:!0,features:[qt,Dt],ngContentSelectors:jL,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(i,r){i&1&&(hi(),d(0,"div",1,0),ct(2),c())},dependencies:[S0],encapsulation:2,data:{animation:[tme.transformDrawer]},changeDetection:0})}}return t})(),VW=(()=>{class t extends nme{constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,BL,5),bi(o,X2,5)),i&2){let a;Pe(a=Ne())&&(r._content=a.first),Pe(a=Ne())&&(r._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(i,r){i&2&&yt("mat-drawer-container-explicit-backdrop",r._backdropOverride)},exportAs:["matSidenavContainer"],standalone:!0,features:[Zt([{provide:LW,useExisting:t}]),qt,Dt],ngContentSelectors:ZHe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(i,r){i&1&&(hi(QHe),k(0,JHe,1,2,"div",0),ct(1),ct(2,1),k(3,e7e,2,0,"mat-sidenav-content")),i&2&&(Xt(0,r.hasBackdrop?0:-1),m(3),Xt(3,r._content?-1:3))},dependencies:[BL],styles:[t7e],encapsulation:2,changeDetection:0})}}return t})(),BW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,Hd,Hd,ki]})}}return t})();function o7e(t,n){if(t&1){let e=ie();d(0,"div",1)(1,"button",2),$("click",function(){W(e);let r=S();return Y(r.action())}),h(2),c()()}if(t&2){let e=S();m(2),ue(" ",e.data.action," ")}}var a7e=["label"];function s7e(t,n){}var l7e=Math.pow(2,31)-1,O1=class{constructor(n,e){this._overlayRef=e,this._afterDismissed=new qe,this._afterOpened=new qe,this._onAction=new qe,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,l7e))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},HL=new ke("MatSnackBarData"),hw=class{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}},c7e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"],standalone:!0})}}return t})(),d7e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"],standalone:!0})}}return t})(),u7e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"],standalone:!0})}}return t})(),rme=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static{this.\u0275fac=function(i){return new(i||t)(E(O1),E(HL))}}static{this.\u0275cmp=oe({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],standalone:!0,features:[Dt],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(i,r){i&1&&(d(0,"div",0),h(1),c(),k(2,o7e,3,1,"div",1)),i&2&&(m(),ue(" ",r.data.message,` `),m(),Xt(2,r.hasAction?2:-1))},dependencies:[Ze,c7e,d7e,u7e],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}}return t})(),m7e={snackBarState:Bo("state",[cr("void, hidden",$i({transform:"scale(0.8)",opacity:0})),cr("visible",$i({transform:"scale(1)",opacity:1})),gr("* => visible",xr("150ms cubic-bezier(0, 0, 0.2, 1)")),gr("* => void, * => hidden",xr("75ms cubic-bezier(0.4, 0.0, 1, 1)",$i({opacity:0})))])},p7e=0,h7e=(()=>{class t extends Dv{constructor(e,i,r,o,a){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=a,this._document=Me(ni),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new qe,this._onExit=new qe,this._onEnter=new qe,this._animationState="void",this._liveElementId=`mat-snack-bar-container-live-${p7e++}`,this.attachDomPortal=s=>{this._assertNotAttached();let l=this._portalOutlet.attachDomPortal(s);return this._afterPortalAttached(),l},a.politeness==="assertive"&&!a.announcementMessage?this._live="assertive":a.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){let{fromState:i,toState:r}=e;if((r==="void"&&i!=="void"||r==="hidden")&&this._completeExit(),r==="visible"){let o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(a=>e.classList.add(a)):e.classList.add(i)),this._exposeToModals();let r=this._label.nativeElement,o="mdc-snackbar__label";r.classList.toggle(o,!r.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{let i=e.getAttribute("aria-owns");if(i){let r=i.replace(this._liveElementId,"").trim();r.length>0?e.setAttribute("aria-owns",r):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{let e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static{this.\u0275fac=function(i){return new(i||t)(E(ht),E(Xe),E(Di),E(ln),E(hw))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(i,r){if(i&1&&(ot(Tl,7),ot(a7e,7)),i&2){let o;Pe(o=Ne())&&(r._portalOutlet=o.first),Pe(o=Ne())&&(r._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(i,r){i&1&&Qy("@state.done",function(a){return r.onAnimationEnd(a)}),i&2&&Xy("@state",r._animationState)},standalone:!0,features:[qt,Dt],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(d(0,"div",1)(1,"div",2,0)(3,"div",3),k(4,s7e,0,0,"ng-template",4),c(),H(5,"div"),c()()),i&2&&(m(5),xt("aria-live",r._live)("role",r._role)("id",r._liveElementId))},dependencies:[Tl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[m7e.snackBarState]}})}}return t})();function f7e(){return new hw}var g7e=new ke("mat-snack-bar-default-options",{providedIn:"root",factory:f7e}),jW=(()=>{class t{get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(e,i,r,o,a,s){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=rme,this.snackBarContainerComponent=h7e,this.handsetCssClass="mat-mdc-snack-bar-handset"}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){let o=Ve(Ve({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){let r=i&&i.viewContainerRef&&i.viewContainerRef.injector,o=ao.create({parent:r||this._injector,providers:[{provide:hw,useValue:i}]}),a=new Nu(this.snackBarContainerComponent,i.viewContainerRef,o),s=e.attach(a);return s.instance.snackBarConfig=i,s.instance}_attach(e,i){let r=Ve(Ve(Ve({},new hw),this._defaultConfig),i),o=this._createOverlay(r),a=this._attachSnackBarContainer(o,r),s=new O1(a,o);if(e instanceof Mn){let l=new $s(e,null,{$implicit:r.data,snackBarRef:s});s.instance=a.attachTemplatePortal(l)}else{let l=this._createInjector(r,s),u=new Nu(e,void 0,l),p=a.attachComponentPortal(u);s.instance=p.instance}return this._breakpointObserver.observe(Nce.HandsetPortrait).pipe(Ft(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(s,r),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){let i=new Ou;i.direction=e.direction;let r=this._overlay.position().global(),o=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,s=!a&&e.horizontalPosition!=="center";return a?r.left("0"):s?r.right("0"):r.centerHorizontally(),e.verticalPosition==="top"?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){let r=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ao.create({parent:r||this._injector,providers:[{provide:O1,useValue:i},{provide:HL,useValue:e.data}]})}static{this.\u0275fac=function(i){return new(i||t)(ae(lo),ae(tL),ae(ao),ae(KO),ae(t,12),ae(g7e))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var HW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[jW],imports:[nd,zd,Ic,ki,rme,ki]})}}return t})();var v7e=["*",[["mat-toolbar-row"]]],b7e=["*","mat-toolbar-row"],y7e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"],standalone:!0})}}return t})(),fw=(()=>{class t{constructor(e,i,r){this._elementRef=e,this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ln),E(ni))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-toolbar"]],contentQueries:function(i,r,o){if(i&1&&bi(o,y7e,5),i&2){let a;Pe(a=Ne())&&(r._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(i,r){i&2&&(In(r.color?"mat-"+r.color:""),yt("mat-toolbar-multiple-rows",r._toolbarRows.length>0)("mat-toolbar-single-row",r._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],standalone:!0,features:[Dt],ngContentSelectors:b7e,decls:2,vars:0,template:function(i,r){i&1&&(hi(v7e),ct(0),ct(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color);color:var(--mat-toolbar-container-text-color)}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font);font-size:var(--mat-toolbar-title-text-size);line-height:var(--mat-toolbar-title-text-line-height);font-weight:var(--mat-toolbar-title-text-weight);letter-spacing:var(--mat-toolbar-title-text-tracking);margin:0}.cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mdc-text-button-label-text-color:var(--mat-toolbar-container-text-color);--mdc-outlined-button-label-text-color:var(--mat-toolbar-container-text-color)}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height)}}"],encapsulation:2,changeDetection:0})}}return t})();var zW=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,ki]})}}return t})();var iA=gc(Tme(),1);var t4=class extends dN{constructor(){super(...arguments),this.allowedAlgorithms=["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","PS256","PS384","PS512"],this.gracePeriodInSec=600}validateSignature(n,e=!1){if(!n.idToken)throw new Error("Parameter idToken expected!");if(!n.idTokenHeader)throw new Error("Parameter idTokenHandler expected.");if(!n.jwks)throw new Error("Parameter jwks expected!");if(!n.jwks.keys||!Array.isArray(n.jwks.keys)||n.jwks.keys.length===0)throw new Error("Array keys in jwks missing!");let i=n.idTokenHeader.kid,r=n.jwks.keys,o,a=n.idTokenHeader.alg;if(i)o=r.find(p=>p.kid===i);else{let p=this.alg2kty(a),g=r.filter(_=>_.kty===p&&_.use==="sig");if(g.length>1){let _="More than one matching key found. Please specify a kid in the id_token header.";return console.error(_),Promise.reject(_)}else g.length===1&&(o=g[0])}if(!o&&!e&&n.loadKeys)return n.loadKeys().then(p=>n.jwks=p).then(p=>this.validateSignature(n,!0));if(!o&&e&&!i){let p="No matching key found.";return console.error(p),Promise.reject(p)}if(!o&&e&&i){let p="expected key not found in property jwks. This property is most likely loaded with the discovery document. Expected key id (kid): "+i;return console.error(p),Promise.reject(p)}let s=iA.KEYUTIL.getKey(o),l={alg:this.allowedAlgorithms,gracePeriod:this.gracePeriodInSec};return n.bypassTimestampCheck&&(l.verifyAt=n.idTokenClaims.exp-1),iA.KJUR.jws.JWS.verifyJWT(n.idToken,s,l)?Promise.resolve():Promise.reject("Signature not valid")}alg2kty(n){switch(n.charAt(0)){case"R":return"RSA";case"E":return"EC";default:throw new Error("Cannot infer kty from alg: "+n)}}calcHash(n,e){let r=new iA.KJUR.crypto.MessageDigest({alg:e}).digestString(n),o=this.toByteArrayAsString(r);return Promise.resolve(o)}toByteArrayAsString(n){let e="";for(let i=0;i{class t{constructor(e,i){this.document=e,this.platformId=i,this.documentIsAccessible=Pd(this.platformId)}static getCookieRegExp(e){let i=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+i+"|;\\s*"+i+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return this.documentIsAccessible?(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie)):!1}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);let r=t.getCookieRegExp(e).exec(this.document.cookie);return r[1]?t.safeDecodeURIComponent(r[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let e={},i=this.document;return i.cookie&&i.cookie!==""&&i.cookie.split(";").forEach(r=>{let[o,a]=r.split("=");e[t.safeDecodeURIComponent(o.replace(/^ /,""))]=t.safeDecodeURIComponent(a)}),e}set(e,i,r,o,a,s,l,u){if(!this.documentIsAccessible)return;if(typeof r=="number"||r instanceof Date||o||a||s||l){let _={expires:r,path:o,domain:a,secure:s,sameSite:l||"Lax",partitioned:u};this.set(e,i,_);return}let p=encodeURIComponent(e)+"="+encodeURIComponent(i)+";",g=r||{};if(g.expires)if(typeof g.expires=="number"){let _=new Date(new Date().getTime()+g.expires*1e3*60*60*24);p+="expires="+_.toUTCString()+";"}else p+="expires="+g.expires.toUTCString()+";";g.path&&(p+="path="+g.path+";"),g.domain&&(p+="domain="+g.domain+";"),g.secure===!1&&g.sameSite==="None"&&(g.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),g.secure&&(p+="secure;"),g.sameSite||(g.sameSite="Lax"),p+="sameSite="+g.sameSite+";",g.partitioned&&(p+="Partitioned;"),this.document.cookie=p}delete(e,i,r,o,a="Lax"){if(!this.documentIsAccessible)return;let s=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:s,path:i,domain:r,secure:o,sameSite:a})}deleteAll(e,i,r,o="Lax"){if(!this.documentIsAccessible)return;let a=this.getAll();for(let s in a)a.hasOwnProperty(s)&&this.delete(s,e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(ae(ni),ae(Oa))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hu(t,n){return t||n}function rs(t,n){return t[n]}var ad=void 0,ll=null,EY="",m4="function",rA="object",A0="prototype",s4="__proto__",B1="undefined",l4="constructor",IY="Symbol",ww="length",c4="name",Mc="call",oA="toString",DY="getOwnPropertyDescriptor";var qd=Hu(Object),TY=rs(qd,A0),jme=Hu(String),H1=rs(jme,A0),aA=Hu(Math),Hme=Hu(Array),p4=rs(Hme,A0),k0=rs(p4,"slice");var Rme="_polyfill",Pme="__nw21$polytype__";function Ua(t,n){try{return{v:t.apply(this,n)}}catch(e){return{e}}}function v9e(t,n,e){var i=Ua(t,e);return i.e?n:i.v}var uY;function h4(t){return function(n){return typeof n===t}}function zme(t){var n="[object "+t+"]";return function(e){return!!(e&&f4(e)===n)}}function f4(t){return TY[oA].call(t)}function no(t){return typeof t===B1||t===B1}function b9e(t){return t===ad}function At(t){return t===ll||no(t)}function AY(t){return t===ll||t===ad}function Ume(t){return!!t||t!==ad}function y9e(t){return!uY&&(uY=["string","number","boolean",B1,"symbol","bigint"]),t!==rA&&uY.indexOf(t)!==-1}var qi=h4("string"),zi=h4(m4);function Ks(t){return!t&&At(t)?!1:!!t&&typeof t===rA}var pn=rs(Hme,"isArray"),Gme=zme("Date"),Yh=h4("number"),sA=h4("boolean");var z1=zme("Error");function Lm(t){return!!(t&&t.then&&zi(t.then))}function Pv(t){return!(!t||v9e(function(){return!(t&&0+t)},!t))}function kY(){}function x9e(){return!1}var Ys=Hu(jme),C9e="[object Error]";function gi(t,n){var e=EY,i=TY[oA][Mc](t);i===C9e&&(t={stack:Ys(t.stack),message:Ys(t.message),name:Ys(t.name)});try{e=JSON.stringify(t,ll,n?typeof n=="number"?n:4:ad),e=(e?e.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):ll)||Ys(t)}catch(r){e=" - "+gi(r,n)}return i+": "+e}function ic(t){throw new Error(t)}function Wd(t){throw new TypeError(t)}function g4(t){AY(t)&&Wd("Cannot convert undefined or null to object")}function S9e(t){qi(t)||Wd("'"+gi(t)+"' is not a string")}function sd(t,n){return!!t&&TY.hasOwnProperty[Mc](t,n)}var w9e=Hu(rs(qd,DY),kY),Kh=Hu(rs(qd,"hasOwn"),E9e);function E9e(t,n){return g4(t),sd(t,n)||!!w9e(t,n)}function Tn(t,n,e){if(t&&(Ks(t)||zi(t))){for(var i in t)if(Kh(t,i)&&n[Mc](e||t,i,t[i])===-1)break}}function Jt(t,n,e){if(t)for(var i=t[ww]>>>0,r=0;r0&&zi(e[0])&&(n=e[0])}return n||setTimeout}function dGe(t){var n=zi(t)?t:lGe;if(!n){var e=v4().tmOut||[];pn(e)&&e.length>1&&zi(e[1])&&(n=e[1])}return n||clearTimeout}function lpe(t,n,e){var i=pn(n),r=i?n.length:0,o=cGe(r>0?n[0]:i?ad:n),a=dGe(r>1?n[1]:ad),s=e[0];e[0]=function(){l.dn(),j1(s,ad,k0[Mc](arguments))};var l=aGe(t,function(u){if(u){if(u.refresh)return u.refresh(),u;j1(a,ad,[u])}return j1(o,ad,e)},function(u){j1(a,ad,[u])});return l.h}function Qs(t,n){return lpe(!0,ad,k0[Mc](arguments))}function cpe(t,n){return lpe(!1,ad,k0[Mc](arguments))}var D4;var M4="constructor",F0="prototype",F4="function",R4="_dynInstFuncs",$Y="_isDynProxy",Mw="_dynClass",uGe="_dynCls$",qY="_dynInstChk",uA=qY,hpe="_dfOpts",dpe="_unknown_",KY="__proto__",T4="_dyn"+KY,upe="__dynProto$Gbl",UY="_dynInstProto",A4="useBaseInst",WY="setInstFuncs",XY=Object,mA=XY.getPrototypeOf,mpe=XY.getOwnPropertyNames,ppe=Xs(),YY=ppe[upe]||(ppe[upe]={o:(D4={},D4[WY]=!0,D4[A4]=!0,D4),n:1e3});function k4(t){return t&&(t===XY[F0]||t===Array[F0])}function QY(t){return k4(t)||t===Function[F0]}function q1(t){var n;if(t){if(mA)return mA(t);var e=t[KY]||t[F0]||(t[M4]?t[M4][F0]:null);n=t[T4]||e,sd(t,T4)||(delete t[UY],n=t[T4]=t[UY]||t[T4],t[UY]=e)}return n}function P4(t,n){var e=[];if(mpe)e=mpe(t);else for(var i in t)typeof i=="string"&&sd(t,i)&&e.push(i);if(e&&e.length>0)for(var r=0;r=0;e--)if(t[e]===n)return!0;return!1}function pGe(t,n,e,i){function r(l,u,p){var g=u[p];if(g[$Y]&&i){var _=l[R4]||{};_[uA]!==!1&&(g=(_[u[Mw]]||{})[p]||g)}return function(){return g.apply(l,arguments)}}var o=Qh(null);P4(e,function(l){o[l]=r(n,e,l)});for(var a=q1(t),s=[];a&&!QY(a)&&!JY(s,a);)P4(a,function(l){!o[l]&&ZY(a,l,!mA)&&(o[l]=r(n,a,l))}),s.push(a),a=q1(a);return o}function hGe(t,n,e,i){var r=null;if(t&&sd(e,Mw)){var o=t[R4]||Qh(null);if(r=(o[e[Mw]]||Qh(null))[n],r||N4("Missing ["+n+"] "+F4),!r[qY]&&o[uA]!==!1){for(var a=!sd(t,n),s=q1(t),l=[];a&&s&&!QY(s)&&!JY(l,s);){var u=s[n];if(u){a=u===i;break}l.push(s),s=q1(s)}try{a&&(t[n]=r),r[qY]=1}catch{o[uA]=!1}}}return r}function fGe(t,n,e){var i=n[t];return i===e&&(i=q1(n)[t]),typeof i!==F4&&N4("["+t+"] is not a "+F4),i}function gGe(t,n,e,i,r){function o(l,u){var p=function(){var g=hGe(this,u,l,p)||fGe(u,l,p);return g.apply(this,arguments)};return p[$Y]=1,p}if(!k4(t)){var a=e[R4]=e[R4]||Qh(null);if(!k4(a)){var s=a[n]=a[n]||Qh(null);a[uA]!==!1&&(a[uA]=!!r),k4(s)||P4(e,function(l){ZY(e,l,!1)&&e[l]!==i[l]&&(s[l]=e[l],delete e[l],(!sd(t,l)||t[l]&&!t[l][$Y])&&(t[l]=o(t,l)))})}}}function _Ge(t,n){if(mA){for(var e=[],i=q1(n);i&&!QY(i)&&!JY(e,i);){if(i===t)return!0;e.push(i),i=q1(i)}return!1}return!0}function GY(t,n){return sd(t,F0)?t.name||n||dpe:((t||{})[M4]||{}).name||n||dpe}function nr(t,n,e,i){sd(t,F0)||N4("theClass is an invalid class definition.");var r=t[F0];_Ge(r,n)||N4("["+GY(t)+"] not in hierarchy of ["+GY(n)+"]");var o=null;sd(r,Mw)?o=r[Mw]:(o=uGe+GY(t,"_")+"$"+YY.n,YY.n++,r[Mw]=o);var a=nr[hpe],s=!!a[A4];s&&i&&i[A4]!==void 0&&(s=!!i[A4]);var l=mGe(n),u=pGe(r,n,l,s);e(n,u);var p=!!mA&&!!a[WY];p&&i&&(p=!!i[WY]),gGe(r,o,n,l,p!==!1)}nr[hpe]=YY.o;var Fw="function",pA="object",W1="undefined",dd="prototype";var Rw=Object,eK=Rw[dd];var b9t=(Xs()||{}).Symbol,y9t=(Xs()||{}).Reflect;var fpe="hasOwnProperty",bGe=function(t){for(var n,e=1,i=arguments.length;e1&&(i.errors=r[1])}));var e=t||"One or more errors occurred.";throw Jt(n,function(i,r){e+=` `.concat(r," > ").concat(gi(i))}),new sK(e,n||[])}var H4="Promise";var fK="rejected";function Js(t,n){return z4(t,function(e){return n?n({status:"fulfilled",rejected:!1,value:e}):e},function(e){return n?n({status:fK,rejected:!0,reason:e}):e})}function z4(t,n,e,i){var r=t;try{if(Lm(t))(n||e)&&(r=t.then(n,e));else try{n&&(r=n(t))}catch(o){if(e)r=e(o);else throw o}}finally{i&&yGe(r,i)}return r}function yGe(t,n){var e=t;return n&&(Lm(t)?t.finally?e=t.finally(n):e=t.then(function(i){return n(),i},function(i){throw n(),i}):n()),e}var lK,cK,dK,_pe=!1;function xGe(t,n,e,i){lK=lK||{toString:function(){return"[[PromiseState]]"}},cK=cK||{toString:function(){return"[[PromiseResult]]"}},dK=dK||{toString:function(){return"[[PromiseIsHandled]]"}};var r={};r[lK]={get:n},r[cK]={get:e},r[dK]={get:i},MY(t,r)}var ype=["pending","resolving","resolved",fK],vpe="dispatchEvent",j4;function CGe(t){var n;return t&&t.createEvent&&(n=t.createEvent("Event")),!!n&&n.initEvent}function SGe(t,n,e,i){var r=xa();!j4&&(j4=Vm(!!Ua(CGe,[r]).v));var o=j4.v?r.createEvent("Event"):i?new Event(n):{};if(e&&e(o),j4.v&&o.initEvent(n,!1,!0),o&&t[vpe])t[vpe](o);else{var a=t["on"+n];if(a)a(o);else{var s=Lo("console");s&&(s.error||s.log)(n,gi(o))}}}var xpe="unhandledRejection",wGe=xpe.toLowerCase(),wA=[],EGe=0,IGe=10;var uK;function bpe(t){return zi(t)?t.toString():gi(t)}function Cpe(t,n,e){var i=kw(arguments,3),r=0,o=!1,a,s=[],l=EGe++,u=wA.length>0?wA[wA.length-1]:void 0,p=!1,g=null,_;function v(R,j){try{wA.push(l),p=!0,g&&g.cancel(),g=null;var K=t(function(F,V){s.push(function(){try{var Q=r===2?R:j,te=no(Q)?a:zi(Q)?Q(a):Q;Lm(te)?te.then(F,V):Q?F(te):r===3?V(te):F(te)}catch(re){V(re)}}),o&&C()},i);return K}finally{wA.pop()}}function y(R){return v(void 0,R)}function x(R){var j=R,K=R;return zi(R)&&(j=function(F){return R&&R(),F},K=function(F){throw R&&R(),F}),v(j,K)}function I(){return ype[r]}function C(){if(s.length>0){var R=s.slice();s=[],p=!0,g&&g.cancel(),g=null,n(R)}}function D(R,j){return function(K){if(r===j){if(R===2&&Lm(K)){r=1,K.then(D(2,1),D(3,1));return}r=R,o=!0,a=K,C(),!p&&R===3&&!g&&(g=Qs(A,IGe))}}}function A(){if(!p)if(p=!0,Jme())process.emit(xpe,a,_);else{var R=ul()||Xs();!uK&&(uK=Vm(Ua(Lo,[H4+"RejectionEvent"]).v)),SGe(R,wGe,function(j){return Un(j,"promise",{g:function(){return _}}),j.reason=a,j},!!uK.v)}}_={then:v,catch:y,finally:x},Om(_,"state",{get:I}),_pe&&xGe(_,I,function(){return f4(a)},function(){return p}),epe()&&(_[cA(11)]="IPromise");function M(){return"IPromise"+(_pe?"["+l+(no(u)?"":":"+u)+"]":"")+" "+I()+(o?" - "+bpe(a):"")}return _.toString=M,function(){zi(e)||Wd(H4+": executor is not a function - "+bpe(e));var j=D(3,0);try{e.call(_,D(2,0),j)}catch(K){j(K)}}(),_}function DGe(t){return function(n){var e=kw(arguments,1);return t(function(i,r){try{var o=[],a=1;w4(n,function(s,l){s&&(a++,z4(s,function(u){o[l]=u,--a===0&&i(o)},r))}),a--,a===0&&i(o)}catch(s){r(s)}},e)}}function TGe(t){return Vm(function(n){var e=kw(arguments,1);return t(function(i,r){var o=[],a=1;function s(l,u){a++,Js(l,function(p){p.rejected?o[u]={status:fK,reason:p.reason}:o[u]={status:"fulfilled",value:p.value},--a===0&&i(o)})}try{pn(n)?Jt(n,s):OY(n)?w4(n,s):Wd("Input is not an iterable"),a--,a===0&&i(o)}catch(l){r(l)}},e)})}function Spe(t){Jt(t,function(n){try{n()}catch{}})}function AGe(t){var n=Yh(t)?t:0;return function(e){Qs(function(){Spe(e)},n)}}function wpe(t,n){return Cpe(wpe,AGe(n),t,n)}var mK;function kGe(t,n){!mK&&(mK=Vm(Ua(Lo,[H4]).v||null));var e=mK.v;if(!e)return wpe(t);zi(t)||Wd(H4+": executor is not a function - "+gi(t));var i=0;function r(){return ype[i]}var o=new e(function(a,s){function l(p){i=2,a(p)}function u(p){i=3,s(p)}t(l,u)});return Om(o,"state",{get:r}),o}var pK;function Bw(t){return Cpe(Bw,Spe,t)}function Epe(t,n){return!pK&&(pK=TGe(Bw)),pK.v(t,n)}var hK;function ud(t,n){return!hK&&(hK=Vm(kGe)),hK.v.call(this,t,n)}var Ipe=DGe(ud);var Z9t=cA(11);var Um=void 0,ar="",Q1="channels",Is="core",U4="createPerfMgr",EA="disabled",L0="extensionConfig",Z1="extensions",$u="processTelemetry",J1="priority",jw="eventsSent",Hv="eventsDiscarded",Hw="eventsSendRequest",ng="perfEvent",G4="offlineEventsStored",$4="offlineBatchSent",q4="offlineBatchDrop",zw="getPerfMgr",W4="domain",Y4="path",Dpe="Not dynamic - ",Tpe="REDACTED",gK=["sig","Signature","AWSAccessKeyId","X-Goog-Signature"];var MGe="getPrototypeOf",FGe=/-([a-z])/g,RGe=/([^\w\d_$])/g,PGe=/^(\d+[\w\d_$])/,kpe=Object[MGe];function Np(t){return!At(t)}function ex(t){var n=t;return n&&qi(n)&&(n=n[ef](FGe,function(e,i){return i.toUpperCase()}),n=n[ef](RGe,"_"),n=n[ef](PGe,function(e,i){return"_"+i})),n}function Rl(t,n){return t&&n?Xo(t,n)!==-1:!1}function Op(t){return t&&t.toISOString()||""}function Mr(t){return z1(t)?t[Bm]:ar}function Qo(t,n,e,i,r){var o=e;return t&&(o=t[n],o!==e&&(!r||r(o))&&(!i||i(e))&&(o=e,t[n]=o)),o}function Pl(t,n,e){var i;return t?(i=t[n],!i&&At(i)&&(i=no(e)?{}:e,t[n]=i)):i=no(e)?{}:e,i}function Mpe(t,n){var e=null,i=null;return zi(t)?e=t:i=t,function(){var r=arguments;if(e&&(i=e()),i)return i[n][Fp](i,r)}}function _K(t,n,e){if(t&&n&&Ks(t)&&Ks(n)){var i=function(o){if(qi(o)){var a=n[o];zi(a)?(!e||e(o,!0,n,t))&&(t[o]=Mpe(n,o)):(!e||e(o,!1,n,t))&&(Kh(t,o)&&delete t[o],Un(t,o,{g:function(){return n[o]},s:function(s){n[o]=s}}))}};for(var r in n)i(r)}return t}function tx(t,n,e,i,r){t&&n&&e&&(r!==!1||no(t[n]))&&(t[n]=Mpe(e,i))}function zv(t,n,e,i){return t&&n&&Ks(t)&&pn(e)&&Jt(e,function(r){qi(r)&&tx(t,r,n,r,i)}),t}function vK(t){return function(){function n(){var e=this;t&&Tn(t,function(i,r){e[i]=r})}return n}()}function X4(t){return t&&Iw&&(t=Rw(Iw({},t))),t}function Q4(t,n,e,i,r,o){var a=arguments,s=a[0]||{},l=a[Vi],u=!1,p=1;for(l>0&&sA(s)&&(u=s,s=a[p]||{},p++),Ks(s)||(s={});p>>=0),AA=Bpe+t&Gv,kA=jpe-t&Gv,Hpe=!0}function XGe(){try{var t=dl()&2147483647;KGe((Math.random()*Vpe^t)+t)}catch{}}function MK(t){return t>0?rc(ox()/Gv*(t+1))>>>0:0}function ox(t){var n=0,e=IK()||DK();return e&&e.getRandomValues&&(n=e.getRandomValues(new Uint32Array(1))[0]&Gv),n===0&&$w()&&(Hpe||XGe(),n=zpe()&Gv),n===0&&(n=rc(Vpe*Math.random()|0)),t||(n>>>=0),n}function zpe(t){kA=36969*(kA&65535)+(kA>>16)&Gv,AA=18e3*(AA&65535)+(AA>>16)&Gv;var n=(kA<<16)+(AA&65535)>>>0&Gv|0;return t||(n>>>=0),n}function ax(t){t===void 0&&(t=22);for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=ox()>>>0,i=0,r=ar;r[Vi]>>=6,i===5&&(e=(ox()<<2&4294967295|e&3)>>>0,i=0);return r}var Upe="3.3.10",QGe="."+ax(6),ZGe=0;function Gpe(t){return t.nodeType===1||t.nodeType===9||!+t.nodeType}function JGe(t,n){var e=n[t.id];if(!e){e={};try{Gpe(n)&&Un(n,t.id,{e:!1,v:e})}catch{}}return e}function Ds(t,n){return n===void 0&&(n=!1),ex(t+ZGe+++(n?"."+Upe:ar)+QGe)}function J4(t){var n={id:Ds("_aiData-"+(t||ar)+"."+Upe),accept:function(e){return Gpe(e)},get:function(e,i,r,o){var a=e[n.id];return a?a[ex(i)]:(o&&(a=JGe(n,e),a[ex(i)]=r),r)},kill:function(e,i){if(e&&e[i])try{delete e[i]}catch{}}};return n}function eV(t){return t&&Ks(t)&&!pn(t)&&(t.isVal||t.fb||Kh(t,"v")||Kh(t,"mrg")||Kh(t,"ref")||t.set)}function $pe(t,n,e){var i,r=e.dfVal||Ume;if(n&&e.fb){var o=e.fb;pn(o)||(o=[o]);for(var a=0;a0&&gpe("Watcher error(s): ",y)}}function g(v){if(v&&v.h[Vi]>0){a||(a=[]),s||(s=Qs(function(){s=null,p()},0));for(var y=0;y0?Js(B0(t[0],n),function(){oV(kw(t,1),n,e)}):e(),i}var Xpe=500,PK="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function s$e(t,n,e){return!t&&At(t)?n:sA(t)?t:Ys(t)[Jh]()==="true"}function Xd(t){return{mrg:!0,v:t}}function aV(t,n){return{set:t,v:n}}function $v(t,n,e){return{fb:e,isVal:t,v:n}}function os(t,n){return{fb:n,set:s$e,v:!!t}}function NK(t){return{isVal:qi,v:Ys(t||ar)}}var OK=[jw,Hv,Hw,ng],lV=null,sV;function l$e(t,n){return function(){var e=arguments,i=LK(n);if(i){var r=i.listener;r&&r[t]&&r[t][Fp](r,e)}}}function c$e(){var t=Lo("Microsoft");return t&&(lV=t.ApplicationInsights),lV}function LK(t){var n=lV;return!n&&t.disableDbgExt!==!0&&(n=lV||c$e()),n?n.ChromeDbgExt:null}function Qpe(t){if(!sV){sV={};for(var n=0;n=y&&(u[M](A[ig]),i[R]=!0)}else r>=y&&u[M](A[ig]);p(y,A)}},u.debugToConsole=function(y){VK("debug",y),v("warning",y)},u[Pw]=function(y){VK("warn",y),v("warning",y)},u.errorToConsole=function(y){VK("error",y),v("error",y)},u.resetInternalMessageCount=function(){e=0,i={}},u.logInternalMessage=p,u[Rp]=function(y){l&&l.rm(),l=null};function p(y,x){if(!_()){var I=!0,C=m$e+x[Lw];if(i[C]?I=!1:i[C]=!0,I&&(y<=o&&(u.queue[Rn](x),e++,v(y===1?"error":"warn",x)),e===a)){var D="Internal events throttle limit per PageView reached for this app.",A=new j0(23,D,!1);u.queue[Rn](A),y===1?u.errorToConsole(D):u[Pw](D)}}}function g(y){return wo(hl(y,p$e,u).cfg,function(x){var I=x.cfg;r=I[V4],o=I.loggingLevelTelemetry,a=I.maxMessageLimit,s=I.enableDebug})}function _(){return e>=a}function v(y,x){var I=LK(n||{});I&&I[Gu]&&I[Gu](y,x)}})}return t.__ieDyn=1,t}();function BK(t){return t||new Yw}function Yt(t,n,e,i,r,o){o===void 0&&(o=!1),BK(t)[R0](n,e,i,r,o)}function Gm(t,n){BK(t)[Pw](n)}function jK(t,n,e){BK(t).logInternalMessage(n,e)}var HK,qv,ehe="toGMTString",the="toUTCString",GK="cookie",zK="expires",ihe="isCookieUseDisabled",OA="disableCookiesUsage",Wv="_ckMgr",cV=null,UK=null,nhe=null,ag,rhe={},mV={},f$e=(HK={cookieCfg:Xd((qv={},qv[W4]={fb:"cookieDomain",dfVal:Np},qv.path={fb:"cookiePath",dfVal:Np},qv.enabled=Um,qv.ignoreCookies=Um,qv.blockedCookies=Um,qv.disableCookieDefer=!1,qv)),cookieDomain:Um,cookiePath:Um},HK[OA]=Um,HK);function $K(){!ag&&(ag=FY(function(){return xa()}))}function g$e(t,n){var e=sx[Wv]||mV[Wv];return e||(e=sx[Wv]=sx(t,n),mV[Wv]=e),e}function dV(t){return t?t.isEnabled():!0}function dhe(t,n){return n&&t&&pn(t.ignoreCookies)?ha(t.ignoreCookies,n)!==-1:!1}function ohe(t,n){return n&&t&&pn(t.blockedCookies)&&ha(t.blockedCookies,n)!==-1?!0:dhe(t,n)}function ahe(t,n){var e=n[Vv];if(At(e)){var i=void 0;no(t[ihe])||(i=!t[ihe]),no(t[OA])||(i=!t[OA]),e=i}return e}function lx(t,n){var e;if(t)e=t.getCookieMgr();else if(n){var i=n.cookieCfg;i&&i[Wv]?e=i[Wv]:e=sx(n)}return e||(e=g$e(n,(t||{})[Da])),e}function sx(t,n){var e,i,r,o,a,s,l,u,p=[];function g(I){var C,D=(C={},C[Y4]=I||"/",C[zK]="Thu, 01 Jan 1970 00:00:01 GMT",C);return $w()||(D["max-age"]="0"),lhe(ar,D)}function _(I,C,D,A){var M={},R=go(I||ar),j=Xo(R,";");if(j!==-1&&(R=go(Dw(I,j)),M=uhe(nc(I,j+1))),Qo(M,W4,D||r,Pv,no),!At(C)){var K=$w();if(no(M[zK])){var F=dl(),V=F+C*1e3;if(V>0){var Q=new Date;Q.setTime(V),Qo(M,zK,she(Q,K?ehe:the)||she(Q,K?ehe:the)||ar,Pv)}}K||Qo(M,"max-age",ar+C,null,no)}var te=Rc();return te&&te.protocol==="https:"&&(Qo(M,"secure",null,null,no),UK===null&&(UK=!mhe((Fc()||{})[vA])),UK&&Qo(M,"SameSite","None",null,no)),Qo(M,Y4,A||i,null,no),lhe(R,M)}function v(I){if(p)for(var C=p[Vi]-1;C>=0;C--)p[C].n===I&&p[zu](C,1)}function y(){uV(n)&&p&&(Jt(p,function(I){ohe(e,I.n)||(I.o===0?l(I.n,I.v):I.o===1&&u(I.n,I.v))}),p=[])}t=hl(t||mV,null,n).cfg,o=wo(t,function(I){I.setDf(I.cfg,f$e),e=I.ref(I.cfg,"cookieCfg"),i=e[Y4]||"/",r=e[W4],e.disableCookieDefer?p=null:p===null&&(p=[]);var C=a;a=ahe(t,e)!==!1,s=e.getCookie||_$e,l=e.setCookie||che,u=e.delCookie||che,!C&&a&&p&&y()},n);var x={isEnabled:function(){var I=ahe(t,e)!==!1&&a&&uV(n),C=mV[Wv];return I&&C&&x!==C&&(I=dV(C)),I},setEnabled:function(I){e[Vv]=I,no(t[OA])||(t[OA]=!I)},set:function(I,C,D,A,M){var R=!1,j=ohe(e,I);if(!j){var K=_(C,D,A,M);dV(x)?(l(I,K),R=!0):p&&(v(I),p[Rn]({n:I,o:0,v:K}),R=!0)}return R},get:function(I){var C=ar,D=dhe(e,I);if(!D){if(dV(x))C=s(I);else if(p)for(var A=p[Vi]-1;A>=0;A--){var M=p[A];if(M.n===I){if(M.o===0){var R=M.v,j=Xo(R,";");C=j!==-1?go(Dw(R,j)):go(R)}break}}}return C},del:function(I,C){var D=!1;return dV(x)?D=x.purge(I,C):p&&(v(I),p[Rn]({n:I,o:1,v:g(C)}),D=!0),D},purge:function(I,C){var D=!1;return uV(n)&&(u(I,g(C)),D=!0),D},unload:function(I){o&&o.rm(),o=null,p=null}};return x[Wv]=x,x}function uV(t){if(cV===null){cV=!1,!ag&&$K();try{var n=ag.v||{};cV=n[GK]!==void 0}catch(e){Yt(t,2,68,"Cannot access document.cookie - "+Mr(e),{exception:gi(e)})}}return cV}function uhe(t){var n={};if(t&&t[Vi]){var e=go(t)[Pp](";");Jt(e,function(i){if(i=go(i||ar),i){var r=Xo(i,"=");r===-1?n[i]=null:n[go(Dw(i,r))]=go(nc(i,r+1))}})}return n}function she(t,n){return zi(t[n])?t[n]():null}function lhe(t,n){var e=t||ar;return Tn(n,function(i,r){e+="; "+i+(At(r)?ar:"="+r)}),e}function _$e(t){var n=ar;if(!ag&&$K(),ag.v){var e=ag.v[GK]||ar;nhe!==e&&(rhe=uhe(e),nhe=e),n=go(rhe[t]||ar)}return n}function che(t,n){!ag&&$K(),ag.v&&(ag.v[GK]=t+"="+n)}function mhe(t){return qi(t)?!!(Rl(t,"CPU iPhone OS 12")||Rl(t,"iPad; CPU OS 12")||Rl(t,"Macintosh; Intel Mac OS X 10_14")&&Rl(t,"Version/")&&Rl(t,"Safari")||Rl(t,"Macintosh; Intel Mac OS X 10_14")&&dA(t,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Rl(t,"Chrome/5")||Rl(t,"Chrome/6")||Rl(t,"UnrealEngine")&&!Rl(t,"Chrome")||Rl(t,"UCBrowser/12")||Rl(t,"UCBrowser/11")):!1}var v$e={perfEvtsSendAll:!1};function b$e(t){t.h=null;var n=t.cb;t.cb=[],Jt(n,function(e){Ua(e.fn,[e.arg])})}function Yv(t,n,e,i){Jt(t,function(r){r&&r[n]&&(e?(e.cb[Rn]({fn:i,arg:r}),e.h=e.h||Qs(b$e,0,e)):Ua(i,[r]))})}var phe=function(){function t(n){this.listeners=[];var e,i,r=[],o={h:null,cb:[]},a=hl(n,v$e);i=a[Zf](function(s){e=!!s.cfg.perfEvtsSendAll}),nr(t,this,function(s){Un(s,"listeners",{g:function(){return r}}),s[Ow]=function(l){r[Rn](l)},s[Nw]=function(l){for(var u=ha(r,l);u>-1;)r[zu](u,1),u=ha(r,l)},s[jw]=function(l){Yv(r,jw,o,function(u){u[jw](l)})},s[Hv]=function(l,u){Yv(r,Hv,o,function(p){p[Hv](l,u)})},s[Hw]=function(l,u){Yv(r,Hw,u?o:null,function(p){p[Hw](l,u)})},s[ng]=function(l){l&&(e||!l[xA]())&&Yv(r,ng,null,function(u){l.isAsync?Qs(function(){return u[ng](l)},0):u[ng](l)})},s[G4]=function(l){l&&l[Vi]&&Yv(r,G4,o,function(u){u[G4](l)})},s[$4]=function(l){l&&l[zm]&&Yv(r,$4,o,function(u){u[$4](l)})},s[q4]=function(l,u){if(l>0){var p=u||0;Yv(r,q4,o,function(g){g[q4](l,p)})}},s[Rp]=function(l){var u=function(){i&&i.rm(),i=null,r=[],o.h&&o.h[Jf](),o.h=null,o.cb=[]},p;if(Yv(r,"unload",null,function(g){var _=g[Rp](l);_&&(p||(p=[]),p[Rn](_))}),p)return ud(function(g){return Js(Ipe(p),function(){u(),g()})});u()}})}return t.__ieDyn=1,t}();var Kw="ctx",WK="ParentContextKey",LA="ChildrenContextKey",y$e=null,VA=function(){function t(n,e,i){var r=this;if(r.start=dl(),r[Bm]=n,r.isAsync=i,r[xA]=function(){return!1},zi(e)){var o;Un(r,"payload",{g:function(){return!o&&zi(e)&&(o=e(),e=null),o}})}r[K1]=function(a){return a?a===t[WK]||a===t[LA]?r[a]:(r[Kw]||{})[a]:null},r[nf]=function(a,s){if(a)if(a===t[WK])r[a]||(r[xA]=function(){return!0}),r[a]=s;else if(a===t[LA])r[a]=s;else{var l=r[Kw]=r[Kw]||{};l[a]=s}},r.complete=function(){var a=0,s=r[K1](t[LA]);if(pn(s))for(var l=0;l>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+(ox()&3)|0];return Xh(n,0,8)+Xh(n,9,4)+"4"+Xh(n,13,3)+r+Xh(n,16,3)+Xh(n,19,12)}var XK="00",x$e="ff",fhe="00000000000000000000000000000000",ghe="0000000000000000";function BA(t,n,e){return t&&t[Vi]===n&&t!==e?!!t.match(/^[\da-f]*$/i):!1}function hhe(t,n,e){return BA(t,n)?t:e}function C$e(t){(isNaN(t)||t<0||t>255)&&(t=1);for(var n=t.toString(16);n[Vi]<2;)n="0"+n;return n}function jA(t,n,e,i){return{version:BA(i,2,x$e)?i:XK,traceId:cx(t)?t:$m(),spanId:dx(n)?n:Dw($m(),16),traceFlags:e>=0&&e<=255?e:1}}function cx(t){return BA(t,32,fhe)}function dx(t){return BA(t,16,ghe)}function HA(t){if(t){var n=C$e(t[SA]);BA(n,2)||(n="01");var e=t[_A]||XK;return e!=="00"&&e!=="ff"&&(e=XK),"".concat(e.toLowerCase(),"-").concat(hhe(t.traceId,32,fhe).toLowerCase(),"-").concat(hhe(t.spanId,16,ghe).toLowerCase(),"-").concat(n.toLowerCase())}return""}function pV(t){var n=t.getElementsByTagName("script"),e=[];return Jt(n,function(i){var r=i[B4]("src");if(r){var o=i[B4]("crossorigin"),a=i.hasAttribute("async")===!0,s=i.hasAttribute("defer")===!0,l=i[B4]("referrerpolicy"),u={url:r};o&&(u.crossOrigin=o),a&&(u.async=a),s&&(u.defer=s),l&&(u.referrerPolicy=l),e[Rn](u)}}),e}var S$e=J4("plugin");function H0(t){return S$e.get(t,"state",{},!0)}function QK(t,n){for(var e=[],i=null,r=t[Hm](),o;r;){var a=r[Lv]();if(a){i&&i[jv]&&a[$u]&&i[jv](a),o=H0(a);var s=!!o[Uu];a[Uu]&&(s=a[Uu]()),s||e[Rn](a),i=a,r=r[Hm]()}}Jt(e,function(l){var u=t[Is]();l[P0](t.getCfg(),u,n,t[Hm]()),o=H0(l),!l[Is]&&!o[Is]&&(o[Is]=u),o[Uu]=!0,delete o[jm]})}function hV(t){return t.sort(function(n,e){var i=0;if(e){var r=e[$u];n[$u]?i=r?n[J1]-e[J1]:1:r&&(i=-1)}else i=n?1:-1;return i})}function _he(t){var n={};return{getName:function(){return n[Bm]},setName:function(e){t&&t.setName(e),n[Bm]=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),cx(e)&&(n.traceId=e)},getSpanId:function(){return n.spanId},setSpanId:function(e){t&&t.setSpanId(e),dx(e)&&(n.spanId=e)},getTraceFlags:function(){return n[SA]},setTraceFlags:function(e){t&&t.setTraceFlags(e),n[SA]=e}}}var w$e="TelemetryPluginChain",vhe="_hasRun",bhe="_getTelCtx",yhe=0;function E$e(t,n,e){for(;t;){if(t[Lv]()===e)return t;t=t[Hm]()}return Xv([e],n.config||{},n)}function ZK(t,n,e,i){var r=null,o=[];n||(n=hl({},null,e[Da])),i!==null&&(r=i?E$e(t,e,i):t);var a={_next:l,ctx:{core:function(){return e},diagLog:function(){return Qd(e,n.cfg)},getCfg:function(){return n.cfg},getExtCfg:p,getConfig:g,hasNext:function(){return!!r},getNext:function(){return r},setNext:function(v){r=v},iterate:_,onComplete:s}};function s(v,y){for(var x=[],I=2;I0&&(Jt(y,function(x){try{x.func.call(x.self,x.args)}catch(I){Yt(e[Da],2,73,"Unexpected Exception during onComplete - "+gi(I))}}),o=[])}return v}function u(v,y){var x=null,I=n.cfg;if(I&&v){var C=I[L0];!C&&y&&(C={}),I[L0]=C,C=n.ref(I,L0),C&&(x=C[v],!x&&y&&(x={}),C[v]=x,x=n.ref(C,v))}return x}function p(v,y){var x=u(v,!0);return y&&Tn(y,function(I,C){if(At(x[I])){var D=n.cfg[I];(D||!At(D))&&(x[I]=D)}MA(n,x,I,C)}),n.setDf(x,y)}function g(v,y,x){x===void 0&&(x=!1);var I,C=u(v,!1),D=n.cfg;return C&&(C[y]||!At(C[y]))?I=C[y]:(D[y]||!At(D[y]))&&(I=D[y]),I||!At(I)?I:x}function _(v){for(var y;y=a._next();){var x=y[Lv]();x&&v(x)}}return a}function fl(t,n,e,i){var r=hl(n),o=ZK(t,r,e,i),a=o.ctx;function s(u){var p=o._next();return p&&p[$u](u,a),!p}function l(u,p){return u===void 0&&(u=null),pn(u)&&(u=Xv(u,r.cfg,e,p)),fl(u||a[Hm](),r.cfg,e,p)}return a[Fl]=s,a[tg]=l,a}function Xw(t,n,e){var i=hl(n.config),r=ZK(t,i,n,e),o=r.ctx;function a(l){var u=r._next();return u&&u[Rp](o,l),!u}function s(l,u){return l===void 0&&(l=null),pn(l)&&(l=Xv(l,i.cfg,n,u)),Xw(l||o[Hm](),n,u)}return o[Fl]=a,o[tg]=s,o}function zA(t,n,e){var i=hl(n.config),r=ZK(t,i,n,e),o=r.ctx;function a(l){return o.iterate(function(u){zi(u[Y1])&&u[Y1](o,l)})}function s(l,u){return l===void 0&&(l=null),pn(l)&&(l=Xv(l,i.cfg,n,u)),zA(l||o[Hm](),n,u)}return o[Fl]=a,o[tg]=s,o}function Xv(t,n,e,i){var r=null,o=!i;if(pn(t)&&t[Vi]>0){var a=null;Jt(t,function(s){if(!o&&i===s&&(o=!0),o&&s&&zi(s[$u])){var l=I$e(s,n,e);r||(r=l),a&&a._setNext(l),a=l}})}return i&&!r?Xv([i],n,e):r}function I$e(t,n,e){var i=null,r=zi(t[$u]),o=zi(t[jv]),a;t?a=t[eg]+"-"+t[J1]+"-"+yhe++:a="Unknown-0-"+yhe++;var s={getPlugin:function(){return t},getNext:function(){return i},processTelemetry:p,unload:g,update:_,_id:a,_setNext:function(v){i=v}};function l(){var v;return t&&zi(t[bhe])&&(v=t[bhe]()),v||(v=fl(s,n,e)),v}function u(v,y,x,I,C){var D=!1,A=t?t[eg]:w$e,M=v[vhe];return M||(M=v[vhe]={}),v.setNext(i),t&&Kv(v[Is](),function(){return A+":"+x},function(){M[a]=!0;try{var R=i?i._id:ar;R&&(M[R]=!1),D=y(v)}catch(K){var j=i?M[i._id]:!0;j&&(D=!0),(!i||!j)&&Yt(v[Gu](),1,73,"Plugin ["+A+"] failed during "+x+" - "+gi(K)+", run flags: "+gi(M))}},I,C),D}function p(v,y){y=y||l();function x(I){if(!t||!r)return!1;var C=H0(t);return C[jm]||C[EA]?!1:(o&&t[jv](i),t[$u](v,I),!0)}u(y,x,"processTelemetry",function(){return{item:v}},!v.sync)||y[Fl](v)}function g(v,y){function x(){var I=!1;if(t){var C=H0(t),D=t[Is]||C[Is];t&&(!D||D===v.core())&&!C[jm]&&(C[Is]=null,C[jm]=!0,C[Uu]=!1,t[jm]&&t[jm](v,y)===!0&&(I=!0))}return I}u(v,x,"unload",function(){},y.isAsync)||v[Fl](y)}function _(v,y){function x(){var I=!1;if(t){var C=H0(t),D=t[Is]||C[Is];t&&(!D||D===v.core())&&!C[jm]&&t[Y1]&&t[Y1](v,y)===!0&&(I=!0)}return I}u(v,x,"update",function(){},!1)||v[Fl](y)}return cd(s)}function fV(){var t=[];function n(i){i&&t[Rn](i)}function e(i,r){Jt(t,function(o){try{o(i,r)}catch(a){Yt(i[Gu](),2,73,"Unexpected error calling unload handler - "+gi(a))}}),t=[]}return{add:n,run:e}}var gV,_V;function vV(){var t=[];function n(i){var r=t;t=[],Jt(r,function(o){try{(o.rm||o.remove).call(o)}catch(a){Yt(i,2,73,"Unloading:"+gi(a))}}),gV&&r[Vi]>gV&&(_V?_V("doUnload",r):Yt(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function e(i){i&&(M0(t,i),gV&&t[Vi]>gV&&(_V?_V("Add",t):Yt(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected.")))}return{run:n,add:e}}var JK,Qv="getPlugin",D$e=(JK={},JK[L0]={isVal:Np,v:{}},JK),qm=function(){function t(){var n=this,e,i,r,o,a;u(),nr(t,n,function(p){p[P0]=function(g,_,v,y){l(g,_,y),e=!0},p[jm]=function(g,_){var v=p[Is];if(!v||g&&v!==g[Is]())return;var y,x=!1,I=g||Xw(null,v,r&&r[Qv]?r[Qv]():r),C=_||{reason:0,isAsync:!1};function D(){x||(x=!0,o.run(I,_),a.run(I[Gu]()),y===!0&&I[Fl](C),u())}return!p[Bv]||p[Bv](I,C,D)!==!0?D():y=!0,y},p[Y1]=function(g,_){var v=p[Is];if(!v||g&&v!==g[Is]())return;var y,x=!1,I=g||zA(null,v,r&&r[Qv]?r[Qv]():r),C=_||{reason:0};function D(){x||(x=!0,l(I.getCfg(),I.core(),I[Hm]()))}return!p._doUpdate||p._doUpdate(I,C,D)!==!0?D():y=!0,y},tx(p,"_addUnloadCb",function(){return o},"add"),tx(p,"_addHook",function(){return a},"add"),Un(p,"_unloadHooks",{g:function(){return a}})}),n[Gu]=function(p){return s(p)[Gu]()},n[Uu]=function(){return e},n.setInitialized=function(p){e=p},n[jv]=function(p){r=p},n[Fl]=function(p,g){g?g[Fl](p):r&&zi(r[$u])&&r[$u](p,null)},n._getTelCtx=s;function s(p){p===void 0&&(p=null);var g=p;if(!g){var _=i||fl(null,{},n[Is]);r&&r[Qv]?g=_[tg](null,r[Qv]):g=_[tg](null,r)}return g}function l(p,g,_){hl(p,D$e,Qd(g)),!_&&g&&(_=g[L4]()[Hm]());var v=r;r&&r[Qv]&&(v=r[Qv]()),n[Is]=g,i=fl(_,p,g,v)}function u(){e=!1,n[Is]=null,i=null,r=null,a=vV(),o=fV()}}return t.__ieDyn=1,t}();function T$e(t,n,e){var i={id:n,fn:e};M0(t,i);var r={remove:function(){Jt(t,function(o,a){if(o.id===i.id)return t[zu](a,1),-1})}};return r}function A$e(t,n,e){for(var i=!1,r=t[Vi],o=0;o"}})}var iX=function(){function t(){var n,e,i,r,o,a,s,l,u,p,g,_,v,y,x,I,C,D,A,M,R,j,K,F,V,Q,te,re,O,B,q,G,X;nr(t,this,function(z){Te(),z._getDbgPlgTargets=function(){return[K,r]},z[Uu]=function(){return e},z.activeStatus=function(){return Q},z._setPendingStatus=function(){Q=3},z[P0]=function(Qe,Rt,ui,ei){v&&ic(Che),z[Uu]()&&ic("Core cannot be initialized more than once"),n=hl(Qe,eX,ui||z[Da],!1),Qe=n.cfg,bo(n[Zf](function(Ke){var nt=Ke.cfg;re=nt.initInMemoMaxSize||F$e,ee(nt);var tt=Ke.ref(Ke.cfg,L0);Tn(tt,function(ci){Ke.ref(tt,ci)})})),o=ei,A=V$e(n,D,o&&z[fA](),A),_i(),z[Da]=ui;var Be=Qe[Z1];if(p=[],p[Rn].apply(p,O4(O4([],Rt,!1),Be,!1)),g=Qe[Q1],Re(null),(!_||_[Vi]===0)&&ic("No "+Q1+" available"),g&&g[Vi]>1){var Je=z[Lv]("TeeChannelController");(!Je||!Je.plugin)&&Yt(i,1,28,"TeeChannel required")}L$e(Qe,j,i),j=null,e=!0,Q===Zh.ACTIVE&&ye()},z.getChannels=function(){var Qe=[];return _&&Jt(_,function(Rt){Qe[Rn](Rt)}),cd(Qe)},z.track=function(Qe){Kv(z[zw](),function(){return"AppInsightsCore:track"},function(){Qe===null&&(Dr(Qe),ic("Invalid telemetry item")),!Qe[Bm]&&At(Qe[Bm])&&(Dr(Qe),ic("telemetry name required")),Qe.iKey=Qe.iKey||R,Qe.time=Qe.time||Op(new Date),Qe.ver=Qe.ver||"4.0",!v&&z[Uu]()&&Q===Zh.ACTIVE?Ie()[Fl](Qe):Q!==Zh.INACTIVE&&r[Vi]<=re&&r[Rn](Qe)},function(){return{item:Qe}},!Qe.sync)},z[L4]=Ie,z[fA]=function(){return o||(o=new phe(n.cfg),z[k$e]=o),o},z[Ow]=function(Qe){z.getNotifyMgr()[Ow](Qe)},z[Nw]=function(Qe){o&&o[Nw](Qe)},z.getCookieMgr=function(){return l||(l=sx(n.cfg,z[Da])),l},z.setCookieMgr=function(Qe){l!==Qe&&(B0(l,!1),l=Qe)},z[zw]=function(){return a||s||KK()},z.setPerfMgr=function(Qe){a=Qe},z.eventCnt=function(){return r[Vi]},z.releaseQueue=function(){if(e&&r[Vi]>0){var Qe=r;r=[],Q===2?Jt(Qe,function(Rt){Rt.iKey=Rt.iKey||R,Ie()[Fl](Rt)}):Yt(i,2,20,"core init status is not active")}},z.pollInternalLogs=function(Qe){return x=Qe||null,X=!1,q&&q[Jf](),se(!0)};function ee(Qe){var Rt=Qe.instrumentationKey,ui=Qe.endpointUrl;if(Q!==3){if(At(Rt)){R=null,Q=Zh.INACTIVE;var ei="Please provide instrumentation key";e?(Yt(i,1,100,ei),ye()):ic(ei);return}var Be=[];Lm(Rt)?(Be[Rn](Rt),R=null):R=Rt,Lm(ui)?(Be[Rn](ui),te=null):te=ui,Be[Vi]?pe(Qe,Be):me()}}function pe(Qe,Rt){O=!1,Q=3;var ui=Np(Qe.initTimeOut)?Qe.initTimeOut:R$e,ei=Epe(Rt);B&&B[Jf](),B=Qs(function(){B=null,O||me()},ui),Js(ei,function(Be){try{if(O)return;if(!Be.rejected){var Je=Be[N0];if(Je&&Je[Vi]){var Ke=Je[0];if(R=Ke&&Ke[N0],Je[Vi]>1){var nt=Je[1];te=nt&&nt[N0]}}R&&(Qe.instrumentationKey=R,Qe.endpointUrl=te)}me()}catch{O||me()}})}function me(){O=!0,At(R)?(Q=Zh.INACTIVE,Yt(i,1,112,"ikey can't be resolved from promises")):Q=Zh.ACTIVE,ye()}function ye(){e&&(z.releaseQueue(),z.pollInternalLogs())}function se(Qe){if((!q||!q[Vv])&&!X){var Rt=Qe||i&&i.queue[Vi]>0;Rt&&(G||(G=!0,bo(n[Zf](function(ui){var ei=ui.cfg.diagnosticLogInterval;(!ei||!(ei>0))&&(ei=1e4);var Be=!1;q&&(Be=q[Vv],q[Jf]()),q=cpe(ii,ei),q.unref(),q[Vv]=Be}))),q[Vv]=!0)}return q}z[nK]=function(){X=!0,q&&q[Jf](),ii()},zv(z,function(){return y},["addTelemetryInitializer"]),z[Rp]=function(Qe,Rt,ui){Qe===void 0&&(Qe=!0),e||ic(M$e),v&&ic(Che);var ei={reason:50,isAsync:Qe,flushComplete:!1},Be;Qe&&!Rt&&(Be=ud(function(nt){Rt=nt}));var Je=Xw(It(),z);Je[gA](function(){D.run(z[Da]),oV([l,o,i],Qe,function(){Te(),Rt&&Rt(ei)})},z);function Ke(nt){ei.flushComplete=nt,v=!0,C.run(Je,ei),z[nK](),Je[Fl](ei)}return ii(),Ri(Qe,Ke,6,ui)||Ke(!1),Be},z[Lv]=et,z.addPlugin=function(Qe,Rt,ui,ei){if(!Qe){ei&&ei(!1),Yi(Ehe);return}var Be=et(Qe[eg]);if(Be&&!Rt){ei&&ei(!1),Yi("Plugin ["+Qe[eg]+"] is already loaded!");return}var Je={reason:16};function Ke(ci){p[Rn](Qe),Je.added=[Qe],Re(Je),ei&&ei(!0)}if(Be){var nt=[Be.plugin],tt={reason:2,isAsync:!!ui};kt(nt,tt,function(ci){ci?(Je.removed=nt,Je.reason|=32,Ke(!0)):ei&&ei(!1)})}else Ke(!1)},z.updateCfg=function(Qe,Rt){Rt===void 0&&(Rt=!0);var ui;if(z[Uu]()){ui={reason:1,cfg:n.cfg,oldCfg:BY({},n.cfg),newConfig:BY({},Qe),merge:Rt},Qe=ui.newConfig;var ei=n.cfg;Qe[Z1]=ei[Z1],Qe[Q1]=ei[Q1]}n._block(function(Be){var Je=Be.cfg;tX(Be,Je,Qe,Rt),Rt||Tn(Je,function(Ke){Kh(Qe,Ke)||Be.set(Je,Ke,Um)}),Be.setDf(Je,eX)},!0),n.notify(),ui&&Ht(ui)},z.evtNamespace=function(){return I},z.flush=Ri,z.getTraceCtx=function(Qe){return M||(M=_he()),M},z.setTraceCtx=function(Qe){M=Qe||null},z.addUnloadHook=bo,tx(z,"addUnloadCb",function(){return C},"add"),z.onCfgChange=function(Qe){var Rt;return e?Rt=wo(n.cfg,Qe,z[Da]):Rt=O$e(j,Qe),B$e(Rt)},z.getWParam=function(){return lA()||n.cfg.enableWParam?0:-1};function de(){var Qe={};F=[];var Rt=function(ui){ui&&Jt(ui,function(ei){if(ei[eg]&&ei[_A]&&!Qe[ei.identifier]){var Be=ei[eg]+"="+ei[_A];F[Rn](Be),Qe[ei.identifier]=ei}})};Rt(_),g&&Jt(g,function(ui){Rt(ui)}),Rt(p)}function Te(){e=!1,n=hl({},eX,z[Da]),n.cfg[V4]=1,Un(z,"config",{g:function(){return n.cfg},s:function(Rt){z.updateCfg(Rt,!1)}}),Un(z,"pluginVersionStringArr",{g:function(){return F||de(),F}}),Un(z,"pluginVersionString",{g:function(){return V||(F||de(),V=F.join(";")),V||ar}}),Un(z,"logger",{g:function(){return i||(i=new Yw(n.cfg),n[Da]=i),i},s:function(Rt){n[Da]=Rt,i!==Rt&&(B0(i,!1),i=Rt)}}),z[Da]=new Yw(n.cfg),K=[];var Qe=z.config[Z1]||[];Qe.splice(0,Qe[Vi]),M0(Qe,K),y=new xhe,r=[],B0(o,!1),o=null,a=null,s=null,B0(l,!1),l=null,u=null,p=[],g=null,_=null,v=!1,x=null,I=Ds("AIBaseCore",!0),C=fV(),M=null,R=null,D=vV(),j=[],V=null,F=null,X=!1,q=null,G=!1,Q=0,te=null,re=null,O=!1,B=null}function Ie(){var Qe=fl(It(),n.cfg,z);return Qe[gA](se),Qe}function Re(Qe){var Rt=N$e(z[Da],Xpe,p);u=null,V=null,F=null,_=(g||[])[0]||[],_=hV(M0(_,Rt[Q1]));var ui=M0(hV(Rt[Is]),_);K=cd(ui);var ei=z.config[Z1]||[];ei.splice(0,ei[Vi]),M0(ei,K);var Be=Ie();_&&_[Vi]>0&&QK(Be[tg](_),ui),QK(Be,ui),Qe&&Ht(Qe)}function et(Qe){var Rt=null,ui=null,ei=[];return Jt(K,function(Be){if(Be[eg]===Qe&&Be!==y)return ui=Be,-1;Be.getChannel&&ei[Rn](Be)}),!ui&&ei[Vi]>0&&Jt(ei,function(Be){if(ui=Be.getChannel(Qe),!ui)return-1}),ui&&(Rt={plugin:ui,setEnabled:function(Be){H0(ui)[EA]=!Be},isEnabled:function(){var Be=H0(ui);return!Be[jm]&&!Be[EA]},remove:function(Be,Je){Be===void 0&&(Be=!0);var Ke=[ui],nt={reason:1,isAsync:Be};kt(Ke,nt,function(tt){tt&&Re({reason:32,removed:Ke}),Je&&Je(tt)})}}),Rt}function It(){if(!u){var Qe=(K||[]).slice();ha(Qe,y)===-1&&Qe[Rn](y),u=Xv(hV(Qe),n.cfg,z)}return u}function kt(Qe,Rt,ui){if(Qe&&Qe[Vi]>0){var ei=Xv(Qe,n.cfg,z),Be=Xw(ei,z);Be[gA](function(){var Je=!1,Ke=[];Jt(p,function(tt,ci){She(tt,Qe)?Je=!0:Ke[Rn](tt)}),p=Ke,V=null,F=null;var nt=[];g&&(Jt(g,function(tt,ci){var ai=[];Jt(tt,function(En){She(En,Qe)?Je=!0:ai[Rn](En)}),nt[Rn](ai)}),g=nt),ui&&ui(Je),se()}),Be[Fl](Rt)}else ui(!1)}function ii(){if(i&&i.queue){var Qe=i.queue.slice(0);i.queue[Vi]=0,Jt(Qe,function(Rt){var ui={name:x||"InternalMessageId: "+Rt[Lw],iKey:R,time:Op(new Date),baseType:j0.dataType,baseData:{message:Rt[ig]}};z.track(ui)})}}function Ri(Qe,Rt,ui,ei){var Be=1,Je=!1,Ke=null;ei=ei||5e3;function nt(){Be--,Je&&Be===0&&(Ke&&Ke[Jf](),Ke=null,Rt&&Rt(Je),Rt=null)}if(_&&_[Vi]>0){var tt=Ie()[tg](_);tt.iterate(function(ci){if(ci.flush){Be++;var ai=!1;ci.flush(Qe,function(){ai=!0,nt()},ui)||ai||(Qe&&Ke==null?Ke=Qs(function(){Ke=null,nt()},ei):nt())}})}return Je=!0,nt(),!0}function _i(){var Qe;bo(n[Zf](function(Rt){var ui=Rt.cfg.enablePerfMgr;if(ui){var ei=Rt.cfg[U4];(Qe!==ei||!Qe)&&(ei||(ei=P$e),Pl(Rt.cfg,U4,ei),Qe=ei,s=null),!a&&!s&&zi(ei)&&(s=ei(z,z[fA]()))}else s=null,Qe=null}))}function Ht(Qe){var Rt=zA(It(),z);Rt[gA](se),(!z._updateHook||z._updateHook(Rt,Qe)!==!0)&&Rt[Fl](Qe)}function Yi(Qe){var Rt=z[Da];Rt?(Yt(Rt,2,73,Qe),se()):ic(Qe)}function Dr(Qe){var Rt=z[fA]();Rt&&Rt[Hv]([Qe],2)}function bo(Qe){D.add(Qe)}})}return t.__ieDyn=1,t}();function UA(t,n){try{if(t&&t!==""){var e=pl().parse(t);if(e&&e[aK]&&e[aK]>=e.itemsAccepted&&e.itemsReceived-e.itemsAccepted===e.errors[Vi])return e}}catch(i){Yt(n,1,43,"Cannot parse the response. "+(i[Bm]||gi(i)),{response:t})}return null}var rf="",j$e="NoResponseBody",Ihe="&"+j$e+"=true",nX="POST",rX=function(){function t(){var n=0,e,i,r,o,a,s,l,u,p,g,_,v,y,x;nr(t,this,function(I,C){var D=!0;O(),I[P0]=function(B,q){r=q,i&&Yt(r,1,28,"Sender is already initialized"),I.SetConfig(B),i=!0},I._getDbgPlgTargets=function(){return[i,o,s,e]},I.SetConfig=function(B){try{if(a=B.senderOnCompleteCallBack||{},s=!!B.disableCredentials,l=B.fetchCredentials,o=!!B.isOneDs,e=!!B.enableSendPromise,p=!!B.disableXhr,g=!!B.disableBeacon,_=!!B.disableBeaconSync,x=B.timeWrapper,y=!!B.addNoResponse,v=!!B.disableFetchKeepAlive,u={sendPOST:Q},o||(D=!1),s){var q=Rc();q&&q.protocol&&q.protocol[Jh]()==="file:"&&(D=!1)}return!0}catch{}return!1},I.getSyncFetchPayload=function(){return n},I.getSenderInst=function(B,q){return B&&B[Vi]?j(B,q):null},I.getFallbackInst=function(){return u},I[Bv]=function(B,q){O()},I.preparePayload=function(B,q,G,X){if(!q||X||!G[zm]){B(G);return}try{var z=Lo("CompressionStream");if(!zi(z)){B(G);return}var ee=new ReadableStream({start:function(Te){Te.enqueue(qi(G[zm])?new TextEncoder().encode(G[zm]):G[zm]),Te.close()}}),pe=ee.pipeThrough(new z("gzip")),me=pe.getReader(),ye=[],se=0,de=!1;return Js(me.read(),function Te(Ie){if(!de&&!Ie.rejected){var Re=Ie[N0];if(!Re.done)return ye[Rn](Re[N0]),se+=Re.value[Vi],Js(me.read(),Te);for(var et=new Uint8Array(se),It=0,kt=0,ii=ye;kt0&&(Jt(ld(et),function(_i){de.append(_i,et[_i])}),It[CA]=de),l?It.credentials=l:D&&o&&(It.credentials="include"),G&&(It.keepalive=!0,n+=Te,o?B._sendReason===2&&(Ie=!0,y&&(z+=Ihe)):Ie=!0);var kt=new Request(z,It);try{kt[PK]=!0}catch{}if(!G&&e&&(me=ud(function(_i,Ht){ye=_i,se=Ht})),!z){R(q),ye&&ye(!1);return}function ii(_i,Ht){Ht?K(q,o?0:Ht,{},o?rf:_i):K(q,o?0:400,{},o?rf:_i)}function Ri(_i,Ht,Yi){var Dr=_i[tf],bo=a.fetchOnComplete;bo&&zi(bo)?bo(_i,q,Yi||rf,Ht):K(q,Dr,{},Yi||rf)}try{Js(fetch(o?z:kt,o?It:null),function(_i){if(G&&(n-=Te,Te=0),!Re)if(Re=!0,_i.rejected)ii(_i.reason&&_i.reason[ig],499),se&&se(_i.reason);else{var Ht=_i[N0];try{!o&&!Ht.ok?(Ht[tf]?ii(Ht.statusText,Ht[tf]):ii(Ht.statusText,499),ye&&ye(!1)):o&&!Ht.body?(Ri(Ht,null,rf),ye&&ye(!0)):Js(Ht.text(),function(Yi){Ri(Ht,B,Yi[N0]),ye&&ye(!0)})}catch(Yi){Ht&&Ht[tf]?ii(gi(Yi),Ht[tf]):ii(gi(Yi),499),se&&se(Yi)}}})}catch(_i){Re||(ii(gi(_i),499),se&&se(_i))}return Ie&&!Re&&(Re=!0,K(q,200,{}),ye&&ye(!0)),o&&!Re&&B[X1]>0&&x&&x.set(function(){Re||(Re=!0,K(q,500,{}),ye&&ye(!0))},B[X1]),me}function re(B,q,G){var X=ul(),z=new XDomainRequest,ee=B[zm];z.onload=function(){var de=Uw(z),Te=a&&a.xdrOnComplete;Te&&zi(Te)?Te(z,q,B):K(q,200,{},de)},z.onerror=function(){K(q,400,{},o?rf:IA(z))},z.ontimeout=function(){K(q,500,{})},z.onprogress=function(){};var pe=X&&X.location&&X.location.protocol||"",me=B[Vw];if(!me){R(q);return}if(!o&&me.lastIndexOf(pe,0)!==0){var ye="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";Yt(r,2,40,". "+ye),M(ye,q);return}var se=o?me:me[ef](/^(https?:)/,"");z.open(nX,se),B[X1]&&(z[X1]=B[X1]),z.send(ee),o&&G?x&&x.set(function(){z.send(ee)},0):z.send(ee)}function O(){n=0,i=!1,e=!1,r=null,o=null,a=null,s=null,l=null,u=null,p=!1,g=!1,_=!1,v=!1,y=!1,x=null}})}return t.__ieDyn=1,t}();var Rhe="on",Dhe="attachEvent",The="addEventListener",Ahe="detachEvent",khe="removeEventListener",oX="events",aX="visibilitychange",CV="pagehide";var Phe="unload",Nhe="beforeunload",Ohe=Ds("aiEvtPageHide"),vWt=Ds("aiEvtPageShow"),H$e=/\.[\.]+/g,z$e=/[\.]+$/,U$e=1,bV=J4("events"),G$e=/^([^.]*)(?:\.(.+)|)/;function Mhe(t){return t&&t[ef]?t[ef](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,ar):t}function sX(t,n){if(n){var e=ar;pn(n)?(e=ar,Jt(n,function(r){r=Mhe(r),r&&(r[0]!=="."&&(r="."+r),e+=r)})):e=Mhe(n),e&&(e[0]!=="."&&(e="."+e),t=(t||ar)+e)}var i=G$e.exec(t||ar)||[];return{type:i[1],ns:(i[2]||ar).replace(H$e,".").replace(z$e,ar)[Pp](".").sort().join(".")}}function Lhe(t,n,e){e===void 0&&(e=!0);var i=bV.get(t,oX,{},e),r=i[n];return r||(r=i[n]=[]),r}function Vhe(t,n,e,i){t&&n&&n[O0]&&(t[khe]?t[khe](n[O0],e,i):t[Ahe]&&t[Ahe](Rhe+n[O0],e))}function $$e(t,n,e,i){var r=!1;return t&&n&&n[O0]&&e&&(t[The]?(t[The](n[O0],e,i),r=!0):t[Dhe]&&(t[Dhe](Rhe+n[O0],e),r=!0)),r}function Fhe(t,n,e,i){for(var r=n[Vi];r--;){var o=n[r];o&&(!e.ns||e.ns===o[rK].ns)&&(!i||i(o))&&(Vhe(t,o[rK],o.handler,o.capture),n[zu](r,1))}}function q$e(t,n,e){if(n[O0])Fhe(t,Lhe(t,n[O0]),n,e);else{var i=bV.get(t,oX,{});Tn(i,function(r,o){Fhe(t,o,n,e)}),ld(i)[Vi]===0&&bV.kill(t,oX)}}function Zd(t,n){var e;return n?(pn(n)?e=[t].concat(n):e=[t,n],e=sX("xx",e).ns[Pp](".")):e=t,e}function qu(t,n,e,i,r){r===void 0&&(r=!1);var o=!1;if(t)try{var a=sX(n,i);if(o=$$e(t,a,e,r),o&&bV.accept(t)){var s={guid:U$e++,evtName:a,handler:e,capture:r};Lhe(t,a.type)[Rn](s)}}catch{}return o}function sg(t,n,e,i,r){if(r===void 0&&(r=!1),t)try{var o=sX(n,i),a=!1;q$e(t,o,function(s){return o.ns&&!e||s.handler===e?(a=!0,!0):!1}),a||Vhe(t,o,e,r)}catch{}}function Bhe(t,n,e){var i=!1,r=ul();r&&(i=qu(r,t,n,e),i=qu(r.body,t,n,e)||i);var o=xa();return o&&(i=qu(o,t,n,e)||i),i}function jhe(t,n,e){var i=ul();i&&(sg(i,t,n,e),sg(i.body,t,n,e));var r=xa();r&&sg(r,t,n,e)}function yV(t,n,e,i){var r=!1;return n&&t&&t[Vi]>0&&Jt(t,function(o){o&&(!e||ha(e,o)===-1)&&(r=Bhe(o,n,i)||r)}),r}function Hhe(t,n,e,i){var r=!1;return n&&t&&pn(t)&&(r=yV(t,n,e,i),!r&&e&&e[Vi]>0&&(r=yV(t,n,null,i))),r}function xV(t,n,e){t&&pn(t)&&Jt(t,function(i){i&&jhe(i,n,e)})}function lX(t,n,e){return Hhe([Nhe,Phe,CV],t,n,e)}function cX(t,n){xV([Nhe,Phe,CV],t,n)}function GA(t,n,e){function i(a){var s=xa();t&&s&&s.visibilityState==="hidden"&&t(a)}var r=Zd(Ohe,e),o=yV([CV],t,n,r);return(!n||ha(n,aX)===-1)&&(o=yV([aX],i,n,r)||o),!o&&n&&(o=GA(t,null,e)),o}function dX(t,n){var e=Zd(Ohe,n);xV([CV],t,e),xV([aX],null,e)}var zhe="_aiHooks",Uhe=["req","rsp","hkErr","fnErr"];function mX(t,n){if(t)for(var e=0;e=0&&r<=2&&mX(t,function(o,a){var s=o.cbks,l=s[Uhe[r]];if(l){n.ctx=function(){var g=i[a]=i[a]||{};return g};try{l[Fp](n.inst,e)}catch(g){var u=n.err;try{var p=s[Uhe[2]];p&&(n.err=g,p[Fp](n.inst,e))}catch{}finally{n.err=u}}}})}function W$e(t){return function(){var n=this,e=arguments,i=t.h,r={name:t.n,inst:n,ctx:null,set:l},o=[],a=s([r],e);r.evt=Lo("event");function s(p,g){return mX(g,function(_){p[Rn](_)}),p}function l(p,g){e=s([],e),e[p]=g,a=s([r],e)}uX(i,r,a,o,0);var u=t.f;if(u)try{r.rslt=u[Fp](n,e)}catch(p){throw r.err=p,uX(i,r,a,o,3),p}return uX(i,r,a,o,1),r.rslt}}function pX(t,n,e,i){var r=null;return t&&(sd(t,n)?r=t:e&&(r=pX(kpe(t),n,i,!1))),r}function hX(t,n,e){return t?$A(t[dd],n,e,!1):null}function Ghe(t,n,e,i){var r=e&&e[zhe];if(!r){r={i:0,n,f:e,h:[]};var o=W$e(r);o[zhe]=r,t[n]=o}var a={id:r.i,cbks:i,rm:function(){var s=this.id;mX(r.h,function(l,u){if(l.id===s)return r.h[zu](u,1),1})}};return r.i++,r.h[Rn](a),a}function $A(t,n,e,i,r){if(i===void 0&&(i=!0),t&&n&&e){var o=pX(t,n,i,r);if(o){var a=o[n];if(typeof a===Fw)return Ghe(o,n,a,e)}}return null}function Qw(t,n,e,i,r){if(t&&n&&e){var o=pX(t,n,i,r)||t;if(o)return Ghe(o,n,o[n],e)}return null}var lg="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",qA="sampleRate",WA="ProcessLegacy",SV="http.method",ux="https://dc.services.visualstudio.com",cg="/v2/track",gl="not_specified",wV="iKey";var Ho=iK({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});var z0="split",Pn="length",U0="toLowerCase",Jv="ingestionendpoint",eb="toString",EV="removeItem",tb="message",ib="count",IV="preTriggerDate",DV="getUTCDate",mx="stringify",YA="pathname",px="match",fX="correlationHeaderExcludePatterns",ac="name";var Pc="properties",md="measurements",KA="sizeInBytes",XA="typeName",Zw="exceptions",hx="severityLevel",TV="problemGroup",fx="parsedStack",QA="hasFullStack",ZA="assembly",dg="fileName",gx="line",Jw="aiDataContract",_x="duration";function gX(t,n,e){var i=n[Pn],r=$he(t,n);if(r[Pn]!==i){for(var o=0,a=r;e[a]!==void 0;)o++,a=nc(r,0,147)+qhe(o);r=a}return r}function $he(t,n){var e;return n&&(n=go(Ys(n)),n[Pn]>150&&(e=nc(n,0,150),Yt(t,2,57,"name is too long. It has been truncated to 150 characters.",{name:n},!0))),e||n}function ko(t,n,e){e===void 0&&(e=1024);var i;return n&&(e=e||1024,n=go(Ys(n)),n[Pn]>e&&(i=nc(n,0,e),Yt(t,2,61,"string value is too long. It has been truncated to "+e+" characters.",{value:n},!0))),i||n}function G0(t,n,e){return qi(n)&&(n=Kd(n,e)),bX(t,n,2048,66)}function JA(t,n){var e;return n&&n[Pn]>32768&&(e=nc(n,0,32768),Yt(t,2,56,"message is too long, it has been truncated to 32768 characters.",{message:n},!0)),e||n}function _X(t,n){var e;if(n){var i=""+n;i[Pn]>32768&&(e=nc(i,0,32768),Yt(t,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:n},!0))}return e||n}function Jd(t,n){if(n){var e={};Tn(n,function(i,r){if(Ks(r)&&rg())try{r=pl()[mx](r)}catch(o){Yt(t,2,49,"custom property is not valid",{exception:o},!0)}r=ko(t,r,8192),i=gX(t,i,e),e[i]=r}),n=e}return n}function eu(t,n){if(n){var e={};Tn(n,function(i,r){i=gX(t,i,e),e[i]=r}),n=e}return n}function vX(t,n){return n&&bX(t,n,128,69)[eb]()}function bX(t,n,e,i){var r;return n&&(n=go(Ys(n)),n[Pn]>e&&(r=nc(n,0,e),Yt(t,2,i,"input is too long, it has been truncated to "+e+" characters.",{data:n},!0))),r||n}function qhe(t){var n="00"+t;return Xh(n,n[Pn]-3)}var Whe=xa()||{},Yhe=0,Z$e=[null,null,null,null,null];function ek(t){var n=Yhe,e=Z$e,i=e[n];return Whe.createElement?e[n]||(i=e[n]=Whe.createElement("a")):i={host:Khe(t,!0)},i.href=t,n++,n>=e[Pn]&&(n=0),Yhe=n,i}function yX(t){var n,e=ek(t);return e&&(n=e.href),n}function xX(t,n){return t?t.toUpperCase()+" "+n:n}function Khe(t,n){var e=AV(t,n)||"";if(e){var i=e[px](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Pn]>3&&qi(i[2])&&i[2][Pn]>0)return i[2]+(i[3]||"")}return e}function AV(t,n){var e=null;if(t){var i=t[px](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(i!=null&&i[Pn]>2&&qi(i[2])&&i[2][Pn]>0&&(e=i[2]||"",n&&i[Pn]>2)){var r=(i[1]||"")[U0](),o=i[3]||"";(r==="http"&&o===":80"||r==="https"&&o===":443")&&(o=""),e+=o}}return e}var J$e=[ux+cg,"https://breeze.aimon.applicationinsights.io"+cg,"https://dc-int.services.visualstudio.com"+cg],eqe="cid-v1:";function eE(t){return ha(J$e,t[U0]())!==-1}function kV(t,n,e){if(!n||t&&t.disableCorrelationHeaders)return!1;if(t&&t[fX]){for(var i=0;i0}function MV(t){if(t){var n=Xhe(t,Ho[1]);if(n&&n!==eqe)return n}}function Xhe(t,n){if(t)for(var e=t[z0](","),i=0;i0){var s=ek(n);if(r=s.host,!o)if(s[YA]!=null){var l=s.pathname[Pn]===0?"/":s[YA];l.charAt(0)!=="/"&&(l="/"+l),a=s[YA],o=ko(t,e?e+" "+l:l)}else o=ko(t,n)}else r=i,o=i;return{target:r,name:o,data:a}}function tE(){var t=Yd();if(t&&t.now&&t.timing){var n=t.now()+t.timing.navigationStart;if(n>0)return n}return dl()}function Nl(t,n){var e=null;return t!==0&&n!==0&&!At(t)&&!At(n)&&(e=n-t),e}function vx(t,n){var e=t||{};return{getName:function(){return e[ac]},setName:function(i){n&&n.setName(i),e[ac]=i},getTraceId:function(){return e.traceID},setTraceId:function(i){n&&n.setTraceId(i),cx(i)&&(e.traceID=i)},getSpanId:function(){return e.parentID},setSpanId:function(i){n&&n.setSpanId(i),dx(i)&&(e.parentID=i)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(i){n&&n.setTraceFlags(i),e.traceFlags=i}}}var iE=hA({LocalStorage:0,SessionStorage:1});var nb=void 0,rb=void 0,Zhe="";function CX(){return yx()?FV(iE.LocalStorage):null}function FV(t){try{if(At(Xs()))return null;var n=new Date()[eb](),e=Lo(t===iE.LocalStorage?"localStorage":"sessionStorage"),i=Zhe+n;e.setItem(i,n);var r=e.getItem(i)!==n;if(e[EV](i),!r)return e}catch{}return null}function SX(){return ab()?FV(iE.SessionStorage):null}function wX(){nb=!1,rb=!1}function bx(t){Zhe=t||""}function EX(){nb=yx(!0),rb=ab(!0)}function yx(t){return(t||nb===void 0)&&(nb=!!FV(iE.LocalStorage)),nb}function tk(t,n){var e=CX();if(e!==null)try{return e.getItem(n)}catch(i){nb=!1,Yt(t,2,1,"Browser failed read of local storage. "+Mr(i),{exception:gi(i)})}return null}function ik(t,n,e){var i=CX();if(i!==null)try{return i.setItem(n,e),!0}catch(r){nb=!1,Yt(t,2,3,"Browser failed write to local storage. "+Mr(r),{exception:gi(r)})}return!1}function IX(t,n){var e=CX();if(e!==null)try{return e[EV](n),!0}catch(i){nb=!1,Yt(t,2,5,"Browser failed removal of local storage item. "+Mr(i),{exception:gi(i)})}return!1}function ab(t){return(t||rb===void 0)&&(rb=!!FV(iE.SessionStorage)),rb}function nE(t,n){var e=SX();if(e!==null)try{return e.getItem(n)}catch(i){rb=!1,Yt(t,2,2,"Browser failed read of session storage. "+Mr(i),{exception:gi(i)})}return null}function nk(t,n,e){var i=SX();if(i!==null)try{return i.setItem(n,e),!0}catch(r){rb=!1,Yt(t,2,4,"Browser failed write to session storage. "+Mr(r),{exception:gi(r)})}return!1}function rk(t,n){var e=SX();if(e!==null)try{return e[EV](n),!0}catch(i){rb=!1,Yt(t,2,6,"Browser failed removal of session storage item. "+Mr(i),{exception:gi(i)})}return!1}var tqe="appInsightsThrottle",DX=function(){function t(n,e){var i=this,r,o,a,s,l,u,p,g=!1,_=!1;y(),i._getDbgPlgTargets=function(){return[p]},i.getConfig=function(){return a},i.canThrottle=function(B){var q=te(B),G=x(B);return D(G,r,q)},i.isTriggered=function(B){return re(B)},i.isReady=function(){return g},i.flush=function(B){try{var q=O(B);if(q&&q[Pn]>0){var G=q.slice(0);return p[B]=[],Jt(G,function(X){v(X.msgID,X[tb],X.severity,!1)}),!0}}catch{}return!1},i.flushAll=function(){try{if(p){var B=!0;return Tn(p,function(q){var G=i.flush(parseInt(q));B=B&&G}),B}}catch{}return!1},i.onReadyState=function(B,q){return q===void 0&&(q=!0),g=At(B)?!0:B,g&&q?i.flushAll():null},i.sendMessage=function(B,q,G){return v(B,q,G,!0)};function v(B,q,G,X){if(g){var z=Q(B);if(!z)return;var ee=x(B),pe=te(B),me=D(ee,r,pe),ye=!1,se=0,de=re(B);try{me&&!de?(se=b4(ee.limit.maxSendNumber,pe[ib]+1),pe[ib]=0,ye=!0,l[B]=!0,pe[IV]=new Date):(l[B]=me,pe[ib]+=1);var Te=A(B);K(o,Te,pe);for(var Ie=0;Ie0,ee.interval=C(pe);var me={samplingRate:((G=z.limit)===null||G===void 0?void 0:G.samplingRate)||100,maxSendNumber:((X=z.limit)===null||X===void 0?void 0:X.maxSendNumber)||1};ee.limit=me,a[B]=ee}catch{}}function C(B){B=B||{};var q=B?.monthInterval,G=B?.dayInterval;return At(q)&&At(G)&&(B.monthInterval=3,_||(B.daysOfMonth=[28],_=!0)),B={monthInterval:B?.monthInterval,dayInterval:B?.dayInterval,daysOfMonth:B?.daysOfMonth},B}function D(B,q,G){if(B&&!B.disabled&&q&&Np(G)){var X=j(),z=G.date,ee=B.interval,pe=1;if(ee?.monthInterval){var me=(X.getUTCFullYear()-z.getUTCFullYear())*12+X.getUTCMonth()-z.getUTCMonth();pe=F(ee.monthInterval,0,me)}var ye=1;if(_)ye=ha(ee.daysOfMonth,X[DV]());else if(ee?.dayInterval){var se=rc((X.getTime()-z.getTime())/864e5);ye=F(ee.dayInterval,0,se)}return pe>=0&&ye>=0}return!1}function A(B,q){var G=Np(q)?q:"";return B?tqe+G+"-"+B:null}function M(B){try{if(B){var q=new Date;return B.getUTCFullYear()===q.getUTCFullYear()&&B.getUTCMonth()===q.getUTCMonth()&&B[DV]()===q[DV]()}}catch{}return!1}function R(B,q,G){try{var X={date:j(),count:0};if(B){var z=JSON.parse(B),ee={date:j(z.date)||X.date,count:z[ib]||X[ib],preTriggerDate:z.preTriggerDate?j(z[IV]):void 0};return ee}else return K(q,G,X),X}catch{}return null}function j(B){try{if(B){var q=new Date(B);if(!isNaN(q.getDate()))return q}else return new Date}catch{}return null}function K(B,q,G){try{return ik(B,q,go(JSON[mx](G)))}catch{}return!1}function F(B,q,G){return B<=0?1:G>=q&&(G-q)%B==0?rc((G-q)/B)+1:-1}function V(B,q,G,X){Yt(q,X||1,B,G)}function Q(B){try{var q=x(B);return MK(1e6)<=q.limit.samplingRate}catch{}return!1}function te(B){try{var q=s[B];if(!q){var G=A(B,u);q=R(tk(o,G),o,G),s[B]=q}return s[B]}catch{}return null}function re(B){var q=l[B];if(At(q)){q=!1;var G=te(B);G&&(q=M(G[IV])),l[B]=q}return l[B]}function O(B){return p=p||{},At(p[B])&&(p[B]=[]),p[B]}}return t}();var iqe=";",nqe="=";function RV(t){if(!t)return{};var n=t[z0](iqe),e=LY(n,function(r,o){var a=o[z0](nqe);if(a[Pn]===2){var s=a[0][U0](),l=a[1];r[s]=l}return r},{});if(ld(e)[Pn]>0){if(e.endpointsuffix){var i=e.location?e.location+".":"";e[Jv]=e[Jv]||"https://"+i+"dc."+e.endpointsuffix}e[Jv]=e[Jv]||ux,dA(e[Jv],"/")&&(e[Jv]=e[Jv].slice(0,-1))}return e}var TX=function(){function t(n,e,i){var r=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[ac]=ko(n,i)||gl,o.data=e,o.time=Op(new Date),o[Jw]={time:1,iKey:1,name:1,sampleRate:function(){return r.sampleRate===100?4:1},tags:1,data:1}}return t}();var Lp=function(){function t(n,e,i,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[ac]=ko(n,e)||gl,o[Pc]=Jd(n,i),o[md]=eu(n,r)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}();var rqe=58,oqe=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,aqe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,sqe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,lqe=/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,cqe=/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,dqe=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,uqe=/([^\(\s\n]+):([0-9]+)$/,Jhe="",rE="error",Vp="stack",kX="stackDetails",efe="errorSrc",MX="message",rfe="description",tfe=[{re:aqe,len:5,m:1,fn:2,ln:3,col:4},{chk:pqe,pre:mqe,re:sqe,len:4,m:1,fn:2,ln:3},{re:lqe,len:3,m:1,fn:2,hdl:nfe},{re:cqe,len:2,fn:1,hdl:nfe}];function mqe(t){return t.replace(/(\(anonymous\))/,"")}function pqe(t){return Xo(t,"[native")<0}function FX(t,n){var e=t;return e&&!qi(e)&&(JSON&&JSON[mx]?(e=JSON[mx](t),n&&(!e||e==="{}")&&(zi(t[eb])?e=t[eb]():e=""+t)):e=""+t+" - (Missing JSON.stringify)"),e||""}function ofe(t,n){var e=t;return t&&(e&&!qi(e)&&(e=t[MX]||t[rfe]||e),e&&!qi(e)&&(e=FX(e,!0)),t.filename&&(e=e+" @"+(t.filename||"")+":"+(t.lineno||"?")+":"+(t.colno||"?"))),n&&n!=="String"&&n!=="Object"&&n!=="Error"&&Xo(e||"",n)===-1&&(e=n+": "+e),e||""}function hqe(t){try{if(Ks(t))return"hasFullStack"in t&&"typeName"in t}catch{}return!1}function fqe(t){try{if(Ks(t))return"ver"in t&&"exceptions"in t&&"properties"in t}catch{}return!1}function ife(t){return t&&t.src&&qi(t.src)&&t.obj&&pn(t.obj)}function xx(t){var n=t||"";qi(n)||(qi(n[Vp])?n=n[Vp]:n=""+n);var e=n[z0](` `);return{src:n,obj:e}}function gqe(t){for(var n=[],e=t[z0](` `),i=0;i0){n=[];var i=0,r=!1,o=0;Jt(e,function(x){if(r||Cqe(x)){var I=Ys(x);r=!0;var C=Sqe(I,i);C&&(o+=C[KA],n.push(C),i++)}});var a=32*1024;if(o>a)for(var s=0,l=n[Pn]-1,u=0,p=s,g=l;sa){var y=g-p+1;n.splice(p,y);break}p=s,g=l,s++,l--}}return n}function PV(t){var n="";if(t&&(n=t.typeName||t[ac]||"",!n))try{var e=/function (.{1,200})\(/,i=e.exec(t.constructor[eb]());n=i&&i[Pn]>1?i[1]:""}catch{}return n}function AX(t){if(t)try{if(!qi(t)){var n=PV(t),e=FX(t,!1);return(!e||e==="{}")&&(t[rE]&&(t=t[rE],n=PV(t)),e=FX(t,!0)),Xo(e,n)!==0&&n!=="String"?n+":"+e:e}}catch{}return""+(t||"")}var pd=function(){function t(n,e,i,r,o,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,fqe(e)?(s[Zw]=e[Zw]||[],s[Pc]=e[Pc],s[md]=e[md],e[hx]&&(s[hx]=e[hx]),e.id&&(s.id=e.id,e[Pc].id=e.id),e[TV]&&(s[TV]=e[TV]),At(e.isManual)||(s.isManual=e.isManual)):(i||(i={}),a&&(i.id=a),s[Zw]=[sfe(n,e,i)],s[Pc]=Jd(n,i),s[md]=eu(n,r),o&&(s[hx]=o),a&&(s.id=a))}return t.CreateAutoException=function(n,e,i,r,o,a,s,l){var u=PV(o||a||n);return{message:ofe(n,u),url:e,lineNumber:i,columnNumber:r,error:AX(o||a||n),evt:AX(a||n),typeName:u,stackDetails:afe(s||o||a),errorSrc:l}},t.CreateFromInterface=function(n,e,i,r){var o=e[Zw]&&$1(e[Zw],function(s){return xqe(n,s)}),a=new t(n,Zs(Zs({},e),{exceptions:o}),i,r);return a},t.prototype.toInterface=function(){var n=this,e=n.exceptions,i=n.properties,r=n.measurements,o=n.severityLevel,a=n.problemGroup,s=n.id,l=n.isManual,u=e instanceof Array&&$1(e,function(p){return p.toInterface()})||void 0;return{ver:"4.0",exceptions:u,severityLevel:o,properties:i,measurements:r,problemGroup:a,id:s,isManual:l}},t.CreateSimpleException=function(n,e,i,r,o,a){var s;return{exceptions:[(s={},s[QA]=!0,s.message=n,s.stack=o,s.typeName=e,s)]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t.formatError=AX,t}();var bqe=cd({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function yqe(){var t=this,n=pn(t[fx])&&$1(t[fx],function(i){return Eqe(i)}),e={id:t.id,outerId:t.outerId,typeName:t[XA],message:t[tb],hasFullStack:t[QA],stack:t[Vp],parsedStack:n||void 0};return e}function sfe(t,n,e){var i,r,o,a,s,l,u,p;if(hqe(n))a=n[XA],s=n[tb],u=n[Vp],p=n[fx]||[],l=n[QA];else{var g=n,_=g&&g.evt;z1(g)||(g=g[rE]||_||g),a=ko(t,PV(g))||gl,s=JA(t,ofe(n||g,a))||gl;var v=n[kX]||afe(n);p=vqe(v),pn(p)&&$1(p,function(y){y[ZA]=ko(t,y[ZA]),y[dg]=ko(t,y[dg])}),u=_X(t,_qe(v)),l=pn(p)&&p[Pn]>0,e&&(e[XA]=e[XA]||a)}return i={},i[Jw]=bqe,i.id=r,i.outerId=o,i.typeName=a,i.message=s,i[QA]=l,i.stack=u,i.parsedStack=p,i.toInterface=yqe,i}function xqe(t,n){var e=pn(n[fx])&&$1(n[fx],function(r){return wqe(r)})||n[fx],i=sfe(t,Zs(Zs({},n),{parsedStack:e}));return i}function lfe(t,n){var e=n[px](dqe);if(e&&e[Pn]>=4)t[dg]=e[1],t[gx]=parseInt(e[2]);else{var i=n[px](uqe);i&&i[Pn]>=3?(t[dg]=i[1],t[gx]=parseInt(i[2])):t[dg]=n}}function nfe(t,n,e){var i=t[dg];n.fn&&e&&e[Pn]>n.fn&&(n.ln&&e[Pn]>n.ln?(i=go(e[n.fn]||""),t[gx]=parseInt(go(e[n.ln]||""))||0):i=go(e[n.fn]||"")),i&&lfe(t,i)}function Cqe(t){var n=!1;if(t&&qi(t)){var e=go(t);e&&(n=oqe.test(e))}return n}var cfe=cd({level:1,method:1,assembly:0,fileName:0,line:0});function Sqe(t,n){var e,i;if(t&&qi(t)&&go(t)){i=(e={},e[Jw]=cfe,e.level=n,e.assembly=go(t),e.method=Jhe,e.fileName="",e.line=0,e.sizeInBytes=0,e);for(var r=0;r=o.len){o.m&&(i.method=go(a[o.m]||Jhe)),o.hdl?o.hdl(i,o,a):o.fn&&(o.ln?(i[dg]=go(a[o.fn]||""),i[gx]=parseInt(go(a[o.ln]||""))||0):lfe(i,a[o.fn]||""));break}r++}}return dfe(i)}function wqe(t){var n,e=(n={},n[Jw]=cfe,n.level=t.level,n.method=t.method,n.assembly=t[ZA],n.fileName=t[dg],n.line=t[gx],n.sizeInBytes=0,n);return dfe(e)}function dfe(t){var n=rqe;return t&&(n+=t.method[Pn],n+=t.assembly[Pn],n+=t.fileName[Pn],n+=t.level.toString()[Pn],n+=t.line.toString()[Pn],t[KA]=n),t}function Eqe(t){return{level:t.level,method:t.method,assembly:t[ZA],fileName:t[dg],line:t[gx]}}var ufe=function(){function t(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return t}();var Bp=function(){function t(n,e,i,r,o,a,s,l,u){this.aiDataContract={ver:1,metrics:1,properties:0};var p=this;p.ver=2;var g=new ufe;g[ib]=r>0?r:void 0,g.max=isNaN(a)||a===null?void 0:a,g.min=isNaN(o)||o===null?void 0:o,g[ac]=ko(n,e)||gl,g.value=i,g.stdDev=isNaN(s)||s===null?void 0:s,p.metrics=[g],p[Pc]=Jd(n,l),p[md]=eu(n,u)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}();var ok="";function Wm(t){(isNaN(t)||t<0)&&(t=0),t=I4(t);var n=ok+t%1e3,e=ok+rc(t/1e3)%60,i=ok+rc(t/(1e3*60))%60,r=ok+rc(t/(1e3*60*60))%24,o=rc(t/(1e3*60*60*24));return n=n[Pn]===1?"00"+n:n[Pn]===2?"0"+n:n,e=e[Pn]<2?"0"+e:e,i=i[Pn]<2?"0"+i:i,r=r[Pn]<2?"0"+r:r,(o>0?o+".":ok)+r+":"+i+":"+e+"."+n}function RX(t,n,e,i,r){return!r&&qi(t)&&(t==="Script error."||t==="Script error")}var Wu=function(){function t(n,e,i,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var l=this;l.ver=2,l.id=vX(n,s),l.url=G0(n,i),l[ac]=ko(n,e)||gl,isNaN(r)||(l[_x]=Wm(r)),l[Pc]=Jd(n,o),l[md]=eu(n,a)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}();var jp=function(){function t(n,e,i,r,o,a,s,l,u,p,g,_){u===void 0&&(u="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var v=this;v.ver=2,v.id=e,v[_x]=Wm(o),v.success=a,v.resultCode=s+"",v.type=ko(n,u);var y=Qhe(n,i,l,r);v.data=G0(n,r)||y.data,v.target=ko(n,y.target),p&&(v.target="".concat(v.target," | ").concat(p)),v[ac]=ko(n,y[ac]),v[Pc]=Jd(n,g),v[md]=eu(n,_)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}();var ug=function(){function t(n,e,i,r,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,e=e||gl,a[tb]=JA(n,e),a[Pc]=Jd(n,r),a[md]=eu(n,o),i&&(a[hx]=i)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}();var mg=function(){function t(n,e,i,r,o,a,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var l=this;l.ver=2,l.url=G0(n,i),l[ac]=ko(n,e)||gl,l[Pc]=Jd(n,o),l[md]=eu(n,a),s&&(l.domProcessing=s.domProcessing,l[_x]=s[_x],l.networkConnect=s.networkConnect,l.perfTotal=s.perfTotal,l.receivedResponse=s.receivedResponse,l.sentRequest=s.sentRequest)}return t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}();var $0=function(){function t(n,e){this.aiDataContract={baseType:1,baseData:1},this.baseType=n,this.baseData=e}return t}();function lb(t){var n="ai."+t+".";return function(e){return n+e}}var ak=lb("application"),Ol=lb("device"),NV=lb("location"),oE=lb("operation"),PX=lb("session"),sb=lb("user"),Cx=lb("cloud"),sk=lb("internal"),lk=function(t){oc(n,t);function n(){return t.call(this)||this}return n}(vK({applicationVersion:ak("ver"),applicationBuild:ak("build"),applicationTypeId:ak("typeId"),applicationId:ak("applicationId"),applicationLayer:ak("layer"),deviceId:Ol("id"),deviceIp:Ol("ip"),deviceLanguage:Ol("language"),deviceLocale:Ol("locale"),deviceModel:Ol("model"),deviceFriendlyName:Ol("friendlyName"),deviceNetwork:Ol("network"),deviceNetworkName:Ol("networkName"),deviceOEMName:Ol("oemName"),deviceOS:Ol("os"),deviceOSVersion:Ol("osVersion"),deviceRoleInstance:Ol("roleInstance"),deviceRoleName:Ol("roleName"),deviceScreenResolution:Ol("screenResolution"),deviceType:Ol("type"),deviceMachineName:Ol("machineName"),deviceVMName:Ol("vmName"),deviceBrowser:Ol("browser"),deviceBrowserVersion:Ol("browserVersion"),locationIp:NV("ip"),locationCountry:NV("country"),locationProvince:NV("province"),locationCity:NV("city"),operationId:oE("id"),operationName:oE("name"),operationParentId:oE("parentId"),operationRootId:oE("rootId"),operationSyntheticSource:oE("syntheticSource"),operationCorrelationVector:oE("correlationVector"),sessionId:PX("id"),sessionIsFirst:PX("isFirst"),sessionIsNew:PX("isNew"),userAccountAcquisitionDate:sb("accountAcquisitionDate"),userAccountId:sb("accountId"),userAgent:sb("userAgent"),userId:sb("id"),userStoreRegion:sb("storeRegion"),userAuthUserId:sb("authUserId"),userAnonymousUserAcquisitionDate:sb("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:sb("authUserAcquisitionDate"),cloudName:Cx("name"),cloudRole:Cx("role"),cloudRoleVer:Cx("roleVer"),cloudRoleInstance:Cx("roleInstance"),cloudEnvironment:Cx("environment"),cloudLocation:Cx("location"),cloudDeploymentUnit:Cx("deploymentUnit"),internalNodeName:sk("nodeName"),internalSdkVersion:sk("sdkVersion"),internalAgentVersion:sk("agentVersion"),internalSnippet:sk("snippet"),internalSdkSrc:sk("sdkSrc")}));function Hp(t,n,e,i,r,o){e=ko(i,e)||gl,(At(t)||At(n)||At(e))&&ic("Input doesn't contain all required fields");var a="";t[wV]&&(a=t[wV],delete t[wV]);var s={name:e,time:Op(new Date),iKey:a,ext:o||{},tags:[],data:{},baseType:n,baseData:t};return At(r)||Tn(r,function(l,u){s.data[l]=u}),s}var Iqe=function(){function t(){}return t.create=Hp,t}();var hd={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},la=new lk;function Sx(t){var n=null;if(zi(Event))n=new Event(t);else{var e=xa();e&&e.createEvent&&(n=e.createEvent("Event"),n.initEvent(t,!0,!0))}return n}function mfe(t,n){sg(t,null,null,n)}function NX(t){var n=xa(),e=Fc(),i=!1,r=[],o=1;e&&!At(e.onLine)&&!e.onLine&&(o=2);var a=0,s=_(),l=Zd(Ds("OfflineListener"),t);try{if(p(ul())&&(i=!0),n){var u=n.body||n;u.ononline&&p(u)&&(i=!0)}}catch{i=!1}function p(A){var M=!1;return A&&(M=qu(A,"online",x,l),M&&qu(A,"offline",I,l)),M}function g(){return s}function _(){return!(a===2||o===2)}function v(){var A=_();s!==A&&(s=A,Jt(r,function(M){var R={isOnline:s,rState:o,uState:a};try{M(R)}catch{}}))}function y(A){a=A,v()}function x(){o=1,v()}function I(){o=2,v()}function C(){var A=ul();if(A&&i){if(mfe(A,l),n){var M=n.body||n;no(M.ononline)||mfe(M,l)}i=!1}}function D(A){return r.push(A),{rm:function(){var M=r.indexOf(A);if(M>-1)return r.splice(M,1)}}}return{isOnline:g,isListening:function(){return i},unload:C,addListener:D,setOnlineState:y}}var cb="AppInsightsPropertiesPlugin",OV="AppInsightsChannelPlugin",LV="ApplicationInsightsAnalytics";var ck="toString",VV="isStorageUseDisabled",wx="_addHook",Eo="core",q0="dataType",db="envelopeType",Yu="diagLog",ub="track",aE="trackPageView",Ku="config",dk="trackPreviousPageVisit",W0="sendPageViewInternal",BV="refUri",Y0="startTime",Ex="properties",Ym="duration",uk="sendPageViewPerformanceInternal",sE="populatePageViewPerformanceEvent",mb="href",OX="sendExceptionInternal",lE="error",jV="lineNumber",HV="columnNumber",zV="CreateAutoException",mk="addTelemetryInitializer",pfe="overridePageViewDuration",UV="autoExceptionInstrumented",LX="autoTrackPageVisitTime",VX="isBrowserLinkTrackingEnabled",pb="length",BX="enableAutoRouteTracking",jX="enableUnhandledPromiseRejectionTracking",GV="autoUnhandledPromiseInstrumented",pk="getEntriesByType",$V="isPerformanceTimingSupported",qV="getPerformanceTiming",cE="navigationStart",hk="shouldCollectDuration",WV="isPerformanceTimingDataReady",dE="responseStart",hfe="requestStart",fk="loadEventEnd",YV="responseEnd",gk="connectEnd";var ffe=function(){function t(n,e,i,r){nr(t,this,function(o){var a=null,s=[],l=!1,u=!1,p;i&&(p=i.logger);function g(y){i&&i.flush(y,function(){})}function _(){a||(a=Qs(function(){a=null;var y=s.slice(0),x=!1;s=[],Jt(y,function(I){I()?x=!0:s.push(I)}),s[pb]>0&&_(),x&&g(!0)},100))}function v(y){s.push(y),_()}o[aE]=function(y,x){var I=y.name;if(At(I)||typeof I!="string"){var C=xa();I=y.name=C&&C.title||""}var D=y.uri;if(At(D)||typeof D!="string"){var A=Rc();D=y.uri=A&&A[mb]||""}if(i&&i[Ku]&&(D=y.uri=Kd(y.uri,i[Ku])),!u){var M=Yd(),R=M&&M[pk]&&M[pk]("navigation");if(R&&R[0]&&!no(M.timeOrigin)){var j=R[0].loadEventStart;y[Y0]=new Date(M.timeOrigin+j)}else{var K=(x||y[Ex]||{})[Ym]||0;y[Y0]=new Date(new Date().getTime()-K)}u=!0}if(!r[$V]()){n[W0](y,x),g(!0),x4()||Yt(p,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var F=!1,V,Q=r[qV]()[cE];Q>0&&(V=Nl(Q,+new Date),r[hk](V)||(V=void 0));var te;!At(x)&&!At(x[Ym])&&(te=x[Ym]),(e||!isNaN(te))&&(isNaN(te)&&(x||(x={}),x[Ym]=V),n[W0](y,x),g(!0),F=!0);var re=6e4;x||(x={}),v(function(){var O=!1;try{if(r[WV]()){O=!0;var B={name:I,uri:D};r[sE](B),!B.isValid&&!F?(x[Ym]=V,n[W0](y,x)):(F||(x[Ym]=B.durationMs,n[W0](y,x)),l||(n[uk](B,x),l=!0))}else Q>0&&Nl(Q,+new Date)>re&&(O=!0,F||(x[Ym]=re,n[W0](y,x)))}catch(q){Yt(p,1,38,"trackPageView failed on page load calculation: "+Mr(q),{exception:gi(q)})}return O})},o.teardown=function(y,x){if(a){a.cancel(),a=null;var I=s.slice(0),C=!1;s=[],Jt(I,function(D){D()&&(C=!0)})}}})}return t.__ieDyn=1,t}();var Dqe=36e5,gfe=["googlebot","adsbot-google","apis-google","mediapartners-google"];function vfe(){var t=Yd();return t&&!!t.timing}function Tqe(){var t=Yd();return t&&t.getEntriesByType&&t.getEntriesByType("navigation")[pb]>0}function Aqe(){var t=Yd(),n=t?t.timing:0;return n&&n.domainLookupStart>0&&n[cE]>0&&n[dE]>0&&n[hfe]>0&&n[fk]>0&&n[YV]>0&&n[gk]>0&&n.domLoading>0}function _fe(){return vfe()?Yd().timing:null}function kqe(){return Tqe()?Yd()[pk]("navigation")[0]:null}function Mqe(){for(var t=[],n=0;n=Dqe)return!1;return!0}var bfe=function(){function t(n){var e=Qd(n);nr(t,this,function(i){i[sE]=function(r){r.isValid=!1;var o=kqe(),a=_fe(),s=0,l=0,u=0,p=0,g=0;(o||a)&&(o?(s=o[Ym],l=o[Y0]===0?o[gk]:Nl(o[Y0],o[gk]),u=Nl(o.requestStart,o[dE]),p=Nl(o[dE],o[YV]),g=Nl(o.responseEnd,o[fk])):(s=Nl(a[cE],a[fk]),l=Nl(a[cE],a[gk]),u=Nl(a.requestStart,a[dE]),p=Nl(a[dE],a[YV]),g=Nl(a.responseEnd,a[fk])),s===0?Yt(e,2,10,"error calculating page view performance.",{total:s,network:l,request:u,response:p,dom:g}):i[hk](s,l,u,p,g)?s0&&t<=100}function Lqe(t){no(t[VV])||(t[VV]?wX():EX())}var KV=function(t){oc(n,t);function n(){var e=t.call(this)||this;e.identifier=LV,e.priority=180,e.autoRoutePVDelay=500;var i,r,o,a,s,l,u,p,g,_,v,y,x,I,C,D,A,M,R,j,K;return nr(n,e,function(F,V){var Q=V[wx];ye(),F.getCookieMgr=function(){return lx(F[Eo])},F.processTelemetry=function(se,de){F.processNext(se,de)},F.trackEvent=function(se,de){try{var Te=Hp(se,Lp[q0],Lp[db],F[Yu](),de);F[Eo][ub](Te)}catch(Ie){me(2,39,"trackTrace failed, trace will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F.startTrackEvent=function(se){try{i.start(se)}catch(de){me(1,29,"startTrackEvent failed, event will not be collected: "+Mr(de),{exception:gi(de)})}},F.stopTrackEvent=function(se,de,Te){try{i.stop(se,void 0,de,Te)}catch(Ie){me(1,30,"stopTrackEvent failed, event will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F.trackTrace=function(se,de){try{var Te=Hp(se,ug[q0],ug[db],F[Yu](),de);F[Eo][ub](Te)}catch(Ie){me(2,39,"trackTrace failed, trace will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F.trackMetric=function(se,de){try{var Te=Hp(se,Bp[q0],Bp[db],F[Yu](),de);F[Eo][ub](Te)}catch(Ie){me(1,36,"trackMetric failed, metric will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F[aE]=function(se,de){try{var Te=se||{};F[Eo]&&F[Eo][Ku]&&(Te.uri=Kd(Te.uri,F[Eo][Ku])),o[aE](Te,Zs(Zs(Zs({},Te.properties),Te.measurements),de)),D&&s[dk](Te.name,Te.uri)}catch(Ie){me(1,37,"trackPageView failed, page view will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F[W0]=function(se,de,Te){var Ie=xa();if(Ie&&(se[BV]=se[BV]===void 0?Ie.referrer:se[BV]),F[Eo]&&F[Eo][Ku]&&(se.refUri=Kd(se.refUri,F[Eo][Ku])),At(se[Y0])){var Re=(de||se[Ex]||{})[Ym]||0;se[Y0]=new Date(new Date().getTime()-Re)}var et=Hp(se,Wu[q0],Wu[db],F[Yu](),de,Te);F[Eo][ub](et),te()},F[uk]=function(se,de,Te){var Ie=Hp(se,mg[q0],mg[db],F[Yu](),de,Te);F[Eo][ub](Ie)},F.trackPageViewPerformance=function(se,de){var Te=se||{};try{a[sE](Te),F[uk](Te,de)}catch(Ie){me(1,37,"trackPageViewPerformance failed, page view will not be collected: "+Mr(Ie),{exception:gi(Ie)})}},F.startTrackPage=function(se){try{if(typeof se!="string"){var de=xa();se=de&&de.title||""}r.start(se)}catch(Te){me(1,31,"startTrackPage failed, page view may not be collected: "+Mr(Te),{exception:gi(Te)})}},F.stopTrackPage=function(se,de,Te,Ie){try{if(typeof se!="string"){var Re=xa();se=Re&&Re.title||""}if(typeof de!="string"){var et=Rc();de=et&&et[mb]||""}F[Eo]&&F[Eo][Ku]&&(de=Kd(de,F[Eo][Ku])),r.stop(se,de,Te,Ie),D&&s[dk](se,de)}catch(It){me(1,32,"stopTrackPage failed, page view will not be collected: "+Mr(It),{exception:gi(It)})}},F[OX]=function(se,de,Te){var Ie=se&&(se.exception||se[lE])||z1(se)&&se||{name:se&&typeof se,message:se||gl};se=se||{};var Re=new pd(F[Yu](),Ie,se[Ex]||de,se.measurements,se.severityLevel,se.id).toInterface(),et=xa();if(et&&A?.inclScripts){var It=pV(et);Re[Ex].exceptionScripts=JSON.stringify(It)}if(A?.expLog){var kt=A.expLog();kt&&kt.logs&&pn(kt.logs)&&(Re[Ex].exceptionLog=kt.logs.slice(0,A.maxLogs).join(` `))}var ii=Hp(Re,pd[q0],pd[db],F[Yu](),de,Te);F[Eo][ub](ii)},F.trackException=function(se,de){se&&!se.exception&&se[lE]&&(se.exception=se[lE]);try{F[OX](se,de)}catch(Te){me(1,35,"trackException failed, exception will not be collected: "+Mr(Te),{exception:gi(Te)})}},F._onerror=function(se){var de=se&&se[lE],Te=se&&se.evt;try{if(!Te){var Ie=ul();Ie&&(Te=Ie[Rqe])}var Re=se&&se.url||(xa()||{}).URL,et=se.errorSrc||"window.onerror@"+Re+":"+(se[jV]||0)+":"+(se[HV]||0),It={errorSrc:et,url:Re,lineNumber:se[jV]||0,columnNumber:se[HV]||0,message:se.message};RX(se.message,se.url,se.lineNumber,se.columnNumber,se[lE])?q(pd[zV]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",Re,se[jV]||0,se[HV]||0,de,Te,null,et),It):(se.errorSrc||(se.errorSrc=et),F.trackException({exception:se,severityLevel:3},It))}catch(ii){var kt=de?de.name+", "+de.message:"null";me(1,11,"_onError threw exception while logging error, error will not be collected: "+Mr(ii),{exception:gi(ii),errorString:kt})}},F[mk]=function(se){if(F[Eo])return F[Eo][mk](se);l||(l=[]),l.push(se)},F.initialize=function(se,de,Te,Ie){if(!F.isInitialized()){At(de)&&ic("Error initializing"),V.initialize(se,de,Te,Ie);try{j=Zd(Ds(F.identifier),de.evtNamespace&&de.evtNamespace()),l&&(Jt(l,function(Re){de[mk](Re)}),l=null),re(se),a=new bfe(F[Eo]),o=new ffe(F,C.overridePageViewDuration,F[Eo],a),s=new yfe(F[Yu](),function(Re,et,It){return O(Re,et,It)}),i=new HX(F[Yu](),"trackEvent"),i.action=function(Re,et,It,kt,ii){kt||(kt={}),ii||(ii={}),kt.duration=It[ck](),F.trackEvent({name:Re,properties:kt,measurements:ii})},r=new HX(F[Yu](),"trackPageView"),r.action=function(Re,et,It,kt,ii){At(kt)&&(kt={}),kt.duration=It[ck]();var Ri={name:Re,uri:et,properties:kt,measurements:ii};F[W0](Ri,kt)},Ov()&&(G(),X())}catch(Re){throw F.setInitialized(!1),Re}}},F._doTeardown=function(se,de){o&&o.teardown(se,de),sg(window,null,null,j),ye()},F._getDbgPlgTargets=function(){return[K,y]};function te(){if(F[Eo]){var se=F[Eo].getPlugin("AjaxDependencyPlugin");se&&se.plugin&&se.plugin.resetAjaxAttempts&&se.plugin.resetAjaxAttempts()}}function re(se){var de=F.identifier,Te=F[Eo];F[wx](wo(se,function(){var Ie=fl(null,se,Te);C=Ie.getExtCfg(de,Nqe),y=y||se[UV]||C[UV],A=C.expCfg,D=C[LX],se.storagePrefix&&bx(se.storagePrefix),Lqe(C),u=C[VX],B()}))}function O(se,de,Te){var Ie={PageName:se,PageUrl:de};F.trackMetric({name:"PageVisitTime",average:Te,max:Te,min:Te,sampleCount:1},Ie)}function B(){if(!p&&u){var se=["/browserLinkSignalR/","/__browserLink/"],de=function(Te){if(u&&Te.baseType===jp[q0]){var Ie=Te.baseData;if(Ie){for(var Re=0;Re=0)return!1}}return!0};F[wx](F[mk](de)),p=!0}}function q(se,de){var Te=Hp(se,pd[q0],pd[db],F[Yu](),de);F[Eo][ub](Te)}function G(){var se=ul(),de=Rc(!0);F[wx](wo(C,function(){v=C.disableExceptionTracking,!v&&!y&&!C[UV]&&(Q(Qw(se,"onerror",{ns:j,rsp:function(Te,Ie,Re,et,It,kt){!v&&Te.rslt!==!0&&F._onerror(pd[zV](Ie,Re,et,It,kt,Te.evt))}},!1)),K++,y=!0)})),pe(se,de)}function X(){var se=ul(),de=Rc(!0);F[wx](wo(C,function(){if(g=C[BX]===!0,se&&g&&!_&&NY()){var Te=y4();zi(Te.pushState)&&zi(Te.replaceState)&&typeof Event!==W1&&ee(se,Te,de)}}))}function z(){var se=null;if(F[Eo]&&F[Eo].getTraceCtx&&(se=F[Eo].getTraceCtx(!1)),!se){var de=F[Eo].getPlugin(cb);if(de){var Te=de.plugin.context;Te&&(se=vx(Te.telemetryTrace))}}return se}function ee(se,de,Te){if(_)return;var Ie=C.namePrefix||"";function Re(){g&&_k(se,Sx(Ie+"locationchange"))}function et(){if(R?(M=R,R=Te&&Te[mb]||""):R=Te&&Te[mb]||"",F[Eo]&&F[Eo][Ku]&&(R=Kd(R,F[Eo][Ku])),g){var It=z();if(It){It.setTraceId($m());var kt="_unknown_";Te&&Te.pathname&&(kt=Te.pathname+(Te.hash||"")),It.setName(ko(F[Yu](),kt))}Qs(function(ii){F[aE]({refUri:ii,properties:{duration:0}})}.bind(F,M),F.autoRoutePVDelay)}}Q(Qw(de,"pushState",{ns:j,rsp:function(){g&&(_k(se,Sx(Ie+"pushState")),_k(se,Sx(Ie+"locationchange")))}},!0)),Q(Qw(de,"replaceState",{ns:j,rsp:function(){g&&(_k(se,Sx(Ie+"replaceState")),_k(se,Sx(Ie+"locationchange")))}},!0)),qu(se,Ie+"popstate",Re,j),qu(se,Ie+"locationchange",et,j),_=!0}function pe(se,de){F[wx](wo(C,function(){x=C[jX]===!0,y=y||C[GV],x&&!I&&(Q(Qw(se,"onunhandledrejection",{ns:j,rsp:function(Te,Ie){x&&Te.rslt!==!0&&F._onerror(pd[zV](Pqe(Ie),de?de[mb]:"",0,0,Ie,Te.evt))}},!1)),K++,C[GV]=I=!0)}))}function me(se,de,Te,Ie,Re){F[Yu]().throwInternal(se,de,Te,Ie,Re)}function ye(){i=null,r=null,o=null,a=null,s=null,l=null,u=!1,p=!1,g=!1,_=!1,v=!1,y=!1,x=!1,I=!1,D=!1,te();var se=Rc(!0);M=se&&se[mb]||"",F[Eo]&&F[Eo][Ku]&&(M=Kd(M,F[Eo][Ku])),R=null,j=null,C=null,K=0,Un(F,"config",{g:function(){return C}})}Un(F,"_pageViewManager",{g:function(){return o}}),Un(F,"_pageViewPerformanceManager",{g:function(){return a}}),Un(F,"_pageVisitTimeManager",{g:function(){return s}}),Un(F,"_evtNamespace",{g:function(){return"."+j}})}),e}return n.Version="3.3.10",n}(qm);var vk="featureOptIn",zX="scheduleFetchTimeout";function UX(t,n,e,i){try{var r=e>i;r&&(t=null);var o=e==0?ape({},t):t;return o&&n&&!r&&Tn(o,function(a){var s=n[a];s&&(Ks(o[a])&&Ks(s)?o[a]=UX(o[a],s,++e,i):delete o[a])}),o}catch{}return t}var uE="featureOptIn.",Sfe=".mode",wfe=".onCfg",Efe=".offCfg";function Vqe(t,n,e){var i;if(!n||!n.enabled)return null;var r=(n[vk]||{})[t]||{mode:1},o=r.mode,a=r.onCfg,s=r.offCfg,l=(e||{})[t]||{mode:2},u=l.mode,p=l.onCfg,g=l.offCfg,_=!!l.blockCdnCfg,v=uE+t+Sfe,y=uE+t+wfe,x=uE+t+Efe,I=u,C=p,D=g;return _||(o===4||o===5?(I=o==4?3:2,C=a||p,D=s||g):o===2||u===2?(I=2,C=p||a,D=g||s):o===3?(I=3,C=p||a,D=g||s):o===1&&u===1&&(I=1)),i={},i[v]=I,i[y]=C,i[x]=D,i}function Ife(t,n){try{if(!t||!t.enabled)return null;if(!t[vk])return t.config;var e=t[vk],i=t.config||{};return Tn(e,function(r){var o=Vqe(r,t,n.config[vk]);At(o)||(Tn(o,function(a,s){HY(i,a,s)}),Bqe(r,o,i))}),i}catch{}return null}function Bqe(t,n,e){var i=n[uE+t+Sfe],r=n[uE+t+wfe],o=n[uE+t+Efe],a=null;i===3&&(a=r),i===2&&(a=o),a&&Tn(a,function(s,l){HY(e,s,l)})}var bk,jqe="ai_cfgsync",Dfe="GET",Hqe=18e5,mE=void 0,zqe={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},Uqe=Mp((bk={syncMode:1,blkCdnCfg:mE,customEvtName:mE,cfgUrl:mE,overrideSyncFn:mE,overrideFetchFn:mE,onCfgChangeReceive:mE},bk[zX]=Hqe,bk.nonOverrideConfigs=zqe,bk.enableAjax=!1,bk)),GX=function(t){oc(n,t);function n(){var e=t.call(this)||this;e.priority=198,e.identifier="AppInsightsCfgSyncPlugin";var i,r,o,a,s,l,u,p,g,_,v,y,x,I,C,D,A=!1,M;return nr(n,e,function(R,j){K(),R.initialize=function(ye,se,de,Te){j.initialize(ye,se,de,Te),a=Zd(Ds(R.identifier),se.evtNamespace&&se.evtNamespace()),F(ye)},R.getCfg=function(){return r},R.pause=function(){A=!0,me()},R.resume=function(){A=!1,pe()},R.setCfg=function(ye){return V(ye)},R.sync=function(ye){return te(ye)},R.updateEventListenerName=function(ye){return re(ye)},R._doTeardown=function(ye,se){Q(),me(),K()},R._getDbgPlgTargets=function(){return[p,u,o,g,x]};function K(){r=null,o=null,a=null,s=null,u=null,p=null,x=null,l=null,_=null,v=null,g=null,M=!1,C=null,D=null,y=null}function F(ye){var se=R.identifier,de=R.core;R._addHook(wo(ye,function(){var Te=fl(null,ye,de);i=Te.getExtCfg(se,Uqe);var Ie=g;g=!!i.blkCdnCfg,M=!!i.enableAjax,!At(Ie)&&Ie!==g&&(!g&&s?I&&I(s,G,p):me()),At(u)&&(u=i.syncMode===2),At(p)&&(p=i.syncMode===1);var Re=i.customEvtName||jqe;o!==Re&&(u?re(Re):(Q(),o=Re)),At(s)&&(s=i.cfgUrl),s||(r=ye,p&&te())})),D=i.overrideSyncFn,C=i.overrideFetchFn,y=i.onCfgChangeReceive,x=i.nonOverrideConfigs,_=i[zX],I=O(),v=0,s&&!g&&I&&I(s,G,p)}function V(ye,se){if(ye){if(r=ye,se&&!A)return te();if(u&&!A)return R.core.updateCfg(ye),!0}return!1}function Q(){try{var ye=Xs();ye&&sg(ye,null,null,a)}catch{}}function te(ye){try{return D&&zi(D)?D(r,ye):kK(o,r,ye)}catch{}return!1}function re(ye){try{return Q(),ye&&(o=ye,z()),!0}catch{}return!1}function O(){var ye=C;return At(ye)&&(rx()?ye=B:Uv()&&(ye=q)),ye}function B(ye,se,de){var Te=Xs(),Ie=Te&&Te.fetch||null;if(ye&&Ie&&zi(Ie))try{var Re={method:Dfe};M||(Re[lg]=!0);var et=new Request(ye,Re);if(!M)try{et[lg]=!0}catch{}Js(fetch(et),function(It){var kt=It.value;It.rejected?X(se,400):kt.ok?Js(kt.text(),function(ii){X(se,kt.status,ii.value,de)}):X(se,kt.status,null,de)})}catch{}}function q(ye,se,de){try{var Te=new XMLHttpRequest;M||(Te[lg]=!0),Te.open(Dfe,ye),Te.onreadystatechange=function(){Te.readyState===XMLHttpRequest.DONE&&X(se,Te.status,Te.responseText,de)},Te.onerror=function(){X(se,400)},Te.ontimeout=function(){X(se,400)},Te.send()}catch{}}function G(ye,se,de){try{if(ye>=200&&ye<400&&se){v=0;var Te=pl();if(Te){var Ie=Te.parse(se),Re=Ife(Ie,R.core),et=Re&&ml(Re)&&ee(Re);et&&V(et,de)}}else v++;v<3&&pe()}catch{}}function X(ye,se,de,Te){try{ye(se,de,Te)}catch{}}function z(){if(u){var ye=Xs();if(ye)try{qu(ye,o,function(se){var de=se&&se.detail;if(y&&de)y(de);else{var Te=de&&de.cfg,Ie=Te&&ml(Te)&&ee(Te);Ie&&V(Ie)}},a,!0)}catch{}}}function ee(ye,se){var de=null;try{ye&&(de=UX(ye,x,0,5))}catch{}return de}function pe(){!l&&_&&(l=Qs(function(){l=null,I(s,G,p)},_),l.unref())}function me(){l&&l.cancel(),l=null,v=0}R.processTelemetry=function(ye,se){R.processNext(ye,se)}}),e}return n.__ieDyn=1,n}(qm);var hb="duration";var _l="tags",XV="deviceType",Xu="data",pg="name",Ix="traceID",Ir="length",fb="stringify",gb="measurements",zp="dataType",_b="envelopeType",K0="toString",X0="enqueue",Q0="count",Up="push",yk="emitLineDelimitedJson",vb="clear",pE="markAsSent",Dx="clearSent",xk="bufferOverride",hE="BUFFER_KEY",Z0="SENT_BUFFER_KEY",bb="concat",fE="MAX_BUFFER_SIZE",gE="triggerSend",Nc="diagLog",QV="initialize",_E="_sender",vE="endpointUrl",bE="instrumentationKey",ZV="customHeaders",$X="maxBatchSizeInBytes",JV="onunloadDisableBeacon",e5="isBeaconApiDisabled",qX="alwaysUseXhrOverride",WX="enableSessionStorageBuffer",of="_buffer",YX="onunloadDisableFetch",KX="disableSendBeaconSplit",Ck="getSenderInst",yb="_onError",t5="_onPartialSuccess",Sk="_onSuccess",i5="itemsReceived",n5="itemsAccepted",r5="baseType",yE="sampleRate",Tfe="getHashCodeScore";var XX="baseType",Wa="baseData",sc="properties",Afe="true";function el(t,n,e){return Qo(t,n,e,Pv)}function Gqe(t,n,e){var i=e[_l]=e[_l]||{},r=n.ext=n.ext||{},o=n[_l]=n[_l]||[],a=r.user;a&&(el(i,la.userAuthUserId,a.authId),el(i,la.userId,a.id||a.localId));var s=r.app;s&&el(i,la.sessionId,s.sesId);var l=r.device;l&&(el(i,la.deviceId,l.id||l.localId),el(i,la[XV],l.deviceClass),el(i,la.deviceIp,l.ip),el(i,la.deviceModel,l.model),el(i,la[XV],l[XV]));var u=n.ext.web;if(u){el(i,la.deviceLanguage,u.browserLang),el(i,la.deviceBrowserVersion,u.browserVer),el(i,la.deviceBrowser,u.browser);var p=e[Xu]=e[Xu]||{},g=p[Wa]=p[Wa]||{},_=g[sc]=g[sc]||{};el(_,"domain",u.domain),el(_,"isManual",u.isManual?Afe:null),el(_,"screenRes",u.screenRes),el(_,"userConsent",u.userConsent?Afe:null)}var v=r.os;v&&(el(i,la.deviceOS,v[pg]),el(i,la.deviceOSVersion,v.osVer));var y=r.trace;y&&(el(i,la.operationParentId,y.parentID),el(i,la.operationName,ko(t,y[pg])),el(i,la.operationId,y[Ix]));for(var x={},I=o[Ir]-1;I>=0;I--){var C=o[I];Tn(C,function(A,M){x[A]=M}),o.splice(I,1)}Tn(o,function(A,M){x[A]=M});var D=Zs(Zs({},i),x);D[la.internalSdkVersion]||(D[la.internalSdkVersion]=ko(t,"javascript:".concat($qe.Version),64)),e[_l]=X4(D)}function xb(t,n,e){At(t)||Tn(t,function(i,r){Yh(r)?e[i]=r:qi(r)?n[i]=r:rg()&&(n[i]=pl()[fb](r))})}function Tx(t,n){At(t)||Tn(t,function(e,i){t[e]=i||n})}function Ax(t,n,e,i){var r=new TX(t,i,n);el(r,"sampleRate",e[qA]),(e[Wa]||{}).startTime&&(r.time=Op(e[Wa].startTime)),r.iKey=e.iKey;var o=e.iKey.replace(/-/g,"");return r[pg]=r[pg].replace("{0}",o),Gqe(t,e,r),e[_l]=e[_l]||[],X4(r)}function kx(t,n){At(n[Wa])&&Yt(t,1,46,"telemetryItem.baseData cannot be null.")}var $qe={Version:"3.3.10"};function kfe(t,n,e){kx(t,n);var i=n[Wa][gb]||{},r=n[Wa][sc]||{};xb(n[Xu],r,i),At(e)||Tx(r,e);var o=n[Wa];if(At(o))return Gm(t,"Invalid input for dependency data"),null;var a=o[sc]&&o[sc][SV]?o[sc][SV]:"GET",s=new jp(t,o.id,o.target,o[pg],o[hb],o.success,o.responseCode,a,o.type,o.correlationContext,r,i),l=new $0(jp[zp],s);return Ax(t,jp[_b],n,l)}function QX(t,n,e){kx(t,n);var i={},r={};n[XX]!==Lp[zp]&&(i.baseTypeSource=n[XX]),n[XX]===Lp[zp]?(i=n[Wa][sc]||{},r=n[Wa][gb]||{}):n[Wa]&&xb(n[Wa],i,r),xb(n[Xu],i,r),At(e)||Tx(i,e);var o=n[Wa][pg],a=new Lp(t,o,i,r),s=new $0(Lp[zp],a);return Ax(t,Lp[_b],n,s)}function Mfe(t,n,e){kx(t,n);var i=n[Wa][gb]||{},r=n[Wa][sc]||{};xb(n[Xu],r,i),At(e)||Tx(r,e);var o=n[Wa],a=pd.CreateFromInterface(t,o,r,i),s=new $0(pd[zp],a);return Ax(t,pd[_b],n,s)}function Ffe(t,n,e){kx(t,n);var i=n[Wa],r=i[sc]||{},o=i[gb]||{};xb(n[Xu],r,o),At(e)||Tx(r,e);var a=new Bp(t,i[pg],i.average,i.sampleCount,i.min,i.max,i.stdDev,r,o),s=new $0(Bp[zp],a);return Ax(t,Bp[_b],n,s)}function Rfe(t,n,e){kx(t,n);var i,r=n[Wa];!At(r)&&!At(r[sc])&&!At(r[sc][hb])?(i=r[sc][hb],delete r[sc][hb]):!At(n[Xu])&&!At(n[Xu][hb])&&(i=n[Xu][hb],delete n[Xu][hb]);var o=n[Wa],a;((n.ext||{}).trace||{})[Ix]&&(a=n.ext.trace[Ix]);var s=o.id||a,l=o[pg],u=o.uri,p=o[sc]||{},g=o[gb]||{};if(At(o.refUri)||(p.refUri=o.refUri),At(o.pageType)||(p.pageType=o.pageType),At(o.isLoggedIn)||(p.isLoggedIn=o.isLoggedIn[K0]()),!At(o[sc])){var _=o[sc];Tn(_,function(x,I){p[x]=I})}xb(n[Xu],p,g),At(e)||Tx(p,e);var v=new Wu(t,l,u,i,p,g,s),y=new $0(Wu[zp],v);return Ax(t,Wu[_b],n,y)}function Pfe(t,n,e){kx(t,n);var i=n[Wa],r=i[pg],o=i.uri||i.url,a=i[sc]||{},s=i[gb]||{};xb(n[Xu],a,s),At(e)||Tx(a,e);var l=new mg(t,r,o,void 0,a,s,i),u=new $0(mg[zp],l);return Ax(t,mg[_b],n,u)}function Nfe(t,n,e){kx(t,n);var i=n[Wa].message,r=n[Wa].severityLevel,o=n[Wa][sc]||{},a=n[Wa][gb]||{};xb(n[Xu],o,a),At(e)||Tx(o,e);var s=new ug(t,i,r,o,a),l=new $0(ug[zp],s);return Ax(t,ug[_b],n,l)}var Ofe=function(){function t(n,e){var i=[],r=!1,o=e.maxRetryCnt;this._get=function(){return i},this._set=function(a){return i=a,i},nr(t,this,function(a){a[X0]=function(s){if(a[Q0]()>=e.eventsLimitInMem){r||(Yt(n,2,105,"Maximum in-memory buffer size reached: "+a[Q0](),!0),r=!0);return}s.cnt=s.cnt||0,!(!At(o)&&s.cnt>o)&&i[Up](s)},a[Q0]=function(){return i[Ir]},a.size=function(){for(var s=i[Ir],l=0;l0){var l=[];Jt(s,function(p){l[Up](p.item)});var u=e[yk]?l.join(` `):"["+l.join(",")+"]";return u}return null},a.createNew=function(s,l,u){var p=i.slice(0);s=s||n,l=l||{};var g=u?new ZX(s,l):new o5(s,l);return Jt(p,function(_){g[X0](_)}),g}})}return t.__ieDyn=1,t}(),o5=function(t){oc(n,t);function n(e,i){var r=t.call(this,e,i)||this;return nr(n,r,function(o,a){o[pE]=function(s){a[vb]()},o[Dx]=function(s){}}),r}return n.__ieDyn=1,n}(Ofe);var qqe=["AI_buffer","AI_sentBuffer"],ZX=function(t){oc(n,t);function n(i,r){var o=t.call(this,i,r)||this,a=!1,s=r?.namePrefix,l=r[xk]||{getItem:nE,setItem:nk},u=l.getItem,p=l.setItem,g=r.maxRetryCnt;return nr(n,o,function(_,v){var y=M(n[hE]),x=M(n[Z0]),I=K(),C=x[bb](I),D=_._set(y[bb](C));D[Ir]>n[fE]&&(D[Ir]=n[fE]),j(n[Z0],[]),j(n[hE],D),_[X0]=function(V){if(_[Q0]()>=n[fE]){a||(Yt(i,2,67,"Maximum buffer size reached: "+_[Q0](),!0),a=!0);return}V.cnt=V.cnt||0,!(!At(g)&&V.cnt>g)&&(v[X0](V),j(n[hE],_._get()))},_[vb]=function(){v[vb](),j(n[hE],_._get()),j(n[Z0],[]),a=!1},_[pE]=function(V){j(n[hE],_._set(A(V,_._get())));var Q=M(n[Z0]);Q instanceof Array&&V instanceof Array&&(Q=Q[bb](V),Q[Ir]>n[fE]&&(Yt(i,1,67,"Sent buffer reached its maximum size: "+Q[Ir],!0),Q[Ir]=n[fE]),j(n[Z0],Q))},_[Dx]=function(V){var Q=M(n[Z0]);Q=A(V,Q),j(n[Z0],Q)},_.createNew=function(V,Q,te){te=!!te;var re=_._get().slice(0),O=M(n[Z0]).slice(0);V=V||i,Q=Q||{},_[vb]();var B=te?new n(V,Q):new o5(V,Q);return Jt(re,function(q){B[X0](q)}),te&&B[pE](O),B};function A(V,Q){var te=[],re=[];return Jt(V,function(O){re[Up](O.item)}),Jt(Q,function(O){!zi(O)&&ha(re,O.item)===-1&&te[Up](O)}),te}function M(V){var Q=V;return Q=s?s+"_"+Q:Q,R(Q)}function R(V){try{var Q=u(i,V);if(Q){var te=pl().parse(Q);if(qi(te)&&(te=pl().parse(te)),te&&pn(te))return te}}catch(re){Yt(i,1,42," storage key: "+V+", "+Mr(re),{exception:gi(re)})}return[]}function j(V,Q){var te=V;try{te=s?s+"_"+te:te;var re=JSON[fb](Q);p(i,te,re)}catch(O){p(i,te,JSON[fb]([])),Yt(i,2,41," storage key: "+te+", "+Mr(O)+". Buffer cleared",{exception:gi(O)})}}function K(){var V=[];try{return Jt(qqe,function(Q){var te=F(Q);if(V=V[bb](te),s){var re=s+"_"+Q,O=F(re);V=V[bb](O)}}),V}catch(Q){Yt(i,2,41,"Transfer events from previous buffers: "+Mr(Q)+". previous Buffer items can not be removed",{exception:gi(Q)})}return[]}function F(V){try{var Q=R(V),te=[];return Jt(Q,function(re){var O={item:re,cnt:0};te[Up](O)}),rk(i,V),te}catch{}return[]}}),o}var e;return e=n,n.VERSION="_1",n.BUFFER_KEY="AI_buffer"+e.VERSION,n.SENT_BUFFER_KEY="AI_sentBuffer"+e.VERSION,n.MAX_BUFFER_SIZE=2e3,n}(Ofe);var Lfe=function(){function t(n){nr(t,this,function(e){e.serialize=function(a){var s=i(a,"root");try{return pl()[fb](s)}catch(l){Yt(n,1,48,l&&zi(l[K0])?l[K0]():"Error serializing object",null,!0)}};function i(a,s){var l="__aiCircularRefCheck",u={};if(!a)return Yt(n,1,48,"cannot serialize object because it is null or undefined",{name:s},!0),u;if(a[l])return Yt(n,2,50,"Circular reference detected while serializing object",{name:s},!0),u;if(!a.aiDataContract){if(s==="measurements")u=o(a,"number",s);else if(s==="properties")u=o(a,"string",s);else if(s==="tags")u=o(a,"string",s);else if(pn(a))u=r(a,s);else{Yt(n,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{pl()[fb](a),u=a}catch(p){Yt(n,1,48,p&&zi(p[K0])?p[K0]():"Error serializing object",null,!0)}}return u}return a[l]=!0,Tn(a.aiDataContract,function(p,g){var _=zi(g)?g()&1:g&1,v=zi(g)?g()&4:g&4,y=g&2,x=a[p]!==void 0,I=Ks(a[p])&&a[p]!==null;if(_&&!x&&!y)Yt(n,1,24,"Missing required field specification. The field is required but not present on source",{field:p,name:s});else if(!v){var C=void 0;I?y?C=r(a[p],p):C=i(a[p],p):C=a[p],C!==void 0&&(u[p]=C)}}),delete a[l],u}function r(a,s){var l;if(a)if(!pn(a))Yt(n,1,54,`This field was specified as an array in the contract but the item is not an array.\r `,{name:s},!0);else{l=[];for(var u=0;u100||n<0)&&(i.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:n},!0),n=100),this[yE]=n,this.samplingScoreGenerator=new Bfe}return t.prototype.isSampledIn=function(n){var e=this[yE],i=!1;return e==null||e>=100||n.baseType===Bp[zp]?!0:(i=this.samplingScoreGenerator.getSamplingScore(n)0&&t<=100}var Qqe=(J0={},J0[Lp.dataType]=QX,J0[ug.dataType]=Nfe,J0[Wu.dataType]=Rfe,J0[mg.dataType]=Pfe,J0[pd.dataType]=Mfe,J0[Bp.dataType]=Ffe,J0[jp.dataType]=kfe,J0),JX=function(t){oc(n,t);function n(){var e=t.call(this)||this;e.priority=1001,e.identifier=OV;var i,r,o,a,s,l,u,p,g=0,_,v,y,x,I,C,D,A,M,R,j,K,F,V,Q,te,re,O,B,q,G,X,z,ee,pe,me,ye,se;return nr(n,e,function(de,Te){zl(),de.pause=function(){$n(),a=!0},de.resume=function(){a&&(a=!1,r=null,Je(),Ni())},de.flush=function($e,_t,mi){if($e===void 0&&($e=!0),!a){$n();try{var Zi=de[gE]($e,null,mi||1);return Js(Zi,function(wt){return _t?(_t(!wt.rejected),!0):$e?ud(function(An){An(!wt.rejected)}):Zi})}catch(wt){Yt(de[Nc](),1,22,"flush failed, telemetry will not be collected: "+Mr(wt),{exception:gi(wt)})}}},de.onunloadFlush=function(){if(!a)if(D||q)try{return de[gE](!0,tt,2)}catch($e){Yt(de[Nc](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Mr($e),{exception:gi($e)})}else de.flush(!1)},de.addHeader=function($e,_t){p[$e]=_t},de[QV]=function($e,_t,mi,Zi){de.isInitialized()&&Yt(de[Nc](),1,28,"Sender is already initialized"),Te[QV]($e,_t,mi,Zi);var wt=de.identifier;l=new Lfe(_t.logger),i=0,r=null,o=0,de[_E]=null,u=0;var An=de[Nc]();y=Zd(Ds("Sender"),_t.evtNamespace&&_t.evtNamespace()),v=NX(y),de._addHook(wo($e,function($r){var co=$r.cfg;co.storagePrefix&&bx(co.storagePrefix);var aa=fl(null,co,_t),Pi=aa.getExtCfg(wt,Ufe),dm=Pi[vE];if(x&&dm===x){var Br=co[vE];Br&&Br!==dm&&(Pi[vE]=Br)}var wd=Lo("CompressionStream");se=ix("zipPayload",co,!1),zi(wd)||(se=!1);var th=Pi.corsPolicy;th?(th==="same-origin"||th==="same-site"||th==="cross-origin")&&e.addHeader(Gfe,th):delete p[Gfe],Lm(Pi[bE])&&(Pi[bE]=co[bE]),Un(de,"_senderConfig",{g:function(){return Pi}}),I!==Pi[vE]&&(x=I=Pi[vE]),_t.activeStatus()===Zh.PENDING?de.pause():_t.activeStatus()===Zh.ACTIVE&&de.resume(),R&&R!==Pi[ZV]&&Jt(R,function(ms){delete p[ms.header]}),C=Pi[$X],D=(Pi[JV]===!1||Pi[e5]===!1)&&V0(),A=Pi[JV]===!1&&V0(),M=Pi[e5]===!1&&V0(),q=Pi[qX],G=!!Pi.disableXhr,ye=Pi.retryCodes;var uf=Pi[xk],Aa=!!Pi[WX]&&(!!uf||ab()),mu=Pi.namePrefix,pu=Aa!==te||Aa&&O!==mu||Aa&&re!==uf;if(de[of]){if(pu)try{de[of]=de[of].createNew(An,Pi,Aa)}catch(ms){Yt(de[Nc](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Mr(ms),{exception:gi(ms)})}Je()}else de[of]=Aa?new ZX(An,Pi):new o5(An,Pi);O=mu,te=Aa,re=uf,X=!Pi[YX]&&rx(!0),pe=!!Pi[KX],de._sample=new jfe(Pi.samplingPercentage,An),K=Pi[bE],!Lm(K)&&!Po(K,co)&&Yt(An,1,100,"Invalid Instrumentation key "+K),R=Pi[ZV],qi(x)&&!eE(x)&&R&&R[Ir]>0?Jt(R,function(ms){e.addHeader(ms.header,ms.value)}):R=null,B=Pi.enableSendPromise;var Ga=Re();me?me.SetConfig(Ga):(me=new rX,me[QV](Ga,An));var Ul=Pi.httpXHROverride,Vc=null,Bc=null,OI=Z4([3,1,2],Pi.transports);Vc=me&&me[Ck](OI,!1);var ay=me&&me.getFallbackInst();z=function(ms,nh){return ui(ay,ms,nh)},ee=function(ms,nh){return ui(ay,ms,nh,!1)},Vc=q?Ul:Vc||Ul||ay,de[_E]=function(ms,nh){return ui(Vc,ms,nh)},X&&(_=En);var ih=Z4([3,1],Pi.unloadTransports);X||(ih=ih.filter(function(ms){return ms!==2})),Bc=me&&me[Ck](ih,!0),Bc=q?Ul:Bc||Ul,(q||Pi.unloadTransports||!_)&&Bc&&(_=function(ms,nh){return ui(Bc,ms,nh)}),_||(_=z),j=Pi.disableTelemetry,F=Pi.convertUndefined||af,V=Pi.isRetryDisabled,Q=Pi.maxBatchInterval}))},de.processTelemetry=function($e,_t){_t=de._getTelCtx(_t);var mi=_t[Nc]();try{var Zi=_i($e,mi);if(!Zi)return;var wt=Ht($e,mi);if(!wt)return;var An=l.serialize(wt),$r=de[of];Je(An);var co={item:An,cnt:0};$r[X0](co),Ni()}catch(aa){Yt(mi,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Mr(aa),{exception:gi(aa)})}de.processNext($e,_t)},de.isCompletelyIdle=function(){return!a&&g===0&&de._buffer[Q0]()===0},de.getOfflineListener=function(){return v},de._xhrReadyStateChange=function($e,_t,mi){if(!ai(_t))return et($e,_t,mi)},de[gE]=function($e,_t,mi){$e===void 0&&($e=!0);var Zi;if(!a)try{var wt=de[of];if(j)wt[vb]();else{if(wt[Q0]()>0){var An=wt.getItems();Xn(mi||0,$e),_t?Zi=_t.call(de,An,$e):Zi=de[_E](An,$e)}o=+new Date}$n()}catch(co){var $r=TA();(!$r||$r>9)&&Yt(de[Nc](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Mr(co),{exception:gi(co)})}return Zi},de.getOfflineSupport=function(){return{getUrl:function(){return x},createPayload:bo,serialize:Yi,batch:Dr,shouldProcess:function($e){return!!_i($e)}}},de._doTeardown=function($e,_t){de.onunloadFlush(),B0(v,!1),zl()},de[yb]=function($e,_t,mi){if(!ai($e))return It($e,_t,mi)},de[t5]=function($e,_t){if(!ai($e))return kt($e,_t)},de[Sk]=function($e,_t){if(!ai($e))return ii($e,_t)},de._xdrOnLoad=function($e,_t){if(!ai(_t))return Ie($e,_t)};function Ie($e,_t){var mi=zfe($e);if($e&&(mi+""=="200"||mi===""))i=0,de[Sk](_t,0);else{var Zi=UA(mi);Zi&&Zi[i5]&&Zi[i5]>Zi[n5]&&!V?de[t5](_t,Zi):de[yb](_t,IA($e))}}function Re(){try{var $e={xdrOnComplete:function(mi,Zi,wt){var An=Ri(wt);if(An)return Ie(mi,An)},fetchOnComplete:function(mi,Zi,wt,An){var $r=Ri(An);if($r)return Ke(mi.status,$r,mi.url,$r[Ir],mi.statusText,wt||"")},xhrOnComplete:function(mi,Zi,wt){var An=Ri(wt);if(An)return et(mi,An,An[Ir])},beaconOnRetry:function(mi,Zi,wt){return ci(mi,Zi,wt)}},_t={enableSendPromise:B,isOneDs:!1,disableCredentials:!1,disableXhr:G,disableBeacon:!M,disableBeaconSync:!A,senderOnCompleteCallBack:$e};return _t}catch{}return null}function et($e,_t,mi){$e.readyState===4&&Ke($e.status,_t,$e.responseURL,mi,nx($e),zfe($e)||$e.response)}function It($e,_t,mi){Yt(de[Nc](),2,26,"Failed to send telemetry.",{message:_t}),de._buffer&&de._buffer[Dx]($e)}function kt($e,_t){for(var mi=[],Zi=[],wt=_t.errors.reverse(),An=0,$r=wt;An<$r.length;An++){var co=$r[An],aa=$e.splice(co.index,1)[0];sr(co.statusCode)?Zi[Up](aa):mi[Up](aa)}$e[Ir]>0&&de[Sk]($e,_t[n5]),mi[Ir]>0&&de[yb](mi,nx(null,["partial success",_t[n5],"of",_t.itemsReceived].join(" "))),Zi[Ir]>0&&(on(Zi),Yt(de[Nc](),2,40,"Partial success. Delivered: "+$e[Ir]+", Failed: "+mi[Ir]+". Will retry to send "+Zi[Ir]+" our of "+_t[i5]+" items"))}function ii($e,_t){de._buffer&&de._buffer[Dx]($e)}function Ri($e){try{if($e){var _t=$e,mi=_t.oriPayload;return mi&&mi[Ir]?mi:null}}catch{}return null}function _i($e,_t){if(j)return!1;if(!$e)return _t&&Yt(_t,1,7,"Cannot send empty telemetry"),!1;if($e.baseData&&!$e[r5])return _t&&Yt(_t,1,70,"Cannot send telemetry without baseData and baseType"),!1;if($e[r5]||($e[r5]="EventData"),!de[_E])return _t&&Yt(_t,1,28,"Sender was not initialized"),!1;if(Qe($e))$e[qA]=de._sample[yE];else return _t&&Yt(_t,2,33,"Telemetry item was sampled out and not sent",{SampleRate:de._sample[yE]}),!1;return!0}function Ht($e,_t){var mi=$e.iKey||K,Zi=n.constructEnvelope($e,mi,_t,F);if(!Zi){Yt(_t,1,47,"Unable to create an AppInsights envelope");return}var wt=!1;if($e[_l]&&$e[_l][WA]&&(Jt($e[_l][WA],function(An){try{An&&An(Zi)===!1&&(wt=!0,Gm(_t,"Telemetry processor check returns false"))}catch($r){Yt(_t,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Mr($r),{exception:gi($r)},!0)}}),delete $e[_l][WA]),!wt)return Zi}function Yi($e){var _t=Hfe,mi=de[Nc]();try{var Zi=_i($e,mi),wt=null;Zi&&(wt=Ht($e,mi)),wt&&(_t=l.serialize(wt))}catch{}return _t}function Dr($e){var _t=Hfe;return $e&&$e[Ir]&&(_t="["+$e.join(",")+"]"),_t}function bo($e){var _t=Be();return{urlString:x,data:$e,headers:_t}}function Qe($e){return de._sample.isSampledIn($e)}function Rt($e,_t,mi,Zi){_t===200&&$e?de._onSuccess($e,$e[Ir]):Zi&&de[yb]($e,Zi)}function ui($e,_t,mi,Zi){Zi===void 0&&(Zi=!0);var wt=function(Br,wd,th){return Rt(_t,Br,wd,th)},An=ei(_t),$r=$e&&$e.sendPOST;if($r&&An){Zi&&de._buffer[pE](_t);var co,aa=!1,Pi,dm;return me.preparePayload(function(Br){co=$r(Br,wt,!mi),aa=!0,Pi&&z4(co,Pi,dm)},se,An,!mi),aa?co:ud(function(Br,wd){Pi=Br,dm=wd})}return null}function ei($e){if(pn($e)&&$e[Ir]>0){var _t=de[of].batchPayloads($e),mi=Be(),Zi={data:_t,urlString:x,headers:mi,disableXhrSync:G,disableFetchKeepAlive:!X,oriPayload:$e};return Zi}return null}function Be(){try{var $e=p||{};return eE(x)&&($e[Ho[6]]=Ho[7]),$e}catch{}return null}function Je($e){var _t=$e?$e[Ir]:0;return de[of].size()+_t>C?((!v||v.isOnline())&&de[gE](!0,null,10),!0):!1}function Ke($e,_t,mi,Zi,wt,An){var $r=null;if(de._appId||($r=UA(An),$r&&$r.appId&&(de._appId=$r.appId)),($e<200||$e>=300)&&$e!==0){if(($e===301||$e===307||$e===308)&&!nt(mi)){de[yb](_t,wt);return}if(v&&!v.isOnline()){if(!V){var co=10;on(_t,co),Yt(de[Nc](),2,40,". Offline - Response Code: ".concat($e,". Offline status: ").concat(!v.isOnline(),". Will retry to send ").concat(_t.length," items."))}return}!V&&sr($e)?(on(_t),Yt(de[Nc](),2,40,". Response code "+$e+". Will retry to send "+_t[Ir]+" items.")):de[yb](_t,wt)}else nt(mi),$e===206?($r||($r=UA(An)),$r&&!V?de[t5](_t,$r):de[yb](_t,wt)):(i=0,de[Sk](_t,Zi))}function nt($e){return u>=10?!1:!At($e)&&$e!==""&&$e!==x?(x=$e,++u,!0):!1}function tt($e,_t){if(_)_($e,!1);else{var mi=me&&me[Ck]([3],!0);return ui(mi,$e,_t)}}function ci($e,_t,mi){var Zi=$e,wt=Zi&&Zi.oriPayload;if(pe)ee&&ee(wt,!0),Yt(de[Nc](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var An=[],$r=0;$r0&&(ee&&ee(An,!0),Yt(de[Nc](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function ai($e){try{if($e&&$e[Ir])return qi($e[0])}catch{}return null}function En($e,_t){var mi=null;if(pn($e)){for(var Zi=$e[Ir],wt=0;wt<$e[Ir];wt++)Zi+=$e[wt].item[Ir];var An=me.getSyncFetchPayload();An+Zi<=Yqe?mi=2:V0()?mi=3:(mi=1,Yt(de[Nc](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var $r=me&&me[Ck]([mi],!0);return ui($r,$e,_t)}return null}function on($e,_t){if(_t===void 0&&(_t=1),!(!$e||$e[Ir]===0)){var mi=de[of];mi[Dx]($e),i++;for(var Zi=0,wt=$e;Zi-1}function qn(){var $e="getNotifyMgr",_t,mi=de.core;return mi&&(mi[$e]?_t=mi[$e]():_t=mi._notificationManager),_t}function Xn($e,_t){var mi=qn();if(mi&&mi.eventsSendRequest)try{mi.eventsSendRequest($e,_t)}catch(Zi){Yt(de[Nc](),1,74,"send request notification failed: "+Mr(Zi),{exception:gi(Zi)})}}function Po($e,_t){var mi=_t.disableInstrumentationKeyValidation,Zi=At(mi)?!1:mi;if(Zi)return!0;var wt="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",An=new RegExp(wt);return An.test($e)}function zl(){de[_E]=null,de[of]=null,de._appId=null,de._sample=null,p={},v=null,i=0,r=null,o=null,a=!1,s=null,l=null,u=0,g=0,_=null,y=null,x=null,I=null,C=0,D=!1,R=null,j=!1,K=null,F=af,V=!1,te=null,O=af,G=!1,X=!1,pe=!1,z=null,ee=null,me=null,Un(de,"_senderConfig",{g:function(){return Q4({},Ufe)}})}}),e}return n.constructEnvelope=function(e,i,r,o){var a;i!==e.iKey&&!At(i)?a=Zs(Zs({},e),{iKey:i}):a=e;var s=Qqe[a.baseType]||QX;return s(r,a,o)},n}(qm);var eQ="duration",Cb="properties";var Km="requestUrl",e_="length",hg="traceID",fg="spanID",Xm="traceFlags",xE="context",Sb="aborted",wk="_addHook",Qu="core",a5="includeCorrelationHeaders",Ek="getAbsoluteUrl",wb="headers",Zu="requestHeaders",s5="setRequestHeader",tQ="trackDependencyDataInternal",Eb="startTime",Mx="toLowerCase",l5="enableRequestHeaderTracking",iQ="enableAjaxErrorStatusText",nQ="enableAjaxPerfTracking",rQ="maxAjaxCallsPerView",oQ="excludeRequestFromAutoTrackingPatterns",c5="disableAjaxTracking",aQ="ajaxPerfLookupDelay",sQ="disableFetchTracking",lQ="enableResponseHeaderTracking",Qm="status",t_="statusText",CE="headerMap",i_="requestSentTime",Ik="getTraceId",Dk="getTraceFlags",gg="method",Tk="errorStatusText",d5="stateChangeAttached",cQ="responseText",Fx="responseFinishedTime",Ak="CreateTrackItem",dQ="getAllResponseHeaders",kk="getPartAProps",SE="perfMark",Mk="perfTiming",u5="ajaxDiagnosticsMessage",Fk="correlationContext",m5="ajaxTotalDuration",p5="eventTraceCtx";function $fe(t,n,e){var i=0,r=t[n],o=t[e];return r&&o&&(i=Nl(r,o)),i}function Rx(t,n,e,i,r){var o=0,a=$fe(e,i,r);return a&&(o=Ib(t,n,Wm(a))),o}function Ib(t,n,e){var i="ajaxPerf",r=0;if(t&&n&&e){var o=t[i]=t[i]||{};o[n]=e,r=1}return r}function Zqe(t,n){var e=t[Mk],i=n[Cb]||{},r=0,o="name",a="Start",s="End",l="domainLookup",u="connect",p="redirect",g="request",_="response",v="startTime",y=l+a,x=l+s,I=u+a,C=u+s,D=g+a,A=g+s,M=_+a,R=_+s,j=p+a,K=p=s,F="transferSize",V="encodedBodySize",Q="decodedBodySize",te="serverTiming";if(e){r|=Rx(i,p,e,j,K),r|=Rx(i,l,e,y,x),r|=Rx(i,u,e,I,C),r|=Rx(i,g,e,D,A),r|=Rx(i,_,e,M,R),r|=Rx(i,"networkConnect",e,v,C),r|=Rx(i,"sentRequest",e,D,R);var re=e[eQ];re||(re=$fe(e,v,R)||0),r|=Ib(i,eQ,re),r|=Ib(i,"perfTotal",re);var O=e[te];if(O){var B={};Jt(O,function(q,G){var X=ex(q[o]||""+G),z=B[X]||{};Tn(q,function(ee,pe){(ee!==o&&qi(pe)||Yh(pe))&&(z[ee]&&(pe=z[ee]+";"+pe),(pe||!qi(pe))&&(z[ee]=pe))}),B[X]=z}),r|=Ib(i,te,B)}r|=Ib(i,F,e[F]),r|=Ib(i,V,e[V]),r|=Ib(i,Q,e[Q])}else t[SE]&&(r|=Ib(i,"missing",t.perfAttempts));r&&(n[Cb]=i)}var Jqe=function(){function t(){var n=this;n.openDone=!1,n.setRequestHeaderDone=!1,n.sendDone=!1,n.abortDone=!1,n[d5]=!1}return t}();var uQ=function(){function t(n,e,i,r){var o=this,a=i,s="responseText";o[SE]=null,o.completed=!1,o.requestHeadersSize=null,o[Zu]=null,o.responseReceivingDuration=null,o.callbackDuration=null,o[m5]=null,o[Sb]=0,o.pageUrl=null,o[Km]=null,o.requestSize=0,o[gg]=null,o[Qm]=null,o[i_]=null,o.responseStartedTime=null,o[Fx]=null,o.callbackFinishedTime=null,o.endTime=null,o.xhrMonitoringState=new Jqe,o.clientFailure=0,o[hg]=n,o[fg]=e,o[Xm]=r?.getTraceFlags(),r?o[p5]={traceId:r[Ik](),spanId:r.getSpanId(),traceFlags:r[Dk]()}:o[p5]=null,nr(t,o,function(l){l.getAbsoluteUrl=function(){return l[Km]?yX(l[Km]):null},l.getPathName=function(){return l[Km]?G0(a,xX(l[gg],l[Km])):null},l[Ak]=function(u,p,g){var _;if(l.ajaxTotalDuration=I4(Nl(l.requestSentTime,l.responseFinishedTime)*1e3)/1e3,l[m5]<0)return null;var v=(_={id:"|"+l[hg]+"."+l[fg],target:l[Ek](),name:l.getPathName(),type:u,startTime:null,duration:l[m5],success:+l[Qm]>=200&&+l[Qm]<400,responseCode:+l[Qm]},_[Cb]={HttpMethod:l[gg]},_),y=v[Cb];if(l[Sb]&&(y[Sb]=!0),l[i_]&&(v[Eb]=new Date,v[Eb].setTime(l[i_])),Zqe(l,v),p&&ld(l.requestHeaders)[e_]>0&&(y[Zu]=l[Zu]),g){var x=g();if(x){var I=x[Fk];if(I&&(v.correlationContext=I),x[CE]&&ld(x.headerMap)[e_]>0&&(y.responseHeaders=x[CE]),l[Tk])if(l[Qm]>=400){var C=x.type;(C===""||C==="text")&&(y.responseText=x.responseText?x[t_]+" - "+x[s]:x[t_]),C==="json"&&(y.responseText=x.response?x[t_]+" - "+JSON.stringify(x.response):x[t_])}else l[Qm]===0&&(y.responseText=x[t_]||"")}}return v},l[kk]=function(){var u=null,p=l[p5];if(p&&(p.traceId||p.spanId)){u={};var g=u[hd.TraceExt]={traceID:p.traceId,parentID:p.spanId};At(p[Xm])||(g[Xm]=p[Xm])}return u}})}return t.__ieDyn=1,t}();var Ts,Nk="diagLog",Db="_ajaxData",Px="fetch",Rk="Failed to monitor XMLHttpRequest",Zfe=", monitoring data for this ajax call ",wE=Zfe+"may be incorrect.",qfe=Zfe+"won't be sent.",Wfe="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Yfe="Failed to add custom defined request context as configured call back may missing a null check.",Kfe="Failed to calculate the duration of the ",Xfe=0;function eWe(){var t=Xs();return!t||At(t.Request)||At(t.Request[dd])||At(t[Px])?null:t[Px]}function tWe(t,n){var e,i=!1;if(Uv()){var r=XMLHttpRequest[dd];i=!At(r)&&!At(r.open)&&!At(r.send)&&!At(r.abort)}var o=TA();if(o&&o<9&&(i=!1),i)try{var a=new XMLHttpRequest,s={xh:[],i:(e={},e[n]={},e)};a[Db]=s;var l=XMLHttpRequest[dd].open;XMLHttpRequest[dd].open=l}catch(u){i=!1,Ok(t,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:gi(u)})}return i}var IE=function(t,n){return t&&n&&t[Db]?(t[Db].i||{})[n]:null},iWe=function(t,n,e){if(t){var i=(t[Db]||{}).xh;i&&i.push({n,v:e})}},mQ=function(t,n){var e=!1;if(t){var i=(t[Db]||{}).xh;i&&Jt(i,function(r){if(r.n===n)return e=!0,-1})}return e};function f5(t,n){var e="";try{var i=IE(t,n);i&&i[Km]&&(e+="(url: '"+i[Km]+"')")}catch{}return e}function Ok(t,n,e,i,r){Yt(t[Nk](),1,n,e,i,r)}function n_(t,n,e,i,r){Yt(t[Nk](),2,n,e,i,r)}function Pk(t,n,e){return function(i){var r;Ok(t,n,e,(r={},r[u5]=f5(i.inst,t._ajaxDataId),r.exception=gi(i.err),r))}}function EE(t,n){return t&&n?Xo(t,n):-1}function Qfe(t,n,e){var i={id:n,fn:e};return t.push(i),{remove:function(){Jt(t,function(r,o){if(r.id===i.id)return t.splice(o,1),-1})}}}function Jfe(t,n,e,i){var r=!0;return Jt(n,function(o,a){try{o.fn.call(null,e)===!1&&(r=!1)}catch(s){Yt(t&&t.logger,1,64,"Dependency "+i+" [#"+a+"] failed: "+Mr(s),{exception:gi(s)},!0)}}),r}function nWe(t,n,e,i,r,o){var a=t[e_],s=!0;if(a>0){var l={core:n,xhr:i,input:r,init:o,traceId:e[hg],spanId:e[fg],traceFlags:e[Xm],context:e[xE]||{},aborted:!!e[Sb]};s=Jfe(n,t,l,"listener"),e[hg]=l.traceId,e[fg]=l.spanId,e[Xm]=l[Xm],e[xE]=l[xE]}return s}var h5="*.blob.core.",ege=cd([h5+"windows.net",h5+"chinacloudapi.cn",h5+"cloudapi.de",h5+"usgovcloudapi.net"]),rWe=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],oWe=cd((Ts={},Ts[rQ]=500,Ts[c5]=!1,Ts[sQ]=!1,Ts[oQ]=void 0,Ts.disableCorrelationHeaders=!1,Ts.distributedTracingMode=1,Ts.correlationHeaderExcludedDomains=ege,Ts.correlationHeaderDomains=void 0,Ts.correlationHeaderExcludePatterns=void 0,Ts.appId=void 0,Ts.enableCorsCorrelation=!1,Ts[l5]=!1,Ts[lQ]=!1,Ts[iQ]=!1,Ts[nQ]=!1,Ts.maxAjaxPerfLookupAttempts=3,Ts[aQ]=25,Ts.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],Ts.addRequestContext=void 0,Ts.addIntEndpoints=!0,Ts)),pQ=function(t){oc(n,t);function n(){var e=t.call(this)||this;e.identifier=n.identifier,e.priority=120;var i,r,o,a,s,l,u,p,g,_,v,y,x,I,C,D,A,M,R,j,K,F,V,Q,te,re,O,B,q,G;return nr(n,e,function(X,z){var ee=z[wk];pe(),X.initialize=function(Be,Je,Ke,nt){X.isInitialized()||(z.initialize(Be,Je,Ke,nt),j=Zd(Ds("ajax"),Je&&Je.evtNamespace&&Je.evtNamespace()),me(Be),Ie(),de(),ye())},X._doTeardown=function(){pe()},X.trackDependencyData=function(Be,Je){ei(Q,X[Qu],null,Be,Je)},X.resetAjaxAttempts=function(){u=0},X[a5]=function(Be,Je,Ke,nt){var tt=X._currentWindowHost||o;if(nWe(V,X[Qu],Be,nt,Je,Ke)){if(Je||Je===""){if(kV(a,Be[Ek](),tt)){Ke||(Ke={});var ci=new Headers(Ke[wb]||(Je instanceof Request?Je[wb]||{}:{}));if(_){var ai="|"+Be[hg]+"."+Be[fg];ci.set(Ho[3],ai),s&&(Be[Zu][Ho[3]]=ai)}var En=q||p&&p.appId();if(En&&(ci.set(Ho[0],Ho[2]+En),s&&(Be[Zu][Ho[0]]=Ho[2]+En)),g){var on=Be[Xm];At(on)&&(on=1);var ut=HA(jA(Be[hg],Be[fg],on));ci.set(Ho[4],ut),s&&(Be[Zu][Ho[4]]=ut)}Ke[wb]=ci}}else if(nt&&kV(a,Be[Ek](),tt)){if(_)if(mQ(nt,Ho[3]))n_(X,71,"Unable to set ["+Ho[3]+"] as it has already been set by another instance");else{var ai="|"+Be[hg]+"."+Be[fg];nt[s5](Ho[3],ai),s&&(Be[Zu][Ho[3]]=ai)}var En=q||p&&p.appId();if(En&&(mQ(nt,Ho[0])?n_(X,71,"Unable to set ["+Ho[0]+"] as it has already been set by another instance"):(nt[s5](Ho[0],Ho[2]+En),s&&(Be[Zu][Ho[0]]=Ho[2]+En))),g){var on=Be[Xm];if(At(on)&&(on=1),mQ(nt,Ho[4]))n_(X,71,"Unable to set ["+Ho[4]+"] as it has already been set by another instance");else{var ut=HA(jA(Be[hg],Be[fg],on));nt[s5](Ho[4],ut),s&&(Be[Zu][Ho[4]]=ut)}}}}return nt||Ke},X[tQ]=function(Be,Je,Ke){if(x===-1||u=0;qn--){var Xn=sr[qn];if(Xn){if(Xn.entryType==="resource")Xn.initiatorType===Be&&(EE(Xn.name,on)!==-1||EE(on,Xn.name)!==-1)&&($n=Xn);else if(Xn.entryType==="mark"&&Xn.name===tt.name){Je[Mk]=$n;break}if(Xn[Eb]=ai||Je.async===!1?(tt&&zi(ci.clearMarks)&&ci.clearMarks(tt.name),Je.perfAttempts=ut,Ke()):Qs(Ni,En)}catch(Po){nt(Po)}})()}function bo(Be,Je){var Ke,nt=It(),tt=nt&&nt[Ik]()||$m(),ci=Xh($m(),0,16),ai=new uQ(tt,ci,X[Nk](),(Ke=X.core)===null||Ke===void 0?void 0:Ke.getTraceCtx());ai[Xm]=nt&&nt[Dk](),ai[i_]=tE(),ai[Tk]=l;var En;if(Be instanceof Request?En=(Be||{}).url||"":En=Be,En===""){var on=Rc();on&&on.href&&(En=jY(on.href,"#")[0])}X[Qu]&&X[Qu].config&&(En=Kd(En,X[Qu].config)),ai[Km]=En;var ut="GET";Je&&Je[gg]?ut=Je[gg]:Be&&Be instanceof Request&&(ut=Be[gg]),ai[gg]=ut;var Ni={};if(s){var $n=new Headers((Je?Je[wb]:0)||(Be instanceof Request?Be[wb]||{}:{}));$n.forEach(function(sr,qn){se(qn)&&(Ni[qn]=sr)})}return ai[Zu]=Ni,Yi(Px,ai),ai}function Qe(Be){var Je="";try{At(Be)||(typeof Be=="string"?Je+="(url: '".concat(Be,"')"):Je+="(url: '".concat(Be.url,"')"))}catch(Ke){Ok(X,15,"Failed to grab failed fetch diagnostics message",{exception:gi(Ke)})}return Je}function Rt(Be,Je,Ke,nt,tt,ci,ai){if(!tt)return;function En(on,ut,Ni){var $n=Ni||{};$n.fetchDiagnosticsMessage=Qe(Ke),ut&&($n.exception=gi(ut)),n_(X,on,Kfe+"fetch call"+qfe,$n)}tt[Fx]=tE(),tt[Qm]=Je,Dr(Px,tt,function(){var on=tt[Ak]("Fetch",s,ci),ut;try{R&&(ut=R({status:Je,request:Ke,response:nt}))}catch{n_(X,104,Yfe)}if(on){ut!==void 0&&(on[Cb]=Zs(Zs({},on.properties),ut));var Ni=tt[kk]();ei(Q,X[Qu],tt,on,null,Ni)}else En(14,null,{requestSentTime:tt[i_],responseFinishedTime:tt[Fx]})},function(on){En(18,on,null)})}function ui(Be){if(Be&&Be[wb])try{var Je=Be[wb].get(Ho[0]);return MV(Je)}catch(Ke){n_(X,18,Wfe,{fetchDiagnosticsMessage:Qe(Be),exception:gi(Ke)})}}function ei(Be,Je,Ke,nt,tt,ci){var ai=!0,En=Be[e_];if(En>0){var on={item:nt,properties:tt,sysProperties:ci,context:Ke?Ke[xE]:null,aborted:Ke?!!Ke[Sb]:!1};ai=Jfe(Je,Be,on,"initializer")}ai&&X[tQ](nt,tt,ci)}}),e}return n.prototype.processTelemetry=function(e,i){this.processNext(e,i)},n.prototype.addDependencyInitializer=function(e){return null},n.identifier="AjaxDependencyPlugin",n}(qm);var tge=function(){function t(){}return t}();var ige=function(){function t(){this.id="browser",this.deviceClass="Browser"}return t}();var aWe="3.3.10",nge=function(){function t(n,e){var i=this,r=wo(n,function(){var o=n.sdkExtension;i.sdkVersion=(o?o+"_":"")+"javascript:"+aWe});e&&e.add(r)}return t}();var rge=function(){function t(){}return t}();var DE="session",TE="sessionManager",AE="isUserCookieSet",kE="isNewUser",g5="getTraceCtx",Lk="telemetryTrace",_5="applySessionContext",v5="applyApplicationContext",b5="applyOperationContext",y5="applyOperatingSystemContxt",x5="applyLocationContext",C5="applyInternalContext",ME="getSessionId",S5="sessionCookiePostfix",r_="automaticSession",Tb="accountId",Ab="authenticatedId",FE="acquisitionDate",Vk="renewalDate",RE="cookieSeparator",w5="authUserCookieName";var sWe="ai_session",lWe=864e5,cWe=18e5,dWe=6e4,hQ=function(){function t(){}return t}();var oge=function(){function t(n,e,i){var r=this,o,a,s=Qd(e),l=lx(e),u,p;nr(t,r,function(g){n||(n={});var _=wo(n,function(D){u=n.sessionExpirationMs||lWe,p=n.sessionRenewalMs||cWe;var A=n[S5]||n.namePrefix||"";o=sWe+A});i&&i.add(_),g[r_]=new hQ,g.update=function(){var D=dl(),A=!1,M=g[r_];if(M.id||(A=!v(M,D)),!A&&u>0){var R=D-M[FE],j=D-M[Vk];A=R<0||j<0,A=A||R>u,A=A||j>p}A?x(D):(!a||D-a>dWe)&&I(M,D)},g.backup=function(){var D=g[r_];C(D.id,D[FE],D[Vk])};function v(D,A){var M=!1,R=l.get(o);if(R&&zi(R.split))M=y(D,R);else{var j=tk(s,o);j&&(M=y(D,j))}return M||!!D.id}function y(D,A){var M=!1,R=", session will be reset",j=A.split("|");if(j.length>=2)try{var K=+j[1]||0,F=+j[2]||0;isNaN(K)||K<=0?Yt(s,2,27,"AI session acquisition date is 0"+R):isNaN(F)||F<=0?Yt(s,2,27,"AI session renewal date is 0"+R):j[0]&&(D.id=j[0],D[FE]=K,D[Vk]=F,M=!0)}catch(V){Yt(s,1,9,"Error parsing ai_session value ["+(A||"")+"]"+R+" - "+Mr(V),{exception:gi(V)})}return M}function x(D){var A=n.getNewId||ax;g[r_].id=A(n.idLength||22),g[r_][FE]=D,I(g[r_],D),yx()||Yt(s,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function I(D,A){var M=D[FE];D[Vk]=A;var R=p,j=M+u-A,K=[D.id,M,A],F=0;j0?F:null,V),a=A}function C(D,A,M){ik(s,o,[D,A,M].join("|"))}})}return t.__ieDyn=1,t}();var age=function(){function t(n,e,i,r,o){var a=this;a.traceID=n||$m(),a.parentID=e;var s=Rc();!i&&s&&s.pathname&&(i=s.pathname,o&&(i=Kd(i,o))),a.name=ko(r,i)}return t}();function sge(t){return!(typeof t!="string"||!t||t.match(/,|;|=| |\|/))}var lge=function(){function t(n,e,i){this.isNewUser=!1,this.isUserCookieSet=!1;var r=Qd(e),o=lx(e),a;nr(t,this,function(s){Un(s,"config",{g:function(){return n}});var l=wo(n,function(){var _=n.userCookiePostfix||"";a=t.userCookieName+_;var v=o.get(a);if(v){s[kE]=!1;var y=v.split(t[RE]);y.length>0&&(s.id=y[0],s[AE]=!!s.id)}if(!s.id){s.id=u();var x=p(s.id);g(x.join(t[RE]));var I=(n.namePrefix||"")+"ai_session";IX(r,I)}s[Tb]=n[Tb]||void 0;var C=o.get(t[w5]);if(C){C=decodeURI(C);var D=C.split(t[RE]);D[0]&&(s[Ab]=D[0]),D.length>1&&D[1]&&(s[Tb]=D[1])}});i&&i.add(l);function u(){var _=n||{},v=_.getNewId||ax,y=v(_.idLength?n.idLength:22);return y}function p(_){var v=Op(new Date);s.accountAcquisitionDate=v,s[kE]=!0;var y=[_,v];return y}function g(_){var v=31536e3;s[AE]=o.set(a,_,v)}s.setAuthenticatedUserContext=function(_,v,y){y===void 0&&(y=!1);var x=!sge(_)||v&&!sge(v);if(x){Yt(r,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}s[Ab]=_;var I=s[Ab];v&&(s[Tb]=v,I=[s[Ab],s.accountId].join(t[RE])),y&&o.set(t[w5],encodeURI(I))},s.clearAuthenticatedUserContext=function(){s[Ab]=null,s[Tb]=null,o.del(t[w5])},s.update=function(_){if(s.id!==_||!s[AE]){var v=_||u(),y=p(v);g(y.join(t[RE]))}}})}return t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}();var E5="ext",I5="tags";function PE(t,n){t&&t[n]&&ld(t[n]).length===0&&delete t[n]}function cge(){return null}var dge=function(){function t(n,e,i,r){var o=this,a=n.logger;nr(t,this,function(s){if(s.appId=cge,s[ME]=cge,s.application=new tge,s.internal=new nge(e,r),Ov()){s[TE]=new oge(e,n,r),s.device=new ige,s.location=new rge,s.user=new lge(e,n,r);var l=void 0,u=void 0,p;i&&(l=i.getTraceId(),u=i.getSpanId(),p=i.getName()),s[Lk]=new age(l,u,p,a),s[DE]=new hQ}s[ME]=function(){var g=s[DE],_=null;if(g&&qi(g.id))_=g.id;else{var v=(s[TE]||{})[r_];_=v&&qi(v.id)?v.id:null}return _},s[_5]=function(g,_){Qo(Pl(g.ext,hd.AppExt),"sesId",s[ME](),qi)},s[y5]=function(g,_){Qo(g.ext,hd.OSExt,s.os)},s[v5]=function(g,_){var v=s.application;if(v){var y=Pl(g,I5);Qo(y,la.applicationVersion,v.ver,qi),Qo(y,la.applicationBuild,v.build,qi)}},s.applyDeviceContext=function(g,_){var v=s.device;if(v){var y=Pl(Pl(g,E5),hd.DeviceExt);Qo(y,"localId",v.id,qi),Qo(y,"ip",v.ip,qi),Qo(y,"model",v.model,qi),Qo(y,"deviceClass",v.deviceClass,qi)}},s[C5]=function(g,_){var v=s.internal;if(v){var y=Pl(g,I5);Qo(y,la.internalAgentVersion,v.agentVersion,qi),Qo(y,la.internalSdkVersion,ko(a,v.sdkVersion,64),qi),(g.baseType===j0.dataType||g.baseType===Wu.dataType)&&(Qo(y,la.internalSnippet,v.snippetVer,qi),Qo(y,la.internalSdkSrc,v.sdkSrc,qi))}},s[x5]=function(g,_){var v=o.location;v&&Qo(Pl(g,I5,[]),la.locationIp,v.ip,qi)},s[b5]=function(g,_){var v=s[Lk];if(v){var y=Pl(Pl(g,E5),hd.TraceExt,{traceID:void 0,parentID:void 0});Qo(y,"traceID",v.traceID,qi,At),Qo(y,"name",v.name,qi,At),Qo(y,"parentID",v.parentID,qi,At)}},s.applyWebContext=function(g,_){var v=o.web;v&&Qo(Pl(g,E5),hd.WebExt,v)},s.applyUserContext=function(g,_){var v=s.user;if(v){var y=Pl(g,I5,[]);Qo(y,la.userAccountId,v[Tb],qi);var x=Pl(Pl(g,E5),hd.UserExt);Qo(x,"id",v.id,qi),Qo(x,"authId",v[Ab],qi)}},s.cleanUp=function(g,_){var v=g.ext;v&&(PE(v,hd.DeviceExt),PE(v,hd.UserExt),PE(v,hd.WebExt),PE(v,hd.OSExt),PE(v,hd.AppExt),PE(v,hd.TraceExt))}})}return t.__ieDyn=1,t}();var kb,fQ,NE=null,uWe=Mp((kb={accountId:NE,sessionRenewalMs:30*60*1e3,samplingPercentage:100,sessionExpirationMs:24*60*60*1e3,cookieDomain:NE,sdkExtension:NE,isBrowserLinkTrackingEnabled:!1,appId:NE},kb[ME]=NE,kb.namePrefix=fQ,kb[S5]=fQ,kb.userCookiePostfix=fQ,kb.idLength=22,kb.getNewId=NE,kb)),mWe=function(t){oc(n,t);function n(){var e=t.call(this)||this;e.priority=110,e.identifier=cb;var i,r,o,a,s;return nr(n,e,function(l,u){p(),Un(l,"context",{g:function(){return a}}),l.initialize=function(v,y,x,I){u.initialize(v,y,x,I),g(v)},l.processTelemetry=function(v,y){if(!At(v)){y=l._getTelCtx(y),v.name===Wu.envelopeType&&y.diagLog().resetInternalMessageCount();var x=a||{};x[DE]&&typeof a[DE].id!="string"&&x[TE]&&x[TE].update();var I=x.user;if(I&&!I[AE]&&I.update(x.user.id),_(v,y),I&&I[kE]&&(I[kE]=!1,!s)){var C=new j0(72,(Fc()||{}).userAgent||"");jK(y.diagLog(),1,C)}l.processNext(v,y)}},l._doTeardown=function(v,y){var x=(v||{}).core();if(x&&x[g5]){var I=x[g5](!1);I===r&&x.setTraceCtx(o)}p()};function p(){i=null,r=null,o=null,a=null,s=!0}function g(v){var y=l.identifier,x=l.core;l._addHook(wo(v,function(){var I=fl(null,v,x);v.storagePrefix&&bx(v.storagePrefix),s=v.disableUserInitMessage!==!1,i=I.getExtCfg(y,uWe),l._extConfig=i})),o=x[g5](!1),a=new dge(x,i,o,l._unloadHooks),r=vx(l.context[Lk],o),x.setTraceCtx(r),l.context.appId=function(){var I=x.getPlugin(OV);return I?I.plugin._appId:null}}function _(v,y){Pl(v,"tags",[]),Pl(v,"ext",{});var x=l.context;x[_5](v,y),x[v5](v,y),x.applyDeviceContext(v,y),x[b5](v,y),x.applyUserContext(v,y),x[y5](v,y),x.applyWebContext(v,y),x[x5](v,y),x[C5](v,y),x.cleanUp(v,y)}}),e}return n.__ieDyn=1,n}(qm),gQ=mWe;var uge="AuthenticatedUserContext",OE="track";var D5="snippet",mge="getCookieMgr",pge="startTrackPage",hge="stopTrackPage",T5="flush",fge="startTrackEvent",gge="stopTrackEvent",_Q="addTelemetryInitializer",kJt=_Q+"s",vQ="pollInternalLogs",A5="getPlugin",k5="evtNamespace",_ge=OE+"Event",vge=OE+"Trace",bge=OE+"Metric",yge=OE+"PageView",xge=OE+"Exception",Cge=OE+"DependencyData",Sge="set"+uge,wge="clear"+uge,Ege="https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json";var Bk="connectionString",M5="version",Mb="queue",LE="instrumentationKey",Nx="userOverrideEndpointUrl",F5="endpointUrl",VE="onunloadFlush",Zm="context",bQ="addHousekeepingBeforeUnload",R5="sendMessage",Ige="updateSnippetDefinitions";var _g,BE,jE,yQ,jk,Dge=[D5,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],Age="iKeyUsage",kge="CdnUsage",Mge="SdkLoaderVer",pWe="zipPayload",P5=void 0,hWe={samplingRate:100,maxSendNumber:1},fWe={monthInterval:3,daysOfMonth:[28]},N5={disabled:!0,limit:Xd(hWe),interval:Xd(fWe)},gWe=(_g={},_g[Bk]=P5,_g.endpointUrl=P5,_g[LE]=P5,_g[Nx]=P5,_g.diagnosticLogInterval=$v(_We,1e4),_g.featureOptIn=(BE={},BE[Age]={mode:3},BE[kge]={mode:2},BE[Mge]={mode:2},BE[pWe]={mode:1},BE),_g.throttleMgrCfg=Xd((jE={},jE[109]=Xd(N5),jE[106]=Xd(N5),jE[111]=Xd(N5),jE[110]=Xd(N5),jE)),_g.extensionConfig=Xd((yQ={},yQ.AppInsightsCfgSyncPlugin=Xd({cfgUrl:Ege,syncMode:2}),yQ)),_g);function _We(t){return t&&t>0}function Tge(t,n){return Bw(function(e,i){Js(n,function(r){var o=r&&r.value,a=null;!r.rejected&&o&&(t[Bk]=o,a=RV(o)),e(a)})})}var xQ=function(){function t(n){var e=this,i,r,o,a,s,l,u,p,g,_,v,y,x,I;nr(t,this,function(C){M(),Un(C,"config",{g:function(){return p}}),Jt(["pluginVersionStringArr","pluginVersionString"],function(K){Un(C,K,{g:function(){return u?u[K]:null}})}),a=""+(n.sv||n[M5]||""),n[Mb]=n[Mb]||[],n[M5]=n[M5]||2;var D=hl(n.config||{},gWe);p=D.cfg,g=new KV,Un(C,"appInsights",{g:function(){return g}}),r=new gQ,i=new pQ,o=new JX,u=new iX,Un(C,"core",{g:function(){return u}}),j(wo(D,function(){var K=p[Bk];if(Lm(K)){var F=Bw(function(re,O){Js(Tge(p,K),function(B){if(B.rejected)re(null);else{var q=p[LE],G=B.value;q=G&&G.instrumentationkey||q,re(q)}})}),V=p[Nx];At(V)&&(V=Bw(function(re,O){Js(Tge(p,K),function(B){if(B.rejected)re(null);else{var q=p[F5],G=B.value,X=G&&G.ingestionendpoint;q=X?X+cg:q,re(q)}})})),p[LE]=F,p[F5]=V}if(qi(K)&&K){var Q=RV(K),te=Q.ingestionendpoint;p.endpointUrl=p[Nx]?p[Nx]:te+cg,p[LE]=Q.instrumentationkey||p[LE]}p.endpointUrl=p[Nx]?p[Nx]:p[F5]})),C[D5]=n,C[T5]=function(K,F){K===void 0&&(K=!0);var V;return Kv(u,function(){return"AISKU.flush"},function(){K&&!F&&(V=ud(function(re){F=re}));var Q=1,te=function(){Q--,Q===0&&F()};Jt(u.getChannels(),function(re){re&&(Q++,re[T5](K,te))}),te()},null,K),V},C[VE]=function(K){K===void 0&&(K=!0),Jt(u.getChannels(),function(F){F[VE]?F[VE]():F[T5](K)})},C.loadAppInsights=function(K,F,V){K===void 0&&(K=!1),K&&ipe("Legacy Mode is no longer supported");function Q(te){if(te){var re="";At(a)||(re+=a),C[Zm]&&C[Zm].internal&&(C[Zm].internal.snippetVer=re||"-"),Tn(C,function(O,B){qi(O)&&!zi(B)&&O&&O[0]!=="_"&&ha(Dge,O)===-1&&te[O]!==B&&(te[O]=B)})}}return Kv(C.core,function(){return"AISKU.loadAppInsights"},function(){u.initialize(p,[o,r,i,g,_],F,V),Un(C,"context",{g:function(){return r[Zm]}}),v||(v=new DX(u));var te=vWe();te&&C[Zm]&&(C[Zm].internal.sdkSrc=te),Q(C[D5]),C.emptyQueue(),C[vQ](),C[bQ](C),j(wo(D,function(){var re=!1;p.throttleMgrCfg[109]&&(re=!p.throttleMgrCfg[109].disabled),!v.isReady()&&p.extensionConfig&&p.extensionConfig[_.identifier]&&re&&v.onReadyState(!0),!y&&!p[Bk]&&ix(Age,p,!0)&&(v[R5](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),y=!0),!x&&C[Zm].internal.sdkSrc&&C[Zm].internal.sdkSrc.indexOf("az416426")!=-1&&ix(kge,p,!0)&&(v[R5](110,"See Cdn support notice at aka.ms/JsActiveCdn"),x=!0),!I&&parseInt(a)<6&&ix(Mge,p,!0)&&(v[R5](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),I=!0)}))}),C},C[Ige]=function(K){_K(K,C,function(F){return F&&ha(Dge,F)===-1})},C.emptyQueue=function(){try{if(pn(C.snippet[Mb])){for(var K=C.snippet[Mb].length,F=0;Fs.toLowerCase()),Gp(this,Ox,"f").has(i)||Gp(this,Ox,"f").set(i,new Set);let o=Gp(this,Ox,"f").get(i),a=!0;for(let s of r){let l=s.startsWith("*");if(s=l?s.slice(1):s,o?.add(s),a&&Gp(this,Hk,"f").set(i,s),a=!1,l)continue;let u=Gp(this,HE,"f").get(s);if(u&&u!=i&&!e)throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);Gp(this,HE,"f").set(s,i)}}return this}getType(n){if(typeof n!="string")return null;let e=n.replace(/^.*[/\\]/s,"").toLowerCase(),i=e.replace(/^.*\./s,"").toLowerCase(),r=e.length{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let n of Gp(this,Ox,"f").values())Object.freeze(n);return this}_getTestState(){return{types:Gp(this,HE,"f"),extensions:Gp(this,Hk,"f")}}};HE=new WeakMap,Hk=new WeakMap,Ox=new WeakMap;var SQ=CQ;var Oge=new SQ(Nge,Rge)._freeze();function O5(t,n){var e=n&&n.cache?n.cache:wWe,i=n&&n.serializer?n.serializer:SWe,r=n&&n.strategy?n.strategy:yWe;return r(t,{cache:e,serializer:i})}function bWe(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Lge(t,n,e,i){var r=bWe(i)?i:e(i),o=n.get(r);return typeof o>"u"&&(o=t.call(this,i),n.set(r,o)),o}function Vge(t,n,e){var i=Array.prototype.slice.call(arguments,3),r=e(i),o=n.get(r);return typeof o>"u"&&(o=t.apply(this,i),n.set(r,o)),o}function wQ(t,n,e,i,r){return e.bind(n,t,i,r)}function yWe(t,n){var e=t.length===1?Lge:Vge;return wQ(t,this,e,n.cache.create(),n.serializer)}function xWe(t,n){return wQ(t,this,Vge,n.cache.create(),n.serializer)}function CWe(t,n){return wQ(t,this,Lge,n.cache.create(),n.serializer)}var SWe=function(){return JSON.stringify(arguments)};function EQ(){this.cache=Object.create(null)}EQ.prototype.get=function(t){return this.cache[t]};EQ.prototype.set=function(t,n){this.cache[t]=n};var wWe={create:function(){return new EQ}},L5={variadic:xWe,monadic:CWe};var _o=function(t){return t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG",t}(_o||{});var Ya=function(t){return t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag",t}(Ya||{}),zE=function(t){return t[t.number=0]="number",t[t.dateTime=1]="dateTime",t}(zE||{});function IQ(t){return t.type===Ya.literal}function Bge(t){return t.type===Ya.argument}function V5(t){return t.type===Ya.number}function B5(t){return t.type===Ya.date}function j5(t){return t.type===Ya.time}function H5(t){return t.type===Ya.select}function z5(t){return t.type===Ya.plural}function jge(t){return t.type===Ya.pound}function U5(t){return t.type===Ya.tag}function G5(t){return!!(t&&typeof t=="object"&&t.type===zE.number)}function zk(t){return!!(t&&typeof t=="object"&&t.type===zE.dateTime)}var DQ=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;var EWe=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Hge(t){var n={};return t.replace(EWe,function(e){var i=e.length;switch(e[0]){case"G":n.era=i===4?"long":i===5?"narrow":"short";break;case"y":n.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":n.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][i-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][i-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][i-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][i-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":n.minute=["numeric","2-digit"][i-1];break;case"s":n.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),n}var zge=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function qge(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var n=t.split(zge).filter(function(_){return _.length>0}),e=[],i=0,r=n;i1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(DWe,function(l,u,p,g,_,v){if(u)n.minimumIntegerDigits=p.length;else{if(g&&_)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Yge.test(r.stem)){n.minimumIntegerDigits=r.stem.length;continue}if(Uge.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(Uge,function(l,u,p,g,_,v){return p==="*"?n.minimumFractionDigits=u.length:g&&g[0]==="#"?n.maximumFractionDigits=g.length:_&&v?(n.minimumFractionDigits=_.length,n.maximumFractionDigits=_.length+v.length):(n.minimumFractionDigits=u.length,n.maximumFractionDigits=u.length),""});var o=r.options[0];o==="w"?n=mo(mo({},n),{trailingZeroDisplay:"stripIfInteger"}):o&&(n=mo(mo({},n),Gge(o)));continue}if(Wge.test(r.stem)){n=mo(mo({},n),Gge(r.stem));continue}var a=Kge(r.stem);a&&(n=mo(mo({},n),a));var s=TWe(r.stem);s&&(n=mo(mo({},n),s))}return n}var Uk={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Qge(t,n){for(var e="",i=0;i>1),l="a",u=AWe(n);for((u=="H"||u=="k")&&(s=0);s-- >0;)e+=l;for(;a-- >0;)e=u+e}else r==="J"?e+="H":e+=r}return e}function AWe(t){var n=t.hourCycle;if(n===void 0&&t.hourCycles&&t.hourCycles.length&&(n=t.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e=t.language,i;e!=="root"&&(i=t.maximize().region);var r=Uk[i||""]||Uk[e||""]||Uk["".concat(e,"-001")]||Uk["001"];return r[0]}var TQ,kWe=new RegExp("^".concat(DQ.source,"*")),MWe=new RegExp("".concat(DQ.source,"*$"));function Mo(t,n){return{start:t,end:n}}var FWe=!!String.prototype.startsWith&&"_a".startsWith("a",1),RWe=!!String.fromCodePoint,PWe=!!Object.fromEntries,NWe=!!String.prototype.codePointAt,OWe=!!String.prototype.trimStart,LWe=!!String.prototype.trimEnd,VWe=!!Number.isSafeInteger,BWe=VWe?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},kQ=!0;try{Zge=i0e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),kQ=((TQ=Zge.exec("a"))===null||TQ===void 0?void 0:TQ[0])==="a"}catch{kQ=!1}var Zge,Jge=FWe?function(n,e,i){return n.startsWith(e,i)}:function(n,e,i){return n.slice(i,i+e.length)===e},MQ=RWe?String.fromCodePoint:function(){for(var n=[],e=0;eo;){if(a=n[o++],a>1114111)throw RangeError(a+" is not a valid code point");i+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return i},e0e=PWe?Object.fromEntries:function(n){for(var e={},i=0,r=n;i=i)){var r=n.charCodeAt(e),o;return r<55296||r>56319||e+1===i||(o=n.charCodeAt(e+1))<56320||o>57343?r:(r-55296<<10)+(o-56320)+65536}},jWe=OWe?function(n){return n.trimStart()}:function(n){return n.replace(kWe,"")},HWe=LWe?function(n){return n.trimEnd()}:function(n){return n.replace(MWe,"")};function i0e(t,n){return new RegExp(t,n)}var FQ;kQ?(AQ=i0e("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),FQ=function(n,e){var i;AQ.lastIndex=e;var r=AQ.exec(n);return(i=r[1])!==null&&i!==void 0?i:""}):FQ=function(n,e){for(var i=[];;){var r=t0e(n,e);if(r===void 0||r0e(r)||GWe(r))break;i.push(r),e+=r>=65536?2:1}return MQ.apply(void 0,i)};var AQ,n0e=function(){function t(n,e){e===void 0&&(e={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(n,e,i){for(var r=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(n,i);if(a.err)return a;r.push(a.val)}else{if(o===125&&n>0)break;if(o===35&&(e==="plural"||e==="selectordinal")){var s=this.clonePosition();this.bump(),r.push({type:Ya.pound,location:Mo(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(_o.UNMATCHED_CLOSING_TAG,Mo(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&RQ(this.peek()||0)){var a=this.parseTag(n,e);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(n,e);if(a.err)return a;r.push(a.val)}}}return{val:r,err:null}},t.prototype.parseTag=function(n,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ya.literal,value:"<".concat(r,"/>"),location:Mo(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(n+1,e,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:Ya.tag,value:r,children:a,location:Mo(i,this.clonePosition())},err:null}:this.error(_o.INVALID_TAG,Mo(s,this.clonePosition())))}else return this.error(_o.UNCLOSED_TAG,Mo(i,this.clonePosition()))}else return this.error(_o.INVALID_TAG,Mo(i,this.clonePosition()))},t.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&UWe(this.char());)this.bump();return this.message.slice(n,this.offset())},t.prototype.parseLiteral=function(n,e){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o){r+=o;continue}var a=this.tryParseUnquoted(n,e);if(a){r+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var l=Mo(i,this.clonePosition());return{val:{type:Ya.literal,value:r,location:l},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!zWe(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(n){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)e.push(39),this.bump();else{this.bump();break}else e.push(i);this.bump()}return MQ.apply(void 0,e)},t.prototype.tryParseUnquoted=function(n,e){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(e==="plural"||e==="selectordinal")||i===125&&n>0?null:(this.bump(),MQ(i))},t.prototype.parseArgument=function(n,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_o.EXPECT_ARGUMENT_CLOSING_BRACE,Mo(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_o.EMPTY_ARGUMENT,Mo(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(_o.MALFORMED_ARGUMENT,Mo(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_o.EXPECT_ARGUMENT_CLOSING_BRACE,Mo(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ya.argument,value:r,location:Mo(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_o.EXPECT_ARGUMENT_CLOSING_BRACE,Mo(i,this.clonePosition())):this.parseArgumentOptions(n,e,r,i);default:return this.error(_o.MALFORMED_ARGUMENT,Mo(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),e=this.offset(),i=FQ(this.message,e),r=e+i.length;this.bumpTo(r);var o=this.clonePosition(),a=Mo(n,o);return{value:i,location:a}},t.prototype.parseArgumentOptions=function(n,e,i,r){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(_o.EXPECT_ARGUMENT_TYPE,Mo(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var _=HWe(g.val);if(_.length===0)return this.error(_o.EXPECT_ARGUMENT_STYLE,Mo(this.clonePosition(),this.clonePosition()));var v=Mo(p,this.clonePosition());u={style:_,styleLocation:v}}var y=this.tryParseArgumentClose(r);if(y.err)return y;var x=Mo(r,this.clonePosition());if(u&&Jge(u?.style,"::",0)){var I=jWe(u.style.slice(2));if(s==="number"){var g=this.parseNumberSkeletonFromString(I,u.styleLocation);return g.err?g:{val:{type:Ya.number,value:i,location:x,style:g.val},err:null}}else{if(I.length===0)return this.error(_o.EXPECT_DATE_TIME_SKELETON,x);var C=I;this.locale&&(C=Qge(I,this.locale));var _={type:zE.dateTime,pattern:C,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Hge(C):{}},D=s==="date"?Ya.date:Ya.time;return{val:{type:D,value:i,location:x,style:_},err:null}}}return{val:{type:s==="number"?Ya.number:s==="date"?Ya.date:Ya.time,value:i,location:x,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var A=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_o.EXPECT_SELECT_ARGUMENT_OPTIONS,Mo(A,mo({},A)));this.bumpSpace();var M=this.parseIdentifierIfPossible(),R=0;if(s!=="select"&&M.value==="offset"){if(!this.bumpIf(":"))return this.error(_o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mo(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(_o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),M=this.parseIdentifierIfPossible(),R=g.val}var j=this.tryParsePluralOrSelectOptions(n,s,e,M);if(j.err)return j;var y=this.tryParseArgumentClose(r);if(y.err)return y;var K=Mo(r,this.clonePosition());return s==="select"?{val:{type:Ya.select,value:i,options:e0e(j.val),location:K},err:null}:{val:{type:Ya.plural,value:i,options:e0e(j.val),offset:R,pluralType:s==="plural"?"cardinal":"ordinal",location:K},err:null}}default:return this.error(_o.INVALID_ARGUMENT_TYPE,Mo(a,l))}},t.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_o.EXPECT_ARGUMENT_CLOSING_BRACE,Mo(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,e=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Mo(r,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(e.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(n,e){var i=[];try{i=qge(n)}catch{return this.error(_o.INVALID_NUMBER_SKELETON,e)}return{val:{type:zE.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Xge(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(n,e,i,r){for(var o,a=!1,s=[],l=new Set,u=r.value,p=r.location;;){if(u.length===0){var g=this.clonePosition();if(e!=="select"&&this.bumpIf("=")){var _=this.tryParseDecimalInteger(_o.EXPECT_PLURAL_ARGUMENT_SELECTOR,_o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(_.err)return _;p=Mo(g,this.clonePosition()),u=this.message.slice(g.offset,this.offset())}else break}if(l.has(u))return this.error(e==="select"?_o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,p);u==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(e==="select"?_o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Mo(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(n+1,e,i);if(y.err)return y;var x=this.tryParseArgumentClose(v);if(x.err)return x;s.push([u,{value:y.val,location:Mo(v,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,p=o.location}return s.length===0?this.error(e==="select"?_o.EXPECT_SELECT_ARGUMENT_SELECTOR:_o.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mo(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(_o.MISSING_OTHER_CLAUSE,Mo(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(n,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=Mo(r,this.clonePosition());return o?(a*=i,BWe(a)?{val:a,err:null}:this.error(e,l)):this.error(n,l)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var e=t0e(this.message,n);if(e===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(n,e){return{val:null,err:{kind:n,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},t.prototype.bumpIf=function(n){if(Jge(this.message,n,this.offset())){for(var e=0;e=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var e=this.offset();if(e===n)break;if(e>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&r0e(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(n>=65536?2:1));return i??null},t}();function RQ(t){return t>=97&&t<=122||t>=65&&t<=90}function zWe(t){return RQ(t)||t===47}function UWe(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function r0e(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function GWe(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function PQ(t){t.forEach(function(n){if(delete n.location,H5(n)||z5(n))for(var e in n.options)delete n.options[e].location,PQ(n.options[e].value);else V5(n)&&G5(n.style)||(B5(n)||j5(n))&&zk(n.style)?delete n.style.location:U5(n)&&PQ(n.children)})}function o0e(t,n){n===void 0&&(n={}),n=mo({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var e=new n0e(t,n).parse();if(e.err){var i=SyntaxError(_o[e.err.kind]);throw i.location=e.err.location,i.originalMessage=e.err.message,i}return n?.captureLocation||PQ(e.val),e.val}var UE=function(t){return t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API",t}(UE||{}),Gk=function(t){CD(n,t);function n(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error);var NQ=function(t){CD(n,t);function n(e,i,r,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),UE.INVALID_VALUE,o)||this}return n}(Gk);var a0e=function(t){CD(n,t);function n(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),UE.INVALID_VALUE,r)||this}return n}(Gk);var s0e=function(t){CD(n,t);function n(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),UE.MISSING_VALUE,i)||this}return n}(Gk);var iu=function(t){return t[t.literal=0]="literal",t[t.object=1]="object",t}(iu||{});function $We(t){return t.length<2?t:t.reduce(function(n,e){var i=n[n.length-1];return!i||i.type!==iu.literal||e.type!==iu.literal?n.push(e):i.value+=e.value,n},[])}function qWe(t){return typeof t=="function"}function $k(t,n,e,i,r,o,a){if(t.length===1&&IQ(t[0]))return[{type:iu.literal,value:t[0].value}];for(var s=[],l=0,u=t;l"u")){var e=Intl.NumberFormat.supportedLocalesOf(n);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},t.__parse=o0e,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();var LQ=l0e;var $5=new ke("ngx-mask config"),c0e=new ke("new ngx-mask config"),d0e=new ke("initial ngx-mask config"),XWe={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:[".",","],clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,apm:!1,leadZero:!1,keepCharacterPositions:!1,triggerOnMaskChange:!1,inputTransformFn:t=>t,outputTransformFn:t=>t,maskFilled:new Ae,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},U:{pattern:new RegExp("[A-Z]")},L:{pattern:new RegExp("[a-z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},QWe=["Hh:m0:s0","Hh:m0","m0:s0"],ZWe=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"],JWe=(()=>{class t{constructor(){this._config=Me($5),this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.hiddenInput=this._config.hiddenInput,this.clearIfNotMatch=this._config.clearIfNotMatch,this.specialCharacters=this._config.specialCharacters,this.patterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime,this.leadZero=this._config.leadZero,this.apm=this._config.apm,this.inputTransformFn=this._config.inputTransformFn,this.outputTransformFn=this._config.outputTransformFn,this.keepCharacterPositions=this._config.keepCharacterPositions,this._shift=new Set,this.plusOnePosition=!1,this.maskExpression="",this.actualValue="",this.showKeepCharacterExp="",this.shownMaskExpression="",this.deletedSpecialCharacter=!1,this._formatWithSeparators=(e,i,r,o)=>{let a=[],s="";if(Array.isArray(r)){let _=new RegExp(r.map(v=>"[\\^$.|?*+()".indexOf(v)>=0?`\\${v}`:v).join("|"));a=e.split(_),s=e.match(_)?.[0]??""}else a=e.split(r),s=r;let l=a.length>1?`${s}${a[1]}`:"",u=a[0]??"",p=this.separatorLimit.replace(/\s/g,"");p&&+p&&(u[0]==="-"?u=`-${u.slice(1,u.length).slice(0,p.length)}`:u=u.slice(0,p.length));let g=/(\d+)(\d{3})/;for(;i&&g.test(u);)u=u.replace(g,"$1"+i+"$2");return o===void 0?u+l:o===0?u:u+l.substring(0,o+1)},this.percentage=e=>{let i=e.replace(",","."),r=Number(this.allowNegativeNumbers&&e.includes("-")?i.slice(1,e.length):i);return!isNaN(r)&&r>=0&&r<=100},this.getPrecision=e=>{let i=e.split(".");return i.length>1?Number(i[i.length-1]):1/0},this.checkAndRemoveSuffix=e=>{for(let i=this.suffix?.length-1;i>=0;i--){let r=this.suffix.substring(i,this.suffix?.length);if(e.includes(r)&&i!==this.suffix?.length-1&&(i-1<0||!e.includes(this.suffix.substring(i-1,this.suffix?.length))))return e.replace(r,"")}return e},this.checkInputPrecision=(e,i,r)=>{if(i<1/0){if(Array.isArray(r)){let l=r.find(u=>u!==this.thousandSeparator);r=l||r[0]}let o=new RegExp(this._charToRegExpExpression(r)+`\\d{${i}}.*$`),a=e.match(o),s=(a&&a[0]?.length)??0;if(s-1>i){let l=s-1-i;e=e.substring(0,e.length-l)}i===0&&this._compareOrIncludes(e[e.length-1],r,this.thousandSeparator)&&(e=e.substring(0,e.length-1))}return e}}applyMaskWithPattern(e,i){let[r,o]=i;return this.customPattern=o,this.applyMask(e,r)}applyMask(e,i,r=0,o=!1,a=!1,s=()=>{}){if(!i||typeof e!="string")return"";let l=0,u="",p=!1,g=!1,_=1,v=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&e?.length>0&&(e=this.checkAndRemoveSuffix(e)),e==="("&&this.prefix&&(e="");let y=e.toString().split("");if(this.allowNegativeNumbers&&e.slice(l,l+1)==="-"&&(u+=e.slice(l,l+1)),i==="IP"){let R=e.split(".");this.ipError=this._validIP(R),i="099.099.099.099"}let x=[];for(let R=0;R11?i="00.000.000/0000-00":i="000.000.000-00"),i.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)&&!a){e=this._stripToDecimal(e);let K=this.getPrecision(i);e=this.checkInputPrecision(e,K,this.decimalMarker)}let R=typeof this.decimalMarker=="string"?this.decimalMarker:".";if(e.indexOf(R)>0&&!this.percentage(e.substring(0,e.indexOf(R)))){let K=e.substring(0,e.indexOf(R)-1);this.allowNegativeNumbers&&e.slice(l,l+1)==="-"&&!a&&(K=e.substring(0,e.indexOf(R))),e=`${K}${e.substring(e.indexOf(R),e.length)}`}let j="";this.allowNegativeNumbers&&e.slice(l,l+1)==="-"?j=`-${e.slice(l+1,l+e.length)}`:j=e,this.percentage(j)?u=this._splitPercentZero(e):u=this._splitPercentZero(e.substring(0,e.length-1))}else if(i.startsWith("separator")){(e.match("[w\u0430-\u044F\u0410-\u042F]")||e.match("[\u0401\u0451\u0410-\u044F]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_£¬'+|~=`{}\]:";<>.?/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e));let R=this.getPrecision(i),j=Array.isArray(this.decimalMarker)?".":this.decimalMarker;if(R===0?e=this.allowNegativeNumbers?e.length>2&&e[0]==="-"&&e[1]==="0"&&e[2]!==this.thousandSeparator&&e[2]!==","&&e[2]!=="."?"-"+e.slice(2,e.length):e[0]==="0"&&e.length>1&&e[1]!==this.thousandSeparator&&e[1]!==","&&e[1]!=="."?e.slice(1,e.length):e:e.length>1&&e[0]==="0"&&e[1]!==this.thousandSeparator&&e[1]!==","&&e[1]!=="."?e.slice(1,e.length):e:(e[0]===j&&e.length>1&&(e="0"+e.slice(0,e.length+1),this.plusOnePosition=!0),e[0]==="0"&&e[1]!==j&&e[1]!==this.thousandSeparator&&(e=e.length>1?e.slice(0,1)+j+e.slice(1,e.length+1):e,this.plusOnePosition=!0),this.allowNegativeNumbers&&e[0]==="-"&&(e[1]===j||e[1]==="0")&&(e=e[1]===j&&e.length>2?e.slice(0,1)+"0"+e.slice(1,e.length):e[1]==="0"&&e.length>2&&e[2]!==j?e.slice(0,2)+j+e.slice(2,e.length):e,this.plusOnePosition=!0)),a){let O=e.slice(this._findFirstNonZeroDigitIndex(e),e.length),B=e[r]==="0"||e[r]===j,q=e[0]==="0",G=e[0]==="-",X=e[0]===this.thousandSeparator,z=e[1]===j,ee=e[1]==="0",pe=e[2]===j;q&&z&&B&&r<2&&(e=O),G&&ee&&pe&&B&&r<3&&(e="-"+O),O!=="-"&&(r===0&&(q||X)||this.allowNegativeNumbers&&r===1&&G&&!ee)&&(e=G?"-"+O:O)}let K=this._charToRegExpExpression(this.thousandSeparator),F='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(K,"");if(Array.isArray(this.decimalMarker))for(let O of this.decimalMarker)F=F.replace(this._charToRegExpExpression(O),"");else F=F.replace(this._charToRegExpExpression(this.decimalMarker),"");let V=new RegExp("["+F+"]");e.match(V)&&(e=e.substring(0,e.length-1)),e=this.checkInputPrecision(e,R,this.decimalMarker);let Q=e.replace(new RegExp(K,"g"),"");u=this._formatWithSeparators(Q,this.thousandSeparator,this.decimalMarker,R);let te=u.indexOf(",")-e.indexOf(","),re=u.length-e.length;if(u[r-1]===this.thousandSeparator&&this.prefix&&a)r=r-1;else if(re>0&&u[r]!==this.thousandSeparator){g=!0;let O=0;do this._shift.add(r+O),O++;while(O0&&!(u.indexOf(",")>=r&&r>3)||!(u.indexOf(".")>=r&&r>3)&&re<=0?(this._shift.clear(),g=!0,_=re,r+=re,this._shift.add(r)):this._shift.clear()}else for(let R=0,j=y[0];R9:Number(j)>2)){r=this.leadZeroDateTime?r:r+1,l+=1,this._shiftStep(i,l,y.length),R--,this.leadZeroDateTime&&(u+="0");continue}if(i[l]==="h"&&(this.apm?u.length===1&&Number(u)>1||u==="1"&&Number(j)>2||e.slice(l-1,l).length===1&&Number(e.slice(l-1,l))>2||e.slice(l-1,l)==="1"&&Number(j)>2:u==="2"&&Number(j)>3||(u.slice(l-2,l)==="2"||u.slice(l-3,l)==="2"||u.slice(l-4,l)==="2"||u.slice(l-1,l)==="2")&&Number(j)>3&&l>10)){r=r+1,l+=1,R--;continue}if((i[l]==="m"||i[l]==="s")&&Number(j)>5){r=this.leadZeroDateTime?r:r+1,l+=1,this._shiftStep(i,l,y.length),R--,this.leadZeroDateTime&&(u+="0");continue}let F=31,V=e[l],Q=e[l+1],te=e[l+2],re=e[l-1],O=e[l-2],B=e.slice(l-3,l-1),q=e.slice(l-1,l+1),G=e.slice(l,l+2),X=e.slice(l-2,l);if(i[l]==="d"){let z=i.slice(0,2)==="M0",ee=i.slice(0,2)==="M0"&&this.specialCharacters.includes(O);if(Number(j)>3&&this.leadZeroDateTime||!z&&(Number(G)>F||Number(q)>F||this.specialCharacters.includes(Q))||(ee?Number(q)>F||!this.specialCharacters.includes(V)&&this.specialCharacters.includes(te)||this.specialCharacters.includes(V):Number(G)>F||this.specialCharacters.includes(Q))){r=this.leadZeroDateTime?r:r+1,l+=1,this._shiftStep(i,l,y.length),R--,this.leadZeroDateTime&&(u+="0");continue}}if(i[l]==="M"){let ee=l===0&&(Number(j)>2||Number(G)>12||this.specialCharacters.includes(Q)&&!a),pe=i.slice(l+2,l+3),me=B.includes(pe)&&i.includes("d0")&&(this.specialCharacters.includes(O)&&Number(q)>12&&!this.specialCharacters.includes(V)||this.specialCharacters.includes(V)),ye=Number(B)<=F&&!this.specialCharacters.includes(B)&&this.specialCharacters.includes(re)&&(Number(G)>12||this.specialCharacters.includes(Q)),se=Number(G)>12&&l===5||this.specialCharacters.includes(Q)&&l===5,de=Number(B)>F&&!this.specialCharacters.includes(B)&&!this.specialCharacters.includes(X)&&Number(X)>12&&i.includes("d0"),Te=Number(B)<=F&&!this.specialCharacters.includes(B)&&!this.specialCharacters.includes(re)&&Number(q)>12;if(Number(j)>1&&this.leadZeroDateTime||ee||me||Te||de||ye||se&&!this.leadZeroDateTime){r=this.leadZeroDateTime?r:r+1,l+=1,this._shiftStep(i,l,y.length),R--,this.leadZeroDateTime&&(u+="0");continue}}u+=j,l++}else this.specialCharacters.includes(j)&&i[l]===j?(u+=j,l++):this.specialCharacters.indexOf(i[l]??"")!==-1?(u+=i[l],l++,this._shiftStep(i,l,y.length),R--):i[l]==="9"&&this.showMaskTyped?this._shiftStep(i,l,y.length):this.patterns[i[l]??""]&&this.patterns[i[l]??""]?.optional?(y[l]&&i!=="099.099.099.099"&&i!=="000.000.000-00"&&i!=="00.000.000/0000-00"&&!i.match(/^9+\.0+$/)&&!this.patterns[i[l]??""]?.optional&&(u+=y[l]),i.includes("9*")&&i.includes("0*")&&l++,l++,R--):this.maskExpression[l+1]==="*"&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(j)===this.maskExpression[l+2]&&p||this.maskExpression[l+1]==="?"&&this._findSpecialChar(this.maskExpression[l+2]??"")&&this._findSpecialChar(j)===this.maskExpression[l+2]&&p?(l+=3,u+=j):this.showMaskTyped&&this.specialCharacters.indexOf(j)<0&&j!==this.placeHolderCharacter&&this.placeHolderCharacter.length===1&&(v=!0)}u.length+1===i.length&&this.specialCharacters.indexOf(i[i.length-1]??"")!==-1&&(u+=i[i.length-1]);let I=r+1;for(;this._shift.has(I);)_++,I++;let C=o&&!i.startsWith("separator")?l:this._shift.has(r)?_:0;v&&C--,s(C,g),_<0&&this._shift.clear();let D=!1;a&&(D=y.every(R=>this.specialCharacters.includes(R)));let A=`${this.prefix}${D?"":u}${this.showMaskTyped?"":this.suffix}`;u.length===0&&(A=this.dropSpecialCharacters?`${u}`:`${this.prefix}${u}`);let M=e.length===1&&this.specialCharacters.includes(i[0])&&e!==i[0];if(!this._checkSymbolMask(e,i[1])&&M)return"";if(u.includes("-")&&this.prefix&&this.allowNegativeNumbers){if(a&&u==="-")return"";A=`-${this.prefix}${u.split("-").join("")}${this.suffix}`}return A}_findDropSpecialChar(e){return Array.isArray(this.dropSpecialCharacters)?this.dropSpecialCharacters.find(i=>i===e):this._findSpecialChar(e)}_findSpecialChar(e){return this.specialCharacters.find(i=>i===e)}_checkSymbolMask(e,i){return this.patterns=this.customPattern?this.customPattern:this.patterns,(this.patterns[i]?.pattern&&this.patterns[i]?.pattern.test(e))??!1}_stripToDecimal(e){return e.split("").filter((i,r)=>{let o=typeof this.decimalMarker=="string"?i===this.decimalMarker:this.decimalMarker.includes(i);return i.match("^-?\\d")||i===this.thousandSeparator||o||i==="-"&&r===0&&this.allowNegativeNumbers}).join("")}_charToRegExpExpression(e){return e&&(e===" "?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?`\\${e}`:e)}_shiftStep(e,i,r){let o=/[*?]/g.test(e.slice(0,i))?r:i;this._shift.add(o+this.prefix.length||0)}_compareOrIncludes(e,i,r){return Array.isArray(i)?i.filter(o=>o!==r).includes(e):e===i}_validIP(e){return!(e.length===4&&!e.some((i,r)=>e.length!==r+1?i===""||Number(i)>255:i===""||Number(i.substring(0,3))>255))}_splitPercentZero(e){if(e==="-"&&this.allowNegativeNumbers)return e;let i=typeof this.decimalMarker=="string"?e.indexOf(this.decimalMarker):e.indexOf("."),r=this.allowNegativeNumbers&&e.includes("-")?"-":"";if(i===-1){let o=parseInt(r?e.slice(1,e.length):e,10);return isNaN(o)?"":`${r}${o}`}else{let o=parseInt(e.replace("-","").substring(0,i),10),a=e.substring(i+1),s=isNaN(o)?"":o.toString(),l=typeof this.decimalMarker=="string"?this.decimalMarker:".";return s===""?"":`${r}${s}${l}${a}`}}_findFirstNonZeroDigitIndex(e){for(let i=0;i="1"&&r<="9")return i}return-1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),VQ=(()=>{class t extends JWe{constructor(){super(...arguments),this.isNumberValue=!1,this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.maskChanged=!1,this._maskExpressionArray=[],this.triggerOnMaskChange=!1,this._previousValue="",this._currentValue="",this._emitValue=!1,this.onChange=e=>{},this._elementRef=Me(Xe,{optional:!0}),this.document=Me(ni),this._config=Me($5),this._renderer=Me(Sc,{optional:!0})}applyMask(e,i,r=0,o=!1,a=!1,s=()=>{}){if(!i)return e!==this.actualValue?this.actualValue:e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"",this.maskExpression==="IP"&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),this.maskExpression==="CPF_CNPJ"&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),`${this.prefix}${this.maskIsShown}${this.suffix}`;let l=e&&typeof this.selStart=="number"?e[this.selStart]??"":"",u="";if(this.hiddenInput!==void 0&&!this.writingValue){let v=e&&e.length===1?e.split(""):this.actualValue.split("");typeof this.selStart=="object"&&typeof this.selEnd=="object"?(this.selStart=Number(this.selStart),this.selEnd=Number(this.selEnd)):e!==""&&v.length?typeof this.selStart=="number"&&typeof this.selEnd=="number"&&(e.length>v.length?v.splice(this.selStart,0,l):e.length!this._compareOrIncludes(v,this.decimalMarker,this.thousandSeparator))),(p||p==="")&&(this._previousValue=this._currentValue,this._currentValue=p,this._emitValue=this._previousValue!==this._currentValue||this.maskChanged||this._previousValue===this._currentValue&&o),this._emitValue&&(this.writingValue&&this.triggerOnMaskChange?requestAnimationFrame(()=>this.formControlResult(p)):this.formControlResult(p)),!this.showMaskTyped||this.showMaskTyped&&this.hiddenInput)return this.hiddenInput?a?this.hideInput(p,this.maskExpression):`${this.hideInput(p,this.maskExpression)}${this.maskIsShown.slice(p.length)}`:p;let g=p.length,_=`${this.prefix}${this.maskIsShown}${this.suffix}`;if(this.maskExpression.includes("H")){let v=this._numberSkipedSymbols(p);return`${p}${_.slice(g+v)}`}else if(this.maskExpression==="IP"||this.maskExpression==="CPF_CNPJ")return`${p}${_}`;return`${p}${_.slice(g)}`}_numberSkipedSymbols(e){let i=/(^|\D)(\d\D)/g,r=i.exec(e),o=0;for(;r!=null;)o+=1,r=i.exec(e);return o}applyValueChanges(e,i,r,o=()=>{}){let a=this._elementRef?.nativeElement;a&&(a.value=this.applyMask(a.value,this.maskExpression,e,i,r,o),a!==this._getActiveElement()&&this.clearIfNotMatchFn())}hideInput(e,i){return e.split("").map((r,o)=>this.patterns&&this.patterns[i[o]??""]&&this.patterns[i[o]??""]?.symbol?this.patterns[i[o]??""]?.symbol:r).join("")}getActualValue(e){let i=e.split("").filter((r,o)=>{let a=this.maskExpression[o]??"";return this._checkSymbolMask(r,a)||this.specialCharacters.includes(a)&&r===a});return i.join("")===e?i.join(""):e}shiftTypedSymbols(e){let i="";return(e&&e.split("").map((o,a)=>{if(this.specialCharacters.includes(e[a+1]??"")&&e[a+1]!==this.maskExpression[a+1])return i=o,e[a+1];if(i.length){let s=i;return i="",s}return o})||[]).join("")}numberToString(e){return!e&&e!==0||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters)||this.maskExpression.startsWith("separator")&&this.separatorLimit.length>14&&String(e).length>14?String(e):Number(e).toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:20}).replace("/-/","-")}showMaskInInput(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}else if(this.showMaskTyped){if(e){if(this.maskExpression==="IP")return this._checkForIp(e);if(this.maskExpression==="CPF_CNPJ")return this._checkForCpfCnpj(e)}return this.placeHolderCharacter.length===this.maskExpression.length?this.placeHolderCharacter:this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){let e=this._elementRef?.nativeElement;e&&this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==e.value.replace(this.placeHolderCharacter,"").length&&(this.formElementProperty=["value",""],this.applyMask("",this.maskExpression))}set formElementProperty([e,i]){!this._renderer||!this._elementRef||Promise.resolve().then(()=>this._renderer?.setProperty(this._elementRef?.nativeElement,e,i))}checkDropSpecialCharAmount(e){return e.split("").filter(r=>this._findDropSpecialChar(r)).length}removeMask(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.specialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(e){if(e==="#")return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;let i=[];for(let r=0;r3&&i.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:i.length>6&&i.length<=9?this.placeHolderCharacter:(i.length>9&&i.length<=12,"")}_checkForCpfCnpj(e){let i=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,r=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if(e==="#")return i;let o=[];for(let a=0;a3&&o.length<=6?i.slice(o.length+1,i.length):o.length>6&&o.length<=9?i.slice(o.length+2,i.length):o.length>9&&o.length<11?i.slice(o.length+3,i.length):o.length===11?"":o.length===12?e.length===17?r.slice(16,r.length):r.slice(15,r.length):o.length>12&&o.length<=14?r.slice(o.length+4,r.length):""}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}formControlResult(e){if(this.writingValue||!this.triggerOnMaskChange&&this.maskChanged){this.triggerOnMaskChange&&this.maskChanged&&this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))),this.maskChanged=!1;return}Array.isArray(this.dropSpecialCharacters)?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters))))):this.dropSpecialCharacters||!this.dropSpecialCharacters&&this.prefix===e?this.onChange(this.outputTransformFn(this._toNumber(this._checkSymbols(this._removeSuffix(this._removePrefix(e)))))):this.onChange(this.outputTransformFn(this._toNumber(e)))}_toNumber(e){if(!this.isNumberValue||e===""||this.maskExpression.startsWith("separator")&&(this.leadZero||!this.dropSpecialCharacters))return e;if(String(e).length>16&&this.separatorLimit.length>14)return String(e);let i=Number(e);if(this.maskExpression.startsWith("separator")&&Number.isNaN(i)){let r=String(e).replace(",",".");return Number(r)}return Number.isNaN(i)?e:i}_removeMask(e,i){return this.maskExpression.startsWith("percent")&&e.includes(".")?e:e&&e.replace(this._regExpForRemove(i),"")}_removePrefix(e){return this.prefix?e&&e.replace(this.prefix,""):e}_removeSuffix(e){return this.suffix?e&&e.replace(this.suffix,""):e}_retrieveSeparatorValue(e){let i=Array.isArray(this.dropSpecialCharacters)?this.specialCharacters.filter(r=>this.dropSpecialCharacters.includes(r)):this.specialCharacters;return!this.deletedSpecialCharacter&&this._checkPatternForSpace()&&e.includes(" ")&&this.maskExpression.includes("*")&&(i=i.filter(r=>r!==" ")),this._removeMask(e,i)}_regExpForRemove(e){return new RegExp(e.map(i=>`\\${i}`).join("|"),"gi")}_replaceDecimalMarkerToDot(e){let i=Array.isArray(this.decimalMarker)?this.decimalMarker:[this.decimalMarker];return e.replace(this._regExpForRemove(i),".")}_checkSymbols(e){if(e==="")return e;this.maskExpression.startsWith("percent")&&this.decimalMarker===","&&(e=e.replace(",","."));let i=this._retrieveSeparatorPrecision(this.maskExpression),r=this._replaceDecimalMarkerToDot(this._retrieveSeparatorValue(e));return this.isNumberValue&&i?e===this.decimalMarker?null:this.separatorLimit.length>14?String(r):this._checkPrecision(this.maskExpression,r):r}_checkPatternForSpace(){for(let e in this.patterns)if(this.patterns[e]&&this.patterns[e]?.hasOwnProperty("pattern")){let i=this.patterns[e]?.pattern.toString(),r=this.patterns[e]?.pattern;if(i?.includes(" ")&&r?.test(this.maskExpression))return!0}return!1}_retrieveSeparatorPrecision(e){let i=e.match(new RegExp("^separator\\.([^d]*)"));return i?Number(i[1]):null}_checkPrecision(e,i){let r=e.slice(10,11);return e.indexOf("2")>0||this.leadZero&&Number(r)>0?(this.decimalMarker===","&&this.leadZero&&(i=i.replace(",",".")),this.leadZero?Number(i).toFixed(Number(r)):Number(i).toFixed(2)):this.numberToString(i)}_repeatPatternSymbols(e){return e.match(/{[0-9]+}/)&&e.split("").reduce((i,r,o)=>{if(this._start=r==="{"?o:this._start,r!=="}")return this._findSpecialChar(r)?i+r:i;this._end=o;let a=Number(e.slice(this._start+1,this._end)),s=new Array(a+1).join(e[this._start-1]);if(e.slice(0,this._start).length>1&&e.includes("S")){let l=e.slice(0,this._start-1);return l.includes("{")?i+s:l+i+s}else return i+s},"")||e}currentLocaleDecimalMarker(){return 1.1.toLocaleString().substring(1,2)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function eYe(){let t=Me(d0e),n=Me(c0e);return n instanceof Function?Ve(Ve({},t),n()):Ve(Ve({},t),n)}function q5(t){return[{provide:c0e,useValue:t},{provide:d0e,useValue:XWe},{provide:$5,useFactory:eYe},VQ]}var Fo=(()=>{class t{constructor(){this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this.leadZero=null,this.triggerOnMaskChange=null,this.apm=null,this.inputTransformFn=null,this.outputTransformFn=null,this.keepCharacterPositions=null,this.maskFilled=new Ae,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._allowFewMaskChangeMask=!1,this._justPasted=!1,this._isFocused=!1,this._isComposing=!1,this.document=Me(ni),this._maskService=Me(VQ,{self:!0}),this._config=Me($5),this.onChange=e=>{},this.onTouch=()=>{}}ngOnChanges(e){let{maskExpression:i,specialCharacters:r,patterns:o,prefix:a,suffix:s,thousandSeparator:l,decimalMarker:u,dropSpecialCharacters:p,hiddenInput:g,showMaskTyped:_,placeHolderCharacter:v,shownMaskExpression:y,showTemplate:x,clearIfNotMatch:I,validation:C,separatorLimit:D,allowNegativeNumbers:A,leadZeroDateTime:M,leadZero:R,triggerOnMaskChange:j,apm:K,inputTransformFn:F,outputTransformFn:V,keepCharacterPositions:Q}=e;if(i&&(i.currentValue!==i.previousValue&&!i.firstChange&&(this._maskService.maskChanged=!0),i.currentValue&&i.currentValue.split("||").length>1?(this._maskExpressionArray=i.currentValue.split("||").sort((te,re)=>te.length-re.length),this._setMask()):(this._maskExpressionArray=[],this._maskValue=i.currentValue||"",this._maskService.maskExpression=this._maskValue)),r){if(!r.currentValue||!Array.isArray(r.currentValue))return;this._maskService.specialCharacters=r.currentValue||[]}A&&(this._maskService.allowNegativeNumbers=A.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.specialCharacters=this._maskService.specialCharacters.filter(te=>te!=="-"))),o&&o.currentValue&&(this._maskService.patterns=o.currentValue),K&&K.currentValue&&(this._maskService.apm=K.currentValue),a&&(this._maskService.prefix=a.currentValue),s&&(this._maskService.suffix=s.currentValue),l&&(this._maskService.thousandSeparator=l.currentValue),u&&(this._maskService.decimalMarker=u.currentValue),p&&(this._maskService.dropSpecialCharacters=p.currentValue),g&&(this._maskService.hiddenInput=g.currentValue),_&&(this._maskService.showMaskTyped=_.currentValue,_.previousValue===!1&&_.currentValue===!0&&this._isFocused&&requestAnimationFrame(()=>{this._maskService._elementRef?.nativeElement.click()})),v&&(this._maskService.placeHolderCharacter=v.currentValue),y&&(this._maskService.shownMaskExpression=y.currentValue),x&&(this._maskService.showTemplate=x.currentValue),I&&(this._maskService.clearIfNotMatch=I.currentValue),C&&(this._maskService.validation=C.currentValue),D&&(this._maskService.separatorLimit=D.currentValue),M&&(this._maskService.leadZeroDateTime=M.currentValue),R&&(this._maskService.leadZero=R.currentValue),j&&(this._maskService.triggerOnMaskChange=j.currentValue),F&&(this._maskService.inputTransformFn=F.currentValue),V&&(this._maskService.outputTransformFn=V.currentValue),Q&&(this._maskService.keepCharacterPositions=Q.currentValue),this._applyMask()}validate({value:e}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(e);if(this._maskService.cpfCnpjError)return this._createValidationError(e);if(this._maskValue.startsWith("separator")||ZWe.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(QWe.includes(this._maskValue))return this._validateTime(e);if(e&&e.toString().length>=1){let i=0;if(this._maskValue.includes("{")&&this._maskValue.includes("}"))return this._maskValue.slice(this._maskValue.indexOf("{")+1,this._maskValue.indexOf("}"))===String(e.length)?null:this._createValidationError(e);if(this._maskValue.startsWith("percent"))return null;for(let r in this._maskService.patterns)if(this._maskService.patterns[r]?.optional){if(this._maskValue.indexOf(r)!==this._maskValue.lastIndexOf(r)){let o=this._maskValue.split("").filter(a=>a===r).join("");i+=o.length}else this._maskValue.indexOf(r)!==-1&&i++;if(this._maskValue.indexOf(r)!==-1&&e.toString().length>=this._maskValue.indexOf(r)||i===this._maskValue.length)return null}if(this._maskValue.indexOf("*")>1&&e.toString().length1&&e.toString().length1){let a=r[r.length-1];if(a&&this._maskService.specialCharacters.includes(a[0])&&String(e).includes(a[0]??"")&&!this.dropSpecialCharacters){let s=e.split(a[0]);return s[s.length-1].length===a.length-1?null:this._createValidationError(e)}else return(a&&!this._maskService.specialCharacters.includes(a[0])||!a||this._maskService.dropSpecialCharacters)&&e.length>=o-1?null:this._createValidationError(e)}}if(this._maskValue.indexOf("*")===1||this._maskValue.indexOf("?")===1)return null}return e&&this.maskFilled.emit(),null}onPaste(){this._justPasted=!0}onFocus(){this._isFocused=!0}onModelChange(e){(e===""||e===null||e===void 0)&&this._maskService.actualValue&&(this._maskService.actualValue=this._maskService.getActualValue(""))}onInput(e){if(this._isComposing)return;let i=e.target,r=this._maskService.inputTransformFn(i.value);if(i.type!=="number")if(typeof r=="string"||typeof r=="number"){if(i.value=r.toString(),this._inputValue=i.value,this._setMask(),!this._maskValue){this.onChange(i.value);return}let o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;if(this.showMaskTyped&&this.keepCharacterPositions&&this._maskService.placeHolderCharacter.length===1){let u=i.value.slice(o-1,o),p=this.prefix.length,g=this._maskService._checkSymbolMask(u,this._maskService.maskExpression[o-1-p]??""),_=this._maskService._checkSymbolMask(u,this._maskService.maskExpression[o+1-p]??""),v=this._maskService.selStart===this._maskService.selEnd,y=Number(this._maskService.selStart)-p,x=Number(this._maskService.selEnd)-p;if(this._code==="Backspace"){if(!v)this._maskService.selStart===p?this._maskService.actualValue=`${this.prefix}${this._maskService.maskIsShown.slice(0,x)}${this._inputValue.split(this.prefix).join("")}`:this._maskService.selStart===this._maskService.maskIsShown.length+p?this._maskService.actualValue=`${this._inputValue}${this._maskService.maskIsShown.slice(y,x)}`:this._maskService.actualValue=`${this.prefix}${this._inputValue.split(this.prefix).join("").slice(0,y)}${this._maskService.maskIsShown.slice(y,x)}${this._maskService.actualValue.slice(x+p,this._maskService.maskIsShown.length+p)}${this.suffix}`;else if(!this._maskService.specialCharacters.includes(this._maskService.maskExpression.slice(o-this.prefix.length,o+1-this.prefix.length))&&v)if(y===1&&this.prefix)this._maskService.actualValue=`${this.prefix}${this._maskService.placeHolderCharacter}${i.value.split(this.prefix).join("").split(this.suffix).join("")}${this.suffix}`,o=o-1;else{let I=i.value.substring(0,o),C=i.value.substring(o);this._maskService.actualValue=`${I}${this._maskService.placeHolderCharacter}${C}`}}this._code!=="Backspace"&&(!g&&!_&&v?o=Number(i.selectionStart)-1:this._maskService.specialCharacters.includes(i.value.slice(o,o+1))&&_&&!this._maskService.specialCharacters.includes(i.value.slice(o+1,o+2))?(this._maskService.actualValue=`${i.value.slice(0,o-1)}${i.value.slice(o,o+1)}${u}${i.value.slice(o+2)}`,o=o+1):g?i.value.length===1&&o===1?this._maskService.actualValue=`${this.prefix}${u}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${this.suffix}`:this._maskService.actualValue=`${i.value.slice(0,o-1)}${u}${i.value.slice(o+1).split(this.suffix).join("")}${this.suffix}`:this.prefix&&i.value.length===1&&o-p===1&&this._maskService._checkSymbolMask(i.value,this._maskService.maskExpression[o-1-p]??"")&&(this._maskService.actualValue=`${this.prefix}${i.value}${this._maskService.maskIsShown.slice(1,this._maskService.maskIsShown.length)}${this.suffix}`))}let a=0,s=!1;if(this._code==="Delete"&&(this._maskService.deletedSpecialCharacter=!0),this._inputValue.length>=this._maskService.maskExpression.length-1&&this._code!=="Backspace"&&this._maskService.maskExpression==="d0/M0/0000"&&o<10){let u=this._inputValue.slice(o-1,o);i.value=this._inputValue.slice(0,o-1)+u+this._inputValue.slice(o+1)}if(this._maskService.maskExpression==="d0/M0/0000"&&this.leadZeroDateTime&&(o<3&&Number(i.value)>31&&Number(i.value)<40||o===5&&Number(i.value.slice(3,5))>12)&&(o=o+2),this._maskService.maskExpression==="Hh:m0:s0"&&this.apm&&(this._justPasted&&i.value.slice(0,2)==="00"&&(i.value=i.value.slice(1,2)+i.value.slice(2,i.value.length)),i.value=i.value==="00"?"0":i.value),this._maskService.applyValueChanges(o,this._justPasted,this._code==="Backspace"||this._code==="Delete",(u,p)=>{this._justPasted=!1,a=u,s=p}),this._getActiveElement()!==i)return;if(this._maskService.plusOnePosition&&(o=o+1,this._maskService.plusOnePosition=!1),this._maskExpressionArray.length)if(this._code==="Backspace"){let u=this.specialCharacters.includes(this._maskService.actualValue.slice(o-1,o)),p=this.specialCharacters.includes(this._maskService.actualValue.slice(o,o+1));this._allowFewMaskChangeMask&&!p?(o=i.selectionStart+1,this._allowFewMaskChangeMask=!1):o=u?o-1:o}else o=i.selectionStart===1?i.selectionStart+this._maskService.prefix.length:i.selectionStart;this._position=this._position===1&&this._inputValue.length===1?null:this._position;let l=this._position?this._inputValue.length+o+a:o+(this._code==="Backspace"&&!s?0:a);l>this._getActualInputLength()&&(l=i.value===this._maskService.decimalMarker&&i.value.length===1?this._getActualInputLength()+1:this._getActualInputLength()),l<0&&(l=0),i.setSelectionRange(l,l),this._position=null}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof r);else{if(!this._maskValue){this.onChange(i.value);return}this._maskService.applyValueChanges(i.value.length,this._justPasted,this._code==="Backspace"||this._code==="Delete")}}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,this._justPasted=!0,this.onInput(e)}onBlur(e){if(this._maskValue){let i=e.target;if(this.leadZero&&i.value.length>0&&typeof this.decimalMarker=="string"){let r=this._maskService.maskExpression,o=Number(this._maskService.maskExpression.slice(r.length-1,r.length));if(o>0){i.value=this.suffix?i.value.split(this.suffix).join(""):i.value;let a=i.value.split(this.decimalMarker)[1];i.value=i.value.includes(this.decimalMarker)?i.value+"0".repeat(o-a.length)+this.suffix:i.value+this.decimalMarker+"0".repeat(o)+this.suffix,this._maskService.actualValue=i.value}}this._maskService.clearIfNotMatchFn()}this._isFocused=!1,this.onTouch()}onClick(e){if(!this._maskValue)return;let i=e.target,r=0,o=0;i!==null&&i.selectionStart!==null&&i.selectionStart===i.selectionEnd&&i.selectionStart>this._maskService.prefix.length&&e.keyCode!==38&&this._maskService.showMaskTyped&&!this.keepCharacterPositions&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),i.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===i.value?(i.focus(),i.setSelectionRange(r,o)):i.selectionStart>this._maskService.actualValue.length&&i.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));let a=i&&(i.value===this._maskService.prefix?this._maskService.prefix+this._maskService.maskIsShown:i.value);if(i&&i.value!==a&&(i.value=a),i&&i.type!=="number"&&(i.selectionStart||i.selectionEnd)<=this._maskService.prefix.length){i.selectionStart=this._maskService.prefix.length;return}i&&i.selectionEnd>this._getActualInputLength()&&(i.selectionEnd=this._getActualInputLength())}onKeyDown(e){if(!this._maskValue)return;if(this._isComposing){e.key==="Enter"&&this.onCompositionEnd(e);return}this._code=e.code?e.code:e.key;let i=e.target;if(this._inputValue=i.value,this._setMask(),i.type!=="number"){if(e.key==="ArrowUp"&&e.preventDefault(),e.key==="ArrowLeft"||e.key==="Backspace"||e.key==="Delete"){if(e.key==="Backspace"&&i.value.length===0&&(i.selectionStart=i.selectionEnd),e.key==="Backspace"&&i.selectionStart!==0){if(this.specialCharacters=this.specialCharacters?.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&i.selectionStart<=this.prefix.length)i.setSelectionRange(this.prefix.length,i.selectionEnd);else if(this._inputValue.length!==i.selectionStart&&i.selectionStart!==1)for(;this.specialCharacters.includes((this._inputValue[i.selectionStart-1]??"").toString())&&(this.prefix.length>=1&&i.selectionStart>this.prefix.length||this.prefix.length===0);)i.setSelectionRange(i.selectionStart-1,i.selectionEnd)}this.checkSelectionOnDeletion(i),this._maskService.prefix.length&&i.selectionStart<=this._maskService.prefix.length&&i.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();let r=i.selectionStart;e.key==="Backspace"&&!i.readOnly&&r===0&&i.selectionEnd===i.value.length&&i.value.length!==0&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length{this._maskService.applyMask(i?.toString()??"",this._maskService.maskExpression)}),this._maskService.isNumberValue=!0}typeof i!="string"&&(i=""),this._inputValue=i,this._setMask(),i&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(typeof this.inputTransformFn!="function"&&(this._maskService.writingValue=!0),this._maskService.formElementProperty=["value",this._maskService.applyMask(i,this._maskService.maskExpression)],typeof this.inputTransformFn!="function"&&(this._maskService.writingValue=!1)):this._maskService.formElementProperty=["value",i],this._inputValue=i}else console.warn("Ngx-mask writeValue work with string | number, your current value:",typeof e)})}registerOnChange(e){this._maskService.onChange=this.onChange=e}registerOnTouched(e){this.onTouch=e}_getActiveElement(e=this.document){let i=e?.activeElement?.shadowRoot;return i?.activeElement?this._getActiveElement(i):e.activeElement}checkSelectionOnDeletion(e){e.selectionStart=Math.min(Math.max(this.prefix.length,e.selectionStart),this._inputValue.length-this.suffix.length),e.selectionEnd=Math.min(Math.max(this.prefix.length,e.selectionEnd),this._inputValue.length-this.suffix.length)}setDisabledState(e){this._maskService.formElementProperty=["disabled",e]}_applyMask(){this._maskService.maskExpression=this._maskService._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(e){let i=this._maskValue.split("").filter(r=>r!==":").length;return e&&(+(e[e.length-1]??-1)==0&&e.length{if(e.split("").some(r=>this._maskService.specialCharacters.includes(r))&&this._inputValue&&this._areAllCharactersInEachStringSame(this._maskExpressionArray)||e.includes("{")){let r=this._maskService.removeMask(this._inputValue)?.length<=this._maskService.removeMask(e)?.length;if(r)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e.includes("{")?this._maskService._repeatPatternSymbols(e):e,r;{this._code==="Backspace"&&(this._allowFewMaskChangeMask=!0);let o=this._maskExpressionArray[this._maskExpressionArray.length-1]??"";this._maskValue=this.maskExpression=this._maskService.maskExpression=o.includes("{")?this._maskService._repeatPatternSymbols(o):o}}else{let r=this._maskService.removeMask(this._inputValue)?.split("").every((o,a)=>{let s=e.charAt(a);return this._maskService._checkSymbolMask(o,s)});if(r||this._justPasted)return this._maskValue=this.maskExpression=this._maskService.maskExpression=e,r}})}_areAllCharactersInEachStringSame(e){let i=this._maskService.specialCharacters;function r(a){let s=new RegExp(`[${i.map(l=>`\\${l}`).join("")}]`,"g");return a.replace(s,"")}return e.map(r).every(a=>new Set(a).size===1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(i,r){i&1&&$("paste",function(){return r.onPaste()})("focus",function(a){return r.onFocus(a)})("ngModelChange",function(a){return r.onModelChange(a)})("input",function(a){return r.onInput(a)})("compositionstart",function(a){return r.onCompositionStart(a)})("compositionend",function(a){return r.onCompositionEnd(a)})("blur",function(a){return r.onBlur(a)})("click",function(a){return r.onClick(a)})("keydown",function(a){return r.onKeyDown(a)})},inputs:{maskExpression:[ve.None,"mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime",leadZero:"leadZero",triggerOnMaskChange:"triggerOnMaskChange",apm:"apm",inputTransformFn:"inputTransformFn",outputTransformFn:"outputTransformFn",keepCharacterPositions:"keepCharacterPositions"},outputs:{maskFilled:"maskFilled"},exportAs:["mask","ngxMask"],standalone:!0,features:[Zt([{provide:ys,useExisting:t,multi:!0},{provide:wl,useExisting:t,multi:!0},VQ]),Oi]})}}return t})();var iYe=["mat-calendar-body",""];function nYe(t,n){if(t&1&&(d(0,"tr",0)(1,"td",3),h(2),c()()),t&2){let e=S();m(),Vo("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),xt("colspan",e.numCols),m(),ue(" ",e.label," ")}}function rYe(t,n){if(t&1&&(d(0,"td",3),h(1),c()),t&2){let e=S(2);Vo("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),xt("colspan",e._firstRowOffset),m(),ue(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function oYe(t,n){if(t&1){let e=ie();d(0,"td",6)(1,"button",7),$("click",function(r){let o=W(e).$implicit,a=S(2);return Y(a._cellClicked(o,r))})("focus",function(r){let o=W(e).$implicit,a=S(2);return Y(a._emitActiveDateChange(o,r))}),d(2,"span",8),h(3),c(),H(4,"span",9),c()()}if(t&2){let e=n.$implicit,i=n.$index,r=S().$index,o=S();Vo("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),xt("data-mat-row",r)("data-mat-col",i),m(),yt("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),f("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),xt("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),m(),yt("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),m(),ue(" ",e.displayValue," ")}}function aYe(t,n){if(t&1&&(d(0,"tr",1),k(1,rYe,2,6,"td",4),Md(2,oYe,5,48,"td",5,kd),c()),t&2){let e=n.$implicit,i=n.$index,r=S();m(),Xt(1,i===0&&r._firstRowOffset?1:-1),m(),Fd(e)}}function sYe(t,n){if(t&1&&(d(0,"th",2)(1,"span",6),h(2),c(),d(3,"span",3),h(4),c()()),t&2){let e=n.$implicit;m(2),U(e.long),m(2),U(e.narrow)}}var lYe=["*"];function cYe(t,n){}function dYe(t,n){if(t&1){let e=ie();d(0,"mat-month-view",2),tn("activeDateChange",function(r){W(e);let o=S();return nn(o.activeDate,r)||(o.activeDate=r),Y(r)}),$("_userSelection",function(r){W(e);let o=S();return Y(o._dateSelected(r))})("dragStarted",function(r){W(e);let o=S();return Y(o._dragStarted(r))})("dragEnded",function(r){W(e);let o=S();return Y(o._dragEnded(r))}),c()}if(t&2){let e=S();en("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function uYe(t,n){if(t&1){let e=ie();d(0,"mat-year-view",3),tn("activeDateChange",function(r){W(e);let o=S();return nn(o.activeDate,r)||(o.activeDate=r),Y(r)}),$("monthSelected",function(r){W(e);let o=S();return Y(o._monthSelectedInYearView(r))})("selectedChange",function(r){W(e);let o=S();return Y(o._goToDateInView(r,"month"))}),c()}if(t&2){let e=S();en("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function mYe(t,n){if(t&1){let e=ie();d(0,"mat-multi-year-view",4),tn("activeDateChange",function(r){W(e);let o=S();return nn(o.activeDate,r)||(o.activeDate=r),Y(r)}),$("yearSelected",function(r){W(e);let o=S();return Y(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){W(e);let o=S();return Y(o._goToDateInView(r,"year"))}),c()}if(t&2){let e=S();en("activeDate",e.activeDate),f("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function pYe(t,n){}var hYe=["button"],fYe=[[["","matDatepickerToggleIcon",""]]],gYe=["[matDatepickerToggleIcon]"];function _Ye(t,n){t&1&&(Na(),d(0,"svg",2),H(1,"path",3),c())}var Kk=(()=>{class t{constructor(){this.changes=new qe,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Wk=class{constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},vYe=1,u0e=Ql({passive:!1,capture:!0}),Fb=Ql({passive:!0,capture:!0}),W5=Ql({passive:!0}),$E=(()=>{class t{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,i){this._elementRef=e,this._ngZone=i,this._platform=Me(ln),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Ae,this.previewChange=new Ae,this.activeDateChange=new Ae,this.dragStarted=new Ae,this.dragEnded=new Ae,this._didDragSinceMouseDown=!1,this._enterHandler=r=>{if(this._skipNextFocus&&r.type==="focus"){this._skipNextFocus=!1;return}if(r.target&&this.isRange){let o=this._getCellFromElement(r.target);o&&this._ngZone.run(()=>this.previewChange.emit({value:o.enabled?o:null,event:r}))}},this._touchmoveHandler=r=>{if(!this.isRange)return;let o=m0e(r),a=o?this._getCellFromElement(o):null;o!==r.target&&(this._didDragSinceMouseDown=!0),jQ(r.target)&&r.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:r}))},this._leaveHandler=r=>{this.previewEnd!==null&&this.isRange&&(r.type!=="blur"&&(this._didDragSinceMouseDown=!0),r.target&&this._getCellFromElement(r.target)&&!(r.relatedTarget&&this._getCellFromElement(r.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r})))},this._mousedownHandler=r=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let o=r.target&&this._getCellFromElement(r.target);!o||!this._isInRange(o.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:o.rawValue,event:r})})},this._mouseupHandler=r=>{if(!this.isRange)return;let o=jQ(r.target);if(!o){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:r})});return}o.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(o);this.dragEnded.emit({value:a?.rawValue??null,event:r})})},this._touchendHandler=r=>{let o=m0e(r);o&&this._mouseupHandler({target:o})},this._id=`mat-calendar-body-${vYe++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,i.runOutsideAngular(()=>{let r=e.nativeElement;r.addEventListener("touchmove",this._touchmoveHandler,u0e),r.addEventListener("mouseenter",this._enterHandler,Fb),r.addEventListener("focus",this._enterHandler,Fb),r.addEventListener("mouseleave",this._leaveHandler,Fb),r.addEventListener("blur",this._leaveHandler,Fb),r.addEventListener("mousedown",this._mousedownHandler,W5),r.addEventListener("touchstart",this._mousedownHandler,W5),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,u0e),e.removeEventListener("mouseenter",this._enterHandler,Fb),e.removeEventListener("focus",this._enterHandler,Fb),e.removeEventListener("mouseleave",this._leaveHandler,Fb),e.removeEventListener("blur",this._leaveHandler,Fb),e.removeEventListener("mousedown",this._mousedownHandler,W5),e.removeEventListener("touchstart",this._mousedownHandler,W5),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(cn(1)).subscribe(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return HQ(e,this.startValue,this.endValue)}_isRangeEnd(e){return zQ(e,this.startValue,this.endValue)}_isInRange(e){return UQ(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return HQ(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return zQ(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return UQ(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return HQ(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return zQ(e,this.previewStart,this.previewEnd)}_isInPreview(e){return UQ(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let i=jQ(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ht))}}static{this.\u0275cmp=oe({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],standalone:!0,features:[Oi,Dt],attrs:iYe,decls:7,vars:5,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(k(0,nYe,3,6,"tr",0),Md(1,aYe,4,1,"tr",1,kd),d(3,"label",2),h(4),c(),d(5,"label",2),h(6),c()),i&2&&(Xt(0,r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}'],encapsulation:2,changeDetection:0})}}return t})();function BQ(t){return t?.nodeName==="TD"}function jQ(t){let n;return BQ(t)?n=t:BQ(t.parentNode)?n=t.parentNode:BQ(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function HQ(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function UQ(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function m0e(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var $p=class{constructor(n,e){this.start=n,this.end=e}},Yk=(()=>{class t{constructor(e,i){this.selection=e,this._adapter=i,this._selectionChanged=new qe,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static{this.\u0275fac=function(i){Ky()}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),bYe=(()=>{class t extends Yk{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static{this.\u0275fac=function(i){return new(i||t)(ae(Us))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();function yYe(t,n){return t||new bYe(n)}var v0e={provide:Yk,deps:[[new Iu,new bm,Yk],Us],useFactory:yYe};var b0e=new ke("MAT_DATE_RANGE_SELECTION_STRATEGY");var GQ=7,p0e=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof $p?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,o,a){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rangeStrategy=a,this._rerenderSubscription=Ji.EMPTY,this.activeDrag=null,this.selectedChange=new Ae,this._userSelection=new Ae,this.dragStarted=new Ae,this.dragEnded=new Ae,this.activeDateChange=new Ae,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(kn(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof $p?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!ho(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(GQ+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%GQ,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s]}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof $p?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(jh,8),E(Us,8),E(Kr,8),E(b0e,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ot($E,5),i&2){let o;Pe(o=Ne())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],standalone:!0,features:[Oi,Dt],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),Md(3,sYe,5,2,"th",2,kd),c(),d(5,"tr",3),H(6,"th",4),c()(),d(7,"tbody",5),$("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),c()()),i&2&&(m(3),Fd(r._weekdays),m(4),f("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[$E],encapsulation:2,changeDetection:0})}}return t})(),Jm=24,$Q=4,h0e=(()=>{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),y0e(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof $p?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r){this._changeDetectorRef=e,this._dateAdapter=i,this._dir=r,this._rerenderSubscription=Ji.EMPTY,this.selectedChange=new Ae,this.yearSelected=new Ae,this.activeDateChange=new Ae,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(kn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-qk(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];rthis._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-$Q);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,$Q);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-qk(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Jm-qk(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Jm*10:-Jm);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Jm*10:Jm);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return qk(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new Wk(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof $p?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,i,r,o){this._changeDetectorRef=e,this._dateFormats=i,this._dateAdapter=r,this._dir=o,this._rerenderSubscription=Ji.EMPTY,this.selectedChange=new Ae,this.monthSelected=new Ae,this.activeDateChange=new Ae,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(kn(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new Wk(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{constructor(e,i,r,o,a){this._intl=e,this.calendar=i,this._dateAdapter=r,this._dateFormats=o,this._id=`mat-calendar-header-${CYe++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Jm)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Jm)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):y0e(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-qk(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Jm-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}static{this.\u0275fac=function(i){return new(i||t)(E(Kk),E(fr(()=>qQ)),E(Us,8),E(jh,8),E(Di))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],standalone:!0,features:[Dt],ngContentSelectors:lYe,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],[1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"]],template:function(i,r){i&1&&(hi(),d(0,"div",0)(1,"div",1)(2,"label",2),h(3),c(),d(4,"button",3),$("click",function(){return r.currentPeriodClicked()}),d(5,"span",4),h(6),c(),Na(),d(7,"svg",5),H(8,"polygon",6),c()(),e0(),H(9,"div",7),ct(10),d(11,"button",8),$("click",function(){return r.previousClicked()}),c(),d(12,"button",9),$("click",function(){return r.nextClicked()}),c()()()),i&2&&(m(2),f("id",r._periodButtonLabelId),m(),U(r.periodButtonDescription),m(),xt("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),m(2),U(r.periodButtonText),m(),yt("mat-calendar-invert",r.calendar.currentView!=="month"),m(4),f("disabled",!r.previousEnabled()),xt("aria-label",r.prevButtonLabel),m(),f("disabled",!r.nextEnabled()),xt("aria-label",r.nextButtonLabel))},dependencies:[Ze,fi],encapsulation:2,changeDetection:0})}}return t})(),qQ=(()=>{class t{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof $p?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&this.viewChanged.emit(i)}constructor(e,i,r,o){this._dateAdapter=i,this._dateFormats=r,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Ae,this.yearSelected=new Ae,this.monthSelected=new Ae,this.viewChanged=new Ae(!0),this._userSelection=new Ae,this._userDragDrop=new Ae,this._activeDrag=null,this.stateChanges=new qe,this._intlChanges=e.changes.subscribe(()=>{o.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Nu(this.headerComponent||C0e),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof $p||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static{this.\u0275fac=function(i){return new(i||t)(E(Kk),E(Us,8),E(jh,8),E(Di))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ot(p0e,5),ot(f0e,5),ot(h0e,5)),i&2){let o;Pe(o=Ne())&&(r.monthView=o.first),Pe(o=Ne())&&(r.yearView=o.first),Pe(o=Ne())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],standalone:!0,features:[Zt([v0e]),Oi,Dt],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(k(0,cYe,0,0,"ng-template",0),d(1,"div",1),k(2,dYe,1,11)(3,uYe,1,6)(4,mYe,1,6),c()),i&2){let o;f("cdkPortalOutlet",r._calendarHeaderPortal),m(2),Xt(2,(o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[Tl,iL,p0e,f0e,h0e],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight);--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})(),g0e={transformPanel:Bo("transformPanel",[gr("void => enter-dropdown",xr("120ms cubic-bezier(0, 0, 0.2, 1)",cv([$i({opacity:0,transform:"scale(1, 0.8)"}),$i({opacity:1,transform:"scale(1, 1)"})]))),gr("void => enter-dialog",xr("150ms cubic-bezier(0, 0, 0.2, 1)",cv([$i({opacity:0,transform:"scale(0.7)"}),$i({transform:"none",opacity:1})]))),gr("* => void",xr("100ms linear",$i({opacity:0})))]),fadeInCalendar:Bo("fadeInCalendar",[cr("void",$i({opacity:0})),cr("enter",$i({opacity:1})),gr("void => *",xr("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},SYe=0,S0e=new ke("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=Me(lo);return()=>t.scrollStrategies.reposition()}});function wYe(t){return()=>t.scrollStrategies.reposition()}var EYe={provide:S0e,deps:[lo],useFactory:wYe},w0e=(()=>{class t{constructor(e,i,r,o,a,s){this._elementRef=e,this._changeDetectorRef=i,this._globalModel=r,this._dateAdapter=o,this._rangeSelectionStrategy=a,this._subscriptions=new Ji,this._animationDone=new qe,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof $p;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(Yk),E(Us),E(b0e,8),E(Kk))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ot(qQ,5),i&2){let o;Pe(o=Ne())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:5,hostBindings:function(i,r){i&1&&Qy("@transformPanel.start",function(a){return r._handleAnimationEvent(a)})("@transformPanel.done",function(a){return r._handleAnimationEvent(a)}),i&2&&(Xy("@transformPanel",r._animationState),In(r.color?"mat-"+r.color:""),yt("mat-datepicker-content-touch",r.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],standalone:!0,features:[Dt],decls:5,vars:27,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){if(i&1&&(d(0,"div",0)(1,"mat-calendar",1),$("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),c(),k(2,pYe,0,0,"ng-template",2),d(3,"button",3),$("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),h(4),c()()),i&2){let o;yt("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),xt("aria-modal",!0)("aria-labelledby",(o=r._dialogLabelId)!==null&&o!==void 0?o:void 0),m(),In(r.datepicker.panelClass),f("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),m(),f("cdkPortalOutlet",r._actionsPortal),m(),yt("cdk-visually-hidden",!r._closeButtonFocused),f("color",r.color||"primary"),m(),U(r._closeButtonText)}},dependencies:[Uce,qQ,Tl,Ze],styles:[".mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color);box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-shape)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow);border-radius:var(--mat-datepicker-calendar-container-touch-shape);position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[g0e.transformPanel,g0e.fadeInCalendar]},changeDetection:0})}}return t})(),_0e=(()=>{class t{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Mce(e)}get opened(){return this._opened}set opened(e){e?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,i,r,o,a,s,l){this._overlay=e,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=a,this._dir=s,this._model=l,this._inputStateChanges=Ji.EMPTY,this._document=Me(ni),this.startView="month",this.touchUi=!1,this.xPosition="start",this.yPosition="below",this.restoreFocus=!0,this.yearSelected=new Ae,this.monthSelected=new Ae,this.viewChanged=new Ae(!0),this.openedStream=new Ae,this.closedStream=new Ae,this._opened=!1,this.id=`mat-datepicker-${SYe++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new qe,this._dateAdapter,this._scrollStrategy=o}ngOnChanges(e){let i=e.xPosition||e.yPosition;if(i&&!i.firstChange&&this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;r instanceof P2&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Yf(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",i=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:r,location:o}=this._componentRef;r._startExitAnimation(),r._animationDone.pipe(cn(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||o.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(i):i()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,i=new Nu(w0e,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Ou({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(r).subscribe(o=>{o&&o.preventDefault(),this.close()}),r.keydownEvents().subscribe(o=>{let a=o.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&o.preventDefault()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(cn(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let i=this.xPosition==="end"?"end":"start",r=i==="start"?"end":"start",o=this.yPosition==="above"?"bottom":"top",a=o==="top"?"bottom":"top";return e.withPositions([{originX:i,originY:a,overlayX:i,overlayY:o},{originX:i,originY:o,overlayX:i,overlayY:a},{originX:r,originY:a,overlayX:r,overlayY:o},{originX:r,originY:o,overlayX:r,overlayY:a}])}_getCloseStream(e){let i=["ctrlKey","shiftKey","metaKey"];return Cn(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(vi(r=>r.keyCode===27&&!ho(r)||this.datepickerInput&&ho(r,"altKey")&&r.keyCode===38&&i.every(o=>!ho(r,o)))))}static{this.\u0275fac=function(i){return new(i||t)(E(lo),E(ht),E(Er),E(S0e),E(Us,8),E(Kr,8),E(Yk))}}static{this.\u0275dir=ze({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[ve.HasDecoratorInputTransform,"touchUi","touchUi",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[ve.HasDecoratorInputTransform,"restoreFocus","restoreFocus",at],dateClass:"dateClass",panelClass:"panelClass",opened:[ve.HasDecoratorInputTransform,"opened","opened",at]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Ei,Oi]})}}return t})(),Rb=(()=>{class t extends _0e{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],standalone:!0,features:[Zt([v0e,{provide:_0e,useExisting:t}]),qt,Dt],decls:0,vars:0,template:function(i,r){},encapsulation:2,changeDetection:0})}}return t})(),GE=class{constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},IYe=(()=>{class t{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let i=e,r=this._elementRef.nativeElement;this._disabled!==i&&(this._disabled=i,this.stateChanges.next(void 0)),i&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(i=>{if(this._shouldHandleChangeEvent(i)){let r=this._getValueFromModel(i.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new GE(this,this._elementRef.nativeElement)),this.dateChange.emit(new GE(this,this._elementRef.nativeElement))}})}constructor(e,i,r){this._elementRef=e,this._dateAdapter=i,this._dateFormats=r,this.dateChange=new Ae,this.dateInput=new Ae,this.stateChanges=new qe,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Ji.EMPTY,this._localeSubscription=Ji.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),s=this._getMinDate();return!s||!a||this._dateAdapter.compareDate(s,a)<=0?null:{matDatepickerMin:{min:s,actual:a}}},this._maxValidator=o=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(o.value)),s=this._getMaxDate();return!s||!a||this._dateAdapter.compareDate(s,a)>=0?null:{matDatepickerMax:{max:s,actual:a}}},this._lastValueValid=!1,this._localeSubscription=i.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){DYe(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let i=["ctrlKey","shiftKey","metaKey"];ho(e,"altKey")&&e.keyCode===40&&i.every(o=>!ho(e,o))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let i=this._lastValueValid,r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let o=!this._dateAdapter.sameDate(r,this.value);!r||o?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),i!==this._lastValueValid&&this._validatorOnChange()),o&&(this._assignValue(r),this.dateInput.emit(new GE(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new GE(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let i=this._getDateFilter();return!i||i(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Us,8),E(jh,8))}}static{this.\u0275dir=ze({type:t,inputs:{value:"value",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},standalone:!0,features:[Ei,Oi]})}}return t})();function DYe(t,n){let e=Object.keys(t);for(let i of e){let{previousValue:r,currentValue:o}=t[i];if(n.isDateInstance(r)&&n.isDateInstance(o)){if(!n.sameDate(r,o))return!0}else return!0}return!1}var TYe={provide:ys,useExisting:fr(()=>vg),multi:!0},AYe={provide:wl,useExisting:fr(()=>vg),multi:!0},vg=(()=>{class t extends IYe{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._min)||(this._min=i,this._validatorOnChange())}get max(){return this._max}set max(e){let i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(i,this._max)||(this._max=i,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){let i=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==i&&this._validatorOnChange()}constructor(e,i,r,o){super(e,i,r),this._formField=o,this._closedSubscription=Ji.EMPTY,this._validator=Se.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Us,8),E(jh,8),E(x0,8))}}static{this.\u0275dir=ze({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(i,r){i&1&&$("input",function(a){return r._onInput(a.target.value)})("change",function(){return r._onChange()})("blur",function(){return r._onBlur()})("keydown",function(a){return r._onKeydown(a)}),i&2&&(La("disabled",r.disabled),xt("aria-haspopup",r._datepicker?"dialog":null)("aria-owns",(r._datepicker==null?null:r._datepicker.opened)&&r._datepicker.id||null)("min",r.min?r._dateAdapter.toIso8601(r.min):null)("max",r.max?r._dateAdapter.toIso8601(r.max):null)("data-mat-calendar",r._datepicker?r._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[ve.None,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],standalone:!0,features:[Zt([TYe,AYe,{provide:Fq,useExisting:t}]),qt]})}}return t})(),kYe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","matDatepickerToggleIcon",""]],standalone:!0})}}return t})(),Lx=(()=>{class t{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}constructor(e,i,r){this._intl=e,this._changeDetectorRef=i,this._stateChanges=Ji.EMPTY;let o=Number(r);this.tabIndex=o||o===0?o:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:vt(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:vt(),r=this.datepicker?Cn(this.datepicker.openedStream,this.datepicker.closedStream):vt();this._stateChanges.unsubscribe(),this._stateChanges=Cn(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(E(Kk),E(Di),Sa("tabindex"))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&bi(o,kYe,5),i&2){let a;Pe(a=Ne())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ot(hYe,5),i&2){let o;Pe(o=Ne())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&$("click",function(a){return r._open(a)}),i&2&&(xt("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),yt("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[ve.None,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[ve.None,"aria-label","ariaLabel"],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],standalone:!0,features:[Ei,Oi,Dt],ngContentSelectors:gYe,decls:4,vars:6,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(hi(fYe),d(0,"button",1,0),k(2,_Ye,2,0,":svg:svg",2),ct(3),c()),i&2&&(f("disabled",r.disabled)("disableRipple",r.disableRipple),xt("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("tabindex",r.disabled?-1:r.tabIndex),m(2),Xt(2,r._customIcon?-1:2))},dependencies:[fi],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}}return t})();var Xk=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Kk,EYe],imports:[po,Ic,nd,Cv,zd,ki,w0e,Lx,C0e,Hd]})}}return t})();var MYe=t=>({"cursor-click":t});function FYe(t,n){if(t&1&&(d(0,"mat-icon"),h(1),c()),t&2){let e=S();m(),U(e.icon)}}var Jk=["*"];function RYe(t,n){if(t&1){let e=ie();d(0,"button",2),$("click",function(){W(e);let r=S(2);return Y(r.closeClicked.emit())}),d(1,"mat-icon"),h(2,"close"),c()()}}function PYe(t,n){t&1&&(d(0,"button",3)(1,"mat-icon"),h(2,"close"),c()())}function NYe(t,n){if(t&1&&k(0,RYe,3,0,"button",1)(1,PYe,3,0),t&2){let e=S();Xt(0,e.customClose?0:1)}}function OYe(t,n){if(t&1&&(d(0,"div")(1,"div",4)(2,"mat-icon",5),h(3,"error"),c(),d(4,"p"),h(5),c()()()),t&2){let e=n.$implicit;m(5),U(e)}}function LYe(t,n){if(t&1&&(d(0,"div",6)(1,"button",7),h(2),c()()),t&2){let e=n.$implicit;m(2),U(e("common.close"))}}function VYe(t,n){if(t&1&&H(0,"span",8),t&2){let e=S(2);f("innerHTML",e.message,qc)}}function BYe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2);m(),U(e.message)}}function jYe(t,n){if(t&1&&(he(0),k(1,VYe,1,1,"span",7)(2,BYe,2,1,"span",2),fe()),t&2){let e=S();m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function HYe(t,n){if(t&1&&(d(0,"mat-icon",9),h(1),c()),t&2){let e=S();m(),U(e.confirmButtonMatIcon)}}function zYe(t,n){if(t&1&&(d(0,"mat-icon",9),h(1),c()),t&2){let e=S();m(),U(e.cancelButtonMatIcon)}}var R0e=(t,n)=>({subLabel:t,subGender:n});function UYe(t,n){if(t&1&&(d(0,"mat-header-cell",8),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.name"))}}function GYe(t,n){if(t&1){let e=ie();d(0,"mat-cell",9)(1,"a",10),$("click",function(){let r=W(e).$implicit,o=S(2);return Y(o.select(r))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.name)}}function $Ye(t,n){if(t&1&&(d(0,"div",11)(1,"button",12),h(2),c()()),t&2){let e=S().$implicit;m(),f("mat-dialog-close",!1),m(),U(e("common.cancel"))}}function qYe(t,n){if(t&1&&(d(0,"div")(1,"spa-dialog-title",1),h(2),ce(3,"lowercase"),c(),d(4,"div",2)(5,"lac-table",3),he(6,4),k(7,UYe,2,1,"mat-header-cell",5)(8,GYe,3,1,"mat-cell",6),fe(),c()(),k(9,$Ye,3,2,"div",7),c()),t&2){let e=n.$implicit,i=S();m(),f("disableClose",i.data.disableClose),m(),U(e("common.select-a-subscription",so(7,R0e,xe(3,5,e("common.subscription")),i.subscriptionGender))),m(3),f("dataSource",i.subscriptions)("initialPageSize",5),m(4),f("ngIf",!i.disableClose)}}function WYe(t,n){if(t&1&&H(0,"p",9),t&2){let e=S(2);f("innerHTML",e.message,qc)}}function YYe(t,n){if(t&1&&(d(0,"p"),h(1),c()),t&2){let e=S(2);m(),U(e.message)}}function KYe(t,n){if(t&1&&(he(0),k(1,WYe,1,1,"p",8)(2,YYe,2,1,"p",2),fe()),t&2){let e=S();m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function XYe(t,n){if(t&1&&(d(0,"mat-icon",10),h(1),c()),t&2){let e=S();m(),U(e.confirmButtonMatIcon)}}function QYe(t,n){if(t&1&&(d(0,"mat-icon",10),h(1),c()),t&2){let e=S();m(),U(e.cancelButtonMatIcon)}}function ZYe(t,n){if(t&1&&H(0,"span",6),t&2){let e=S(2);f("innerHTML",e.message,qc)}}function JYe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2);m(),U(e.message)}}function eKe(t,n){if(t&1&&(he(0),k(1,ZYe,1,1,"span",5)(2,JYe,2,1,"span",2),fe()),t&2){let e=S();m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function tKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S();m(),U(e.message)}}function iKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S();m(),U(e.footer)}}function nKe(t,n){t&1&&(d(0,"span",14),h(1," /"),c())}function rKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e.message)}}function oKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2).$implicit;m(),Do("",e.message," (",e.detail,")")}}function aKe(t,n){if(t&1){let e=ie();d(0,"span",12),$("click",function(){W(e);let r=S().$implicit,o=S(3);return Y(o.showParent(r))}),k(1,nKe,2,0,"span",13)(2,rKe,2,1,"span",4)(3,oKe,2,2,"span",4),c()}if(t&2){let e=S(),i=e.$implicit,r=e.index;m(),f("ngIf",r>0),m(),f("ngIf",!i.detail),m(),f("ngIf",i.detail)}}function sKe(t,n){if(t&1&&(d(0,"div",10),k(1,aKe,4,3,"span",11),c()),t&2){let e=n.index,i=S(3);xt("data-index",e),m(),f("ngIf",e1),m(),f("ngIf",(i.model==null||i.model.errors==null?null:i.model.errors.length)>0),m(),f("ngIf",(i.model==null||i.model.warnings==null?null:i.model.warnings.length)>0),m(),f("ngIf",(i.model==null||i.model.passedChecks==null?null:i.model.passedChecks.length)>0)}}function IKe(t,n){if(t&1&&(d(0,"div",1)(1,"h3"),h(2),c(),H(3,"mat-spinner",2),c()),t&2){let e=n.$implicit;m(2),U(e("components.dialog-mobile-authorization-required.authorize-on-your-phone"))}}var rZ=t=>[t];function DKe(t,n){if(t&1){let e=ie();d(0,"div",13)(1,"button",14),$("click",function(){W(e);let r=S(2);return Y(r.back())}),d(2,"mat-icon"),h(3,"keyboard_arrow_left"),c()(),d(4,"button",15),$("click",function(){W(e);let r=S(2);return Y(r.next())}),d(5,"mat-icon"),h(6,"keyboard_arrow_right"),c()()()}}function TKe(t,n){if(t&1&&(d(0,"div",16),H(1,"pdf-viewer",17),c()),t&2){let e=S(2);m(),f("src",e.fileLocation)("fit-to-page",!1)("original-size",!1)("render-text",!0)("autoresize",!0)}}function AKe(t,n){if(t&1&&H(0,"iframe",18),t&2){let e=S(2);f("src",e.fileSrc,tv)}}function kKe(t,n){if(t&1&&H(0,"ngx-image-viewer",19),t&2){let e=S(2);f("src",Le(2,rZ,e.fileSrc))("config",e.imageViewerCfg)}}function MKe(t,n){if(t&1&&(d(0,"div",1)(1,"spa-dialog-title",2)(2,"span",3)(3,"span",4)(4,"small"),h(5),c()(),d(6,"span",5),h(7),c()()(),d(8,"div",6),k(9,DKe,7,0,"div",7)(10,TKe,2,5,"div",8)(11,AKe,1,1,"iframe",9)(12,kKe,1,4,"ngx-image-viewer",10),c(),d(13,"div",11)(14,"button",12),h(15,"OK"),c()()()),t&2){let e=n.$implicit,i=S();m(),f("disableClose",i.data.disableClose),m(4),U(e("common.document")),m(2),U(i.name),m(2),f("ngIf",i.files.length>1),m(),f("ngIf",i.isMobile()&&i.fileLocation&&(!i.contentType||!i.contentType.startsWith("image"))),m(),f("ngIf",!i.isMobile()&&i.fileSrc&&(!i.contentType||!i.contentType.startsWith("image"))),m(),f("ngIf",i.fileSrc&&i.contentType&&i.contentType.startsWith("image"))}}function FKe(t,n){if(t&1&&H(0,"span",15),t&2){let e=S(3);f("innerHTML",e.message,qc)}}function RKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3);m(),U(e.message)}}function PKe(t,n){if(t&1&&(he(0),k(1,FKe,1,1,"span",14)(2,RKe,2,1,"span",4),fe()),t&2){let e=S(2);m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function NKe(t,n){if(t&1&&(d(0,"div",16)(1,"p",17)(2,"mat-icon",18),h(3,"warning"),c(),h(4),c()()),t&2){let e=S().$implicit;m(4),ue(" ",e("errors.invalid-password")," ")}}function OKe(t,n){if(t&1){let e=ie();d(0,"div"),H(1,"ngx-loading",1),d(2,"spa-dialog-title",2),h(3),c(),d(4,"div",3),k(5,PKe,3,2,"ng-container",4),d(6,"form",5)(7,"div",6)(8,"div",7)(9,"mat-form-field",8)(10,"mat-label"),h(11),c(),H(12,"input",9),d(13,"mat-error"),h(14),c()(),k(15,NKe,5,1,"div",10),c(),d(16,"div",11)(17,"spa-submit-button",12),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(18),c(),d(19,"button",13),$("click",function(){W(e);let r=S();return Y(r.close())}),h(20),c()()()()()()}if(t&2){let e=n.$implicit,i=S();m(),f("show",i.submitting),m(),f("disableClose",i.data.disableClose),m(),U(i.title),m(2),f("ngIf",i.message),m(),f("formGroup",i.form),m(5),U(e("common.password")),m(3),U(i.getErrorMessage("password")),m(),f("ngIf",i.isPasswordInvalid),m(2),f("form",i.form),m(),ue(" ",e("common.sign-in")," "),m(2),ue(" ",e("common.cancel")," ")}}function LKe(t,n){if(t&1&&H(0,"span",15),t&2){let e=S(3);f("innerHTML",e.message,qc)}}function VKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3);m(),U(e.message)}}function BKe(t,n){if(t&1&&(he(0),k(1,LKe,1,1,"span",14)(2,VKe,2,1,"span",3),fe()),t&2){let e=S(2);m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function jKe(t,n){if(t&1&&(d(0,"mat-option",16),h(1),ce(2,"uppercase"),c()),t&2){let e=n.$implicit,i=S(2);f("value",e),m(),ue(" ",(i.languageCodeMap[e]==null?null:i.languageCodeMap[e].native)||xe(2,2,e)," ")}}function HKe(t,n){if(t&1&&(d(0,"mat-option",16),h(1),c()),t&2){let e=n.$implicit,i=S(2);f("value",e),m(),ue(" ",(i.localeCodeMap[e]==null?null:i.localeCodeMap[e].native)||e," ")}}function zKe(t,n){if(t&1){let e=ie();d(0,"div")(1,"spa-dialog-title",1),h(2),c(),d(3,"div",2),k(4,BKe,3,2,"ng-container",3),d(5,"form",4)(6,"div",5)(7,"div",6)(8,"mat-form-field",7)(9,"mat-label"),h(10),c(),d(11,"mat-select",8),k(12,jKe,3,4,"mat-option",9),c()(),d(13,"mat-form-field",7)(14,"mat-label"),h(15),c(),d(16,"mat-select",10),k(17,HKe,2,2,"mat-option",9),c()()(),d(18,"div",11)(19,"spa-submit-button",12),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(20),c(),d(21,"button",13),h(22),c()()()()()()}if(t&2){let e=n.$implicit,i=S();m(),f("disableClose",i.data.disableClose),m(),U(i.title),m(2),f("ngIf",i.message),m(),f("formGroup",i.form),m(5),U(e("common.language")),m(2),f("ngForOf",i.availableLanguages),m(3),U(e("common.regional-format")),m(2),f("ngForOf",i.availableLocales),m(2),f("form",i.form),m(),ue(" ",e("common.apply")," "),m(2),ue(" ",e("common.cancel")," ")}}function UKe(t,n){if(t&1&&(d(0,"div",2)(1,"spa-prop",11),h(2),c()()),t&2){let e=S().$implicit,i=S();m(),f("label",e("components.dialog-event-details.ip-and-port")),m(),Do(" ",i.event.remoteIPAddress,":",i.event.remotePort," ")}}function GKe(t,n){if(t&1&&(he(0),d(1,"spa-dialog-title"),h(2),c(),d(3,"div",1)(4,"div",2)(5,"spa-prop",3),h(6),ce(7,"spaDate"),ce(8,"spaDate"),c(),d(9,"spa-prop",4),h(10),c(),d(11,"spa-prop",5),h(12),ce(13,"eventType"),c()(),d(14,"div",2)(15,"spa-prop",3)(16,"div",6)(17,"mat-icon",7),h(18),ce(19,"entityIcon"),c(),d(20,"span"),h(21),ce(22,"entityType"),c()()(),d(23,"spa-prop",4),h(24),c(),d(25,"spa-prop",5),h(26),ce(27,"entityName"),ce(28,"async"),c()(),d(29,"div",2)(30,"spa-prop",8),h(31),ce(32,"agent"),ce(33,"async"),c(),d(34,"spa-prop",5),h(35),ce(36,"sub"),ce(37,"async"),c()(),k(38,UKe,3,3,"div",9),d(39,"div",2)(40,"spa-prop",10),h(41),c()(),ct(42),c(),fe()),t&2){let e=n.$implicit,i=S();m(2),U(e("components.dialog-event-details.title")),m(3),f("label",e("common.date")),m(),Do(" ",Bt(7,22,i.event.date,"shortDate")," ",Bt(8,25,i.event.date,"mediumTime")," "),m(3),f("label",e("components.dialog-event-details.event-id")),m(),ue(" ",i.event.id," "),m(),f("label",e("components.dialog-event-details.event-type")),m(),ue(" ",xe(13,28,i.event.type)," "),m(3),f("label",e("components.dialog-event-details.entity-type")),m(3),U(xe(19,30,i.event.entityType)),m(3),U(xe(22,32,i.event.entityType)),m(2),f("label",e("components.dialog-event-details.entity-id")),m(),ue(" ",i.event.entityId," "),m(),f("label",e("components.dialog-event-details.entity-name")),m(),ue(" ",xe(28,36,xe(27,34,i.event))," "),m(4),f("label",e("common.agent")),m(),ue(" ",i.event.agentId?xe(33,40,xe(32,38,i.event.agentId)):"----"," "),m(3),f("label",e("common.subscription")),m(),ue(" ",xe(37,44,xe(36,42,i.event.subscriptionId))," "),m(3),f("ngIf",i.event.remoteIPAddress||i.event.remotePort),m(2),f("label",e("common.details")),m(),U(i.event.details||"----")}}function $Ke(t,n){if(t&1&&H(0,"span",10),t&2){let e=S(2);f("innerHTML",e.message,qc)}}function qKe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2);m(),U(e.message)}}function WKe(t,n){if(t&1&&(he(0),k(1,$Ke,1,1,"span",9)(2,qKe,2,1,"span",2),fe()),t&2){let e=S();m(),f("ngIf",e.useMessageAsHtml),m(),f("ngIf",!e.useMessageAsHtml)}}function YKe(t,n){if(t&1&&(d(0,"mat-icon",11),h(1),c()),t&2){let e=S();m(),U(e.confirmButtonMatIcon)}}function KKe(t,n){if(t&1&&(d(0,"mat-icon",11),h(1),c()),t&2){let e=S();m(),U(e.cancelButtonMatIcon)}}var JQ=t=>({value:t}),P0e=()=>["..","sign-out"],XKe=()=>["/"];function QKe(t,n){if(t&1){let e=ie();d(0,"div"),H(1,"ngx-loading",2),d(2,"h2"),h(3),c(),d(4,"p"),h(5),c(),d(6,"p"),h(7),c(),H(8,"input",3,0),d(10,"button",4),$("click",function(){W(e);let r=je(9),o=S();return Y(o.claimAccess(r.value))}),h(11),c(),d(12,"button",5),h(13),c(),d(14,"button",5),h(15),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("show",i.loading),m(2),U(e("common.welcome-to-site",Le(9,JQ,i.siteName))),m(2),U(e("components.no-access.contact-administrator",Le(11,JQ,i.userName))),m(2),U(e("components.no-access.enter-access-code-below")),m(4),U(e("components.no-access.enter-access-code")),m(),f("routerLink",Wo(13,P0e)),m(),U(e("components.no-access.try-with-different-account")),m(),f("routerLink",Wo(14,XKe)),m(),U(e("common.back-to-home-page"))}}function ZKe(t,n){if(t&1){let e=ie();d(0,"div")(1,"h2"),h(2),c(),d(3,"p"),h(4),c(),d(5,"button",1),$("click",function(){W(e);let r=S();return Y(r.signIn())}),h(6),c()()}if(t&2){let e=n.$implicit,i=S();m(2),U(e("common.welcome-to-site",Le(3,JQ,i.siteName))),m(2),U(e("components.sign-in.log-in-to-access-service")),m(2),U(e("common.sign-in"))}}function JKe(t,n){if(t&1&&(d(0,"p"),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e("components.sign-out.signing-out"),` `)}}function eXe(t,n){if(t&1){let e=ie();d(0,"div")(1,"h2"),h(2),c(),d(3,"a",1),$("click",function(){return W(e),S().tryAgain(),Y(!1)}),h(4),c()()}if(t&2){let e=n.$implicit;m(2),U(e("components.private-area-unavailable.private-area-not-available")),m(2),U(e("common.clean-cache-and-try-again"))}}function tXe(t,n){if(t&1){let e=ie();d(0,"div")(1,"h2"),h(2),c(),d(3,"a",1),$("click",function(){return W(e),S().tryAgain(),Y(!1)}),h(4),c()()}if(t&2){let e=n.$implicit;m(2),U(e("components.service-unavailable.service-not-available")),m(2),U(e("common.clean-cache-and-try-again"))}}function iXe(t,n){t&1&&H(0,"spa-captcha",2)}var nXe=[[["","box-title",""]],[["","box-subtitle",""]],[["","box-commands",""]],"*"],rXe=["[box-title]","[box-subtitle]","[box-commands]","*"],oXe=()=>({gender:"Feminine"});function aXe(t,n){if(t&1&&(d(0,"div",2)(1,"mat-icon",3),h(2),ce(3,"entityIcon"),c(),d(4,"span"),h(5,"..."),c()()),t&2){let e=S(2);f("matTooltip","Loading "+e.entityWithId),m(2),U(xe(3,2,e.event.entityType))}}function sXe(t,n){if(t&1&&(d(0,"div",2)(1,"mat-icon",3),h(2),ce(3,"entityIcon"),c(),d(4,"span"),h(5),c()()),t&2){let e=S().$implicit,i=S();f("matTooltip",i.entityWithId+e("common.not-found",Wo(5,oXe))),m(2),U(xe(3,3,i.event.entityType)),m(3),U(i.event.entityId)}}function lXe(t,n){if(t&1){let e=ie();d(0,"div",2)(1,"mat-icon",3),h(2),ce(3,"entityIcon"),c(),d(4,"a",4),$("click",function(){return W(e),S(2).onClick(),Y(!1)}),h(5),c()()}if(t&2){let e=S(2);f("matTooltip",e.entityWithId+"("+e.name+")"),m(2),U(xe(3,3,e.event.entityType)),m(3),U(e.name)}}function cXe(t,n){if(t&1&&(d(0,"div"),k(1,aXe,6,4,"div",1)(2,sXe,6,6,"div",1)(3,lXe,6,5,"div",1),c()),t&2){let e=S();m(),f("ngIf",!e.name),m(),f("ngIf",e.name===e.ENTITY_NOT_FOUND),m(),f("ngIf",e.name&&e.name!==e.ENTITY_NOT_FOUND)}}var dXe=()=>[];function uXe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.date"))}}function mXe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"spaDate"),ce(3,"spaDate"),c()),t&2){let e=n.$implicit;m(),Do("",Bt(2,2,e.date,"shortDate")," ",Bt(3,5,e.date,"mediumTime"),"")}}function pXe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.operation"))}}function hXe(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"a",13),$("click",function(){let r=W(e).$implicit,o=S(2);return Y(o.showDetails(r))}),h(2),ce(3,"eventType"),c()()}if(t&2){let e=n.$implicit;m(),f("routerLink",Wo(4,dXe)),m(),U(xe(3,2,e.type))}}function fXe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.entity"))}}function gXe(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"spa-event-entity-cell",14),ce(2,"entityName"),ce(3,"async"),$("show",function(){let r=W(e).$implicit,o=S(2);return Y(o.navigateToEntity(r))}),c()()}if(t&2){let e=n.$implicit;m(),f("event",e)("name",xe(3,4,xe(2,2,e)))}}function _Xe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.agent"))}}function vXe(t,n){if(t&1){let e=ie();d(0,"a",16),$("click",function(){W(e);let r=S().$implicit;return S(2).navigateToAgent(r),Y(!1)}),h(1),ce(2,"agent"),ce(3,"async"),c()}if(t&2){let e=S().$implicit;m(),U(xe(3,3,xe(2,1,e.agentId)))}}function bXe(t,n){if(t&1&&(d(0,"mat-cell"),k(1,vXe,4,5,"a",15),c()),t&2){let e=n.$implicit;m(),f("ngIf",e.agentId)}}function yXe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.subscription"))}}function xXe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"sub"),ce(3,"async"),c()),t&2){let e=n.$implicit;m(),U(xe(3,3,xe(2,1,e.subscriptionId)))}}function CXe(t,n){t&1&&H(0,"mat-header-row")}function SXe(t,n){t&1&&H(0,"mat-row")}function wXe(t,n){if(t&1&&(d(0,"lac-table",1),he(1,2),k(2,uXe,2,1,"mat-header-cell",3)(3,mXe,4,8,"mat-cell",4),fe(),he(4,5),k(5,pXe,2,1,"mat-header-cell",6)(6,hXe,4,5,"mat-cell",4),fe(),he(7,7),k(8,fXe,2,1,"mat-header-cell",6)(9,gXe,4,6,"mat-cell",4),fe(),he(10,8),k(11,_Xe,2,1,"mat-header-cell",6)(12,bXe,2,1,"mat-cell",4),fe(),he(13,9),k(14,yXe,2,1,"mat-header-cell",6)(15,xXe,4,5,"mat-cell",4),fe(),k(16,CXe,1,0,"mat-header-row",10)(17,SXe,1,0,"mat-row",11),c()),t&2){let e=S();f("dataSource",e.dataSource)("disablePagination",e.disablePagination),m(16),f("matHeaderRowDef",e.columnsToDisplay),m(),f("matRowDefColumns",e.columnsToDisplay)}}function EXe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),H(3,"spa-event-list",3),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("components.application-actions.actions-performed-by-app")),m(),f("dataSource",i.dataSource)}}function IXe(t,n){if(t&1&&(d(0,"span",11),h(1),c()),t&2){let e=S(2);m(),U(e.model.name)}}function DXe(t,n){if(t&1){let e=ie();d(0,"button",4),ce(1,"async"),$("click",function(){W(e);let r=S(2);return Y(r.lock())}),h(2),c()}if(t&2){let e=S().$implicit,i=S();f("disabled",!xe(1,2,i.canManage$)),m(2),U(e("common.lock"))}}function TXe(t,n){if(t&1){let e=ie();d(0,"button",4),ce(1,"async"),$("click",function(){W(e);let r=S(2);return Y(r.unlock())}),h(2),c()}if(t&2){let e=S().$implicit,i=S();f("disabled",!xe(1,2,i.canManage$)),m(2),U(e("common.unlock"))}}function AXe(t,n){if(t&1&&(d(0,"button",12),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.events"))}}function kXe(t,n){if(t&1&&(d(0,"button",13),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.actions"))}}function MXe(t,n){if(t&1&&(d(0,"span",21),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.application-locked"))}}function FXe(t,n){if(t&1&&(d(0,"div",15)(1,"spa-prop",16),h(2),c()()),t&2){let e=S(2).$implicit,i=S();m(),ba("label",e("common.grant-app-id")),m(),U(i.model.grantAppId)}}function RXe(t,n){if(t&1&&(d(0,"div"),h(1),ce(2,"roles"),c()),t&2){let e=S(3);m(),ue(" ",xe(2,1,e.model.subscriptions[0].roles)," ")}}function PXe(t,n){if(t&1&&(d(0,"div"),h(1),ce(2,"roles"),c()),t&2){let e=S(3);m(),ue(" ",xe(2,1,e.model.rootRoles)," ")}}function NXe(t,n){if(t&1&&(d(0,"div")(1,"b"),h(2,"Admin"),c(),h(3),ce(4,"roles"),c()),t&2){let e=S(4);m(3),ue(": ",xe(4,1,e.model.rootRoles)," ")}}function OXe(t,n){if(t&1&&(d(0,"div")(1,"b"),h(2),ce(3,"sub"),ce(4,"async"),c(),h(5),ce(6,"roles"),c()),t&2){let e=n.$implicit;m(2),U(xe(4,4,xe(3,2,e.subscriptionId))),m(3),ue(": ",xe(6,6,e)," ")}}function LXe(t,n){if(t&1&&(d(0,"div"),k(1,NXe,5,3,"div",20)(2,OXe,7,8,"div",22),c()),t&2){let e=S(3);m(),f("ngIf",e.model.rootRoles.length>0),m(),f("ngForOf",e.model.subscriptions)}}function VXe(t,n){if(t&1&&(d(0,"div",14)(1,"div",15)(2,"spa-prop",16)(3,"div",17)(4,"span"),h(5),c(),k(6,MXe,2,1,"span",18),c()()(),d(7,"div",15)(8,"spa-prop",16),h(9),ce(10,"sub"),ce(11,"async"),c()(),k(12,FXe,3,2,"div",19),d(13,"div",15)(14,"spa-prop",16),k(15,RXe,3,3,"div",20)(16,PXe,3,3,"div",20)(17,LXe,3,2,"div",20),c()()()),t&2){let e=S().$implicit,i=S();m(2),ba("label",e("common.name")),m(3),U(i.model.name),m(),f("ngIf",i.model.isLocked),m(2),ba("label",e("common.subscription")),m(),U(xe(11,12,xe(10,10,i.model.subscriptionId))),m(3),f("ngIf",i.model.grantAppId),m(2),ba("label",e("common.roles")),m(),f("ngIf",i.model.subscriptions.length===1&&i.model.subscriptions[0].subscriptionId===i.model.subscriptionId),m(),f("ngIf",i.isRootSubscription(i.model.subscriptionId)),m(),f("ngIf",i.model.subscriptions.length>1||i.model.subscriptions.length===1&&i.model.subscriptions[0].subscriptionId!==i.model.subscriptionId)}}function BXe(t,n){if(t&1){let e=ie();d(0,"spa-box",1),k(1,IXe,2,1,"span",2),d(2,"div",3)(3,"button",4),ce(4,"async"),$("click",function(){W(e);let r=S();return Y(r.delete())}),h(5),c(),k(6,DXe,3,4,"button",5)(7,TXe,3,4,"button",5),d(8,"button",6),ce(9,"async"),h(10),c(),k(11,AXe,2,1,"button",7),ce(12,"async"),k(13,kXe,2,1,"button",8),ce(14,"async"),d(15,"button",9),h(16),c()(),k(17,VXe,18,14,"div",10),c()}if(t&2){let e=n.$implicit,i=S();f("loading",i.loading||i.saving)("hidden",i.route.firstChild),m(),f("ngIf",!i.loading),m(2),f("disabled",!xe(4,13,i.canManage$)),m(2),U(e("common.delete")),m(),f("ngIf",i.model&&!i.model.isLocked),m(),f("ngIf",i.model&&i.model.isLocked),m(),f("disabled",!xe(9,15,i.canManage$)),m(2),U(e("common.edit")),m(),f("ngIf",xe(12,17,i.canViewEvents$)),m(2),f("ngIf",xe(14,19,i.canViewActions$)),m(3),U(e("common.keys")),m(),f("ngIf",!i.loading)}}function jXe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("roles"))}}function HXe(t,n){if(t&1&&(d(0,"div",13)(1,"mat-checkbox",14),h(2),ce(3,"roles"),c()()),t&2){let e=n.$implicit,i=n.index;f("formGroupName",i),m(2),U(xe(3,2,e.value.role))}}function zXe(t,n){if(t&1&&(d(0,"div",8)(1,"mat-form-field",15)(2,"mat-label"),h(3),c(),H(4,"input",16),c()()),t&2){let e=S().$implicit;m(3),U(e("common.grant-app-id"))}}function UXe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3)(4,"button",4),$("click",function(){W(e);let r=S();return Y(r.onSubmit())}),h(5),c(),d(6,"button",5),$("click",function(){W(e);let r=S();return Y(r.discard())}),h(7),c()(),d(8,"form",6),$("ngSubmit",function(){W(e);let r=S();return Y(r.onSubmit())}),d(9,"div",7)(10,"div",8)(11,"div",9),k(12,jXe,2,1,"mat-error",10)(13,HXe,4,4,"div",11),c()(),k(14,zXe,5,1,"div",12),c()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.loading||i.saving)("hidden",i.route.firstChild),m(2),U(e("common.edit")),m(2),f("disabled",i.form.pristine),m(),U(e("common.save")),m(),f("disabled",i.form.pristine),m(),U(e("common.undo")),m(),f("formGroup",i.form),m(4),f("ngIf",i.form.get("roles").invalid),m(),f("ngForOf",i.roles.controls),m(),f("ngIf",i.rootSubSelected)}}function GXe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),H(3,"spa-event-list",3),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("components.application-events.events-performed-on-app")),m(),f("dataSource",i.dataSource)}}function $Xe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"form",3)(4,"mat-form-field",4)(5,"mat-label"),h(6),c(),H(7,"input",5),d(8,"mat-error"),h(9),c()(),d(10,"mat-form-field",4)(11,"mat-label"),h(12),c(),d(13,"mat-select",6)(14,"mat-option",7),h(15),c(),d(16,"mat-option",8),h(17),c(),d(18,"mat-option",9),h(19),c()(),d(20,"mat-error"),h(21),c()(),d(22,"div",4)(23,"spa-submit-button",10),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(24),c()()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.saving)("hidden",i.route.firstChild),m(2),U(e("components.application-key-create.new-app-key")),m(),f("formGroup",i.form),m(3),U(e("common.description")),m(3),U(i.getErrorMessage("description")),m(3),U(e("components.application-key-create.expiration")),m(3),U(e("components.application-key-create.in-1-year")),m(2),U(e("components.application-key-create.in-2-years")),m(2),U(e("components.application-key-create.never-expires")),m(2),U(i.getErrorMessage("expiresOn")),m(2),f("form",i.form),m(),ue(" ",e("common.create")," ")}}function qXe(t,n){if(t&1&&(d(0,"mat-header-cell",11),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.description"))}}function WXe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),U(e.description)}}function YXe(t,n){if(t&1&&(d(0,"mat-header-cell",11),h(1),c()),t&2){let e=S().$implicit;m(),U(e("components.application-keys.expires-in"))}}function KXe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(xe(2,1,e.expiresOn))}}function XXe(t,n){if(t&1&&(d(0,"mat-header-cell",11),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.actions"))}}function QXe(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"button",12),ce(2,"async"),$("click",function(){let r=W(e).$implicit,o=S(2);return Y(o.delete(r))}),h(3),c()()}if(t&2){let e=S().$implicit,i=S();m(),f("disabled",!xe(2,2,i.canManage$)),m(2),U(e("common.delete"))}}function ZXe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3)(4,"button",4),ce(5,"async"),h(6),c()(),d(7,"lac-table",5),he(8,6),k(9,qXe,2,1,"mat-header-cell",7)(10,WXe,2,1,"mat-cell",8),fe(),he(11,9),k(12,YXe,2,1,"mat-header-cell",7)(13,KXe,3,3,"mat-cell",8),fe(),he(14,10),k(15,XXe,2,1,"mat-header-cell",7)(16,QXe,4,4,"mat-cell",8),fe(),c()()),t&2){let e=n.$implicit,i=S();f("loading",i.saving)("hidden",i.route.firstChild),m(2),U(e("common.keys")),m(2),f("disabled",!xe(5,6,i.canManage$)),m(2),U(e("common.add")),m(),f("dataSource",i.appKeyService)}}function JXe(t,n){if(t&1&&(d(0,"mat-header-cell",10),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.name"))}}function eQe(t,n){if(t&1&&(d(0,"a",13),h(1),c()),t&2){let e=S().$implicit;f("routerLink",e.id),m(),U(e.name)}}function tQe(t,n){if(t&1&&(d(0,"a",14)(1,"mat-icon",15),h(2,"lock"),c(),h(3),c()),t&2){let e=S().$implicit,i=S().$implicit;f("routerLink",e.id)("matTooltip",i("common.application-locked")),m(3),ue(" ",e.name," ")}}function iQe(t,n){if(t&1&&(d(0,"mat-cell"),k(1,eQe,2,2,"a",11)(2,tQe,4,3,"a",12),c()),t&2){let e=n.$implicit;m(),f("ngIf",!e.isLocked),m(),f("ngIf",e.isLocked)}}function nQe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.roles"))}}function rQe(t,n){if(t&1&&(d(0,"td"),h(1),ce(2,"roles"),c()),t&2){let e=S().$implicit,i=S(2);m(),U(xe(2,1,i.isRootSubscription(e.subscriptionId)?e.rootRoles:e.subscriptions[0].roles))}}function oQe(t,n){if(t&1&&(d(0,"p"),h(1),ce(2,"roles"),c()),t&2){let e=S(2).$implicit;m(),ue(" Admin: ",xe(2,1,e.rootRoles)," ")}}function aQe(t,n){if(t&1&&(d(0,"p"),h(1),ce(2,"sub"),ce(3,"async"),ce(4,"roles"),c()),t&2){let e=n.$implicit;m(),Do(" ",xe(3,4,xe(2,2,e.subscriptionId)),": ",xe(4,6,e)," ")}}function sQe(t,n){if(t&1&&(d(0,"td"),k(1,oQe,3,3,"p",16)(2,aQe,5,8,"p",17),c()),t&2){let e=S().$implicit;m(),f("ngIf",e.rootRoles.length>0),m(),f("ngForOf",e.subscriptions)}}function lQe(t,n){if(t&1&&(d(0,"mat-cell"),k(1,rQe,3,3,"td",16)(2,sQe,3,2,"td",16),c()),t&2){let e=n.$implicit,i=S(2);m(),f("ngIf",e.subscriptions.length===1&&e.subscriptions[0].subscriptionId===e.subscriptionId||i.isRootSubscription(e.subscriptionId)),m(),f("ngIf",e.subscriptions.length>1||e.subscriptions.length===1&&e.subscriptions[0].subscriptionId!==e.subscriptionId)}}function cQe(t,n){if(t&1&&(d(0,"mat-header-cell"),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.subscription"))}}function dQe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"sub"),ce(3,"async"),c()),t&2){let e=n.$implicit;m(),U(xe(3,3,xe(2,1,e.subscriptionId)))}}function uQe(t,n){t&1&&H(0,"mat-header-row")}function mQe(t,n){t&1&&H(0,"mat-row")}function pQe(t,n){if(t&1&&(d(0,"lac-table",1),he(1,2),k(2,JXe,2,1,"mat-header-cell",3)(3,iQe,3,2,"mat-cell",4),fe(),he(4,5),k(5,nQe,2,1,"mat-header-cell",6)(6,lQe,3,2,"mat-cell",4),fe(),he(7,7),k(8,cQe,2,1,"mat-header-cell",6)(9,dQe,4,5,"mat-cell",4),fe(),k(10,uQe,1,0,"mat-header-row",8),ce(11,"async"),k(12,mQe,1,0,"mat-row",9),ce(13,"async"),c()),t&2){let e=S();f("dataSource",e.appService),m(10),f("matHeaderRowDef",xe(11,3,e.columnsToDisplay$)),m(2),f("matRowDefColumns",xe(13,5,e.columnsToDisplay$))}}function hQe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3)(4,"button",4),ce(5,"async"),h(6),c()(),H(7,"spa-application-list"),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("common.applications")),m(2),f("disabled",!xe(5,4,i.canManage$)),m(2),U(e("common.add"))}}function fQe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),H(3,"spa-event-list",3),ce(4,"async"),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("common.events")),m(),f("dataSource",i.eventService)("showSubscriptions",xe(4,4,i.showSubs$))}}function gQe(t,n){if(t&1){let e=ie();d(0,"button",7),ce(1,"async"),$("click",function(){W(e);let r=S(2);return Y(r.resend())}),h(2),c()}if(t&2){let e=S().$implicit,i=S();f("disabled",!xe(1,2,i.canManage$)),m(2),U(e("components.invite-detail.resend"))}}function _Qe(t,n){if(t&1&&(d(0,"div",9)(1,"div",10)(2,"spa-prop",11),h(3),ce(4,"sub"),ce(5,"async"),c()(),d(6,"div",10)(7,"spa-prop",12),h(8),c()(),d(9,"div",10)(10,"spa-prop",11),h(11),ce(12,"roles"),c()()()),t&2){let e=S().$implicit,i=S();m(2),ba("label",e("common.subscription")),m(),U(xe(5,7,xe(4,5,i.model.subscriptionId))),m(5),U(i.model.emailAddress),m(2),ba("label",e("common.roles")),m(),U(xe(12,9,i.isRootSubscription(i.model.subscriptionId)?i.model.inviteAuthorizationData.rootAuthorizationData.roles:i.model.inviteAuthorizationData.authorizationData.roles))}}function vQe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3),k(4,gQe,3,4,"button",4),d(5,"button",5),ce(6,"async"),$("click",function(){W(e);let r=S();return Y(r.delete())}),h(7),c(),d(8,"button",6),ce(9,"async"),h(10),c(),d(11,"button",7),ce(12,"async"),$("click",function(){W(e);let r=S();return Y(r.getClaimCode())}),h(13),c(),d(14,"button",7),ce(15,"async"),$("click",function(){W(e);let r=S();return Y(r.getAccessLink())}),h(16),c()(),k(17,_Qe,13,11,"div",8),c()}if(t&2){let e=n.$implicit,i=S();f("loading",i.loading||i.loadingClaimCode||i.resending||i.saving)("hidden",i.route.firstChild),m(2),U(e("components.invite-detail.pending-invitation")),m(2),f("ngIf",i.emailEnabled),m(),f("disabled",!xe(6,13,i.canManage$)),m(2),U(e("common.delete")),m(),f("disabled",!xe(9,15,i.canManage$)),m(2),U(e("common.edit")),m(),f("disabled",!xe(12,17,i.canManage$)),m(2),U(e("components.invite-detail.get-claim-code")),m(),f("disabled",!xe(15,19,i.canManage$)),m(2),U(e("components.invite-detail.get-access-link")),m(),f("ngIf",!i.loading)}}function bQe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("roles"))}}function yQe(t,n){if(t&1&&(d(0,"div",10)(1,"mat-checkbox",11),h(2),ce(3,"roles"),c()()),t&2){let e=n.$implicit,i=n.index;f("formGroupName",i),m(2),U(xe(3,2,e.value.role))}}function xQe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3)(4,"button",4),$("click",function(){W(e);let r=S();return Y(r.onSubmit())}),h(5),c(),d(6,"button",5),$("click",function(){W(e);let r=S();return Y(r.discard())}),h(7),c()(),d(8,"form",6),$("ngSubmit",function(){W(e);let r=S();return Y(r.onSubmit())}),d(9,"div",7),k(10,bQe,2,1,"mat-error",8)(11,yQe,4,4,"div",9),c()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.loading||i.saving),m(2),U(e("components.invite-edit.edit-pending-invite")),m(2),f("disabled",i.form.pristine),m(),U(e("common.save")),m(),f("disabled",i.form.pristine),m(),U(e("common.undo")),m(),f("formGroup",i.form),m(2),f("ngIf",i.form.get("roles").invalid),m(),f("ngForOf",i.roles.controls)}}var CQe=t=>["invites/",t];function SQe(t,n){t&1&&(d(0,"mat-header-cell",9),h(1,"Email"),c())}function wQe(t,n){if(t&1&&(d(0,"mat-cell")(1,"a",10),h(2),c()()),t&2){let e=n.$implicit;m(),f("routerLink",Le(2,CQe,e.id)),m(),U(e.emailAddress)}}function EQe(t,n){if(t&1&&(d(0,"mat-header-cell",9),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.subscription"))}}function IQe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"sub"),ce(3,"async"),c()),t&2){let e=n.$implicit;m(),U(xe(3,3,xe(2,1,e.subscriptionId)))}}function DQe(t,n){if(t&1&&(d(0,"mat-header-cell",9),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.roles"))}}function TQe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"roles"),c()),t&2){let e=n.$implicit,i=S(2);m(),U(xe(2,1,i.isRootSubscription(e.subscriptionId)?e.inviteAuthorizationData.rootAuthorizationData.roles:e.inviteAuthorizationData.authorizationData.roles))}}function AQe(t,n){t&1&&H(0,"mat-header-row")}function kQe(t,n){t&1&&H(0,"mat-row")}function MQe(t,n){if(t&1&&(d(0,"lac-table",1),he(1,2),k(2,SQe,2,0,"mat-header-cell",3)(3,wQe,3,4,"mat-cell",4),fe(),he(4,5),k(5,EQe,2,1,"mat-header-cell",3)(6,IQe,4,5,"mat-cell",4),fe(),he(7,6),k(8,DQe,2,1,"mat-header-cell",3)(9,TQe,3,3,"mat-cell",4),fe(),k(10,AQe,1,0,"mat-header-row",7),ce(11,"async"),k(12,kQe,1,0,"mat-row",8),ce(13,"async"),c()),t&2){let e=S();f("dataSource",e.inviteService),m(10),f("matHeaderRowDef",xe(11,3,e.columnsToDisplay$)),m(2),f("matRowDefColumns",xe(13,5,e.columnsToDisplay$))}}function FQe(t,n){if(t&1&&(d(0,"mat-header-cell",5),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.name"))}}function RQe(t,n){if(t&1&&(d(0,"mat-cell")(1,"a",6),h(2),c()()),t&2){let e=n.$implicit;m(),f("routerLink",Le(2,rZ,e.id)),m(),U(e.name)}}function PQe(t,n){if(t&1&&(d(0,"lac-table",1),he(1,2),k(2,FQe,2,1,"mat-header-cell",3)(3,RQe,3,4,"mat-cell",4),fe(),c()),t&2){let e=S();f("dataSource",e.subService)}}function NQe(t,n){if(t&1&&(d(0,"div",4)(1,"button",5),h(2),c()()),t&2){let e=S().$implicit;m(2),U(e("common.add"))}}function OQe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),k(3,NQe,3,1,"div",3),H(4,"spa-subscription-list"),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("common.subscriptions")),m(),f("ngIf",!i.hasParentIntegration)}}function LQe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("roles"))}}function VQe(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2).$implicit;m(),ue("(",e("components.user-access-edit.currently-inherited"),")")}}function BQe(t,n){if(t&1){let e=ie();d(0,"div",11)(1,"mat-checkbox",12),$("click",function(){let r=W(e).$implicit,o=S(2);return Y(o.toggleCheckbox(r))}),tn("indeterminateChange",function(r){let o=W(e).$implicit;return nn(o.value.indeterminate,r)||(o.value.indeterminate=r),Y(r)}),h(2),ce(3,"roles"),k(4,VQe,2,1,"span",8),c()()}if(t&2){let e=n.$implicit,i=n.index;f("formGroupName",i),m(),en("indeterminate",e.value.indeterminate),m(),ue("",xe(3,4,e.value.role)," "),m(2),f("ngIf",e.value.indeterminate)}}function jQe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"form",3),$("ngSubmit",function(){W(e);let r=S();return Y(r.onSubmit())}),d(4,"div",4)(5,"div",5)(6,"spa-prop",6),h(7),c()(),d(8,"div",5)(9,"div",7),k(10,LQe,2,1,"mat-error",8)(11,BQe,5,6,"div",9),c()()(),d(12,"button",10),h(13),c()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.saving||i.loadingAccess)("hidden",i.route.firstChild),m(2),U(e("components.user-access-edit.edit-user-access")),m(),f("formGroup",i.form),m(3),ba("label",e("common.subscription")),m(),U(i.subscription.name),m(3),f("ngIf",i.form.get("roles").invalid),m(),f("ngForOf",i.roles.controls),m(),f("disabled",!i.form.valid||i.loadingAccess||i.roles.pristine),m(),U(e("common.save"))}}function HQe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),H(3,"spa-event-list",3),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("components.user-actions.actions-performed-by-user")),m(),f("dataSource",i.dataSource)}}function zQe(t,n){if(t&1&&(d(0,"span",9),h(1),d(2,"span",10),h(3),c()()),t&2){let e=S().$implicit,i=S();m(),ue("",e("common.user")," "),m(2),U(i.model.name)}}function UQe(t,n){if(t&1&&(d(0,"button",11),h(1),c()),t&2){let e=S().$implicit,i=S();f("disabled",i.isParentUser()),m(),U(e("common.events"))}}function GQe(t,n){if(t&1&&(d(0,"button",12),h(1),c()),t&2){let e=S().$implicit,i=S();f("disabled",i.isParentUser()),m(),U(e("common.actions"))}}function $Qe(t,n){if(t&1){let e=ie();d(0,"button",13),$("click",function(){W(e);let r=S(2);return Y(r.load())}),h(1),c()}if(t&2){let e=S().$implicit;m(),U(e("components.user-detail.reload-access"))}}function qQe(t,n){if(t&1){let e=ie();d(0,"button",14),$("click",function(){W(e);let r=S(3);return Y(r.lock())}),h(1),c()}if(t&2){let e=S(2).$implicit,i=S();f("disabled",i.loading),m(),ue(" ",e("common.lock")," ")}}function WQe(t,n){if(t&1){let e=ie();d(0,"button",14),$("click",function(){W(e);let r=S(3);return Y(r.unlock())}),h(1),c()}if(t&2){let e=S(2).$implicit,i=S();f("disabled",i.loading),m(),ue(" ",e("common.unlock")," ")}}function YQe(t,n){if(t&1){let e=ie();he(0),d(1,"button",14),$("click",function(){W(e);let r=S(2);return Y(r.revoke())}),h(2),c(),k(3,qQe,2,2,"button",15)(4,WQe,2,2,"button",15),fe()}if(t&2){let e=S().$implicit,i=S();m(),f("disabled",i.loading||i.cannotRevoke),m(),ue(" ",e("components.user-detail.revoke-access")," "),m(),f("ngIf",!i.model.isLocked),m(),f("ngIf",i.model.isLocked)}}function KQe(t,n){if(t&1&&(d(0,"span",23),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.user-locked"))}}function XQe(t,n){if(t&1&&(d(0,"span")(1,"b"),h(2),ce(3,"async"),ce(4,"roles"),c()()),t&2){let e=S(4);m(2),U(xe(4,3,xe(3,1,e.rootSubSelected$)?e.displayRootRoles(e.model):e.displayRoles(e.model.subscriptions[0])))}}function QQe(t,n){if(t&1&&(d(0,"div"),k(1,XQe,5,5,"span",8),ce(2,"async"),c()),t&2){let e=S(3);m(),f("ngIf",xe(2,1,e.rootSubSelected$)?e.model.rootRoles.length>0:e.model.subscriptions[0]&&e.model.subscriptions[0].roles.length>0)}}function ZQe(t,n){if(t&1&&(d(0,"li"),h(1," Admin: "),d(2,"b"),h(3),ce(4,"roles"),c()()),t&2){let e=S(4);m(3),U(xe(4,1,e.displayRootRoles(e.model)))}}function JQe(t,n){if(t&1&&(d(0,"li"),h(1),ce(2,"sub"),ce(3,"async"),d(4,"b"),h(5),ce(6,"roles"),c()()),t&2){let e=n.$implicit,i=S(4);m(),ue(" ",xe(3,4,xe(2,2,e.subscriptionId)),": "),m(4),U(xe(6,6,i.displayRoles(e)))}}function eZe(t,n){if(t&1&&(d(0,"ul"),k(1,ZQe,5,3,"li",8)(2,JQe,7,8,"li",24),c()),t&2){let e=S(3);m(),f("ngIf",e.model.rootRoles.length>0),m(),f("ngForOf",e.model.subscriptions)}}function tZe(t,n){if(t&1&&(d(0,"div")(1,"span"),h(2),c()()),t&2){let e=S(2).$implicit;m(2),ue(" ",e("components.user-detail.user-has-no-roles")," ")}}function iZe(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",16)(2,"div",17)(3,"spa-prop",18)(4,"div",19)(5,"span"),h(6),c(),k(7,KQe,2,1,"span",20),c()()(),d(8,"div",17)(9,"spa-prop",21),h(10),c()(),d(11,"div",17)(12,"spa-prop",18),k(13,QQe,3,3,"div",8),ce(14,"async"),d(15,"button",22),ce(16,"async"),$("click",function(){W(e);let r=S(2);return Y(r.navigateToEditAccess())}),h(17),c(),k(18,eZe,3,2,"ul",8),ce(19,"async"),k(20,tZe,3,1,"div",8),ce(21,"async"),c()()()()}if(t&2){let e=S().$implicit,i=S();m(3),ba("label",e("common.name")),m(3),U(i.model.name),m(),f("ngIf",i.model.isLocked),m(3),U(i.model.emailAddress),m(2),ba("label",e("common.roles")),m(),f("ngIf",!xe(14,10,i.showSubs$)),m(2),f("disabled",!xe(16,12,i.canManage$)),m(2),U(e("common.edit")),m(),f("ngIf",xe(19,14,i.showSubs$)&&(i.model.rootRoles.length>0||i.model.subscriptions.length>0)),m(2),f("ngIf",xe(21,16,i.showSubs$)&&i.model.rootRoles.length===0&&i.model.subscriptions.length==0)}}function nZe(t,n){if(t&1&&(d(0,"spa-box",1),k(1,zQe,4,2,"span",2),d(2,"div",3),k(3,UQe,2,2,"button",4),ce(4,"async"),k(5,GQe,2,2,"button",5),ce(6,"async"),d(7,"button",6),ce(8,"async"),h(9),c(),k(10,$Qe,2,1,"button",7)(11,YQe,5,4,"ng-container",8),ce(12,"async"),c(),k(13,iZe,22,18,"div",8),c()),t&2){let e=n.$implicit,i=S();f("loading",i.loading||i.revoking)("hidden",i.route.firstChild),m(),f("ngIf",!i.loading),m(2),f("ngIf",xe(4,10,i.canViewEvents$)),m(2),f("ngIf",xe(6,12,i.canViewActions$)),m(2),f("disabled",!xe(8,14,i.canManage$)||i.isParentUser()),m(2),U(e("common.edit")),m(),f("ngIf",i.parentIntegrationEnabled),m(),f("ngIf",i.model&&i.model.id!=i.agentId&&xe(12,16,i.canManage$)&&!i.parentIntegrationEnabled),m(2),f("ngIf",i.model)}}function rZe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),H(3,"spa-event-list",3),c()),t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("components.user-events.events-performed-on-user")),m(),f("dataSource",i.dataSource)}}function oZe(t,n){t&1&&(d(0,"mat-icon",23),h(1,"sync"),c())}function aZe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("user"))}}function sZe(t,n){if(t&1&&(d(0,"mat-option",24),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),Do(" ",e.name," (",e.emailAddress,") ")}}function lZe(t,n){if(t&1&&(d(0,"div",25)(1,"p",26)(2,"mat-icon",27),h(3,"warning"),c(),h(4),c()()),t&2){let e=S().$implicit;m(4),ue(" ",e("components.user-invite.type-more-chars")," ")}}function cZe(t,n){if(t&1&&(d(0,"mat-option",24),h(1),c()),t&2){let e=n.$implicit;f("value",e.id),m(),ue(" ",e.name," ")}}function dZe(t,n){if(t&1&&(d(0,"mat-form-field",28)(1,"mat-label"),h(2),c(),d(3,"mat-select",29),k(4,cZe,2,2,"mat-option",14),c(),d(5,"mat-error"),h(6),c()()),t&2){let e=S().$implicit,i=S();m(2),U(e("common.subscription")),m(2),f("ngForOf",i.subscriptions),m(2),U(i.getErrorMessage("sub"))}}function uZe(t,n){if(t&1){let e=ie();d(0,"button",31),$("click",function(){W(e);let r=S(3);return Y(r.selectSubscription())}),h(1),ce(2,"lowercase"),c()}if(t&2){let e=S(2).$implicit;m(),Do("",e("common.select")," ",xe(2,2,e("common.subscription")),"")}}function mZe(t,n){if(t&1){let e=ie();he(0),d(1,"button",32),$("click",function(){W(e);let r=S(3);return Y(r.selectSubscription())}),d(2,"mat-icon"),h(3,"edit"),c()(),d(4,"span",33),h(5),c(),fe()}if(t&2){let e=S(3);m(5),U(e.selectedSubscription)}}function pZe(t,n){if(t&1&&(d(0,"div",28)(1,"h3",18),h(2),c(),k(3,uZe,3,4,"button",30)(4,mZe,6,1,"ng-container",12),d(5,"mat-error"),h(6),c()()),t&2){let e=S().$implicit,i=S();m(2),U(e("common.subscription")),m(),f("ngIf",i.selectedSubscription==null),m(),f("ngIf",i.selectedSubscription!=null),m(2),U(i.getErrorMessage("sub"))}}function hZe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("roles"))}}function fZe(t,n){if(t&1&&(d(0,"div",34)(1,"mat-checkbox",35),h(2),ce(3,"roles"),c()()),t&2){let e=n.$implicit,i=n.index;f("formGroupName",i),m(2),U(xe(3,2,e.value.role))}}function gZe(t,n){if(t&1){let e=ie();d(0,"spa-box",2)(1,"span",3),h(2),c(),d(3,"form",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8)(8,"mat-form-field",9)(9,"mat-label"),h(10),c(),H(11,"input",10),k(12,oZe,2,0,"mat-icon",11)(13,aZe,2,1,"mat-error",12),d(14,"mat-autocomplete",13,0),k(16,sZe,2,3,"mat-option",14),ce(17,"async"),c()(),k(18,lZe,5,1,"div",15),c()(),k(19,dZe,7,3,"mat-form-field",16)(20,pZe,7,4,"div",16),c(),d(21,"div",6)(22,"div",17)(23,"h3",18),h(24),c(),k(25,hZe,2,1,"mat-error",12),d(26,"div",19),k(27,fZe,4,4,"div",20),c()()(),d(28,"div",21)(29,"spa-submit-button",22),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(30),ce(31,"async"),c()()()()()}if(t&2){let e=n.$implicit,i=je(15),r=S();f("loading",r.saving)("hidden",r.route.firstChild),m(2),U(e("components.user-invite.add-user")),m(),f("formGroup",r.form),m(7),U(e("components.user-invite.search-by-user-or-email")),m(),f("matAutocomplete",i),m(),f("ngIf",r.loadingUsers),m(),f("ngIf",r.form.get("user").invalid),m(),f("displayWith",r.displayFn),m(2),f("ngForOf",xe(17,18,r.filteredUsers)),m(2),f("ngIf",r.waitingInput),m(),f("ngIf",r.subscriptions.length<=r.maxSubs),m(),f("ngIf",r.subscriptions.length>r.maxSubs),m(4),U(e("common.roles")),m(),f("ngIf",r.form.get("roles").invalid),m(2),f("ngForOf",r.roles.controls),m(2),f("form",r.form),m(),ue(" ",xe(31,20,r.submitAction$)," ")}}function _Ze(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.name"))}}function vZe(t,n){if(t&1){let e=ie();d(0,"a",15),$("click",function(){W(e);let r=S().$implicit,o=S(2);return Y(o.navigateToUser(r))}),h(1),c()}if(t&2){let e=S().$implicit;m(),U(e.name)}}function bZe(t,n){if(t&1){let e=ie();d(0,"a",16),$("click",function(){W(e);let r=S().$implicit,o=S(2);return Y(o.navigateToUser(r))}),d(1,"mat-icon",17),h(2,"lock"),c(),h(3),c()}if(t&2){let e=S().$implicit,i=S().$implicit;f("matTooltip",i("common.user-locked")),m(3),ue(" ",e.name," ")}}function yZe(t,n){if(t&1&&(d(0,"mat-cell"),k(1,vZe,2,1,"a",13)(2,bZe,4,2,"a",14),c()),t&2){let e=n.$implicit;m(),f("ngIf",!e.isLocked),m(),f("ngIf",e.isLocked)}}function xZe(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Email"),c())}function CZe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),U(e.emailAddress)}}function SZe(t,n){if(t&1&&(d(0,"mat-header-cell",18),h(1),c()),t&2){let e=S().$implicit;m(),U(e("common.roles"))}}function wZe(t,n){if(t&1&&(d(0,"span")(1,"b"),h(2),ce(3,"async"),ce(4,"roles"),c()()),t&2){let e=S().$implicit,i=S(2);m(2),U(xe(4,3,xe(3,1,i.rootSubSelected$)?i.displayRootRoles(e):i.displayRoles(e.subscriptions[0])))}}function EZe(t,n){if(t&1&&(d(0,"li"),h(1," Admin: "),d(2,"b"),h(3),ce(4,"roles"),c()()),t&2){let e=S(2).$implicit,i=S(2);m(3),U(xe(4,1,i.displayRootRoles(e)))}}function IZe(t,n){if(t&1&&(d(0,"li"),h(1),ce(2,"sub"),ce(3,"async"),d(4,"b"),h(5),ce(6,"roles"),c()()),t&2){let e=n.$implicit,i=S(4);m(),ue(" ",xe(3,4,xe(2,2,e.subscriptionId)),": "),m(4),U(xe(6,6,i.displayRoles(e)))}}function DZe(t,n){if(t&1&&(d(0,"ul"),k(1,EZe,5,3,"li",19)(2,IZe,7,8,"li",20),c()),t&2){let e=S().$implicit;m(),f("ngIf",e.rootRoles.length>0),m(),f("ngForOf",e.subscriptions)}}function TZe(t,n){if(t&1&&(d(0,"mat-cell",18),k(1,wZe,5,5,"span",19),ce(2,"async"),ce(3,"async"),k(4,DZe,3,2,"ul",19),ce(5,"async"),c()),t&2){let e=n.$implicit,i=S(2);m(),f("ngIf",!xe(2,2,i.showSubs$)&&(xe(3,4,i.rootSubSelected$)||e.subscriptions.length>0)),m(3),f("ngIf",xe(5,6,i.showSubs$))}}function AZe(t,n){t&1&&H(0,"mat-header-row")}function kZe(t,n){t&1&&H(0,"mat-row")}function MZe(t,n){if(t&1&&(d(0,"lac-table",1),he(1,2),k(2,_Ze,2,1,"mat-header-cell",3)(3,yZe,3,2,"mat-cell",4),fe(),he(4,5),k(5,xZe,2,0,"mat-header-cell",6)(6,CZe,2,1,"mat-cell",4),fe(),he(7,7),k(8,SZe,2,1,"mat-header-cell",8)(9,TZe,6,8,"mat-cell",9),fe(),k(10,AZe,1,0,"mat-header-row",10)(11,kZe,1,0,"mat-row",11),c()),t&2){let e=S();f("dataSource",e.userService),m(10),f("matHeaderRowDef",e.columnsToDisplay),m(),f("matRowDefColumns",e.columnsToDisplay)}}function FZe(t,n){if(t&1&&(d(0,"h3"),h(1),c(),H(2,"spa-invite-list")),t&2){let e=S().$implicit;m(),U(e("components.users.pending-invitations"))}}function RZe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"div",3)(4,"button",4),ce(5,"async"),$("click",function(){W(e);let r=S();return Y(r.navigateToInvite())}),h(6),c()(),H(7,"spa-user-list"),k(8,FZe,3,1),ce(9,"async"),c()}if(t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("common.users")),m(2),f("disabled",!xe(5,5,i.canManage$)),m(2),U(e("common.add")),m(2),Xt(8,!i.parentIntegrationEnabled&&xe(9,7,i.canViewInvites$)?8:-1)}}function PZe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("name"))}}function NZe(t,n){if(t&1&&(d(0,"mat-option",18),h(1),c()),t&2){let e=n.$implicit;f("value",e.id),m(),ue(" ",e.name," ")}}function OZe(t,n){if(t&1&&(he(0),d(1,"mat-form-field",6)(2,"mat-label"),h(3),c(),d(4,"mat-select",16),k(5,NZe,2,2,"mat-option",17),c(),d(6,"mat-error"),h(7),c()(),fe()),t&2){let e=S().$implicit,i=S();m(3),U(e("common.subscription")),m(2),f("ngForOf",i.subscriptions),m(2),U(i.getErrorMessage("sub"))}}function LZe(t,n){if(t&1){let e=ie();d(0,"button",20),$("click",function(){W(e);let r=S(3);return Y(r.selectSubscription())}),h(1),c()}if(t&2){let e=S(2).$implicit;m(),Do(" ",e("common.select")," ",e("common.subscription")," ")}}function VZe(t,n){if(t&1){let e=ie();he(0),d(1,"button",21),$("click",function(){W(e);let r=S(3);return Y(r.selectSubscription())}),d(2,"mat-icon"),h(3,"edit"),c()(),d(4,"span",22),h(5),c(),fe()}if(t&2){let e=S(3);m(5),U(e.selectedSubscription)}}function BZe(t,n){if(t&1&&(d(0,"div",6),k(1,LZe,2,2,"button",19)(2,VZe,6,1,"ng-container",8),c()),t&2){let e=S(2);m(),f("ngIf",e.selectedSubscription==null),m(),f("ngIf",e.selectedSubscription!=null)}}function jZe(t,n){if(t&1&&(he(0),d(1,"mat-form-field",6)(2,"mat-label"),h(3),c(),H(4,"input",23),c(),fe()),t&2){let e=S().$implicit;m(3),U(e("common.grant-app-id"))}}function HZe(t,n){if(t&1&&(d(0,"mat-error"),h(1),c()),t&2){let e=S(2);m(),U(e.getErrorMessage("roles"))}}function zZe(t,n){if(t&1&&(d(0,"div",24)(1,"mat-checkbox",25),h(2),ce(3,"roles"),c()()),t&2){let e=n.$implicit,i=n.index;f("formGroupName",i),m(2),U(xe(3,2,e.value.role))}}function UZe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"form",3)(4,"div",4)(5,"div",5)(6,"mat-form-field",6)(7,"mat-label"),h(8),c(),H(9,"input",7),k(10,PZe,2,1,"mat-error",8),c(),k(11,OZe,8,3,"ng-container",8)(12,BZe,3,2,"div",9)(13,jZe,5,1,"ng-container",8),c(),d(14,"div",5)(15,"div",10)(16,"h3",11),h(17),c(),k(18,HZe,2,1,"mat-error",8),d(19,"div",12),k(20,zZe,4,4,"div",13),c()()(),d(21,"div",14)(22,"spa-submit-button",15),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(23),c()()()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.saving)("hidden",i.route.firstChild),m(2),U(e("components.application-create.new-application")),m(),f("formGroup",i.form),m(5),U(e("common.name")),m(2),f("ngIf",i.form.get("name").invalid),m(),f("ngIf",i.subscriptions.length<=i.maxSubs),m(),f("ngIf",i.subscriptions.length>i.maxSubs),m(),f("ngIf",i.rootSubSelected),m(4),U(e("common.roles")),m(),f("ngIf",i.form.get("roles").invalid),m(2),f("ngForOf",i.roles.controls),m(2),f("form",i.form),m(),U(e("common.create"))}}function GZe(t,n){if(t&1){let e=ie();d(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),h(4),c(),H(5,"input",4),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",3)(9,"mat-label"),h(10),c(),H(11,"input",5),d(12,"mat-error"),h(13),c()()(),d(14,"spa-submit-button",6),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(15),c()()}if(t&2){let e=n.$implicit,i=S();f("formGroup",i.form),m(4),U(e("common.name")),m(3),U(i.getErrorMessage("name")),m(3),U(e("common.nickname")),m(3),U(i.getErrorMessage("alias")),m(),f("form",i.form),m(),U(i.submitAction)}}function $Ze(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),ce(3,"lowercase"),c(),d(4,"spa-subscription-form",3),$("submitted",function(r){W(e);let o=S();return Y(o.onSubmit(r))}),c()()}if(t&2){let e=n.$implicit,i=S();f("hidden",i.route.firstChild),m(2),U(e("components.subscription-create.new-subscription",so(4,R0e,xe(3,2,e("common.subscription")),i.subscriptionGender)))}}function qZe(t,n){if(t&1&&(d(0,"span",6),h(1),c()),t&2){let e=S().$implicit,i=S();m(),Do("",e("common.subscription")," ",i.model.name,"")}}function WZe(t,n){if(t&1&&(d(0,"div")(1,"div",7)(2,"div",8)(3,"spa-prop",9),h(4),c()(),d(5,"div",8)(6,"spa-prop",10),h(7),c()(),d(8,"div",8)(9,"spa-prop",10),h(10),c()()()()),t&2){let e=S().$implicit,i=S();m(4),U(i.model.id),m(2),ba("label",e("common.name")),m(),U(i.model.name),m(2),ba("label",e("common.nickname")),m(),U(i.model.alias)}}function YZe(t,n){if(t&1&&(d(0,"spa-box",1),k(1,qZe,2,2,"span",2),d(2,"div",3)(3,"button",4),h(4),c()(),k(5,WZe,11,5,"div",5),c()),t&2){let e=n.$implicit,i=S();f("loading",i.loading)("hidden",i.route.firstChild),m(),f("ngIf",!i.loading),m(3),U(e("common.edit")),m(),f("ngIf",!i.loading)}}function KZe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"spa-subscription-form",3),$("submitted",function(r){W(e);let o=S();return Y(o.onSubmit(r))}),c()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.saving)("hidden",i.route.firstChild),m(2),U(e("common.edit")),m(),f("model",i.model)}}function XZe(t,n){t&1&&(d(0,"mat-icon"),h(1,"arrow_back_ios"),c())}function QZe(t,n){t&1&&(d(0,"mat-icon",8),h(1,"keyboard_arrow_right"),c())}function ZZe(t,n){if(t&1&&(he(0),d(1,"span",6),h(2),ce(3,"breadcrumb"),c(),k(4,QZe,2,0,"mat-icon",7),fe()),t&2){let e=n.$implicit,i=n.last;m(),f("routerLink",Le(5,rZ,e.url)),m(),ue(" ",xe(3,3,e)," "),m(2),f("ngIf",!i)}}function JZe(t,n){if(t&1){let e=ie();d(0,"div",1)(1,"button",2),$("click",function(){W(e);let r=S();return Y(r.navigateUp())}),k(2,XZe,2,0,"mat-icon",3),c(),d(3,"div",4),k(4,ZZe,5,7,"ng-container",5),c()()}if(t&2){let e=S();m(),f("disabled",!e.canNavigateUp),m(),f("ngIf",e.canNavigateUp),m(2),f("ngForOf",e.breadcrumbsArray)}}function eJe(t,n){if(t&1&&(d(0,"mat-list-item",6)(1,"mat-icon",9),h(2,"arrow_right_alt"),c(),h(3),c()),t&2){let e=n.$implicit,i=S(3);m(3),Do(" ",e.file," - ",i.getError(e.type),"")}}function tJe(t,n){if(t&1&&(d(0,"div",6)(1,"mat-list",7),k(2,eJe,4,2,"mat-list-item",8),c()()),t&2){let e=S(2);m(2),f("ngForOf",e.errors)}}function iJe(t,n){if(t&1&&(d(0,"div",4)(1,"div")(2,"span"),h(3),c()(),k(4,tJe,3,1,"div",5),c()),t&2){let e=n.$implicit,i=S();m(3),U(e("components.dialog-upload-error.following-files-had-errors")),m(),f("ngIf",i.errors)}}var nJe=["fileInp"],rJe=t=>({invalid:t}),oJe=t=>({"dnd-drag-over":t}),N0e=t=>({single:t}),aJe=t=>({"text-hidden":t}),sJe=t=>({$implicit:t});function lJe(t,n){if(t&1&&(d(0,"div",15)(1,"div",16),h(2),c()()),t&2){let e=S(2).$implicit,i=S();m(),f("ngClass",Le(2,aJe,i.highlightContainer)),m(),ue(" ",e("components.files.click-or-drop-files",Le(4,N0e,i.single))," ")}}function cJe(t,n){if(t&1&&(d(0,"div",17),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("components.files.no-files-added"))}}function dJe(t,n){if(t&1){let e=ie();d(0,"div",12),$("click",function(){W(e);let r=S(2);return Y(r.fileButtonClick())}),k(1,lJe,3,6,"div",13)(2,cJe,2,1,"div",14),c()}if(t&2){let e=S(2);m(),f("ngIf",!e.readOnly),m(),f("ngIf",e.readOnly)}}function uJe(t,n){if(t&1){let e=ie();d(0,"button",26),$("click",function(){W(e);let r=S().$implicit,o=S(3);return Y(o.onFileClick?o.onFileClick(r):o.viewFile(r))}),d(1,"mat-icon"),h(2,"find_in_page"),c()()}}function mJe(t,n){if(t&1){let e=ie();d(0,"button",27),$("click",function(){W(e);let r=S().$implicit,o=S(3);return Y(o.delete(r))}),d(1,"mat-icon"),h(2,"delete"),c()()}}function pJe(t,n){t&1&&dn(0)}function hJe(t,n){if(t&1&&(he(0),k(1,pJe,1,0,"ng-container",28),fe()),t&2){let e=n.$implicit,i=S().$implicit;m(),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Le(2,sJe,i))}}function fJe(t,n){if(t&1&&H(0,"mat-progress-bar",29),t&2){let e=S().$implicit;ba("value",e.percentDone)}}function gJe(t,n){t&1&&H(0,"mat-progress-bar",30)}function _Je(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",19),k(2,uJe,3,0,"button",20)(3,mJe,3,0,"button",21)(4,hJe,2,4,"ng-container",18),d(5,"div",22),k(6,fJe,1,1,"mat-progress-bar",23)(7,gJe,1,0,"mat-progress-bar",24),d(8,"h4",25),$("click",function(){let r=W(e).$implicit,o=S(3);return Y(o.onFileClick?o.onFileClick(r):o.viewFile(r))}),h(9),c()()(),H(10,"mat-divider"),c()}if(t&2){let e=n.$implicit,i=S(3);m(2),f("ngIf",!i.hideViewButton),m(),f("ngIf",!i.readOnly&&!i.hideDeleteButton),m(),f("ngForOf",i.filesActions),m(2),f("ngIf",e.location==""&&e.percentDone!=null&&e.percentDone!=100),m(),f("ngIf",e.location==""&&e.percentDone!=null&&e.percentDone==100),m(2),U(e.name)}}function vJe(t,n){if(t&1&&(d(0,"div"),k(1,_Je,11,6,"div",18),c()),t&2){let e=S(2);m(),f("ngForOf",e.filesToShow)}}function bJe(t,n){t&1&&(d(0,"mat-icon",34),h(1,"swap_vert"),c())}function yJe(t,n){t&1&&(d(0,"mat-icon",35),h(1,"add"),c())}function xJe(t,n){if(t&1){let e=ie();d(0,"div",31)(1,"input",32,0),$("change",function(r){W(e);let o=S(2);return Y(o.transferDataSuccess(r))})("click",function(){W(e);let r=je(2);return Y(r.value=null)}),c(),d(3,"div")(4,"button",33),$("click",function(){W(e);let r=S(2);return Y(r.fileButtonClick())}),k(5,bJe,2,0,"mat-icon",34)(6,yJe,2,0),c()()()}if(t&2){let e=S(2);m(),f("multiple",!e.single)("accept",e.accept),m(4),Xt(5,e.willSwapFile?5:6)}}function CJe(t,n){if(t&1){let e=ie();d(0,"div",2),$("filesOver",function(r){W(e);let o=S();return Y(o.highlightContainer=r)})("filesDropped",function(r){W(e);let o=S();return Y(o.transferDataSuccess(r))}),H(1,"ngx-loading",3),d(2,"div",4)(3,"div",5)(4,"div",6),h(5),c()(),d(6,"div",7)(7,"div",8),k(8,dJe,3,2,"div",9)(9,vJe,2,1,"div",10),c()()(),k(10,xJe,7,3,"div",11),c()}if(t&2){let e=n.$implicit,i=S();m(),f("show",i.loading),m(),f("ngClass",Le(7,rJe,(i.filesToAdd&&!i.filesToAdd.valid||i.filesToDelete&&!(i.filesToDelete!=null&&i.filesToDelete.valid))&&!i.loadingFiles&&i.touched)),m(),f("ngClass",Le(9,oJe,i.highlightContainer&&!i.readOnly)),m(2),ue(" ",e("components.files.click-or-drop-files",Le(11,N0e,i.single))," "),m(3),f("ngIf",!(i.filesToShow.length>0)),m(),f("ngIf",i.filesToShow.length>0),m(),f("ngIf",!i.readOnly)}}function SJe(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2),c(),d(3,"form",3)(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),h(7),c(),H(8,"input",6),d(9,"mat-error"),h(10),c()(),d(11,"mat-form-field",5)(12,"mat-label"),h(13),c(),H(14,"input",7),d(15,"mat-error"),h(16),c()()(),d(17,"div",8)(18,"spa-submit-button",9),$("submit",function(){W(e);let r=S();return Y(r.onSubmit())}),h(19),c(),d(20,"button",10),$("click",function(){W(e);let r=S();return Y(r.rebuildForm())}),h(21),c()()()()}if(t&2){let e=n.$implicit,i=S();f("loading",i.saving||i.loading),m(2),U(e("components.user-edit.edit-user-info")),m(),f("formGroup",i.form),m(4),U(e("common.name")),m(3),U(i.getErrorMessage("name")),m(3),U(e("common.email")),m(3),U(i.getErrorMessage("email")),m(2),f("form",i.form)("disabled",i.form.pristine),m(),ue(" ",e("common.save")," "),m(),f("disabled",i.form.pristine),m(),ue(" ",e("common.undo")," ")}}function wJe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.name"))}}function EJe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),U(e.name)}}function IJe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.start-date"))}}function DJe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"spaDate"),ce(3,"spaDate"),c()),t&2){let e=n.$implicit;m(),Do("",Bt(2,2,e.startDate,"shortDate")," ",Bt(3,5,e.startDate,"mediumTime"),"")}}function TJe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.last-heartbeat"))}}function AJe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"spaDate"),ce(3,"spaDate"),c()),t&2){let e=n.$implicit;m(),Do("",Bt(2,2,e.lastHeartbeat,"shortDate")," ",Bt(3,5,e.lastHeartbeat,"mediumTime"),"")}}function kJe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.healthy"))}}function MJe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit,i=S(2).$implicit;m(),U(e.isHealthy?i("common.yes"):i("common.no"))}}function FJe(t,n){if(t&1&&(d(0,"mat-header-cell",12),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e("common.failed-health-check"))}}function RJe(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),U(e.failedHealthCheck)}}function PJe(t,n){if(t&1&&(d(0,"lac-table",4),he(1,5),k(2,wJe,2,1,"mat-header-cell",6)(3,EJe,2,1,"mat-cell",7),fe(),he(4,8),k(5,IJe,2,1,"mat-header-cell",6)(6,DJe,4,8,"mat-cell",7),fe(),he(7,9),k(8,TJe,2,1,"mat-header-cell",6)(9,AJe,4,8,"mat-cell",7),fe(),he(10,10),k(11,kJe,2,1,"mat-header-cell",6)(12,MJe,2,1,"mat-cell",7),fe(),he(13,11),k(14,FJe,2,1,"mat-header-cell",6)(15,RJe,2,1,"mat-cell",7),fe(),c()),t&2){let e=S(2);f("dataSource",e.serversDataSource)}}function NJe(t,n){if(t&1&&(d(0,"spa-box",1)(1,"span",2),h(2),c(),k(3,PJe,16,1,"lac-table",3),c()),t&2){let e=n.$implicit,i=S();f("loading",i.isLoading)("hidden",i.route.firstChild),m(2),U(e("common.servers")),m(),f("ngIf",i.serversDataSource)}}var OJe=["datePicker"],LJe=["dateInput"],VJe=["hourInput"],BJe=["minuteInput"],jJe=["secondInput"],HJe=(t,n)=>({"w-100":t,"date-input":n});function zJe(t,n){if(t&1){let e=ie();d(0,"span"),h(1,":"),c(),d(2,"input",15,4),$("keydown.ArrowUp",function(r){return W(e),S(2).change("seconds",!0),Y(r.preventDefault())})("keydown.ArrowDown",function(r){return W(e),S(2).change("seconds",!1),Y(r.preventDefault())})("keydown.ArrowLeft",function(r){W(e),S();let o=je(7),a=S();return Y(a.selectInputIfCursorStart(r,o))})("blur",function(){W(e);let r=S(2);return Y(r.change("seconds"))}),c()}if(t&2){let e=S(2);m(2),f("readonly",e.readonly)}}function UJe(t,n){if(t&1){let e=ie();d(0,"span",12),h(1,","),c(),d(2,"input",13,2),$("input",function(r){W(e);let o=je(7),a=S();return Y(a.selectInputIfCursorEnd(r,o,2))})("keydown.ArrowUp",function(r){return W(e),S().change("hours",!0),Y(r.preventDefault())})("keydown.ArrowDown",function(r){return W(e),S().change("hours",!1),Y(r.preventDefault())})("keydown.ArrowLeft",function(r){W(e);let o=S(),a=je(3);return Y(o.selectInputIfCursorStart(r,a))})("keydown.ArrowRight",function(r){W(e);let o=je(7),a=S();return Y(a.selectInputIfCursorEnd(r,o,2))})("blur",function(){W(e);let r=S();return Y(r.change("hours"))}),c(),d(4,"span"),h(5,":"),c(),d(6,"input",14,3),$("input",function(r){W(e);let o=S();return Y(o.selectInputIfCursorEnd(r,o.secondInput,2))})("keydown.ArrowUp",function(r){return W(e),S().change("minutes",!0),Y(r.preventDefault())})("keydown.ArrowDown",function(r){return W(e),S().change("minutes",!1),Y(r.preventDefault())})("keydown.ArrowLeft",function(r){W(e);let o=je(3),a=S();return Y(a.selectInputIfCursorStart(r,o))})("keydown.ArrowRight",function(r){W(e);let o=S();return Y(o.selectInputIfCursorEnd(r,o.secondInput,2))})("blur",function(){W(e);let r=S();return Y(r.change("minutes"))}),c(),k(8,zJe,4,1)}if(t&2){let e=S();m(2),f("readonly",e.readonly),m(4),f("readonly",e.readonly),m(2),Xt(8,e.showSeconds?8:-1)}}function GJe(t,n){if(t&1){let e=ie();d(0,"button",16),$("click",function(){W(e);let r=S();return Y(r.clear())}),d(1,"mat-icon"),h(2,"close"),c()()}if(t&2){let e=S();f("disabled",!e.form.controls.date.value)}}function $Je(t,n){if(t&1){let e=ie();d(0,"button",17),$("click",function(){W(e);let r=S();return Y(r.openPicker())}),d(1,"mat-icon"),h(2,"calendar_month"),c()()}}function qJe(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S(2);return Y(r.goToHome())}),h(1),c()}if(t&2){let e=S().$implicit;m(),U(e("components.access-locked.return-to-home"))}}function WJe(t,n){if(t&1&&(he(0),d(1,"div",1)(2,"div",2)(3,"mat-card")(4,"div",3)(5,"div",4)(6,"mat-icon",5),h(7,"no_accounts"),c()(),d(8,"h2"),h(9),c(),d(10,"p",6),h(11),c()(),d(12,"div",7)(13,"button",8),h(14),c(),k(15,qJe,2,1,"button",9),c()()()(),fe()),t&2){let e=n.$implicit,i=S();m(9),U(e("components.access-locked.account-locked")),m(2),U(e("components.access-locked.account-locked-description")),m(2),f("routerLink",Wo(5,P0e)),m(),U(e("components.access-locked.use-another-account")),m(),Xt(15,i.showReturnToHomeButton?15:-1)}}var eZ=class{constructor(){this.initialized=!1,this._maxShowingSubscriptions=5}initialize(n){this._oidc=n.oidc,this._rootAuthenticationEnabled=n.rootAuthenticationEnabled,this._publicUploadEnabled=n.publicUploadEnabled,this._subscriptionHeader=n.subscriptionHeader,this._subscriptionRoot=n.subscriptionRoot,this._subscriptionNoFilter=n.subscriptionNoFilter,this._emailEnabled=n.emailEnabled,this._siteName=n.siteName,this._webPki=n.webPki,this._maxFileSize=n.maxFileSize,this._maxFilenameSize=n.maxFilenameSize,this._maxShowingSubscriptions=n.maxShowingSubscriptions,this._labels=n.labels,this._hasParentIntegration=n.hasParentIntegration,this._parentUrl=n.parentUrl,this._parentName=n.parentName,this._appInsightsConnectionString=n.appInsightsConnectionString,this._googleAnalyticsTrackingId=n.googleAnalyticsTrackingId,this._theme=n.theme,this._segmentedUploadThreshold=n.segmentedUploadThreshold,this._uploadSegmentLength=n.uploadSegmentLength,this._captcha=n.captcha,this._cdnUrl=n.cdnUrl,this.initialized=!0}get oidc(){return this.ensureInitialized(),this._oidc}get rootAuthenticationEnabled(){return this.ensureInitialized(),this._rootAuthenticationEnabled}get publicUploadEnabled(){return this.ensureInitialized(),this._publicUploadEnabled}get subscriptionHeader(){return this.ensureInitialized(),this._subscriptionHeader}get subscriptionRoot(){return this.ensureInitialized(),this._subscriptionRoot}get subscriptionNoFilter(){return this.ensureInitialized(),this._subscriptionNoFilter}get emailEnabled(){return this.ensureInitialized(),this._emailEnabled}get siteName(){return this.ensureInitialized(),this._siteName}get webPki(){return this.ensureInitialized(),this._webPki}get maxFileSize(){return this.ensureInitialized(),this._maxFileSize}get maxFilenameSize(){return this.ensureInitialized(),this._maxFilenameSize}get maxShowingSubscriptions(){return this.ensureInitialized(),this._maxShowingSubscriptions}get labels(){return this.ensureInitialized(),this._labels}get hasParentIntegration(){return this.ensureInitialized(),this._hasParentIntegration}get parentUrl(){return this.ensureInitialized(),this._parentUrl}get parentName(){return this.ensureInitialized(),this._parentName}get appInsightsConnectionString(){return this.ensureInitialized(),this._appInsightsConnectionString}get googleAnalyticsTrackingId(){return this.ensureInitialized(),this._googleAnalyticsTrackingId}get theme(){return this.ensureInitialized(),this._theme}get segmentedUploadThreshold(){return this.ensureInitialized(),this._segmentedUploadThreshold}get uploadSegmentLength(){return this.ensureInitialized(),this._uploadSegmentLength}get captcha(){return this.ensureInitialized(),this._captcha}get cdnUrl(){return this.ensureInitialized(),this._cdnUrl}ensureInitialized(){if(!this.initialized)throw"The configuration has not been initialized"}},Ye=new eZ,jx=function(t){return t.Parent="parent",t.App="app",t}(jx||{}),Pb=function(t){return t.Invite="invite",t.UserDetails="user-detail",t.UserEditAccess="user-edit-access",t}(Pb||{});var Zk=function(t){return t.Success="Success",t.InvalidPassword="InvalidPassword",t}(Zk||{}),Q5=function(t){return t.Recaptcha="Recaptcha",t.Turnstile="Turnstile",t.HCaptcha="HCaptcha",t}(Q5||{}),eM=new ke("List of Roles, used to iterate over this const enum."),O0e=new ke("List of RootRoles, used to iterate over this const enum."),L0e=new ke("Required Identity Claims. These claims will be verified and reinforced in SpaControlService."),oZ=new ke("Tells if the application only resolves after or before knowing the authentication state of the user."),V0e=new ke("Service that can be provided to tell the application how to navigate to some entity"),B0e=new ke("Service that can be provided to tell the application how to display an event"),j0e=new ke("A function that receives an entity type and returns its corresponding material icon."),H0e=new ke("A function that receives an event type and returns the name that will actually be shown in the browser."),z0e=new ke("A function that receives a role and returns the its display name, which is the one that will actually be shown in the browser."),aZ=new ke("List of Roles that should not be assignable on user-details page."),sZ=new ke("A function that receives a named route and returns the its display name. This function can be used to override the display names of the routes from within lacuna-spa."),U0e=new ke("A function that will be called right when an API error occurs."),nB=new ke("Tells if the usage of a heading language route segment should be used or not."),lZ=new ke("Object that maps a language to its respective locales"),G0e=new ke("Object that maps a language to its respective locales"),$0e=new ke("Show return to home button on access locked screen"),cZ=new ke("Tells if the invisible captcha should be used in the application. If false, the captcha could be used in the form as a regular captcha"),q0e=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),as=function(t){return t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t}(as||{}),YJe="logLevel",KJe=as.Warning,$t=(()=>{class t{constructor(){let e=this.tryGetMinLevelFrom(sessionStorage),i=this.tryGetMinLevelFrom(localStorage);e!=null&&i!=null&&e!=i?(this.minLevel=Math.min(e,i),this.logWarning(`Found conflicting minimum log levels (local: ${this.getLevelName(i)}, session: ${this.getLevelName(e)}), using lower level (${this.getLevelName(this.minLevel)})`)):(this.minLevel=e??i??KJe,this.logInformation(`Minimum log level set to ${this.getLevelName(this.minLevel)}`))}logTrace(...e){this.log(as.Trace,e)}logDebug(...e){this.log(as.Debug,e)}logInformation(...e){this.log(as.Information,e)}logWarning(...e){this.log(as.Warning,e)}logError(...e){this.log(as.Error,e)}logCritical(...e){this.log(as.Critical,e)}log(e,i){e>=this.minLevel&&this.writeLog(e,i)}writeLog(e,i){console.log(`[${this.getLevelLabel(e)}]`,...i)}getLevelLabel(e){switch(e){case as.Trace:return"TRC";case as.Debug:return"DBG";case as.Information:return"INF";case as.Warning:return"WRN";case as.Error:return"ERR";case as.Critical:return"CRT"}}getLevelName(e){switch(e){case as.Trace:return"Trace";case as.Debug:return"Debug";case as.Information:return"Information";case as.Warning:return"Warning";case as.Error:return"Error";case as.Critical:return"Critical"}}parseLogLevel(e){if(e=(e??"").trim(),e==""||e=="null")return null;let i=parseInt(e);for(let r=as.Trace;r<=as.Critical;r++)if(i==r||e.toLowerCase()==this.getLevelName(r).toLowerCase()||e.toLowerCase()==this.getLevelLabel(r).toLowerCase())return r;return this.writeLog(as.Warning,[`Unrecognized log level: '${e}'`]),null}tryGetMinLevelFrom(e){try{return this.parseLogLevel(e.getItem(YJe))}catch{return null}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),W0e=(()=>{class t extends xS{constructor(e){super(),this.cookieService=e}getItem(e){return this.cookieService.get(e)}removeItem(e,i="/",r=null){this.cookieService.delete(e,i,r)}setItem(e,i,r=null,o="/",a=null,s=!1,l="Lax"){this.cookieService.set(e,i,r,o,a,s,l)}static{this.\u0275fac=function(i){return new(i||t)(ae(n4))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),K5=(()=>{class t{constructor(e,i,r){this.data=e,this.ref=i,this.logger=r,this.message=e.message,this.isClickable=e.isClickable,this.icon=e.icon}ngOnInit(){}details(){this.isClickable&&(this.logger.logTrace("MessagesComponent -- component clicked; dismissing snackbar and showing details..."),this.ref.dismissWithAction())}dismiss(){this.logger.logTrace("MessagesComponent -- dismiss button clicked; dismissing snackbar..."),this.ref.dismiss()}static{this.\u0275fac=function(i){return new(i||t)(E(HL),E(O1),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-message"]],decls:9,vars:5,consts:[[1,"message-notification","text-white","justify-content-between"],[1,"d-flex",3,"click","ngClass"],[4,"ngIf"],[1,"mx-2","mt-1","full-width","notification-text"],[1,"ms-auto"],[1,"dismiss-button",3,"click"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),$("click",function(){return r.details()}),k(2,FYe,2,1,"mat-icon",2),d(3,"div",3),h(4),c()(),d(5,"div",4)(6,"button",5),$("click",function(){return r.dismiss()}),d(7,"mat-icon"),h(8,"close"),c()()()()),i&2&&(m(),f("ngClass",Le(3,MYe,r.isClickable)),m(),f("ngIf",r.icon),m(2),U(r.message))},dependencies:[ji,Ee,He]})}}return t})(),ru=(()=>{class t{constructor(){this.closeClicked=new Ae}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-title"]],inputs:{disableClose:[ve.HasDecoratorInputTransform,"disableClose","disableClose",Sn],customClose:[ve.HasDecoratorInputTransform,"customClose","customClose",Sn]},outputs:{closeClicked:"closeClicked"},features:[Ei],ngContentSelectors:Jk,decls:4,vars:1,consts:[["mat-dialog-title","",1,"d-flex","align-items-center","spa-dialog-title","mb-2"],["mat-icon-button","","aria-label","Close",1,"ms-auto"],["mat-icon-button","","aria-label","Close",1,"ms-auto",3,"click"],["mat-icon-button","","mat-dialog-close","","aria-label","Close",1,"ms-auto"]],template:function(i,r){i&1&&(hi(),d(0,"div",0)(1,"div"),ct(2),c(),k(3,NYe,2,1),c()),i&2&&(m(3),Xt(3,r.disableClose?-1:3))},dependencies:[He,fi,Lu,RL],styles:[".spa-dialog-title[_ngcontent-%COMP%]{padding-bottom:0;padding-top:8px}"]})}}return t})(),Y0e=(()=>{class t{constructor(e,i){this.data=e,this.transloco=i,this.errorMessages=[],this.title=e.title||this.transloco.translate("common.errors"),this.errorMessages=e.errorMessages}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-error-messages"]],decls:5,vars:3,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions","",4,"transloco"],[1,"d-flex"],[1,"text-warn","me-3"],["mat-dialog-actions",""],["mat-flat-button","","mat-dialog-close","","color","primary"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,OYe,6,1,"div",2),c(),k(4,LYe,3,1,"div",3)),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngForOf",r.errorMessages))},dependencies:[Vt,He,Ze,Lu,Pm,Ac,Fn,ru]})}}return t})(),Bi=(()=>{class t{constructor(e,i){this.snackBar=e,this.dialog=i,this.errorMessages=[]}showSuccess(e,i){let r=this.snackBar.openFromComponent(K5,{duration:i&&i.duration!=null?i.duration:3e3,horizontalPosition:"right",verticalPosition:"top",panelClass:["snackbar-success","snackbar-margin"],data:{message:e,isClickable:!1,icon:"check_circle"}});return this.lastSnackBar=r,r}showInfo(e,i){let r=this.snackBar.openFromComponent(K5,{duration:i&&i.duration!=null?i.duration:3e3,horizontalPosition:"right",verticalPosition:"top",panelClass:["snackbar-primary","snackbar-margin"],data:{message:e,isClickable:!1,icon:"info"}});return this.lastSnackBar=r,r}showWarning(e,i){let r=this.snackBar.openFromComponent(K5,{duration:i&&i.duration!=null?i.duration:3e3,horizontalPosition:"right",verticalPosition:"top",panelClass:["snackbar-glow","snackbar-margin"],data:{message:e,isClickable:!1,icon:"warning"}});return this.lastSnackBar=r,r}showError(e,i){this.errorMessages.push(e);let r=this.snackBar.openFromComponent(K5,{duration:i&&i.duration!=null?i.duration:0,horizontalPosition:"right",verticalPosition:"top",panelClass:["snackbar-warn","snackbar-margin"],data:{message:e,isClickable:!0,icon:"error"}});return r.onAction().subscribe(()=>this.showAllErrors(this.errorMessages)),this.lastSnackBar=r,r}dismiss(){this.lastSnackBar&&this.lastSnackBar.dismiss()}showAllErrors(e,i){return this.dialog.open(Y0e,{width:"500px",data:{title:i,errorMessages:e}}).afterClosed().toPromise()}static{this.\u0275fac=function(i){return new(i||t)(ae(jW),ae(Dn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),E0e=nZ.default,WQ="last_login_attempt",YQ="date_registered",X5="subscription_filter",KQ="root_token",XQ="root_token_expiration",XJe=15e3,Z5=class{constructor(n,e,i,r,o,a,s,l,u){this.id=n,this.name=e,this.emailAddress=i,this.cpf=r,this.customClaims=o,this.subscriptions=a,this.adminRoles=s,this.permissionsOnRoot=l,this.isLocked=u}},di=(()=>{class t{get selectedSubscriptionSnapshot(){return this.subscriptionSubject.value}get userProfile(){return this.ensureInitialized(),this._userProfile}constructor(e,i,r,o,a,s,l,u,p,g,_,v,y){this.http=e,this.oauthService=i,this.spaApiHeadersService=r,this.logger=o,this.cookieStorage=a,this.ngZone=s,this.messageService=l,this.transloco=u,this.listOfRoles=p,this.listOfRootRoles=g,this.requiredIdClaims=_,this.listOfUnassignableRoles=v,this.oidcRedirectPath=y,this.initError=null,this.signInError=null,this.initializedSubject=new H_,this.initialized=this.initializedSubject.asObservable(),this.subscriptionSubject=new Tr({sub:"",subscription:null,roles:[],permissions:[]}),this.selectedSubscription=this.subscriptionSubject.asObservable(),this.allSubscriptionsSelected=this.selectedSubscription.pipe(st(x=>x.sub===Ye.subscriptionNoFilter)),this.userPermissionsOnSubs={},this.onOAuthEvent=x=>{this.logger.logDebug("SpaControlService -- OAuth event: ",x),x.type==="token_received"&&this.setApiHeaders()}}init(){return new Promise(e=>{let i=()=>{this._initialized=!0,this.initializedSubject.next(null),this.initializedSubject.complete(),e(null)},r=(a,s,l)=>{this.logger.logCritical(a,l),this.messageService.showError(s),this.initError=l,i()},o=(a,s,l)=>{this.logger.logError(a,l),this.messageService.showError(s),this.signInError=l||s,i()};this.initRootAuth().then(a=>{a&&(this.logger.logDebug("SpaControlService -- root profile fetched"),this._userProfile=this.instantiateRootUserProfile(a))},a=>{this.logger.logDebug("SpaControlService -- cleaning root info (calling root logout), since an error occurred during root auth initialization. Error: ",a),this.rootLogout()}).then(()=>{Ye.oidc.enabled?this.initOidcAuth().then(()=>{this.logger.logDebug("SpaControlService -- processing authentication state"),this.oauthService.tryLogin().then(a=>{let s=this.oauthService.hasValidAccessToken();if(this.logger.logDebug(`SpaControlService -- OAuth login processed, hasValidAccessToken: ${s}`),!s)i();else{var l=()=>{this.logger.logDebug("SpaControlService -- Processing session");let u=this.oauthService.getIdentityClaims();if(this.logger.logDebug("SpaControlService -- User identity claims: ",u),this.oauthService.events.pipe(vi(g=>g.type=="session_changed")).subscribe(g=>{this.handleSessionChanged()}),this.requiredIdClaims){if(this.requiredIdClaims.name&&!u[Ye.oidc.nameClaim]){o("SpaControlService -- An error has occurred while processing your authentication (blank name). Please try again.",this.transloco.translate("services.spa-control.error-claim-is-blank",{claim:"name"}));return}if(this.requiredIdClaims.cpf&&!u[Ye.oidc.cpfClaim]){o("SpaControlService -- An error has occurred while processing your authentication (blank cpf). Please try again.",this.transloco.translate("services.spa-control.error-claim-is-blank",{claim:"CPF"}));return}if(this.requiredIdClaims.emailAddress&&!u[Ye.oidc.emailAddressClaim]){o("SpaControlService -- An error has occurred while processing your authentication (blank email address). Please try again.",this.transloco.translate("services.spa-control.error-claim-is-blank",{claim:"email address"}));return}if(this.requiredIdClaims.customClaims){for(let g of this.requiredIdClaims.customClaims)if(!u[g]){o(`SpaControlService -- An error has occurred while processing your authentication (blank ${g}). Please try again.`,this.transloco.translate("services.spa-control.error-claim-is-blank",{claim:g}));return}}}this.setApiHeaders(),this.oauthService.setupAutomaticSilentRefresh(this.getAuthParams());let p=this.getOAuthState();this.pendingReturnUrl=p.returnUrl,this.registerAndFetchProfile().then(g=>{let _=Ve({},u);delete _[Ye.oidc.nameClaim],delete _[Ye.oidc.emailAddressClaim],delete _[Ye.oidc.cpfClaim],this.logger.logInformation("SpaControlService -- user profile fetched: ",g),this._userProfile=new Z5(g.id,u[Ye.oidc.nameClaim],u[Ye.oidc.emailAddressClaim],u[Ye.oidc.cpfClaim],_,g.subscriptions,g.adminRoles,g.permissionsOnRoot,g.isLocked),i()},g=>{o("SpaControlService -- An error has occurred while fetching your user profile. Please try again.",this.transloco.translate("services.spa-control.error-fetching-user-profile"),g)})};Ye.oidc.sessionCheckEnabled&&!this.isSafari13()?(this.logger.logDebug("SpaControlService -- Starting checksession"),this.checkSession().then(l,u=>{this.logger.logDebug("SpaControlService -- Check session error"),o("SpaControlService -- there was an error when checking the user session in the identity provider",this.transloco.translate("services.spa-control.error-checking-user-session"),u),l()})):(this.logger.logDebug("SpaControlService -- Bypassing checksession"),l())}},a=>{if(a instanceof Ba){let s=a;if(s.type==="token_error"&&s.params.error==="access_denied")o("SpaControlService -- You must consent access to the required resources",this.transloco.translate("services.spa-control.error-you-must-consent-access"),a);else if(s.type==="invalid_nonce_in_state"&&(this.logger.logError("The nonce in your storage is invalid. "),this.shouldAttemptLogin())){let l=this.getOAuthState();this.startLogin(l.returnUrl)}}})},a=>{r("SpaControlService -- Error initializing OAuth: ",this.transloco.translate("services.spa-control.error-initializing-oauth"),a)}):(this.logger.logInformation("SpaControlService -- OIDC is disabled. Not initializing it..."),i())})})}initRootAuth(){return new Promise((e,i)=>{if(Ye.rootAuthenticationEnabled){this.logger.logDebug("SpaControlService -- root auth enabled. Fetching root token from cookie...");let r=this.cookieStorage.getItem(KQ),o=this.cookieStorage.getItem(XQ),a;r&&o?(a=E0e(o)).isAfter()?(this.logger.logDebug(`SpaControlService -- root token was successfully fetched and is valid (expires on ${o}).`),this._rootToken=r,this._rootTokenExpiresOn=a,this.setApiHeaders(),this.http.get("/api/profile").subscribe(e,s=>{this.logger.logError("SpaControlService -- error while fetching root profile: ",s),this.messageService.showError(this.transloco.translate("services.spa-control.error-fetching-root-profile")),i(s)})):(this.logger.logDebug(`SpaControlService -- root token found in cookie storage, but it is expired (expires on ${o}). Not using root authentication then...`),e(null)):(this.logger.logDebug("SpaControlService -- root token not found in cookie storage. Not using root authentication then..."),e(null))}else this.logger.logInformation("SpaControlService -- root authentication is disabled. Not initializing it..."),e(null)})}checkSession(){return this.startCheckSession(),new Promise((e,i)=>{this.logger.logDebug("SpaControlService -- Starting session check"),this.sessionCheckEventListener=r=>{switch(this.logger.logDebug("SpaControlService -- Starting session check"),r.data){case"unchanged":this.ngZone.run(()=>{this.removeSessionCheckEventListener(),clearTimeout(this.sessionCheckStartupTimeout),e(null)});break;case"changed":this.ngZone.run(()=>{this.logger.logDebug("SpaControlService -- Session change detected"),clearTimeout(this.sessionCheckStartupTimeout),this.removeSessionCheckEventListener(),this.handleSessionChanged()});break;case"error":this.ngZone.run(()=>{this.removeSessionCheckEventListener(),this.logger.logDebug("SpaControlService -- error detected when cheking session"),clearTimeout(this.sessionCheckStartupTimeout),e(null)});break}},this.sessionCheckStartupTimeout=setTimeout(()=>{this.logger.logDebug("SpaControlService -- Session check timeout"),e(null)},10*1e3),this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})})}handleSessionChanged(){this.logger.logDebug("Detected that user session has changed, refreshing");let e=window.location.pathname+window.location.search;this.startLogin(e)}startCheckSession(){let e=document.getElementById(this.oauthService.sessionCheckIFrameName);e&&document.body.removeChild(e);let i=document.createElement("iframe");i.id=this.oauthService.sessionCheckIFrameName;let r=this.oauthService.sessionCheckIFrameUrl;i.setAttribute("src",r),i.style.display="none",document.body.appendChild(i);let o=this.getSessionState(),a=this.oauthService.clientId+" "+o;i.onload=()=>{i.contentWindow.postMessage(a,this.oauthService.issuer)}}getSessionState(){return this.cookieStorage.getItem("session_state")}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initOidcAuth(){return new Promise((e,i)=>{this.logger.logDebug("SpaControlService -- initializing OAuth"),Ye.oidc.jwks&&(this.oauthService.loadJwks=function(){return new Promise((s,l)=>{let u={keys:Ye.oidc.jwks};this.jwks=u,this.eventsSubject.next(new Ec("discovery_document_loaded")),s(u)})}),this.oauthService.events.subscribe(this.onOAuthEvent),window.location!==window.parent.location||this.oauthService.setStorage(this.cookieStorage),this.oauthService.tokenValidationHandler=new t4;let o=Ye.oidc.sessionCheckEnabled&&!this.isSafari13(),a=`${Ye.oidc.redirectUri||window.location.origin}`;if(this.oidcRedirectPath){let s=this.oidcRedirectPath.trim();s.startsWith("/")&&(s=s.substring(1)),a=`${a}/${s}`}this.oauthService.configure({issuer:Ye.oidc.authority,skipExpirationChecks:!0,redirectUri:a,postLogoutRedirectUri:Ye.oidc.postLogoutRedirectUri||window.location.origin,silentRefreshRedirectUri:`${window.location.origin}/silent-refresh.html`,clientId:Ye.oidc.clientId,scope:`openid profile ${Ye.oidc.customScopes} ${Ye.oidc.apiName}`,skipIssuerCheck:Ye.oidc.skipIssuerCheck,strictDiscoveryDocumentValidation:Ye.oidc.strictDiscoveryDocumentValidation,sessionChecksEnabled:o,requireHttps:Ye.oidc.requireHttps}),this.oauthService.loadDiscoveryDocument().then(s=>{this.logger.logDebug("SpaControlService -- OAuth initialized"),e(null)},i)})}registerAndFetchProfile(){return new Promise((e,i)=>{let r=a=>{this.logger.logDebug("SpaControlService -- fetching user profile ..."),this.http.get("/api/profile").subscribe(e,s=>{if(this.isApiError(s,"NotRegistered"))a(s);else if(s.status===401&&this.shouldAttemptLogin()){let l=window.location.pathname+window.location.search;this.logger.logInformation("SpaControlService -- Profile API unauthorized error starting login, error: ",s,", returnUrl: ",l),this.startLogin(l),i(s)}else i(s)})},o=()=>{this.logger.logDebug("SpaControlService -- Registering ..."),this.http.post("/api/register",null).subscribe(()=>{this.logger.logInformation("SpaControlService -- Registered");try{localStorage.setItem(YQ,new Date().getTime().toString())}catch{this.logger.logWarning(`SpaControlService -- '${YQ}' could not be saved in local storage`)}r(i)},i)};localStorage.getItem(YQ)?(this.logger.logDebug("SpaControlService -- Register bypassed"),r(a=>{this.logger.logWarning("SpaControlService -- NotRegistered error while fetching user profile (register was bypassed): ",a),o()})):o()})}refreshUserSubscriptions(){return new Promise((e,i)=>{this.http.get("/api/profile/subscriptions",{}).subscribe(e,r=>{i(r)})})}startLogin(e,i){if(Ye.oidc.enabled){let r={returnUrl:e||this.pendingReturnUrl};this.logger.logInformation("SpaControlService -- starting OAuth implicit flow, state:",r),this.lastLoginAttempt=new Date,this.oauthService.initImplicitFlow(ZQ.default.encode(JSON.stringify(r)),Ve(Ve({},this.getAuthParams()),i))}else this.logger.logInformation("SpaControlService -- not starting login, since OIDC is disabled...")}getOAuthState(){let e={};if(this.oauthService.state){try{e=JSON.parse(ZQ.default.decode(this.oauthService.state))}catch(i){this.logger.logError("SpaControlService -- error parsing OAuth state",i)}this.logger.logTrace("SpaControlService -- OAuth state",e)}return e}shouldAttemptLogin(){return this.lastLoginAttempt!==null&&new Date().getTime()-this.lastLoginAttempt.getTime()this.logger.logTrace(`SpaControlService -- user permissions on sub "${e}", fetched from async subject on cache: `,o)));let i=new H_;this.userPermissionsOnSubs[e]=i;let r=this.getHeaders(e);return this.logger.logTrace(`SpaControlService -- fetching user permissions on sub "${e}" from API. Headers used on call to permissions API: `,r),this.http.get("/api/profile/permissions",{headers:r}).pipe(ri(o=>this.logger.logTrace(`SpaControlService -- user permissions on sub "${e}", fetched from API: `,o))).subscribe(i),i.asObservable()}userHasPermissionOnSubscription(e,i){return this.getUserPermissionsOnSubscription(e).pipe(st(r=>i?r.includes(i):r.length>0))}userHasPermissionOnSelectedSubscription(e){return this.selectedSubscription.pipe(st(i=>e?i.permissions.includes(e):i.permissions.length>0))}userHasAnyRootRole(){return this.userProfile&&this.userProfile.adminRoles.length>0}userHasAnyRoleOnSubscription(e){return this.userProfile&&this.userProfile.adminRoles.length>0||this.userProfile.subscriptions.some(i=>i.subscription.id==e&&i.roles.length>0)}userHasAnyRole(){return this.userProfile&&(this.userProfile.adminRoles.length>0||this.userProfile.subscriptions.length>0)}trySetSubscription(e){this.logger.logDebug(`SpaControlService -- trying to set subscription to "${e}"`);let i={sub:e,subscription:null,roles:[],permissions:[]},r=this.userProfile.subscriptions.find(o=>o.subscription.id==e);return r||e===Ye.subscriptionNoFilter||e===Ye.subscriptionRoot?this.getUserPermissionsOnSubscription(e).pipe(ri(o=>{o.length>0?(this.logger.logTrace(`SpaControlService -- user has access to the subscription "${e}"`),e!==Ye.subscriptionRoot&&this.saveSubInLocalStorage(e),this.setApiHeaders(e),r=r||{subscription:null,roles:[]},this.subscriptionSubject.next(Ve({sub:e,permissions:o},r))):(this.logger.logInformation(`SpaControlService -- user has no permissions on subscription "${e}"`),this.setApiHeaders(e),this.subscriptionSubject.next(i))}),st(o=>o.length>0),Ma(o=>{let a=this.transloco.translate("common.subscription");return this.logger.logInformation("SpaControlService -- error caught while trying to set subscription. Assuming that user has no permissions. Error: ",o),this.messageService.showError(this.transloco.translate("services.spa-control.error-trying-to-set-subscription",{subLabel:a})),vt(!1)})):(this.logger.logInformation(`SpaControlService -- user has no access to subscription "${e}"`),this.setApiHeaders(e),this.subscriptionSubject.next(i),vt(!1))}getSubscriptionRoles(e,i){return e===Ye.subscriptionRoot?this.listOfRootRoles:this.listOfRoles.filter(r=>i||!this.listOfUnassignableRoles.some(o=>r===o))}guessSubscription(){let e=this.lastSubscription;return e&&!this.userProfile.subscriptions.map(i=>i.subscription.id).includes(e)&&(this.logger.logInformation(`SpaControlService -- Removing subscription '${e}' from local storage, as it is not listed in user subscriptions`),e="",this.saveSubInLocalStorage(e)),e&&e!=Ye.subscriptionRoot&&this.userHasAnyRoleOnSubscription(e)?e:this.userHasAnyRootRole()?Ye.subscriptionNoFilter:this.userProfile.subscriptions.length>0?this.userProfile.subscriptions[0].subscription.id:null}saveSubInLocalStorage(e){try{localStorage.setItem(X5,e),this.logger.logDebug(`SpaControlService -- ${X5} set to "${e}" in local storage`)}catch{this.logger.logWarning(`SpaControlService -- could not set ${X5} to "${e}" in local storage`)}}get lastSubscription(){return localStorage.getItem(X5)}signOut(e){return this.oauthService.logOut(e),this.oauthService.logoutUrl?null:"/"}claimAccess(e){return new Promise((i,r)=>{this.http.post("/api/claim-access",{claimCode:e}).subscribe(()=>{location.href="/"},o=>{let a=null;if(o instanceof l0){let s=o;o.status===422&&o.error.code==="InvalidClaimCode"&&(a="Invalid claim code")}a=a||(o.error&&o.error.message?o.error.message:`An error has occurred: ${o.message}`),r(a)})})}tryPopReturnUrl(){let e=this.pendingReturnUrl;return this.pendingReturnUrl=null,e}rootLogin(e){let i={rootPassword:e};return this.logger.logInformation("SpaControlService -- starting login with root authentication"),this.http.post("/api/root-auth",i).pipe(ri(r=>{r.result==Zk.Success?(this.logger.logTrace("SpaControlService -- root token retrieved"),this._rootToken=r.rootToken,this._rootTokenExpiresOn=E0e(r.expiresOn),this.setApiHeaders(),this._userProfile=this.instantiateRootUserProfile(r.rootProfile),this.cookieStorage.setItem(KQ,r.rootToken),this.cookieStorage.setItem(XQ,r.expiresOn)):this.logger.logTrace("SpaControlService -- login with root authentication failed")}))}rootLogout(){this.logger.logInformation("SpaControlService -- logging out with root authentication"),this._rootToken=null,this._rootTokenExpiresOn=null,this._userProfile=null,this.cookieStorage.removeItem(KQ),this.cookieStorage.removeItem(XQ),this.setApiHeaders()}instantiateRootUserProfile(e){return new Z5(e.id,"Root","","",{},e.subscriptions,e.adminRoles,e.permissionsOnRoot,!1)}getRootToken(){return this._rootToken}hasRootToken(){return!!this._rootToken}hasValidOidcToken(){return this.oauthService.hasValidAccessToken()}getOidcToken(){return this.oauthService.getAccessToken()}getUserAgent(){var e=navigator.userAgent,i,r=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(r[1])?(i=/\brv[ :]+(\d+)/g.exec(e)||[],"IE "+(i[1]||"")):r[1]==="Chrome"&&(i=e.match(/\b(OPR|Edge)\/(\d+)/),i!=null)?i.slice(1).join(" ").replace("OPR","Opera"):(r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],(i=e.match(/version\/(\d+)/i))!=null&&r.splice(1,1,i[1]),r.join(" "))}isSafari13(){var e=this.getUserAgent().toLowerCase();return this.logger.logDebug("SpaControlService -- Detected user agent",e),e.includes("safari 13")}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(pN),ae(q0e),ae($t),ae(W0e),ae(ht),ae(Bi),ae(ur),ae(eM),ae(O0e),ae(L0e,8),ae(aZ),ae(G0e))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QJe=(()=>{class t{constructor(e,i,r){this.data=e,this.domSanitizer=i,this.transloco=r,this.title=e.title||this.transloco.translate("common.confirm"),this.message=e.message||this.transloco.translate("common.are-you-sure"),this.confirmButtonText=e.confirmButtonText||"OK",this.confirmButtonColor=e.confirmButtonColor||"primary",this.confirmButtonMatIcon=e.confirmButtonMatIcon||void 0,this.cancelButtonText=e.cancelButtonText||this.transloco.translate("common.cancel"),this.cancelButtonColor=e.cancelButtonColor||"primary",this.cancelButtonMatIcon=e.cancelButtonMatIcon||void 0,this.useMessageAsHtml=e.useMessageAsHtml||!1,this.useMessageAsHtml&&(this.message=this.domSanitizer.sanitize(_s.HTML,this.message))}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Kl),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-fancy-confirm"]],decls:11,vars:11,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"mat-dialog-close","color"],["class","me-2",4,"ngIf"],["mat-button","",3,"mat-dialog-close","color"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"me-2"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,jYe,3,2,"ng-container",2),c(),d(4,"div",3)(5,"button",4),k(6,HYe,2,1,"mat-icon",5),h(7),c(),d(8,"button",6),k(9,zYe,2,1,"mat-icon",5),h(10),c()()),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngIf",r.message),m(2),f("mat-dialog-close",!0)("color",r.confirmButtonColor),m(),f("ngIf",r.confirmButtonMatIcon),m(),ue("",r.confirmButtonText," "),m(),f("mat-dialog-close",!1)("color",r.cancelButtonColor),m(),f("ngIf",r.cancelButtonMatIcon),m(),ue("",r.cancelButtonText," "))},dependencies:[Ee,He,Ze,Lu,Pm,Ac,ru]})}}return t})(),ZJe=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.subscriptions=[],this.subscriptionGender=Ye.labels.subscriptionGender,this.disableClose=e.disableClose,e.includeRoot&&this.subscriptions.push({name:"Sys Admin",sub:{roles:[],subscription:{id:Ye.subscriptionRoot,name:"Sys Admin"}}});for(var r of e.subscriptions)this.subscriptions.push({name:r.subscription.name,sub:r})}ngOnInit(){}select(e){this.dialogRef.close(e.sub)}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-subscription-selector"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"disableClose"],["mat-dialog-content",""],["matSort","","matSortActive","name","hidePageSize","",3,"dataSource","initialPageSize"],["matColumnDef","name"],["class","centered_header","mat-sort-header","",4,"matHeaderCellDef"],["class","text__center",4,"matCellDef"],["mat-dialog-actions","",4,"ngIf"],["mat-sort-header","",1,"centered_header"],[1,"text__center"],["href","javascript:void(0);",3,"click"],["mat-dialog-actions",""],["mat-flat-button","","color","warn",3,"mat-dialog-close"]],template:function(i,r){i&1&&k(0,qYe,10,10,"div",0)},dependencies:[Ee,Ze,Lu,Pm,Ac,zn,Vn,Hn,tr,ir,Kn,Lr,dr,Fn,ru,b3]})}}return t})(),JJe=(()=>{class t{constructor(e,i,r){this.data=e,this.domSanitizer=i,this.transloco=r,this.checkboxResult=!1,this.title=e.title||this.transloco.translate("common.confirm"),this.message=e.message,this.confirmButtonText=e.confirmButtonText||"OK",this.confirmButtonColor=e.confirmButtonColor||"primary",this.confirmButtonMatIcon=e.confirmButtonMatIcon||void 0,this.cancelButtonText=e.cancelButtonText||this.transloco.translate("common.cancel"),this.cancelButtonColor=e.cancelButtonColor||"primary",this.cancelButtonMatIcon=e.cancelButtonMatIcon||void 0,this.checkboxMessage=e.checkboxMessage,this.useMessageAsHtml=e.useMessageAsHtml||!1,this.requireCheckToConfirm=e.requireCheckToConfirm||!1,e.checkboxInitalState&&(this.checkboxResult=e.checkboxInitalState),this.useMessageAsHtml&&(this.message=this.domSanitizer.sanitize(_s.HTML,this.message))}ngOnInit(){}submit(e){return{dialogResult:e,checkboxResult:this.checkboxResult}}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Kl),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-confirm-with-checkbox"]],decls:13,vars:14,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],[1,"mt-0","mb-1",3,"ngModelChange","ngModel"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"mat-dialog-close","color","disabled"],["class","me-2",4,"ngIf"],["mat-button","","color","warn",3,"mat-dialog-close","color"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"me-2"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,KYe,3,2,"ng-container",2),d(4,"mat-checkbox",3),tn("ngModelChange",function(a){return nn(r.checkboxResult,a)||(r.checkboxResult=a),a}),h(5),c()(),d(6,"div",4)(7,"button",5),k(8,XYe,2,1,"mat-icon",6),h(9),c(),d(10,"button",7),k(11,QYe,2,1,"mat-icon",6),h(12),c()()),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngIf",r.message),m(),en("ngModel",r.checkboxResult),m(),U(r.checkboxMessage),m(2),f("mat-dialog-close",r.submit(!0))("color",r.confirmButtonColor)("disabled",r.requireCheckToConfirm&&!r.checkboxResult),m(),f("ngIf",r.confirmButtonMatIcon),m(),ue("",r.confirmButtonText," "),m(),f("mat-dialog-close",r.submit(!1))("color",r.cancelButtonColor),m(),f("ngIf",r.cancelButtonMatIcon),m(),ue("",r.cancelButtonText," "))},dependencies:[Ee,it,Va,He,Ze,Lu,Pm,Ac,Co,ru]})}}return t})(),eet=(()=>{class t{constructor(e,i,r){this.data=e,this.domSanitizer=i,this.transloco=r,this.title=e.title||this.transloco.translate("common.alert"),this.message=e.message,this.useMessageAsHtml=e.useMessageAsHtml||!1,this.useMessageAsHtml&&(this.message=this.domSanitizer.sanitize(_s.HTML,this.message))}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Kl),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-alert"]],decls:7,vars:3,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","","mat-dialog-close","","color","primary"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,eKe,3,2,"ng-container",2),c(),d(4,"div",3)(5,"button",4),h(6,"OK"),c()()),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngIf",r.message))},dependencies:[Ee,Ze,Lu,Pm,Ac,ru]})}}return t})(),tet=(()=>{class t{constructor(e,i){this.data=e,this.transloco=i,this.value=e.value,this.title=e.title||this.transloco.translate("common.alert"),this.message=e.message,this.footer=e.footer}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-show-value"]],decls:10,vars:5,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],[1,"key-value"],["mat-dialog-actions",""],["mat-flat-button","","mat-dialog-close","","color","primary"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,tKe,2,1,"span",2),d(4,"p",3),h(5),c(),k(6,iKe,2,1,"span",2),c(),d(7,"div",4)(8,"button",5),h(9,"OK"),c()()),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngIf",r.message),m(2),ue(" ",r.value," "),m(),f("ngIf",r.footer))},dependencies:[Ee,Ze,Lu,Pm,Ac,ru]})}}return t})(),iet=(()=>{class t{constructor(e,i,r,o){this.dialogRef=e,this.data=i,this.transloco=r,this.logger=o}ngOnInit(){this.model=this.data.model,this.itemStack=[{message:this.transloco.translate("components.dialog-validation-results.validation-result"),innerValidationResults:this.model,breadcrumbIndex:0}]}showDetails(e){this.logger.logDebug(e),e.innerValidationResults&&(e.breadcrumbIndex=this.itemStack.length,this.itemStack.push(e),this.model=e.innerValidationResults)}showParent(e){for(this.logger.logDebug(e);this.itemStack.length-1!=e.breadcrumbIndex;)this.itemStack.pop();this.model=e.innerValidationResults}static{this.\u0275fac=function(i){return new(i||t)(E(Qr),E(mr),E(ur),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-validation-results"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"disableClose"],["mat-dialog-content",""],["class","breadcrumb",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"mat-dialog-close"],[1,"breadcrumb"],["class","back",4,"ngFor","ngForOf"],[2,"padding-right","20px"],[1,"back"],[3,"click",4,"ngIf"],[3,"click"],["style","color: black; padding-right: 10px;",4,"ngIf"],[2,"color","black","padding-right","10px"],[1,"text-warn"],["class","mb-md-1 mb-4 dialog-list",4,"ngFor","ngForOf"],[1,"mb-md-1","mb-4","dialog-list"],["mat-list-icon","",1,"text-warn","me-2"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","primary",3,"click"],[1,"text-glow"],["mat-list-icon","",1,"text-glow","me-2"],[1,"text-success"],["mat-list-icon","",1,"text-success","me-2"]],template:function(i,r){i&1&&k(0,EKe,11,6,"div",0)},dependencies:[Vt,Ee,He,Ze,fi,N1,E0,Lu,Pm,Ac,Fn,ru]})}}return t})(),net=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-mobile-authorization-required"]],decls:1,vars:0,consts:[["mat-dialog-content","","class","mobile-authorization-required-dialog",4,"transloco"],["mat-dialog-content","",1,"mobile-authorization-required-dialog"],[1,"mx-auto"]],template:function(i,r){i&1&&k(0,IKe,4,1,"div",0)},dependencies:[Ac,pw,Fn]})}}return t})(),ret=(()=>{class t{constructor(e,i,r,o){this.data=e,this.sanitizer=i,this.http=r,this.platform=o,this.filesAsDataUrl=[],this.imageViewerCfg={btnClass:"mat-mini-fab mat-primary"},this.files=e.files,this.index=e.index}ngOnInit(){this.getDocument(this.index)}getDocument(e){this.name=this.files[e].name,this.contentType=this.files[e].contentType,this.fileLocation=this.files[e].location,this.fileSrc=this.sanitizer.bypassSecurityTrustResourceUrl(this.fileLocation)}isMobile(){return this.platform.ANDROID||this.platform.IOS}next(){this.index=++this.index%this.files.length,this.getDocument(this.index)}back(){this.index==0?this.index=this.files.length-1:this.index=--this.index,this.getDocument(this.index)}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Kl),E(sn),E(ln))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-view-file"]],hostBindings:function(i,r){i&1&&$("keyup.ArrowRight",function(){return r.next()},!1,Rf)("keyup.ArrowLeft",function(){return r.back()},!1,Rf)},decls:1,vars:0,consts:[["class","mat-typography",4,"transloco"],[1,"mat-typography"],[3,"disableClose"],[1,"text-truncate"],[1,"small-label-container","bg-light","text-primary","mb-2"],[1,"file-title","ms-2"],["mat-dialog-content","",1,"gallery"],["class","d-flex align-items-center justify-content-between",4,"ngIf"],["class","pdf-container p-3",4,"ngIf"],["width","100%","height","600","class","file-frame","frameborder","0",3,"src",4,"ngIf"],["width","100%","height","600","style","min-height: 400px;",3,"src","config",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","","mat-dialog-close","","color","primary"],[1,"d-flex","align-items-center","justify-content-between"],["mat-mini-fab","","color","primary",1,"left_arrow",3,"click"],["mat-mini-fab","","color","primary",1,"right_arrow",3,"click"],[1,"pdf-container","p-3"],[3,"src","fit-to-page","original-size","render-text","autoresize"],["width","100%","height","600","frameborder","0",1,"file-frame",3,"src"],["width","100%","height","600",2,"min-height","400px",3,"src","config"]],template:function(i,r){i&1&&k(0,MKe,16,7,"div",0)},dependencies:[Ee,He,Ze,ma,Lu,Pm,Ac,Tce,rue,Fn,ru],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:70vh}.pdf-container[_ngcontent-%COMP%]{width:100%;overflow:auto;background:#3d3d3d;padding-top:5px;padding-bottom:5px}.pdf-container[_ngcontent-%COMP%] pdf-viewer[_ngcontent-%COMP%]{display:block;height:500px}"]})}}return t})(),o_=(()=>{class t{constructor(){this.disabled=!1,this.submit=new Ae}ngOnInit(){}onButtonClick(){this.submit.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-submit-button"]],inputs:{form:"form",disabled:"disabled"},outputs:{submit:"submit"},ngContentSelectors:Jk,decls:3,vars:1,consts:[["mat-flat-button","","type","submit","color","primary",3,"click","disabled"]],template:function(i,r){i&1&&(hi(),d(0,"button",0),$("click",function(){return r.onButtonClick()}),d(1,"span"),ct(2),c()()),i&2&&f("disabled",!r.form.valid||r.disabled)},dependencies:[Ze]})}}return t})(),oet=(()=>{class t{get isPasswordInvalid(){return this.loginSucceeded==Zk.InvalidPassword}constructor(e,i,r,o,a,s,l){this.data=e,this.dialogRef=i,this.spaControl=r,this.fb=o,this.transloco=a,this.router=s,this.logger=l,this.$toUnsubscribe=[],this.submitting=!1,this.title=e.title||this.transloco.translate("components.dialog-root-login.root-login"),this.message=e.message,this.useMessageAsHtml=e.useMessageAsHtml||!1,this.navigateHomeIfCancelled=e.navigateHomeIfCancelled||!1,this.disableClose=e.disableClose||!1,this.reloadOnSuccess=e.reloadOnSuccess||!1,this.disableClose||this.$toUnsubscribe.push(this.dialogRef.backdropClick().subscribe(()=>{this.logger.logTrace("DialogRootLoginComponent -- backdrop clicked; calling rootLogout "),this.spaControl.rootLogout(),this.navigateHomeIfCancelled&&(this.logger.logDebug('DialogRootLoginComponent -- as backdrop was clicked and navigateHomeIfCancelled is enabled, navigating to "/"'),this.router.navigateByUrl("/"))})),this.createForm()}ngOnInit(){}createForm(){this.form=this.fb.group({password:["",Se.required]})}onSubmit(){let i=this.form.get("password").value;this.submitting=!0,this.spaControl.rootLogin(i).subscribe(r=>{this.submitting=!1,this.loginSucceeded=r.result,r.result==Zk.Success&&(this.dialogRef.close(r),this.reloadOnSuccess&&(this.logger.logTrace("DialogRootLoginComponent -- reloading page on successful login "),location.reload()))},r=>this.submitting=!1)}getErrorMessage(e){let i=this.form.get(e);switch(e){case"password":if(i.hasError("required"))return this.transloco.translate("errors.field-required")}return this.transloco.translate("errors.field-invalid")}close(){this.logger.logTrace("DialogRootLoginComponent -- cancel button clicked; calling rootLogout "),this.spaControl.rootLogout(),this.navigateHomeIfCancelled&&(this.logger.logDebug('DialogRootLoginComponent -- as cancel was pressed and navigateHomeIfCancelled is enabled, navigating to "/"'),this.router.navigateByUrl("/")),this.dialogRef.close(null)}ngOnDestroy(){this.logger.logTrace("DialogRootLoginComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr),E(di),E(Ti),E(ur),E(lt),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-root-login"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"show"],[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],[3,"formGroup"],[1,"container"],[1,"row"],[1,"col"],["matInput","","formControlName","password","type","password"],["class","col-12 p-0",4,"ngIf"],[1,"d-flex","justify-content-center"],[1,"me-2",3,"submit","form"],["mat-button","","type","button","color","warn",3,"click"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"col-12","p-0"],[1,"text-warn","d-flex","align-items-center"],[1,"me-2"]],template:function(i,r){i&1&&k(0,OKe,21,11,"div",0)},dependencies:[Ee,zt,Gt,it,pt,dt,Tt,He,Wt,bt,jt,Si,Ze,Ac,li,Fn,o_,ru]})}}return t})(),tZ={en:["en-US"],pt:["pt-BR"],es:["es-ES"]},aet="en-US",I0e="spa_locale_preference",D0e="spa_language_preference",Nb=(()=>{class t{get currentLocaleSnapshot(){return this.currentLocaleSubject.value}constructor(e,i,r,o){this.logger=e,this.translocoService=i,this.cookieStorage=r,this.languageToLocalesMapping=o,this.$toUnsubscribe=[],this.languageFromUrlRegex=/^\/([A-Z]{2})(\/.*)?$/i,this.temporaryLanguageFromNavigation=null,this.currentLocaleSubject=new Tr(aet),this.currentLocale=this.currentLocaleSubject.asObservable().pipe(Ls()),this.$toUnsubscribe.push(this.translocoService.langChanges$.subscribe(a=>{document.documentElement.setAttribute("lang",a);let s;(s=this.cookieStorage.getItem(I0e))?(this.logger.logDebug(`SpaLanguageService -- language changed to "${a}": setting locale "${s}", taken from cookie`),this.setLocale(s)):(s=this.getLocaleBasedOnLanguage(a))?(this.logger.logDebug(`SpaLanguageService -- language changed to "${a}": setting locale "${s}", taken from language-to-locales mapping`),this.setLocale(s)):this.logger.logDebug(`SpaLanguageService -- using the locale "${this.getLocale()}", since no better option was found on language-to-locales mappings`)}))}init(){return new Promise(e=>{this.logger.logInformation("SpaLanguageService -- initializing...");let i=this.guessLanguage();return this.translocoService.setActiveLang(i),this.logger.logDebug(`SpaLanguageService -- set language "${i}"; loading its translation file...`),this.translocoService.load(i).toPromise().then(r=>{this.logger.logDebug(`SpaLanguageService -- loaded translation file for language "${i}", and finished initialization.`),e(null)},r=>{this.logger.logError(`SpaLanguageService -- error fetching translation file for language "${i}": `,r),e(null)})})}setTemporarilyLanguageFromNavigation(e,i){this.logger.logTrace(`SpaLanguageService -- setTemporarilyLanguageFromNavigation: language (${e}), navigationId (${i}), temporaryLanguageFromNavigation: `,this.temporaryLanguageFromNavigation),this.logger.logDebug(`SpaLanguageService -- setting language "${e}" temporarily`),this.temporaryLanguageFromNavigation={navigationId:i,temporaryLanguage:e,previousLanguage:this.translocoService.getActiveLang()},this.setActiveLanguageIfDifferent(e)}commitLanguageFromNavigation(e,i){if(this.logger.logTrace(`SpaLanguageService -- commitLanguageFromNavigation: language (${e}), navigationId (${i}), temporaryLanguageFromNavigation: `,this.temporaryLanguageFromNavigation),!this.temporaryLanguageFromNavigation)throw"A call to commit was made, but there is no temporary language set";if(e!=this.temporaryLanguageFromNavigation.temporaryLanguage||i!=this.temporaryLanguageFromNavigation.navigationId)throw`The given language ("${e}") or navigation ID (${i}) do not match with the language that is temporarily set (${this.temporaryLanguageFromNavigation.temporaryLanguage}), or its navigation ID (${this.temporaryLanguageFromNavigation.navigationId})`;this.temporaryLanguageFromNavigation=null,this.logger.logDebug(`SpaLanguageService -- commited language "${e}"`)}rollbackLanguageFromNavigation(e){if(this.logger.logTrace(`SpaLanguageService -- rollbackLanguageFromNavigation: navigationId (${e}), temporaryLanguageFromNavigation: `,this.temporaryLanguageFromNavigation),!this.temporaryLanguageFromNavigation){this.logger.logDebug("SpaLanguageService -- not rolling back, since no temporary language was set");return}if(this.temporaryLanguageFromNavigation.navigationId!=e){this.logger.logDebug(`SpaLanguageService -- not rolling back, since the given navigationId (${e}) does not match the one from the temporary language (${this.temporaryLanguageFromNavigation.navigationId})`);return}this.logger.logDebug(`SpaLanguageService -- rolling back language to "${this.temporaryLanguageFromNavigation.previousLanguage}"`),this.setActiveLanguageIfDifferent(this.temporaryLanguageFromNavigation.previousLanguage),this.temporaryLanguageFromNavigation=null}setActiveLanguageIfDifferent(e){e!=this.translocoService.getActiveLang()?(this.logger.logDebug(`SpaLanguageService -- setting language to "${e}"`),this.translocoService.setActiveLang(e)):this.logger.logDebug(`SpaLanguageService -- language "${e}" is already active`)}getLanguagePreferenceFromCookie(){return this.cookieStorage.getItem(D0e)}setLanguagePreferenceInCookie(e){this.logger.logTrace(`SpaLanguageService -- storing language "${e}" in cookie`),this.cookieStorage.setItem(D0e,e)}getApplicationAvailableLangs(){return this.translocoService.getAvailableLangs().map(e=>e.id?e.id:e)}isLanguageAvailable(e){return this.getApplicationAvailableLangs().includes(e)}parseLanguageFromUrl(e){let i=e.match(this.languageFromUrlRegex);return i?(this.lastLanguageParsedOrGuessed=i[1],this.logger.logDebug(`SpaLanguageService -- parsed language successfully: language ("${i[1]}"), rest of the url ("${i[2]||""}")`),{found:!0,language:i[1],urlWithoutLanguageSegment:i[2]}):(this.logger.logDebug("SpaLanguageService -- no languages found while parsing url"),{found:!1})}generateUrlWithLangSegment(e,i){let r=e!="/"&&e!="/#"&&e!=null?e:"";return`/${i}${r}`}replaceOrInsertLangInUrl(e,i){let r=this.parseLanguageFromUrl(e);return this.generateUrlWithLangSegment(r.found?r.urlWithoutLanguageSegment:e,i)}guessLanguage(e=!1){if(!e&&this.lastLanguageParsedOrGuessed)return this.logger.logDebug(`SpaLanguageService -- using last language guessed/parsed: "${this.lastLanguageParsedOrGuessed}"`),this.lastLanguageParsedOrGuessed;let i=this.getLanguagePreferenceFromCookie();if(i)return this.lastLanguageParsedOrGuessed=i,this.logger.logDebug(`SpaLanguageService -- using language stored in cookie: "${i}"`),i;let r=this.translocoService.getDefaultLang();if(typeof window>"u"||typeof window.navigator>"u")return this.logger.logDebug(`SpaLanguageService -- using default language: "${r}"`),r;try{let o=window.navigator,a=this.getApplicationAvailableLangs(),s=o.languages?o.languages.map(u=>u.substring(0,2)):null;this.logger.logDebug(`SpaLanguageService -- guessing language... applicationAvailableLangs (${a}), browserLanguages (${s})`);let l=s?s.find(u=>a.includes(u)):r;if(!l){let u=o.language||o.browserLanguage||o.userLanguage;u?(u=u.substring(0,2),l=a.includes(u)?u:r):l=r,this.logger.logDebug(`SpaLanguageService -- langFromAlterativeSource: "${u}", defaultLang: "${r}"`)}return this.lastLanguageParsedOrGuessed=l,this.logger.logDebug(`SpaLanguageService -- guessed language: "${l}"`),l}catch(o){return this.logger.logError("SpaLanguageService -- error while guessing language",o),this.logger.logDebug(`SpaLanguageService -- using default language ("${r}"), since exception was caught while guessing language`),r}}getLocaleBasedOnLanguage(e){let i;return this.languageToLocalesMapping&&this.languageToLocalesMapping[e]&&(i=this.languageToLocalesMapping[e][0])?(this.logger.logDebug(`SpaLanguageService -- locale "${i}" taken from the custom language-to-locales mapping, from the client app`),i):tZ[e]&&(i=tZ[e][0])?(this.logger.logDebug(`SpaLanguageService -- locale "${i}" taken from the default language-to-locales mapping, from SPA`),i):null}setLocale(e){this.currentLocaleSubject.next(e)}getLocale(){return this.currentLocaleSnapshot}setLocaleAndStoreInCookie(e){this.logger.logDebug(`SpaLanguageService -- setting locale '${e}' and storing it in cookie`),this.setLocale(e),this.cookieStorage.setItem(I0e,e)}ngOnDestroy(){this.logger.logTrace("SpaLanguageService ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(ur),ae(W0e),ae(lZ))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),set={"af-ZA":{english:"Afrikaans",native:"Afrikaans"},ar:{english:"Arabic",native:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},"bg-BG":{english:"Bulgarian",native:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},"ca-AD":{english:"Catalan",native:"Catal\xE0"},"cs-CZ":{english:"Czech",native:"\u010Ce\u0161tina"},"cy-GB":{english:"Welsh",native:"Cymraeg"},"da-DK":{english:"Danish",native:"Dansk"},"de-AT":{english:"German (Austria)",native:"Deutsch (\xD6sterreich)"},"de-CH":{english:"German (Switzerland)",native:"Deutsch (Schweiz)"},"de-DE":{english:"German (Germany)",native:"Deutsch (Deutschland)"},"el-GR":{english:"Greek",native:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},"en-GB":{english:"English (UK)",native:"English (UK)"},"en-US":{english:"English (US)",native:"English (US)"},"es-CL":{english:"Spanish (Chile)",native:"Espa\xF1ol (Chile)"},"es-ES":{english:"Spanish (Spain)",native:"Espa\xF1ol (Espa\xF1a)"},"es-MX":{english:"Spanish (Mexico)",native:"Espa\xF1ol (M\xE9xico)"},"et-EE":{english:"Estonian",native:"Eesti"},eu:{english:"Basque",native:"Euskara"},"fa-IR":{english:"Persian",native:"\u0641\u0627\u0631\u0633\u06CC"},"fi-FI":{english:"Finnish",native:"Suomi"},"fr-CA":{english:"French (Canada)",native:"Fran\xE7ais (Canada)"},"fr-FR":{english:"French (France)",native:"Fran\xE7ais (France)"},"he-IL":{english:"Hebrew",native:"\u05E2\u05D1\u05E8\u05D9\u05EA"},"hr-HR":{english:"Croatian",native:"Hrvatski"},"hu-HU":{english:"Hungarian",native:"Magyar"},"id-ID":{english:"Indonesian",native:"Bahasa Indonesia"},"is-IS":{english:"Icelandic",native:"\xCDslenska"},"it-IT":{english:"Italian",native:"Italiano"},"ja-JP":{english:"Japanese",native:"\u65E5\u672C\u8A9E"},"km-KH":{english:"Khmer",native:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},"ko-KR":{english:"Korean",native:"\uD55C\uAD6D\uC5B4"},la:{english:"Latin",native:"Latina"},"lt-LT":{english:"Lithuanian",native:"Lietuvi\u0173"},"lv-LV":{english:"Latvian",native:"Latvie\u0161u"},"mn-MN":{english:"Mongolian",native:"\u041C\u043E\u043D\u0433\u043E\u043B"},"nb-NO":{english:"Norwegian (Bokm\xE5l)",native:"Norsk bokm\xE5l"},"nl-NL":{english:"Dutch",native:"Nederlands"},"nn-NO":{english:"Norwegian (Nynorsk)",native:"Norsk nynorsk"},"pl-PL":{english:"Polish",native:"Polski"},"pt-BR":{english:"Portuguese (Brazil)",native:"Portugu\xEAs (Brasil)"},"pt-PT":{english:"Portuguese (Portugal)",native:"Portugu\xEAs (Portugal)"},"ro-RO":{english:"Romanian",native:"Rom\xE2n\u0103"},"ru-RU":{english:"Russian",native:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},"sk-SK":{english:"Slovak",native:"Sloven\u010Dina"},"sl-SI":{english:"Slovenian",native:"Sloven\u0161\u010Dina"},"sr-RS":{english:"Serbian",native:"\u0421\u0440\u043F\u0441\u043A\u0438 / Srpski"},"sv-SE":{english:"Swedish",native:"Svenska"},"th-TH":{english:"Thai",native:"\u0E44\u0E17\u0E22"},"tr-TR":{english:"Turkish",native:"T\xFCrk\xE7e"},"uk-UA":{english:"Ukrainian",native:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},"vi-VN":{english:"Vietnamese",native:"Ti\u1EBFng Vi\u1EC7t"},"zh-CN":{english:"Chinese (PRC)",native:"\u4E2D\u6587 (\u4E2D\u56FD\u5927\u9646)"},"zh-TW":{english:"Chinese (Taiwan)",native:"\u4E2D\u6587 (\u53F0\u7063)"}},cet={aa:{english:"Afar",native:"Afaraf"},ab:{english:"Abkhazian",native:"\u0430\u04A7\u0441\u0443\u0430 \u0431\u044B\u0437\u0448\u04D9\u0430, \u0430\u04A7\u0441\u0448\u04D9\u0430"},ae:{english:"Avestan",native:"avesta"},af:{english:"Afrikaans",native:"Afrikaans"},ak:{english:"Akan",native:"Akan"},am:{english:"Amharic",native:"\u12A0\u121B\u122D\u129B"},an:{english:"Aragonese",native:"aragon\xE9s"},ar:{english:"Arabic",native:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629"},as:{english:"Assamese",native:"\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE"},av:{english:"Avaric",native:"\u0430\u0432\u0430\u0440 \u043C\u0430\u0446\u04C0, \u043C\u0430\u0433\u04C0\u0430\u0440\u0443\u043B \u043C\u0430\u0446\u04C0"},ay:{english:"Aymara",native:"aymar aru"},az:{english:"Azerbaijani",native:"az\u0259rbaycan dili"},ba:{english:"Bashkir",native:"\u0431\u0430\u0448\u04A1\u043E\u0440\u0442 \u0442\u0435\u043B\u0435"},be:{english:"Belarusian",native:"\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F \u043C\u043E\u0432\u0430"},bg:{english:"Bulgarian",native:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A"},bh:{english:"Bihari languages",native:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940"},bi:{english:"Bislama",native:"Bislama"},bm:{english:"Bambara",native:"bamanankan"},bn:{english:"Bengali",native:"\u09AC\u09BE\u0982\u09B2\u09BE"},bo:{english:"Tibetan",native:"\u0F56\u0F7C\u0F51\u0F0B\u0F61\u0F72\u0F42"},br:{english:"Breton",native:"brezhoneg"},bs:{english:"Bosnian",native:"bosanski jezik"},ca:{english:"Catalan, Valencian",native:"catal\xE0, valenci\xE0"},ce:{english:"Chechen",native:"\u043D\u043E\u0445\u0447\u0438\u0439\u043D \u043C\u043E\u0442\u0442"},ch:{english:"Chamorro",native:"Chamoru"},co:{english:"Corsican",native:"corsu, lingua corsa"},cr:{english:"Cree",native:"\u14C0\u1426\u1403\u152D\u140D\u140F\u1423"},cs:{english:"Czech",native:"\u010De\u0161tina, \u010Desk\xFD jazyk"},cu:{english:"Church Slavic, Old Slavonic, Church Slavonic, Old Bulgarian, Old Church Slavonic",native:"\u0469\u0437\u044B\u043A\u044A \u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A"},cv:{english:"Chuvash",native:"\u0447\u04D1\u0432\u0430\u0448 \u0447\u04D7\u043B\u0445\u0438"},cy:{english:"Welsh",native:"Cymraeg"},da:{english:"Danish",native:"dansk"},de:{english:"German",native:"Deutsch"},dv:{english:"Divehi, Dhivehi, Maldivian",native:"\u078B\u07A8\u0788\u07AC\u0780\u07A8"},dz:{english:"Dzongkha",native:"\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41"},ee:{english:"Ewe",native:"E\u028Begbe"},el:{english:"Greek, Modern (1453-)",native:"\u03B5\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC"},en:{english:"English",native:"English"},eo:{english:"Esperanto",native:"Esperanto"},es:{english:"Spanish, Castilian",native:"Espa\xF1ol"},et:{english:"Estonian",native:"eesti, eesti keel"},eu:{english:"Basque",native:"euskara, euskera"},fa:{english:"Persian",native:"\u0641\u0627\u0631\u0633\u06CC"},ff:{english:"Fulah",native:"Fulfulde, Pulaar, Pular"},fi:{english:"Finnish",native:"suomi, suomen kieli"},fj:{english:"Fijian",native:"vosa Vakaviti"},fo:{english:"Faroese",native:"f\xF8royskt"},fr:{english:"French",native:"fran\xE7ais, langue fran\xE7aise"},fy:{english:"Western Frisian",native:"Frysk"},ga:{english:"Irish",native:"Gaeilge"},gd:{english:"Gaelic, Scottish Gaelic",native:"G\xE0idhlig"},gl:{english:"Galician",native:"Galego"},gn:{english:"Guarani",native:"Ava\xF1e'\u1EBD"},gu:{english:"Gujarati",native:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0"},gv:{english:"Manx",native:"Gaelg, Gailck"},ha:{english:"Hausa",native:"(Hausa) \u0647\u064E\u0648\u064F\u0633\u064E"},he:{english:"Hebrew",native:"\u05E2\u05D1\u05E8\u05D9\u05EA"},hi:{english:"Hindi",native:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940"},ho:{english:"Hiri Motu",native:"Hiri Motu"},hr:{english:"Croatian",native:"hrvatski jezik"},ht:{english:"Haitian, Haitian Creole",native:"Krey\xF2l ayisyen"},hu:{english:"Hungarian",native:"magyar"},hy:{english:"Armenian",native:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},hz:{english:"Herero",native:"Otjiherero"},ia:{english:"Interlingua (International Auxiliary Language Association)",native:"Interlingua"},id:{english:"Indonesian",native:"Bahasa Indonesia"},ie:{english:"Interlingue, Occidental",native:"(originally:) Occidental, (after WWII:) Interlingue"},ig:{english:"Igbo",native:"As\u1EE5s\u1EE5 Igbo"},ii:{english:"Sichuan Yi, Nuosu",native:"\uA188\uA320\uA4BF Nuosuhxop"},ik:{english:"Inupiaq",native:"I\xF1upiaq, I\xF1upiatun"},io:{english:"Ido",native:"Ido"},is:{english:"Icelandic",native:"\xCDslenska"},it:{english:"Italian",native:"Italiano"},iu:{english:"Inuktitut",native:"\u1403\u14C4\u1483\u144E\u1450\u1466"},ja:{english:"Japanese",native:"\u65E5\u672C\u8A9E (\u306B\u307B\u3093\u3054)"},jv:{english:"Javanese",native:"\uA9A7\uA9B1\uA997\uA9AE, Basa Jawa"},ka:{english:"Georgian",native:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},kg:{english:"Kongo",native:"Kikongo"},ki:{english:"Kikuyu, Gikuyu",native:"G\u0129k\u0169y\u0169"},kj:{english:"Kuanyama, Kwanyama",native:"Kuanyama"},kk:{english:"Kazakh",native:"\u049B\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456"},kl:{english:"Kalaallisut, Greenlandic",native:"kalaallisut, kalaallit oqaasii"},km:{english:"Central Khmer",native:"\u1781\u17D2\u1798\u17C2\u179A, \u1781\u17C1\u1798\u179A\u1797\u17B6\u179F\u17B6, \u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},kn:{english:"Kannada",native:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1"},ko:{english:"Korean",native:"\uD55C\uAD6D\uC5B4"},kr:{english:"Kanuri",native:"Kanuri"},ks:{english:"Kashmiri",native:"\u0915\u0936\u094D\u092E\u0940\u0930\u0940, \u0643\u0634\u0645\u064A\u0631\u064A\u200E"},ku:{english:"Kurdish",native:"Kurd\xEE, \u06A9\u0648\u0631\u062F\u06CC\u200E"},kv:{english:"Komi",native:"\u043A\u043E\u043C\u0438 \u043A\u044B\u0432"},kw:{english:"Cornish",native:"Kernewek"},ky:{english:"Kirghiz, Kyrgyz",native:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430, \u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438"},la:{english:"Latin",native:"latine, lingua latina"},lb:{english:"Luxembourgish, Letzeburgesch",native:"L\xEBtzebuergesch"},lg:{english:"Ganda",native:"Luganda"},li:{english:"Limburgan, Limburger, Limburgish",native:"Limburgs"},ln:{english:"Lingala",native:"Ling\xE1la"},lo:{english:"Lao",native:"\u0E9E\u0EB2\u0EAA\u0EB2\u0EA5\u0EB2\u0EA7"},lt:{english:"Lithuanian",native:"lietuvi\u0173 kalba"},lu:{english:"Luba-Katanga",native:"Kiluba"},lv:{english:"Latvian",native:"latvie\u0161u valoda"},mg:{english:"Malagasy",native:"fiteny malagasy"},mh:{english:"Marshallese",native:"Kajin M\u0327aje\u013C"},mi:{english:"Maori",native:"te reo M\u0101ori"},mk:{english:"Macedonian",native:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A"},ml:{english:"Malayalam",native:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02"},mn:{english:"Mongolian",native:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},mr:{english:"Marathi",native:"\u092E\u0930\u093E\u0920\u0940"},ms:{english:"Malay",native:"Bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E"},mt:{english:"Maltese",native:"Malti"},my:{english:"Burmese",native:"\u1017\u1019\u102C\u1005\u102C"},na:{english:"Nauru",native:"Dorerin Naoero"},nb:{english:"Norwegian Bokm\xE5l",native:"Norsk Bokm\xE5l"},nd:{english:"North Ndebele",native:"isiNdebele"},ne:{english:"Nepali",native:"\u0928\u0947\u092A\u093E\u0932\u0940"},ng:{english:"Ndonga",native:"Owambo"},nl:{english:"Dutch, Flemish",native:"Nederlands, Vlaams"},nn:{english:"Norwegian Nynorsk",native:"Norsk Nynorsk"},no:{english:"Norwegian",native:"Norsk"},nr:{english:"South Ndebele",native:"isiNdebele"},nv:{english:"Navajo, Navaho",native:"Din\xE9 bizaad"},ny:{english:"Chichewa, Chewa, Nyanja",native:"chiChe\u0175a, chinyanja"},oc:{english:"Occitan",native:"occitan, lenga d'\xF2c"},oj:{english:"Ojibwa",native:"\u140A\u14C2\u1511\u14C8\u142F\u14A7\u140E\u14D0"},om:{english:"Oromo",native:"Afaan Oromoo"},or:{english:"Oriya",native:"\u0B13\u0B21\u0B3C\u0B3F\u0B06"},os:{english:"Ossetian, Ossetic",native:"\u0438\u0440\u043E\u043D \xE6\u0432\u0437\u0430\u0433"},pa:{english:"Punjabi, Panjabi",native:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40, \u067E\u0646\u062C\u0627\u0628\u06CC\u200E"},pi:{english:"Pali",native:"\u092A\u093E\u0932\u093F, \u092A\u093E\u0933\u093F"},pl:{english:"Polish",native:"j\u0119zyk polski, polszczyzna"},ps:{english:"Pashto, Pushto",native:"\u067E\u069A\u062A\u0648"},pt:{english:"Portuguese",native:"Portugu\xEAs"},qu:{english:"Quechua",native:"Runa Simi, Kichwa"},rm:{english:"Romansh",native:"Rumantsch Grischun"},rn:{english:"Rundi",native:"Ikirundi"},ro:{english:"Romanian, Moldavian, Moldovan",native:"Rom\xE2n\u0103"},ru:{english:"Russian",native:"\u0440\u0443\u0441\u0441\u043A\u0438\u0439"},rw:{english:"Kinyarwanda",native:"Ikinyarwanda"},sa:{english:"Sanskrit",native:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D"},sc:{english:"Sardinian",native:"sardu"},sd:{english:"Sindhi",native:"\u0938\u093F\u0928\u094D\u0927\u0940, \u0633\u0646\u068C\u064A\u060C \u0633\u0646\u062F\u06BE\u06CC\u200E"},se:{english:"Northern Sami",native:"Davvis\xE1megiella"},sg:{english:"Sango",native:"y\xE2ng\xE2 t\xEE s\xE4ng\xF6"},si:{english:"Sinhala, Sinhalese",native:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD"},sk:{english:"Slovak",native:"Sloven\u010Dina, Slovensk\xFD Jazyk"},sl:{english:"Slovenian",native:"Slovenski Jezik, Sloven\u0161\u010Dina"},sm:{english:"Samoan",native:"gagana fa'a Samoa"},sn:{english:"Shona",native:"chiShona"},so:{english:"Somali",native:"Soomaaliga, af Soomaali"},sq:{english:"Albanian",native:"Shqip"},sr:{english:"Serbian",native:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A"},ss:{english:"Swati",native:"SiSwati"},st:{english:"Southern Sotho",native:"Sesotho"},su:{english:"Sundanese",native:"Basa Sunda"},sv:{english:"Swedish",native:"Svenska"},sw:{english:"Swahili",native:"Kiswahili"},ta:{english:"Tamil",native:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD"},te:{english:"Telugu",native:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41"},tg:{english:"Tajik",native:"\u0442\u043E\u04B7\u0438\u043A\u04E3, to\xE7ik\u012B, \u062A\u0627\u062C\u06CC\u06A9\u06CC\u200E"},th:{english:"Thai",native:"\u0E44\u0E17\u0E22"},ti:{english:"Tigrinya",native:"\u1275\u130D\u122D\u129B"},tk:{english:"Turkmen",native:"T\xFCrkmen, \u0422\u04AF\u0440\u043A\u043C\u0435\u043D"},tl:{english:"Tagalog",native:"Wikang Tagalog"},tn:{english:"Tswana",native:"Setswana"},to:{english:"Tonga (Tonga Islands)",native:"Faka Tonga"},tr:{english:"Turkish",native:"T\xFCrk\xE7e"},ts:{english:"Tsonga",native:"Xitsonga"},tt:{english:"Tatar",native:"\u0442\u0430\u0442\u0430\u0440 \u0442\u0435\u043B\u0435, tatar tele"},tw:{english:"Twi",native:"Twi"},ty:{english:"Tahitian",native:"Reo Tahiti"},ug:{english:"Uighur, Uyghur",native:"\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5\u200E, Uyghurche"},uk:{english:"Ukrainian",native:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},ur:{english:"Urdu",native:"\u0627\u0631\u062F\u0648"},uz:{english:"Uzbek",native:"O\u02BBzbek, \u040E\u0437\u0431\u0435\u043A, \u0623\u06C7\u0632\u0628\u06D0\u0643\u200E"},ve:{english:"Venda",native:"Tshiven\u1E13a"},vi:{english:"Vietnamese",native:"Ti\u1EBFng Vi\u1EC7t"},vo:{english:"Volap\xFCk",native:"Volap\xFCk"},wa:{english:"Walloon",native:"Walon"},wo:{english:"Wolof",native:"Wollof"},xh:{english:"Xhosa",native:"isiXhosa"},yi:{english:"Yiddish",native:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9"},yo:{english:"Yoruba",native:"Yor\xF9b\xE1"},za:{english:"Zhuang, Chuang",native:"Sa\u026F cue\u014B\u0185, Saw cuengh"},zh:{english:"Chinese",native:"\u4E2D\u6587 (Zh\u014Dngw\xE9n), \u6C49\u8BED, \u6F22\u8A9E"},zu:{english:"Zulu",native:"isiZulu"}},det=(()=>{class t{get languageControl(){return this.form?this.form.get("language"):null}get localeControl(){return this.form?this.form.get("locale"):null}constructor(e,i,r,o,a,s,l,u,p){this.dialogRef=e,this.router=i,this.spaLanguage=r,this.logger=o,this.fb=a,this.transloco=s,this.data=l,this.languageRouteEnabled=u,this.languageToLocalesMapping=p,this.$toUnsubscribe=[],this.localeCodeMap=set,this.languageCodeMap=cet,this.title=l.title||this.transloco.translate("components.dialog-language-selector.select-language"),this.message=l.message,this.useMessageAsHtml=l.useMessageAsHtml||!1,this.createForm()}ngOnInit(){this.availableLanguages=this.spaLanguage.getApplicationAvailableLangs(),this.logger.logDebug("DialogLanguageSelectorComponent -- available languages: ",this.availableLanguages),this.availableLocales=this.getAvailableLocales(),this.logger.logDebug("DialogLanguageSelectorComponent -- available locales: ",this.availableLocales)}createForm(){this.form=this.fb.group({language:[this.transloco.getActiveLang(),Se.required],locale:[this.spaLanguage.getLocale(),Se.required]}),this.$toUnsubscribe.push(this.languageControl.valueChanges.subscribe(e=>{let i=this.spaLanguage.getLocaleBasedOnLanguage(e);i&&this.localeControl.setValue(i)}))}getAvailableLocales(){let e=[],i;this.languageToLocalesMapping?(i=this.languageToLocalesMapping,this.logger.logDebug("DialogLanguageSelectorComponent -- getting available locales from the custom language-to-locales mapping, from the client app")):(i=tZ,this.logger.logDebug("DialogLanguageSelectorComponent -- getting available locales from the default language-to-locales mapping, from SPA"));for(let r of Object.values(i))r&&e.push(...r);return e}onSubmit(){let{language:e,locale:i}=this.form.value;this.logger.logInformation(`DialogLanguageSelectorComponent -- language "${e}" and locale "${i}" selected`),this.languageRouteEnabled?this.router.navigateByUrl(this.spaLanguage.replaceOrInsertLangInUrl(this.router.url,e)):this.spaLanguage.setActiveLanguageIfDifferent(e),this.spaLanguage.setLanguagePreferenceInCookie(e),this.spaLanguage.setLocaleAndStoreInCookie(i),this.dialogRef.close()}ngOnDestroy(){this.logger.logTrace("LanguageButtonComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Qr),E(lt),E(Nb),E($t),E(Ti),E(ur),E(mr),E(nB),E(lZ))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-language-selector"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],[3,"formGroup"],[1,"container"],[1,"row"],[1,"col-12"],["formControlName","language"],[3,"value",4,"ngFor","ngForOf"],["formControlName","locale"],[1,"d-flex","justify-content-center"],[1,"me-2",3,"submit","form"],["mat-button","","type","button","mat-dialog-close",""],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"value"]],template:function(i,r){i&1&&k(0,zKe,23,11,"div",0)},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,bt,jt,Ze,Lu,Ac,Li,Mi,Fn,o_,ru,Goe],styles:[".language-menu-item[_ngcontent-%COMP%]{width:auto;border-radius:3px;display:inline}"]})}}return t})(),wn=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-prop"]],inputs:{label:"label"},ngContentSelectors:Jk,decls:4,vars:1,consts:[[1,"prop-label"],[1,"prop-value"]],template:function(i,r){i&1&&(hi(),d(0,"p",0),h(1),c(),d(2,"p",1),ct(3),c()),i&2&&(m(),U(r.label))}})}}return t})(),uet="/api/agents",K0e=(()=>{class t{constructor(e){this.http=e,this.lookupTasks={},this.lookupQueue=[],this.lookupQueueChanged=new qe,this.lookupQueueChanged.pipe($o(100),Wi(()=>this.http.put(`${uet}/bulk-lookup`,{ids:this.lookupQueue.splice(0)}))).subscribe(i=>{for(let r of Object.keys(i.agents)){let o=this.lookupTasks[r];o.next(i.agents[r]),o.complete()}})}get(e){return this.lookupTasks[e]||this.enqueueLookup(e)}enqueueLookup(e){let i=new H_;return this.lookupTasks[e]=i,this.lookupQueue.push(e),this.lookupQueueChanged.next(null),i}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dZ=(()=>{class t{constructor(e){this.agentLookupService=e}transform(e,i){return this.agentLookupService.get(e).pipe(st(r=>i&&i.hideType?`${r.name}`:`${r.name} (${r.type})`))}static{this.\u0275fac=function(i){return new(i||t)(E(K0e,16))}}static{this.\u0275pipe=oi({name:"agent",type:t,pure:!0})}}return t})(),uZ=(()=>{class t{constructor(e){this.getEntityIcon=e}transform(e,i){if(this.getEntityIcon){let r=this.getEntityIcon(e);if(r)return r}switch(e){case"Subscription":return"apps";case"User":return"person";case"Invite":return"person_add";case"Application":return"device_hub";default:return"help"}}static{this.\u0275fac=function(i){return new(i||t)(E(j0e,24))}}static{this.\u0275pipe=oi({name:"entityIcon",type:t,pure:!0})}}return t})(),mZ=-1,X0e=(()=>{class t{constructor(e,i){this.http=e,this.logger=i,this.lookupTasks={},this.lookupQueue=[],this.lookupQueueChanged=new qe,this.lookupQueueChanged.pipe($o(100),Wi(()=>this.http.put("/api/entities/bulk-lookup",this.lookupQueue.splice(0)))).subscribe(r=>{this.logger.logTrace("EntityLookupService -- new entity lookup: ",r);for(let o of r){let a=this.lookupTasks[this.getIndex(o.type,o.id)];a.next(o.name||mZ),a.complete()}})}get(e,i){return this.lookupTasks[this.getIndex(e,i)]||this.enqueueLookup(e,i)}enqueueLookup(e,i){let r=new H_;return this.lookupTasks[this.getIndex(e,i)]=r,this.lookupQueue.push({type:e,id:i}),this.lookupQueueChanged.next(null),r}getIndex(e,i){return`${e}:${i}`}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pZ=(()=>{class t{constructor(e){this.entityLookupService=e}transform(e,i){return this.entityLookupService.get(e.entityType,e.entityId)}static{this.\u0275fac=function(i){return new(i||t)(E(X0e,16))}}static{this.\u0275pipe=oi({name:"entityName",type:t,pure:!0})}}return t})(),Hx=(()=>{class t{constructor(e,i){this.getEventTypeName=e,this.transloco=i}transform(e,i){let r=Array.isArray(this.transloco.config.fallbackLang)?this.transloco.config.fallbackLang[0]:this.transloco.config.fallbackLang,o=this.transloco.translateObject("enums.event-types")||this.transloco.translateObject("enums.event-types",{},r),a="\uFFFD",s;return this.getEventTypeName&&(s=this.getEventTypeName(e))?s:o&&o[e]||a}static{this.\u0275fac=function(i){return new(i||t)(E(H0e,24),E(ur,16))}}static{this.\u0275pipe=oi({name:"eventType",type:t,pure:!0})}}return t})(),sf=(()=>{class t{constructor(e,i,r){this.spaControl=e,this.entityLookupService=i,this.logger=r}transform(e,i){return this.logger.logTrace(`Resolving subscription ${e}`),this.getAliasOrName(e).pipe(ri(r=>this.logger.logTrace(`Resolved subscription ${e} to ${r}`)))}getAliasOrName(e){if(e===Ye.subscriptionRoot)return vt("Admin");var i=this.spaControl.userProfile.subscriptions.filter(r=>r.subscription.id===e)[0];if(i){let r=i.subscription.alias&&i.subscription.alias!=""?i.subscription.alias:i.subscription.name;return vt(r)}return this.logger.logTrace(`Calling entity lookup to resolve sub ${e}`),this.entityLookupService.get("Subscription",e).pipe(st(r=>r===mZ?(this.logger.logWarning(`Could not resolve subscription: ${e}`),"\uFFFD"):r))}static{this.\u0275fac=function(i){return new(i||t)(E(di,16),E(X0e,16),E($t,16))}}static{this.\u0275pipe=oi({name:"sub",type:t,pure:!0})}}return t})(),XE=class{get currentLocale(){return this.spaLanguageService.getLocale()}constructor(n){this.spaLanguageService=n}transformUsingCache(n){return this.latestTransformedValue!==void 0&&!this.checkIfArgsChanged(n)?this.latestTransformedValue:(n.locale||(n.locale=this.currentLocale),this.latestArgsUsed=n,this.latestTransformedValue=this.transformFunction(n),this.latestTransformedValue)}checkIfArgsChanged(n){if(!this.latestArgsUsed)return!0;for(let e of Object.keys(n))if(this.latestArgsUsed[e]!==n[e])return!0;return!1}},QE=(()=>{class t extends XE{constructor(e){super(e),this.spaLanguage=e,this.datePipe=new rn(this.currentLocale)}transform(e,i="mediumDate",r,o){return this.transformUsingCache({value:e,format:i,timezone:r,locale:o})}transformFunction(e){return this.datePipe.transform(e.value,e.format,e.timezone,e.locale)}static{this.\u0275fac=function(i){return new(i||t)(E(Nb,16))}}static{this.\u0275pipe=oi({name:"spaDate",type:t,pure:!1})}}return t})(),hZ=(()=>{class t{constructor(e){this.transloco=e}transform(e){return this.transloco.translate(`enums.entity-types.${e}`)}static{this.\u0275fac=function(i){return new(i||t)(E(ur,16))}}static{this.\u0275pipe=oi({name:"entityType",type:t,pure:!0})}}return t})(),met=(()=>{class t{constructor(e){this.event=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-event-details"]],ngContentSelectors:Jk,decls:1,vars:0,consts:[[4,"transloco"],["mat-dialog-content",""],[1,"row"],[1,"col-12","col-md-3",3,"label"],[1,"col-12","col-md-4",3,"label"],[1,"col-12","col-md-5",3,"label"],[1,"d-flex"],[1,"me-2"],[1,"col-12","col-md-7",3,"label"],["class","row",4,"ngIf"],[1,"col-12","pre-prop",3,"label"],[1,"col-12",3,"label"]],template:function(i,r){i&1&&(hi(),k(0,GKe,43,46,"ng-container",0))},dependencies:[Ee,He,Ac,Fn,wn,ru,Ea,dZ,uZ,pZ,Hx,sf,QE,hZ]})}}return t})(),pet=(()=>{class t{constructor(e,i,r,o,a){this.data=e,this.dialogRef=i,this.domSanitizer=r,this.transloco=o,this.title=e.title||this.transloco.translate("common.confirm"),this.message=e.message,this.confirmButtonText=e.confirmButtonText||"OK",this.confirmButtonColor=e.confirmButtonColor||"primary",this.confirmButtonMatIcon=e.confirmButtonMatIcon||void 0,this.cancelButtonText=e.cancelButtonText||this.transloco.translate("common.cancel"),this.cancelButtonColor=e.cancelButtonColor||"primary",this.cancelButtonMatIcon=e.cancelButtonMatIcon||void 0,this.useMessageAsHtml=e.useMessageAsHtml||!1,this.reasonLabel=e.reasonLabel||this.transloco.translate("common.reason"),this.reasonMaxLength=e.reasonMaxLength||1024,this.useMessageAsHtml&&(this.message=this.domSanitizer.sanitize(_s.HTML,this.message)),this.reasonForm=a.control(null)}ngOnInit(){}submit(e){let i={dialogResult:e,reason:this.reasonForm.value};this.dialogRef.close(i)}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr),E(Kl),E(ur),E(oN))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dialog-confirm-with-reason"]],decls:13,vars:12,consts:[[3,"disableClose"],["mat-dialog-content",""],[4,"ngIf"],[1,"w-100","input-stretch"],["matInput","","rows","7",1,"md-textarea","md-textarea-auto",3,"formControl","placeholder","maxlength"],["mat-dialog-actions",""],["mat-flat-button","","color","primary",3,"click","color"],["class","mr-2",4,"ngIf"],["mat-button","","color","warn",3,"click","color"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"mr-2"]],template:function(i,r){i&1&&(d(0,"spa-dialog-title",0),h(1),c(),d(2,"div",1),k(3,WKe,3,2,"ng-container",2),d(4,"mat-form-field",3),H(5,"textarea",4),c()(),d(6,"div",5)(7,"button",6),$("click",function(){return r.submit(!0)}),k(8,YKe,2,1,"mat-icon",7),h(9),c(),d(10,"button",8),$("click",function(){return r.submit(!1)}),k(11,KKe,2,1,"mat-icon",7),h(12),c()()),i&2&&(f("disableClose",r.data.disableClose),m(),U(r.title),m(2),f("ngIf",r.message),m(2),f("formControl",r.reasonForm)("placeholder",r.reasonLabel)("maxlength",r.reasonMaxLength),m(2),f("color",r.confirmButtonColor),m(),f("ngIf",r.confirmButtonMatIcon),m(),ue("",r.confirmButtonText," "),m(),f("color",r.cancelButtonColor),m(),f("ngIf",r.cancelButtonMatIcon),m(),ue("",r.cancelButtonText," "))},dependencies:[Ee,Gt,it,wc,Od,He,Wt,bt,Ze,Pm,Ac,ru]})}}return t})(),Qi=(()=>{class t{constructor(e,i){this.dialog=e,this.transloco=i,this.confirmDiscard=(r,o,a,s)=>this.confirm({message:r||this.transloco.translate("services.dialog.you-are-about-to-discard-changes"),title:o||this.transloco.translate("services.dialog.discard-changes"),confirmButtonText:this.transloco.translate("services.dialog.yes-discard"),confirmButtonColor:"warn",useMessageAsHtml:a,disableClose:s}),this.confirmContinueBackground=(r,o,a,s)=>this.confirm({message:r||this.transloco.translate("common.continue-in-background"),title:o,useMessageAsHtml:a,disableClose:s}),this.confirmDelete=(r,o,a,s)=>this.confirm({message:r,title:o||this.transloco.translate("services.dialog.delete"),confirmButtonText:this.transloco.translate("services.dialog.yes-delete"),confirmButtonColor:"warn",useMessageAsHtml:a,disableClose:s})}confirm(e,i){let r,o;return typeof e=="string"?(r=e,o=null):(o=e,r=o.message,i=o.title),this.dialog.open(QJe,{width:"720px",disableClose:o?o.disableClose:null,data:{message:r,title:i,confirmButtonText:o?o.confirmButtonText:null,confirmButtonColor:o?o.confirmButtonColor:null,confirmButtonMatIcon:o?o.confirmButtonMatIcon:null,cancelButtonText:o?o.cancelButtonText:null,cancelButtonColor:o?o.cancelButtonColor:null,cancelButtonMatIcon:o?o.cancelButtonMatIcon:null,useMessageAsHtml:o?o.useMessageAsHtml:null,disableClose:o?o.disableClose:null}}).afterClosed().toPromise()}confirmWithCheckbox(e,i,r,o){let a,s;return typeof e=="string"?(a=e,s=null):(s=e,a=s.message,o=s.title,i=s.checkboxMessage,r=s.checkboxInitalState),this.dialog.open(JJe,{width:"720px",disableClose:s?s.disableClose:null,data:{message:a,title:o,confirmButtonText:s?s.confirmButtonText:null,confirmButtonColor:s?s.confirmButtonColor:null,confirmButtonMatIcon:s?s.confirmButtonMatIcon:null,cancelButtonText:s?s.cancelButtonText:null,cancelButtonColor:s?s.cancelButtonColor:null,cancelButtonMatIcon:s?s.cancelButtonMatIcon:null,useMessageAsHtml:s?s.useMessageAsHtml:null,requireCheckToConfirm:s?s.requireCheckToConfirm:null,checkboxMessage:i,checkboxInitalState:r,disableClose:s?s.disableClose:null}}).afterClosed().toPromise()}alert(e,i,r,o){return this.dialog.open(eet,{width:"600px",disableClose:o,data:{message:e,title:i,useMessageAsHtml:r,disableClose:o}}).afterClosed().toPromise()}showValue(e,i){return this.dialog.open(tet,{disableClose:i?i.disableClose:null,data:{value:e,title:i?i.title:null,message:i?i.message:null,footer:i?i.footer:null,disableClose:i?i.disableClose:null}}).afterClosed().toPromise()}subSelector(e,i=!1,r){return this.dialog.open(ZJe,{width:"600px",disableClose:r,data:{subscriptions:e,includeRoot:i,disableClose:r}}).afterClosed().toPromise()}showValidation(e,i){return this.dialog.open(iet,{disableClose:i,data:{model:e,disableClose:i}}).afterClosed().toPromise()}showMobileAuthorizationRequired(){return this.dialog.open(net,{disableClose:!0})}openFile(e,i,r){return this.dialog.open(ret,{width:"960px",disableClose:r,data:{files:e,index:i,disableClose:r}}).afterClosed().toPromise()}showAllErrors(e,i,r){return this.dialog.open(Y0e,{width:"500px",disableClose:r,data:{title:i,errorMessages:e,disableClose:r}}).afterClosed().toPromise()}rootLogin(e){return this.dialog.open(oet,{width:"500px",disableClose:e?e.disableClose:null,data:{title:e?e.title:null,message:e?e.message:null,useMessageAsHtml:e?e.useMessageAsHtml:null,disableClose:e?e.disableClose:null,navigateHomeIfCancelled:e?e.navigateHomeIfCancelled:null,reloadOnSuccess:e?e.reloadOnSuccess:null}}).afterClosed()}openLanguageSelector(e){return this.dialog.open(det,{width:"500px",disableClose:e?e.disableClose:null,data:{title:e?e.title:null,message:e?e.message:null,useMessageAsHtml:e?e.useMessageAsHtml:null,disableClose:e?e.disableClose:null}}).afterClosed()}showEvent(e){return this.dialog.open(met,{width:"1000px",data:e}).afterClosed().toPromise()}confirmWithReason(e,i){let r;return typeof e=="string"?r={message:e,title:i}:r=e,this.dialog.open(pet,{width:"720px",disableClose:r.disableClose??!1,data:r,autoFocus:!1}).afterClosed().toPromise()}static{this.\u0275fac=function(i){return new(i||t)(ae(Dn),ae(ur))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),het=(()=>{class t{constructor(e,i,r,o){this.spaControl=e,this.http=i,this.dialogService=r,this.transloco=o,this.loading=!1}ngOnInit(){this.userName=this.spaControl.userProfile.name,this.siteName=Ye.siteName}claimAccess(e){if(!e){this.dialogService.alert(this.transloco.translate("components.no-access.copy-access-code-and-paste-above"),this.transloco.translate("components.no-access.fill-in-access-code"));return}this.loading=!0,this.spaControl.claimAccess(e).catch(i=>{this.loading=!1,this.dialogService.alert(i)})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(sn),E(Qi),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-no-access"]],decls:1,vars:0,consts:[["claimCodeInput",""],[4,"transloco"],[3,"show"],["type","text"],["type","button",3,"click"],["mat-flat-button","","color","primary",3,"routerLink"]],template:function(i,r){i&1&&k(0,QKe,16,15,"div",1)},dependencies:[Ze,li,Fn,gn]})}}return t})(),fet=(()=>{class t{constructor(e){this.spaControl=e}ngOnInit(){this.siteName=Ye.siteName}signIn(){this.spaControl.startLogin()}static{this.\u0275fac=function(i){return new(i||t)(E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-sign-in"]],decls:1,vars:0,consts:[[4,"transloco"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){i&1&&k(0,ZKe,7,5,"div",0)},dependencies:[Ze,Fn]})}}return t})(),get=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-sign-out"]],decls:1,vars:0,consts:[[4,"transloco"]],template:function(i,r){i&1&&k(0,JKe,2,1,"p",0)},dependencies:[Fn]})}}return t})(),_et=(()=>{class t{constructor(){}ngOnInit(){}tryAgain(){localStorage.clear(),sessionStorage.clear(),location.reload()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-private-area-unavailable"]],decls:1,vars:0,consts:[[4,"transloco"],["href","#",3,"click"]],template:function(i,r){i&1&&k(0,eXe,5,2,"div",0)},dependencies:[Fn]})}}return t})(),QQ=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-dummy"]],decls:1,vars:0,template:function(i,r){i&1&&h(0,` . `)}})}}return t})();var Q0e=(()=>{class t{get initialized(){return this._initialized}get appInsights(){return this.ensureInitialized(),this._appInsights}constructor(e){this.logger=e,this._initialized=!1}init(e){e?(this.logger.logInformation("ApplicationInsightsService -- initializing Azure Application Insights"),this._appInsights=new xQ({config:{connectionString:e,enableAutoRouteTracking:!0}}),this._appInsights.loadAppInsights(),this._initialized=!0,this.logger.logInformation("ApplicationInsightsService -- Azure Application Insights initialized: ",this._appInsights)):this.logger.logInformation("ApplicationInsightsService -- Azure Application Insights was not initialized, because no instrumentation key was passed")}ensureInitialized(){if(!this._initialized)throw"ApplicationInsights has not been initialized yet"}static{this.\u0275fac=function(i){return new(i||t)(ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Z0e=(()=>{class t{get initialized(){return this._initialized}get ga(){return this.ensureInitialized(),ga}constructor(e){this.logger=e,this._initialized=!1}emitEvent(e,i,r=null,o=null){this.ensureInitialized(),typeof ga=="function"&&ga("send","event",{eventCategory:e,eventLabel:r,eventAction:i,eventValue:o})}init(e){if(e){this.logger.logInformation("GoogleAnalyticsService -- initializing Google Analytics");try{let i=document.createElement("script");i.src="/assets/js/ga.js?trackingId="+e,document.head.appendChild(i),this._initialized=!0,this.logger.logInformation("GoogleAnalyticsService -- Google Analytics initialized")}catch(i){this.logger.logError("GoogleAnalyticsService -- error while initializing Google Analytics",i)}}else this.logger.logInformation("GoogleAnalyticsService -- Google Analytics was not initialized, because no tracking id was passed")}ensureInitialized(){if(!this._initialized)throw"Google Analytics has not been initialized yet"}static{this.\u0275fac=function(i){return new(i||t)(ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tM=(()=>{class t{constructor(e,i,r,o,a,s){this.logger=e,this.http=i,this.spaControl=r,this.appInsightsService=o,this.googleAnalyticsService=a,this.asyncSpaInit=s,this.initError=null}init(){return new Promise(e=>{this.logger.logDebug("StartupService -- fetching configuration"),this.getConfig().then(i=>{this.logger.logInformation("StartupService -- configuration fetched: ",i),Ye.initialize(i),this.appInsightsService.init(i.appInsightsConnectionString),this.googleAnalyticsService.init(i.googleAnalyticsTrackingId),window.pdfWorkerSrc=`${i.cdnUrl||"/"}assets/js/pdf.worker-4.6.82.mjs`,this.asyncSpaInit?(this.spaControl.init(),e(null)):this.spaControl.init().then(e)},i=>{this.logger.logCritical("StartupService -- error fetching application configuration: ",i),this.initError=i,e(null)})})}getConfig(){return this.http.get("/api/configuration").toPromise()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn),ae(di),ae(Q0e),ae(Z0e),ae(oZ))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),vet=(()=>{class t{constructor(e,i,r,o){this.logger=e,this.spaApiHeadersService=i,this.transloco=r,this.onApiError=o}intercept(e,i){if(!e.url.startsWith("/api/"))return i.handle(e);let r={};return r["accept-language"]=this.transloco.getActiveLang(),this.spaApiHeadersService.apiHeaders&&Object.keys(this.spaApiHeadersService.apiHeaders).forEach(o=>{e.headers.has(o)||(r[o]=this.spaApiHeadersService.apiHeaders[o])}),e=e.clone({setHeaders:r}),i.handle(e).pipe(Ma((o,a)=>(this.logger.logTrace("HttpInterceptService -- Caught error",o),this.onApiError&&o instanceof l0?(this.logger.logTrace("HttpInterceptService -- HttpErrorResponse on ApiError"),this.onApiError(o,e,i)):(this.logger.logTrace("HttpInterceptService -- _throw"),Os(o)))))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(q0e),ae(ur),ae(U0e,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bet=(()=>{class t{constructor(e){this.interceptService=e}intercept(e,i){return this.interceptService.intercept(e,i)}static{this.\u0275fac=function(i){return new(i||t)(ae(vet))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ro=(()=>{class t{get activatedNamedRoutesSnapshot(){return new J5(this.activatedNamedRoutesSubject.value)}get currentUrlSnapshot(){return this.currentUrlSubject.value}get currentPathToMatchSnapshot(){return this.currentPathToMatchSubject.value}constructor(e,i){this.logger=e,this.router=i,this.$toUnsubscribe=[],this.activatedNamedRoutesSubject=new Tr([]),this.activatedNamedRoutes=this.activatedNamedRoutesSubject.asObservable().pipe(st(r=>new J5(r))),this.currentUrlSubject=new Tr(""),this.currentUrl=this.currentUrlSubject.asObservable(),this.currentPathToMatchSubject=new Tr(""),this.currentPathToMatch=this.currentPathToMatchSubject.asObservable(),this.$toUnsubscribe.push(this.router.events.pipe(vi(r=>r instanceof Ld),Ls(),st(()=>this.setUpNamedRoutesAndUpdateCurrentUrls(this.router.routerState.root))).subscribe(this.activatedNamedRoutesSubject))}setUpNamedRoutesAndUpdateCurrentUrls(e,i="",r=[],o=""){let a=i,s=o,l="",u=null,p=r;for(let g of e.snapshot.url)l+=`/${g.path}`;return a=i+`${l}`,e.routeConfig&&e.routeConfig.path&&(s=o+`/${e.routeConfig.path}`),e.routeConfig&&e.routeConfig.data&&e.routeConfig.data.routeName&&(u={name:e.routeConfig.data.routeName,branchRoot:!!e.routeConfig.data.branchRoot,displayName:null,url:a||"/",pathToMatch:s||"/",activatedRoute:e},(e.routeConfig.data.displayName||e.routeConfig.resolve&&e.routeConfig.resolve.displayName)&&(u.displayName=e.snapshot.data.displayName),p.push(u)),e.firstChild?this.setUpNamedRoutesAndUpdateCurrentUrls(e.firstChild,a,p,s):(this.currentUrlSubject.next(a||"/"),this.currentPathToMatchSubject.next(s||"/"),p)}ngOnDestroy(){this.logger.logTrace("RouteHelperService ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),J5=class{constructor(n){this.activatedRoutes=n}isInRoute(n){return this.activatedRoutes.some(e=>e.name==n)}findNamedRoute(n){return this.activatedRoutes.find(e=>e.name==n)}getSubManagementRouteUrl(){let n=this.findNamedRoute("Sub");if(n){let e=n.activatedRoute.routeConfig;if(this.isManagementRoute(e))return n.url;for(let i of e.children)if(this.isManagementRoute(i))return`${n.url}/${i.path}`}return null}isManagementRoute(n){if(n.children){let e=n.children.map(i=>i.path);if(e.includes("users")&&e.includes("applications")&&e.includes("events"))return!0}return!1}},fZ=(()=>{class t{constructor(e,i,r){this.router=e,this.logger=i,this.routeHelper=r,this.subManagementRouteUrl=null,this.inSysAdmin=!1,this.routeHelper.activatedNamedRoutes.subscribe(o=>{this.inSysAdmin=o.isInRoute("SysAdmin"),this.subManagementRouteUrl=o.getSubManagementRouteUrl()})}navigate(e,i){if(!this.inSysAdmin&&this.subManagementRouteUrl==null){this.logger.logError("InternalEntityNavigationService -- could not locate management route, cancelling entity navigation");return}let r=this.inSysAdmin?"/private/sysadmin":this.subManagementRouteUrl,o=null;switch(e){case"Subscription":o=`/private/sysadmin/subscriptions/${i}`;break;case"User":o=`${r}/users/${i}`;break;case"Invite":o=`${r}/users/invites/${i}`;break;case"Application":o=`${r}/applications/${i}`;break}o!=null?(this.logger.logTrace(`SpaEntityNavigationService -- navigating to entity '${e}': '${o}'`),this.router.navigateByUrl(o)):this.logger.logWarning(`SpaEntityNavigationService -- could not navigate to entity '${e}'`)}static{this.\u0275fac=function(i){return new(i||t)(ae(lt),ae($t),ae(ro))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yet=(()=>{class t{constructor(){}ngOnInit(){}tryAgain(){localStorage.clear(),sessionStorage.clear(),location.reload()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-service-unavailable"]],decls:1,vars:0,consts:[[4,"transloco"],["href","#",3,"click"]],template:function(i,r){i&1&&k(0,tXe,5,2,"div",0)},dependencies:[Fn]})}}return t})(),Zo=(()=>{class t{transform(e,i){return typeof e=="string"&&/^\d{11}$/.exec(e)?e.substring(0,3)+"."+e.substring(3,6)+"."+e.substring(6,9)+"-"+e.substring(9):e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"cpf",type:t,pure:!0})}}return t})(),Wp=(()=>{class t{constructor(e,i){this.getRoleName=e,this.transloco=i}getRoleFullName(e,i){let r;return this.getRoleName&&(r=this.getRoleName(e))?r:i&&i[e]||e}transform(e,i){let r=Array.isArray(this.transloco.config.fallbackLang)?this.transloco.config.fallbackLang[0]:this.transloco.config.fallbackLang,o=this.transloco.translateObject("enums.roles")||this.transloco.translateObject("enums.roles",{},r);return e instanceof Array?e.map(s=>this.getRoleFullName(s,o)).join(", "):typeof e=="string"?this.getRoleFullName(e,o):""}static{this.\u0275fac=function(i){return new(i||t)(E(z0e,24),E(ur,16))}}static{this.\u0275pipe=oi({name:"roles",type:t,pure:!0})}}return t})(),xet="--",Cet=1e4,J0e=(()=>{class t{constructor(){this.logger=Me($t),this.component=null,this.lastPromise=null}registerComponent(e){this.logger.logInformation("Captcha component registered",e),this.component=e,xoe()&&(window.runCaptchaTest=this.runTest.bind(this))}runTest(){this.showCaptcha(0)}showCaptcha(e){console.log("### running captcha",e),this.executeAsync(()=>{}).then(i=>{console.log("### response",i),e<100&&this.showCaptcha(e+1)},i=>{console.log("### error",i)})}unregisterComponent(e){this.logger.logInformation("Captcha component unregistered (this is not expected)",e),this.component===e&&(this.component=null)}notifyResolved(e){if(!e){this.logger.logDebug("Ignored empty captcha code");return}if(!this.lastPromise){this.logger.logWarning("Captcha code received without a corresponding outstanding request",e);return}this.logger.logInformation(`Completing last request with code ${e}`),this.lastPromise.resolve(e),this.clearLastRequest()}executeAsync(e){return new Promise((i,r)=>{Ye.captcha.enabled||i(xet),this.lastPromise&&(this.logger.logInformation("Rejecting last request"),this.lastPromise.reject(new Error("A new captcha validation request was issued without this one being completed (this usually means the user silently gave up and is trying again)")),this.clearLastRequest()),this.lastPromise={resolve:i,reject:r},this.lastTimeout=window.setTimeout(()=>e(),Cet),this.component.reset(),this.component.execute()})}execute(){return new mn(e=>{this.executeAsync(()=>e.next(null)).then(i=>{e.next(i),e.complete()}).catch(()=>{e.next(null),e.complete()})})}clearLastRequest(){this.lastTimeout&&(window.clearTimeout(this.lastTimeout),this.lastTimeout=0),this.lastPromise=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),gZ=(()=>{class t{constructor(){this.translocoService=Me(ur)}static{this.loadPromise=null}static{this.loaded=!1}loadScript(){return t.loaded?Promise.resolve():(t.loadPromise||(t.loadPromise=new Promise((e,i)=>{window.captchaloadedcallback=()=>{t.loaded=!0,e()};let r=new URL(this.url);r.searchParams.set("onload","captchaloadedcallback");let o=document.createElement("script");o.src=r.href,o.async=!0,o.defer=!0,o.onerror=a=>{t.loadPromise=null,i(a)},document.head.appendChild(o)})),t.loadPromise)}}return t})(),wet=(()=>{class t extends gZ{constructor(){super(...arguments),this.logger=Me($t),this.name="hcaptcha",this.url="https://js.hcaptcha.com/1/api.js?render=explicit"}render(e,i){return(i?.invisible??!0)&&(i.size="invisible"),i.hl=this.translocoService.getActiveLang(),window.hcaptcha.render(e,i)}execute(e){this.ensureCaptchaWidget(),window.hcaptcha.execute(e)}reset(e){this.ensureCaptchaWidget(),window.hcaptcha.reset(e)}getResponse(e){return this.ensureCaptchaWidget(),window.hcaptcha.getResponse(e)}ensureCaptchaWidget(){if(!window.hcaptcha){this.logger.logError("hcaptcha is not available. Make sure the hcaptcha script is loaded properly.");return}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Eet=(()=>{class t extends gZ{constructor(){super(...arguments),this.logger=Me($t),this.backdropElement=null,this.name="turnstile",this.url="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha"}render(e,i){return(i?.invisible??!0)&&this.configureInvisibleCaptcha(e,i),i.language=this.translocoService.getActiveLang(),window.turnstile.render(e,i)}execute(e){this.ensureCaptchaWidget(),window.turnstile.execute(e)}reset(e){this.ensureCaptchaWidget(),window.turnstile.reset(e)}getResponse(e){return this.ensureCaptchaWidget(),window.turnstile.getResponse(e)}configureInvisibleCaptcha(e,i){i.execution="execute",i.appearance="interaction-only",i["response-field"]=!1,i["before-interactive-callback"]=()=>{e.style.display="block",this.showBackdrop(e)},i["after-interactive-callback"]=()=>{this.removeExistingBackdrop()};let r=i.callback;i.callback=o=>{e.style.display="none",r&&r(o)}}showBackdrop(e){this.removeExistingBackdrop(),this.createBackdrop(),this.positionCaptchaContainer(e)}removeExistingBackdrop(){this.backdropElement?.parentNode&&(this.backdropElement.parentNode.removeChild(this.backdropElement),this.backdropElement=null)}createBackdrop(){this.backdropElement=document.createElement("div");let e={position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(4px)",zIndex:"2000"};Object.assign(this.backdropElement.style,e),document.body.appendChild(this.backdropElement)}positionCaptchaContainer(e){let i={position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:"2001"};Object.assign(e.style,i)}ensureCaptchaWidget(){if(!window.turnstile){this.logger.logError("turnstile is not available. Make sure the turnstile script is loaded properly.");return}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Iet=(()=>{class t extends gZ{constructor(){super(...arguments),this.logger=Me($t),this.name="recaptcha",this.url="https://www.google.com/recaptcha/api.js?trustedtypes=true&render=explicit"}render(e,i){return(i?.invisible??!0)&&(i.size="invisible"),i.hl=this.translocoService.getActiveLang(),window.grecaptcha.render(e,i)}execute(e){this.ensureCaptchaWidget(),window.grecaptcha.execute(e)}reset(e){this.ensureCaptchaWidget(),window.grecaptcha.reset(e)}getResponse(e){return this.ensureCaptchaWidget(),window.grecaptcha.getResponse(e)}ensureCaptchaWidget(){if(!window.grecaptcha){this.logger.logError("grecaptcha is not available. Make sure the reCAPTCHA script is loaded properly.");return}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Det=(()=>{class t{constructor(){this.zone=Me(ht),this.logger=Me($t),this.injector=Me(ao),this.captchaService=Me(J0e),this.elementRef=Me(Xe),this.invisibleEnabled=Me(cZ),this.config=Ye.captcha,this.id=`captcha-${this.randomId()}`,this.resolved=PP(),this.errored=PP(),this.expired=PP(),this.widgetId=null,this.executeRequested=!1}ngOnInit(){if(!this.config.enabled){this.logger.logInformation("Captcha is disabled");return}this.provider=this.getCaptchaProvider(this.config.provider,this.injector),this.provider.loadScript().then(()=>{this.renderCaptcha()},e=>{this.logger.logError(`Failed to load ${this.provider.name} script`,e)})}execute(){if(!this.invisibleEnabled){this.logger.logDebug("CaptchaComponent -- calling the execute method on a non-invisible component is not allowed");return}if(this.widgetId==null){this.logger.logDebug("CaptchaComponent -- execute requested but widget not loaded, postponing execution"),this.executeRequested=!0;return}this.logger.logDebug("CaptchaComponent -- executing",this.widgetId),this.provider.execute(this.widgetId)}reset(){this.widgetId!=null?(this.logger.logDebug("CaptchaComponent -- resetting",this.widgetId),this.provider.getResponse(this.widgetId)&&this.resolved.emit(null),this.captchaReset()):this.logger.logDebug("CaptchaComponent -- ignoring reset request since widget is not loaded")}renderCaptcha(){let e={sitekey:this.config.siteKey,callback:i=>this.zone.run(()=>this.resolvedCallback(i)),"expired-callback":()=>this.zone.run(()=>this.expiredCallback()),"error-callback":i=>this.zone.run(()=>this.errorCallback(i)),invisible:this.invisibleEnabled};this.widgetId=this.provider.render(this.elementRef.nativeElement,e),this.captchaService.registerComponent(this),this.executeRequested&&(this.logger.logDebug("CaptchaComponent -- honoring previous execution request"),this.executeRequested=!1,this.execute())}resolvedCallback(e){this.resolved.emit(e),this.captchaService.notifyResolved(e)}expiredCallback(){this.logger.logDebug("CaptchaComponent -- expired callback",this.widgetId),this.expired.emit()}errorCallback(e){this.logger.logDebug("CaptchaComponent -- error callback",this.widgetId,e),this.errored.emit(e)}captchaReset(){this.widgetId!=null&&this.zone.runOutsideAngular(()=>this.provider.reset(this.widgetId))}getCaptchaProvider(e,i){switch(e){case Q5.HCaptcha:return i.get(wet);case Q5.Turnstile:return i.get(Eet);case Q5.Recaptcha:default:return i.get(Iet)}}randomId(e=6,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){return Array.from({length:e},()=>i.charAt(Math.floor(Math.random()*i.length))).join("")}ngOnDestroy(){this.captchaService.unregisterComponent(this),this.captchaReset()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-captcha"]],hostVars:1,hostBindings:function(i,r){i&2&&xt("id",r.id)},outputs:{resolved:"resolved",errored:"errored",expired:"expired"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})(),e_e=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.router=e,this.logger=i,this.spaControl=r,this.routeHelper=o,this.googleAnalyticsService=a,this.spaLanguage=s,this.languageRouteEnabled=l,this.asyncInit=u,this.useInvisibleCaptcha=Me(cZ),this.loading=!1}ngOnInit(){this.asyncInit||(this.loading=!0),this.trackSpaPagesOnAnalytics(),this.languageRouteEnabled&&this.watchLanguageOnRoutes(),this.spaControl.initialized.subscribe(e=>{let i=this.spaControl.tryPopReturnUrl();i&&(this.logger.logInformation("RootComponent -- found return url from oAuth state, redirecting to",i),this.router.navigateByUrl(i).then(r=>this.logger.logInformation("RootComponent -- navigation to returnUrl succeeded: ",r),r=>this.logger.logError("RootComponent -- an error occurred while navigating to returnUrl.",r))),this.loading=!1})}trackSpaPagesOnAnalytics(){this.googleAnalyticsService.initialized&&(this.logger.logInformation("RootComponent -- setting Google Analytics to track SPA pages"),this.routeHelper.currentPathToMatch.subscribe(e=>{try{typeof this.googleAnalyticsService.ga=="function"&&(this.googleAnalyticsService.ga("set","page",e),this.googleAnalyticsService.ga("send","pageview"))}catch(i){this.logger.logError("RootComponent -- error while tracking page on Google Analytics",i)}}))}watchLanguageOnRoutes(){this.router.events.pipe(vi(e=>e instanceof Fh||e instanceof Rh||e instanceof Ld)).subscribe(e=>{let i=this.spaLanguage.parseLanguageFromUrl(e.url);if(e instanceof Fh)if(i.found){let r=i.language;if(this.spaLanguage.isLanguageAvailable(r))this.spaLanguage.setTemporarilyLanguageFromNavigation(r,e.id),this.logger.logInformation(`RootComponent -- keeping navigation, since language "${r}" is valid and available`);else{let o=this.spaLanguage.guessLanguage(!0),a=this.spaLanguage.generateUrlWithLangSegment(i.urlWithoutLanguageSegment,o);this.logger.logInformation(`RootComponent -- since language "${r}" is not available, language "${o}" will be used. Navigating to "${a}"`),this.router.navigateByUrl(a)}}else{let r=this.spaLanguage.generateUrlWithLangSegment(e.url,this.spaLanguage.guessLanguage());this.logger.logInformation(`RootComponent -- added heading language segment, navigating to "${r}"`),this.router.navigateByUrl(r)}else if(e instanceof Rh)this.spaLanguage.rollbackLanguageFromNavigation(e.id);else if(e instanceof Ld&&i.found){let r=i.language;this.spaLanguage.commitLanguageFromNavigation(r,e.id)}})}static{this.\u0275fac=function(i){return new(i||t)(E(lt),E($t),E(di),E(ro),E(Z0e),E(Nb),E(nB),E(oZ))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-root"]],decls:4,vars:2,consts:[[3,"show"],["class","captcha",4,"ngIf"],[1,"captcha"]],template:function(i,r){i&1&&(d(0,"div"),H(1,"ngx-loading",0)(2,"router-outlet"),c(),k(3,iXe,1,0,"spa-captcha",1)),i&2&&(m(),f("show",r.loading),m(2),f("ngIf",r.useInvisibleCaptcha))},dependencies:[Ee,li,_n,Det],styles:[".captcha[_ngcontent-%COMP%]{position:absolute;z-index:2}"]})}}return t})();var ZE=(()=>{class t{constructor(e,i){this.logger=e,this.http=i,this.changedSubject=new qe,this.changed=this.changedSubject.asObservable()}getUserSubscriptionRoles(e,i){return this.http.get(`/api/users/${e}`,{headers:new bs().set(Ye.subscriptionHeader,i)}).pipe(st(r=>i===Ye.subscriptionRoot?r.rootRoles:r.subscriptions.filter(o=>o.subscriptionId===i)[0]))}updateSubscriptionRoles(e,i,r){return this.http.put(e===Ye.subscriptionRoot?`/api/authorized-root-agents/${i}`:`/api/authorized-agents/${i}`,r,{headers:new bs().set(Ye.subscriptionHeader,e)}).pipe(ri(()=>{this.notifyChanged()}))}getUserPermissionsOnSubscription(e){let i={};return i[Ye.subscriptionHeader]=e,this.http.get("/api/profile/permissions",{headers:i})}notifyChanged(){this.logger.logTrace("AuthManagementService -- notifying change"),this.changedSubject.next(null)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zx=(()=>{class t{constructor(e,i,r,o){this.logger=e,this.http=i,this.spaControl=r,this.authManager=o,this.$subscriptions=[],this.changedSubject=new qe,this.cache=[],this.changed=this.changedSubject.asObservable(),this.$subscriptions.push(this.spaControl.selectedSubscription.subscribe(()=>{this.logger.logTrace("EventService -- emitting change notification due to subscription change"),this.changedSubject.next(null)}))}listPaginated(e){return this.http.get("/api/events",{params:e.getHttpParams()}).pipe(ri(i=>{this.cache=i.items}))}ngOnDestroy(){this.logger.logTrace("EventService ngOnDestroy");for(let e of this.$subscriptions)e.unsubscribe()}getServiceForApplicationEvents(e){return new eB(`/api/applications/${e}/events`,this.http)}getServiceForApplicationActions(e){return new tB(`/api/applications/${e}/actions`,this.http)}getServiceForUserEvents(e){return new eB(`/api/users/${e}/events`,this.http)}getServiceForUserActions(e){return new tB(`/api/users/${e}/actions`,this.http)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn),ae(di),ae(ZE))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),eB=class{constructor(n,e){this.apiRoute=n,this.http=e}list(){return this.http.get(this.apiRoute)}},tB=class{constructor(n,e){this.apiRoute=n,this.http=e}listPaginated(n){return this.http.get(this.apiRoute,{params:n.getHttpParams()})}},un=(()=>{class t{constructor(){this.loading=!1}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-box"]],inputs:{loading:"loading"},ngContentSelectors:rXe,decls:12,vars:1,consts:[[1,"box-light"],[3,"show"],[1,"component-title"],[1,"mb-2"]],template:function(i,r){i&1&&(hi(nXe),d(0,"div",0),H(1,"ngx-loading",1),d(2,"h1",2)(3,"mat-icon"),h(4,"keyboard_arrow_right"),c(),ct(5),c(),d(6,"h4"),ct(7,1),c(),H(8,"mat-divider",3),d(9,"div"),ct(10,2),c(),ct(11,3),c()),i&2&&(m(),f("show",r.loading))},dependencies:[He,kc,li]})}}return t})(),Tet=(()=>{class t{constructor(e){this.entityTypePipe=e,this.ENTITY_NOT_FOUND=mZ,this.show=new Ae}ngOnInit(){this.entityWithId=`${this.entityTypePipe.transform(this.event.entityType)} ${this.event.entityId} `}onClick(){this.show.emit(null)}static{this.\u0275fac=function(i){return new(i||t)(E(hZ))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-event-entity-cell"]],inputs:{event:"event",name:"name"},outputs:{show:"show"},decls:1,vars:0,consts:[[4,"transloco"],["class","d-flex align-items-center",3,"matTooltip",4,"ngIf"],[1,"d-flex","align-items-center",3,"matTooltip"],[1,"me-2","text-accent"],["href","#",3,"click"]],template:function(i,r){i&1&&k(0,cXe,4,3,"div",0)},dependencies:[Ee,He,yi,Fn,uZ]})}}return t})(),Ux=(()=>{class t{get columnsToDisplay(){let e=["date","operation"];return this.hideEntities||e.push("entity"),this.hideAgents||e.push("agent"),this.showSubscriptions&&e.push("subscription"),e}constructor(e,i,r,o,a){this.dialogService=e,this.agentLookupService=i,this.transloco=r,this.entityNavigationService=o,this.eventViewer=a}ngOnInit(){}showDetails(e){this.eventViewer.show(e)}navigateToAgent(e){this.agentLookupService.get(e.agentId).subscribe(i=>{this.entityNavigationService.navigate(i.type=="User"?"User":"Application",i.id)})}navigateToEntity(e){e.entityId!==Ye.subscriptionRoot&&this.entityNavigationService.navigate(e.entityType,e.entityId)}static{this.\u0275fac=function(i){return new(i||t)(E(Qi),E(K0e),E(ur),E(V0e),E(B0e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-event-list"]],inputs:{dataSource:"dataSource",showSubscriptions:[ve.HasDecoratorInputTransform,"showSubscriptions","showSubscriptions",Sn],hideEntities:[ve.HasDecoratorInputTransform,"hideEntities","hideEntities",Sn],hideAgents:[ve.HasDecoratorInputTransform,"hideAgents","hideAgents",Sn],disablePagination:[ve.HasDecoratorInputTransform,"disablePagination","disablePagination",Sn]},features:[Ei],decls:1,vars:0,consts:[["matSort","","matSortActive","date","matSortDirection","desc","disableSearch","",3,"dataSource","disablePagination",4,"transloco"],["matSort","","matSortActive","date","matSortDirection","desc","disableSearch","",3,"dataSource","disablePagination"],["matColumnDef","date"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","operation"],[4,"matHeaderCellDef"],["matColumnDef","entity"],["matColumnDef","agent"],["matColumnDef","subscription"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[3,"click","routerLink"],[3,"show","event","name"],["href","#",3,"click",4,"ngIf"],["href","#",3,"click"]],template:function(i,r){i&1&&k(0,wXe,18,4,"lac-table",0)},dependencies:[Ee,zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,Lr,dr,Fn,gn,Tet,Ea,dZ,pZ,Hx,sf,QE]})}}return t})(),Aet=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.eventService=r,this.logger=o}ngOnInit(){let e=this.route.parent.snapshot.params.id;this.logger.logTrace("ApplicationActionsComponent ngOnInit -- appId:",e),this.dataSource=this.eventService.getServiceForApplicationActions(e)}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(zx),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-actions"]],decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["hideAgents","",3,"dataSource"]],template:function(i,r){i&1&&k(0,EXe,4,3,"spa-box",0)},dependencies:[Fn,un,Ux]})}}return t})(),qE="/api/applications",iM=(()=>{class t{constructor(e,i,r,o){this.logger=e,this.http=i,this.spaControl=r,this.authManager=o,this.$subscriptions=[],this.changedSubject=new qe,this.changed=this.changedSubject.asObservable(),this.$subscriptions.push(this.spaControl.selectedSubscription.subscribe(()=>{this.logger.logTrace("ApplicationService -- emitting change notification due to subscription change"),this.changedSubject.next(null)}))}listPaginated(e){return e.orderBy!=="name"?Os(`Ordering field not supported: ${e.orderBy}`):this.http.get(qE,{params:e.getHttpParams()})}list(e){return this.http.get(`${qE}?q=${e||""}`)}get(e){return this.http.get(`${qE}/${e}`)}create(e,i){let r={};return r[Ye.subscriptionHeader]=e,this.http.post(qE,i,{headers:r}).pipe(ri(o=>{this.notifyChanged(o.id)}))}checkNameAvailable(e,i,r){let o={};return o[Ye.subscriptionHeader]=e,this.http.get(`${qE}/name-availability`,{headers:o,params:{name:i}})}updateSubscriptionAccess(e,i,r){return this.authManager.updateSubscriptionRoles(e,i,r).pipe(ri(o=>{this.notifyChanged(i)}))}delete(e){return this.http.delete(`${qE}/${e}`).pipe(ri(i=>{this.notifyChanged(e)}))}notifyChanged(e){this.logger.logTrace("ApplicationService -- notifying change",e),this.changedSubject.next(e)}ngOnDestroy(){this.logger.logTrace("ApplicationService ngOnDestroy");for(let e of this.$subscriptions)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn),ae(di),ae(ZE))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Vx="/api/users",JE=(()=>{class t{constructor(e,i,r,o){this.logger=e,this.http=i,this.spaControl=r,this.authManagementService=o,this.$subscriptions=[],this.changedSubject=new qe,this.changed=this.changedSubject.asObservable(),this.$subscriptions.push(this.spaControl.selectedSubscription.subscribe(()=>{this.logger.logTrace("UserService -- emitting change notification due to subscription change"),this.changedSubject.next(null)})),this.$subscriptions.push(this.authManagementService.changed.subscribe(()=>{this.logger.logTrace("UserService -- emitting change notification due to change on auth management"),this.changedSubject.next(null)}))}create(e,i){let r={};return r[Ye.subscriptionHeader]=e,this.http.post(Vx,i,{headers:r}).pipe(ri(o=>{this.notifyChanged(o.id)}))}list(e,i){let r=new Ud;r.limit=50,r.offset=0,r.order="Asc",r.searchTerm=e;let o=r.getHttpParams();return o=o.append("global",String(i)),this.http.get(Vx,{params:o}).pipe(st(a=>a.items))}listPaginated(e){return this.http.get(Vx,{params:e.getHttpParams()})}listTopGlobalUsers(e,i=10){return this.http.get(`${Vx}/top-global`,{params:new $a({fromObject:{q:e,limit:i.toString()}})})}get(e){return this.http.get(`${Vx}/${e}`)}getFromParent(e){return this.http.get(`${Vx}/parent/${e}`)}notifyChanged(e){this.logger.logTrace("UserService -- notifying change",e),this.changedSubject.next(e)}update(e,i,r){let o={};return r&&(o[Ye.subscriptionHeader]=r),this.http.put(`${Vx}/${e}`,i,{headers:o}).pipe(ri(a=>this.notifyChanged(e)))}getUserPermissionsOnSubscription(e,i){return this.http.get(`/api/users/${e}/permissions`,{headers:new bs().set(Ye.subscriptionHeader,i)})}ngOnDestroy(){this.logger.logTrace("UserService ngOnDestroy");for(let e of this.$subscriptions)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn),ae(di),ae(ZE))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ket="/api/agents",t_e=(()=>{class t{constructor(e,i,r,o,a){this.http=e,this.userService=i,this.applicationService=r,this.dialogService=o,this.messageService=a}confirmAndUpdateLockStatus(e){return Mt(this,null,function*(){let i=yield this.dialogService.confirmWithReason({message:e.dialogMessage,confirmButtonText:e.dialogConfirmButtonText,reasonMaxLength:500});if(!i||!i.dialogResult)return;let r={lock:e.lock,description:i.reason};yield $C(this.updateLockStatus(e.id,r,e.type)),this.messageService.showSuccess(e.successMessage)})}updateLockStatus(e,i,r){return this.http.put(`${ket}/${e}/lock-status`,i).pipe(ri(o=>{switch(r){case"Application":this.applicationService.notifyChanged(e);break;case"User":this.userService.notifyChanged(e);break}}))}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(JE),ae(iM),ae(Qi),ae(Bi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Met=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.route=e,this.router=i,this.logger=r,this.appService=o,this.dialogService=a,this.messageService=s,this.spaControl=l,this.transloco=u,this.agentService=p,this.$toUnsubscribe=[],this.loading=!0,this.saving=!1}ngOnInit(){this.logger.logTrace("ApplicationDetailComponent ngOnInit"),this.$toUnsubscribe.push(Cn(this.route.paramMap,this.appService.changed).subscribe(()=>this.load())),this.canManage$=this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents"),this.canViewEvents$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewAgentEvents"),this.canViewActions$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewAgentActions")}isRootSubscription(e){return e===Ye.subscriptionRoot}load(){if(this.deletionRequested)return;let e=this.route.snapshot.params.id;this.logger.logTrace(`ApplicationDetailComponent -- loading application ${e}`),this.loading=!0,this.appService.get(e).subscribe(i=>{this.model=i,this.loading=!1})}delete(){this.dialogService.confirm(this.transloco.translate("components.application-detail.confirm-app-deletion",{value:this.model.name})).then(e=>{e&&(this.saving=!0,this.deletionRequested=!0,this.appService.delete(this.model.id).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.application-detail.app-deleted-successfully")),this.close()},i=>{this.saving=!1,this.deletionRequested=!1}))})}close(){this.router.navigate([".."],{relativeTo:this.route})}lock(){return Mt(this,null,function*(){yield this.agentService.confirmAndUpdateLockStatus({id:this.model.id,lock:!0,type:"Application",dialogMessage:this.transloco.translate("components.application-detail.confirm-lock"),dialogConfirmButtonText:this.transloco.translate("common.lock"),successMessage:this.transloco.translate("components.application-detail.successfully-locked")})})}unlock(){return Mt(this,null,function*(){yield this.agentService.confirmAndUpdateLockStatus({id:this.model.id,lock:!1,type:"Application",dialogMessage:this.transloco.translate("components.application-detail.confirm-unlock"),dialogConfirmButtonText:this.transloco.translate("common.unlock"),successMessage:this.transloco.translate("components.application-detail.successfully-unlocked")})})}ngOnDestroy(){this.logger.logTrace("ApplicationDetailComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(iM),E(Qi),E(Bi),E(di),E(ur),E(t_e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-detail"]],decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title","",4,"ngIf"],["box-commands",""],["mat-stroked-button","","color","warn","type","button",3,"click","disabled"],["mat-stroked-button","","color","warn","type","button",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","routerLink","edit",3,"disabled"],["mat-stroked-button","","color","primary","type","button","routerLink","events",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","routerLink","actions",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","routerLink","keys"],["class","row pt-4",4,"ngIf"],["box-title",""],["mat-stroked-button","","color","primary","type","button","routerLink","events"],["mat-stroked-button","","color","primary","type","button","routerLink","actions"],[1,"row","pt-4"],[1,"col-md","col-12"],[3,"label"],[1,"d-flex","flex-column"],["class","agent-locked",4,"ngIf"],["class","col-md col-12",4,"ngIf"],[4,"ngIf"],[1,"agent-locked"],[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&(k(0,BXe,18,21,"spa-box",0),H(1,"router-outlet"))},dependencies:[Vt,Ee,Ze,Fn,_n,gn,un,wn,Ea,Wp,sf]})}}return t})(),Fet=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.appService=s,this.messageService=l,this.spaControl=u,this.transloco=p,this.listOfRoles=g,this.$toUnsubscribe=[],this.saving=!1,this.loading=!0,this.closing=!1,this.rootSubSelected=!1,this.validateRoles=_=>{let v=_;return v&&!v.value.some(y=>y.enabled)?{selectRole:!0}:null},this.createForm()}get roles(){return this.form.get("roles")}getModelRoles(){return this.rootSubSelected?this.model.rootRoles:this.model.subscriptions.filter(i=>i.subscriptionId===this.model.subscriptionId)[0].roles}clearRoles(){for(;this.roles.controls.length>0;)this.roles.removeAt(0)}createForm(){let e=this.listOfRoles.map(i=>this.fb.group({role:i,enabled:!1}));this.form=this.fb.group({roles:this.fb.array(e,this.validateRoles),grantAppId:[""]})}rebuildForm(){let e=this.spaControl.getSubscriptionRoles(this.model.subscriptionId).map(i=>({role:i,enabled:this.getModelRoles().some(r=>r===i)}));this.clearRoles();for(let i of e)this.roles.push(this.fb.group(i));this.form.patchValue({grantAppId:this.model.grantAppId})}ngOnInit(){this.logger.logTrace("ApplicationEditComponent ngOnInit"),this.route.parent.paramMap.subscribe(e=>{let i=e.get("id");this.logger.logTrace("Application id:",i),this.loading=!0,this.appService.get(i).subscribe(r=>{this.model=r,this.rootSubSelected=this.model.subscriptionId===Ye.subscriptionRoot,this.rebuildForm(),this.loading=!1})})}getErrorMessage(e){let i=this.form.get(e);return this.transloco.translate("errors.field-invalid")}onSubmit(){if(!this.form.valid)return;let e=this.form.value,r={roles:e.roles.filter(o=>o.enabled).map(o=>o.role)};this.rootSubSelected&&(r.grantAppId=e.grantAppId||null),this.saving=!0,this.$toUnsubscribe.push(this.appService.updateSubscriptionAccess(this.model.subscriptionId,this.model.id,r).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.application-edit.app-updated-successfully")),this.closing=!0,this.close()},o=>{this.saving=!1}))}canDeactivate(){if(this.logger.logTrace("ApplicationEditComponent canDeactivate"),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.application-edit.discard-app-changes",{value:this.model.name}))}return!0}discard(){this.dialogService.confirm(this.transloco.translate("components.application-edit.discard-app-changes",{value:this.model.name})).then(e=>{e&&this.rebuildForm()})}close(){this.router.navigate([".."],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("ApplicationEditComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(iM),E(Bi),E(di),E(ur),E(eM))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-edit"]],decls:1,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary","type","submit",3,"click","disabled"],["mat-stroked-button","","color","warn","type","button",3,"click","disabled"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col"],["formArrayName","roles"],[4,"ngIf"],[3,"formGroupName",4,"ngFor","ngForOf"],["class","col",4,"ngIf"],[3,"formGroupName"],["color","primary","formControlName","enabled"],[1,"w-100"],["matInput","","formControlName","grantAppId"]],template:function(i,r){i&1&&k(0,UXe,15,11,"spa-box",0)},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,xs,Au,Wt,bt,jt,Si,Ze,Co,Fn,un,Wp]})}}return t})(),Ret=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.eventService=r,this.logger=o}ngOnInit(){let e=this.route.parent.snapshot.params.id;this.logger.logTrace("ApplicationEventsComponent ngOnInit -- appId:",e),this.dataSource=this.eventService.getServiceForApplicationEvents(e)}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(zx),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-events"]],decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["hideEntities","",3,"dataSource"]],template:function(i,r){i&1&&k(0,GXe,4,3,"spa-box",0)},dependencies:[Fn,un,Ux]})}}return t})(),i_e=(()=>{class t{constructor(e){this.http=e,this.services={}}getService(e){let i=this.services[e];return i||(i=new iZ(e,this.http),this.services[e]=i),i}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),iZ=class{constructor(n,e){this.appId=n,this.http=e,this.changedSubject=new qe,this.changed=this.changedSubject.asObservable()}list(){return this.appId?this.http.get(`/api/applications/${this.appId}/keys`):vt([])}createApiKey(n){return this.http.post(`/api/applications/${this.appId}/api-keys`,n).pipe(ri(e=>this.changedSubject.next(e.info.id)))}delete(n){return this.http.delete(`/api/app-keys/${n}`).pipe(ri(()=>this.changedSubject.next(n)))}},Pet=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.route=e,this.logger=i,this.fb=r,this.spaControl=o,this.appKeyServiceFactory=a,this.router=s,this.messageService=l,this.dialogService=u,this.transloco=p,this.saving=!1,this.closing=!1,this.createForm()}createForm(){this.form=this.fb.group({description:["",Se.required],expiresOn:["",Se.required]})}ngOnInit(){this.logger.logTrace("ApplicationKeyCreateComponent ngOnInit")}onSubmit(){if(this.logger.logTrace("ApplicationKeyCreateComponent onSubmit"),!this.form.valid)return;let e=this.form.value,i={description:e.description,expiresOn:null};if(e.expiresOn==="1"||e.expiresOn==="2"){let o=new Date;o.setFullYear(o.getFullYear()+parseInt(e.expiresOn)),i.expiresOn=o}this.saving=!0;let r=this.route.parent.parent.snapshot.params.id;this.appKeyServiceFactory.getService(r).createApiKey(i).subscribe(o=>{this.messageService.showSuccess(this.transloco.translate("components.application-key-create.app-key-created-successfully")),this.dialogService.showValue(o.key,{title:this.transloco.translate("components.application-key-create.key-created"),message:this.transloco.translate("components.application-key-create.copy-key-and-store"),footer:this.transloco.translate("components.application-key-create.you-wont-view-value-again")}),this.closing=!0,this.close()},o=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("ApplicationKeyCreateComponent canDeactivate"),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.application-key-create.discard-key-creation"))}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}getErrorMessage(e){let i=this.form.get(e);switch(e){case"description":return i.hasError("required")?this.transloco.translate("errors.field-required"):""}return this.transloco.translate("errors.field-invalid")}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E($t),E(Ti),E(di),E(i_e),E(lt),E(Bi),E(Qi),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-key-create"]],decls:1,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],[1,"row",3,"formGroup"],[1,"col-4"],["matInput","","formControlName","description"],["formControlName","expiresOn"],["value","1"],["value","2"],["value","n"],[3,"submit","form"]],template:function(i,r){i&1&&k(0,$Xe,25,13,"spa-box",0)},dependencies:[zt,Gt,it,pt,dt,Tt,Wt,bt,jt,Si,Li,Mi,Fn,un,o_]})}}return t})(),Net=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.route=e,this.router=i,this.logger=r,this.dialogService=o,this.appKeyServiceFactory=a,this.messageService=s,this.spaControl=l,this.transloco=u,this.saving=!1,this.columnsToDisplay=["description","expiresOn","actions"]}ngOnInit(){this.logger.logTrace("ApplicationKeysComponent ngOnInit"),this.route.parent.paramMap.subscribe(e=>{this.appKeyService=this.appKeyServiceFactory.getService(e.get("id"))}),this.canManage$=this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents")}delete(e){this.dialogService.confirm(this.transloco.translate("components.application-keys.confirm-key-deletion",{value:e.description})).then(i=>{i&&(this.saving=!0,this.appKeyService.delete(e.id).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.application-keys.key-deleted-successfully")),this.saving=!1},r=>{this.saving=!1}))})}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Qi),E(i_e),E(Bi),E(di),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-keys"]],decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary","type","button","routerLink","new",3,"disabled"],["matSort","","matSortActive","description","disablePagination","",3,"dataSource"],["matColumnDef","description"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","expiresOn"],["matColumnDef","actions"],["mat-sort-header",""],["type","button","mat-stroked-button","","color","warn",3,"click","disabled"]],template:function(i,r){i&1&&(k(0,ZXe,17,8,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ze,zn,Vn,Hn,tr,ir,Kn,Lr,dr,Fn,_n,gn,un,Ea,rn]})}}return t})(),Oet=(()=>{class t{constructor(e,i,r){this.appService=e,this.spaControl=i,this.transloco=r,this.columnsToDisplay$=this.spaControl.allSubscriptionsSelected.pipe(st(o=>o?["name","access","subscription"]:["name","access"]))}isRootSubscription(e){return e===Ye.subscriptionRoot}static{this.\u0275fac=function(i){return new(i||t)(E(iM),E(di),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-list"]],decls:1,vars:0,consts:[["matSort","","matSortActive","name",3,"dataSource",4,"transloco"],["matSort","","matSortActive","name",3,"dataSource"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","access"],[4,"matHeaderCellDef"],["matColumnDef","subscription"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[3,"routerLink",4,"ngIf"],["class","d-flex align-items-center agent-locked",3,"routerLink","matTooltip",4,"ngIf"],[3,"routerLink"],[1,"d-flex","align-items-center","agent-locked",3,"routerLink","matTooltip"],[1,"mr-2"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&k(0,pQe,14,7,"lac-table",0)},dependencies:[Vt,Ee,He,yi,zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,Lr,dr,Fn,gn,Ea,Wp,sf]})}}return t})(),Let=(()=>{class t{constructor(e,i,r){this.route=e,this.logger=i,this.spaControl=r,this.canManage$=r.userHasPermissionOnSelectedSubscription("ManageAgents")}ngOnInit(){this.logger.logTrace("ApplicationsComponent ngOnInit")}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E($t),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-applications"]],decls:2,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary","routerLink","new",3,"disabled"]],template:function(i,r){i&1&&(k(0,hQe,8,6,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ze,Fn,_n,gn,Oet,un,Ea]})}}return t})();var _Z=(()=>{class t{constructor(e,i,r){this.route=e,this.eventService=i,this.spaControl=r}ngOnInit(){this.showSubs$=this.spaControl.allSubscriptionsSelected}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(zx),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-events"]],decls:2,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],[3,"dataSource","showSubscriptions"]],template:function(i,r){i&1&&(k(0,fQe,5,6,"spa-box",0),H(1,"router-outlet"))},dependencies:[Fn,_n,un,Ux,Ea]})}}return t})(),Bx="/api/invites",rB=(()=>{class t{constructor(e,i,r){this.logger=e,this.http=i,this.spaControl=r,this.$subscriptions=[],this.changedSubject=new qe,this.cache=[],this.changed=this.changedSubject.asObservable(),this.$subscriptions.push(this.spaControl.selectedSubscription.subscribe(()=>{this.logger.logTrace("InviteService -- emitting change notification due to subscription change"),this.changedSubject.next(null)}))}list(){return this.http.get(Bx).pipe(ri(e=>{this.cache=e}))}get(e){let i=this.cache.filter(r=>r.id===e)[0];return i?vt(i):this.http.get(`${Bx}/${e}`)}getClaimCode(e){return this.http.get(`${Bx}/${e}/claim-code`)}create(e,i,r){return this.http.post(Bx,{emailAddress:i,inviteAuthorizationData:r},{headers:new bs().set(Ye.subscriptionHeader,e)}).pipe(ri(o=>{this.cache.push(o.invite),this.notifyChanged(o.invite.id)}))}resend(e){return this.http.post(`${Bx}/${e}/email`,null)}update(e,i){return this.http.put(`${Bx}/${e}`,i).pipe(ri(r=>{this.cache=this.cache.filter(o=>o.id!==e),this.cache.push(r),this.notifyChanged(e)}))}delete(e){return this.http.delete(`${Bx}/${e}`).pipe(ri(i=>{this.cache=[],this.notifyChanged(e)}))}notifyChanged(e){this.logger.logTrace("InviteService -- notifying change",e),this.changedSubject.next(e)}ngOnDestroy(){this.logger.logTrace("InviteService ngOnDestroy");for(let e of this.$subscriptions)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(sn),ae(di))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Vet=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.route=e,this.router=i,this.logger=r,this.inviteService=o,this.dialogService=a,this.messageService=s,this.spaControl=l,this.transloco=u,this.$subscriptions=[],this.loading=!0,this.loadingClaimCode=!1,this.resending=!1,this.emailEnabled=Ye.emailEnabled,this.saving=!1}ngOnInit(){this.logger.logTrace("InviteDetailComponent ngOnInit"),this.$subscriptions.push(Cn(this.route.paramMap,this.inviteService.changed).subscribe(()=>this.load())),this.canManage$=this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents")}load(){let e=this.route.snapshot.params.inviteId;this.logger.logTrace(`InviteDetailComponent -- loading invite ${e}`),this.loading=!0,this.inviteService.get(e).subscribe(i=>{this.model=i,this.loading=!1})}resend(){this.resending=!0,this.inviteService.resend(this.model.id).pipe(Vs(()=>{this.resending=!1})).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.invite-detail.invite-email-resent",{value:this.model.emailAddress}))})}getClaimCode(){this.loadingClaimCode=!0,this.inviteService.getClaimCode(this.model.id).pipe(Vs(()=>{this.loadingClaimCode=!1})).subscribe(e=>{this.dialogService.showValue(e)})}getAccessLink(){this.loadingClaimCode=!0,this.inviteService.getClaimCode(this.model.id).pipe(Vs(()=>{this.loadingClaimCode=!1})).subscribe(e=>{this.dialogService.showValue(`${window.location.origin}/private/claim-access/${e}`)})}delete(){this.dialogService.confirm(this.transloco.translate("components.invite-detail.confirm-invite-deletion",{value:this.model.emailAddress})).then(e=>{e&&(this.saving=!0,this.inviteService.delete(this.model.id).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.invite-detail.invite-deleted-successfully")),this.close()},i=>{this.saving=!1}))})}isRootSubscription(e){return e===Ye.subscriptionRoot}close(){this.router.navigate(["../../"],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("InviteDetailComponent ngOnDestroy");for(let e of this.$subscriptions)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(rB),E(Qi),E(Bi),E(di),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-invite-detail"]],decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary","type","button",3,"disabled","click",4,"ngIf"],["mat-stroked-button","","color","warn","type","button",3,"click","disabled"],["mat-stroked-button","","color","primary","type","button","routerLink","edit",3,"disabled"],["mat-stroked-button","","color","primary","type","button",3,"click","disabled"],["class","row pt-4",4,"ngIf"],[1,"row","pt-4"],[1,"col-md","col-12"],[3,"label"],["label","Email"]],template:function(i,r){i&1&&(k(0,vQe,18,21,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ee,Ze,Fn,_n,gn,un,wn,Ea,Wp,sf]})}}return t})(),Bet=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.inviteService=s,this.messageService=l,this.spaControl=u,this.transloco=p,this.listOfRoles=g,this.$toUnsubscribe=[],this.saving=!1,this.loading=!0,this.closing=!1,this.validateRoles=_=>{let v=_;return v&&!v.value.some(y=>y.enabled)?{selectRole:!0}:null},this.createForm()}get roles(){return this.form.get("roles")}createForm(){let e=this.listOfRoles.map(i=>this.fb.group({role:i,enabled:!1}));this.form=this.fb.group({roles:this.fb.array(e,this.validateRoles)})}getRolesFromModel(){return this.model.subscriptionId===Ye.subscriptionRoot?this.model.inviteAuthorizationData.rootAuthorizationData.roles:this.model.inviteAuthorizationData.authorizationData.roles}resetForm(){let e=this.spaControl.getSubscriptionRoles(this.model.subscriptionId).map(i=>({role:i,enabled:this.getRolesFromModel().some(r=>r===i)}));this.form.patchValue({roles:e})}ngOnInit(){this.logger.logTrace("InviteEditComponent ngOnInit"),this.$toUnsubscribe.push(this.route.parent.paramMap.subscribe(e=>{let i=e.get("inviteId");this.logger.logTrace("Invite id:",i),this.loading=!0,this.inviteService.get(i).subscribe(r=>{this.model=r,this.resetForm(),this.loading=!1})}))}getErrorMessage(e){let i=this.form.get(e);switch(e){case"roles":return i.hasError("selectRole")?this.transloco.translate("errors.select-at-least-one-role"):""}return this.transloco.translate("errors.field-invalid")}onSubmit(){let r={roles:this.form.value.roles.filter(a=>a.enabled).map(a=>a.role)},o={inviteAuthorizationData:{authorizationData:this.model.subscriptionId===Ye.subscriptionRoot?{roles:[]}:r,rootAuthorizationData:this.model.subscriptionId===Ye.subscriptionRoot?r:{roles:[]}}};this.saving=!0,this.inviteService.update(this.model.id,o).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.invite-edit.invite-edited-successfully")),this.closing=!0,this.close()},a=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("InviteEditComponent canDeactivate"),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.invite-edit.discard-invite-changes",{value:this.model.emailAddress}))}return!0}discard(){this.dialogService.confirm(this.transloco.translate("components.invite-edit.discard-invite-changes",{value:this.model.emailAddress})).then(e=>{e&&this.resetForm()})}close(){this.router.navigate([".."],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("InviteEditComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(rB),E(Bi),E(di),E(ur),E(eM))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-invite-edit"]],decls:1,vars:0,consts:[[3,"loading",4,"transloco"],[3,"loading"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary","type","submit",3,"click","disabled"],["mat-stroked-button","","color","warn","type","button",3,"click","disabled"],[3,"ngSubmit","formGroup"],["formArrayName","roles"],[4,"ngIf"],[3,"formGroupName",4,"ngFor","ngForOf"],[3,"formGroupName"],["color","primary","formControlName","enabled"]],template:function(i,r){i&1&&k(0,xQe,12,9,"spa-box",0)},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,xs,Au,Si,Ze,Co,Fn,un,Wp]})}}return t})(),jet=(()=>{class t{constructor(e,i,r){this.logger=e,this.inviteService=i,this.spaControl=r}ngOnInit(){this.logger.logTrace("InviteListComponent ngOnInit"),this.columnsToDisplay$=this.spaControl.allSubscriptionsSelected.pipe(st(e=>e?["emailAddress","subscription","access"]:["emailAddress","access"]))}isRootSubscription(e){return e===Ye.subscriptionRoot}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(rB),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-invite-list"]],decls:1,vars:0,consts:[["matSort","","matSortActive","emailAddress",3,"dataSource",4,"transloco"],["matSort","","matSortActive","emailAddress",3,"dataSource"],["matColumnDef","emailAddress"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","subscription"],["matColumnDef","access"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[3,"routerLink"]],template:function(i,r){i&1&&k(0,MQe,14,7,"lac-table",0)},dependencies:[zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,Lr,dr,Fn,gn,Ea,Wp,sf]})}}return t})(),Qk="/api/subscriptions",lc=(()=>{class t{constructor(e){this.http=e,this.cache=[],this.changedSubject=new qe,this.changed=this.changedSubject.asObservable()}list(){return this.http.get(Qk).pipe(ri(e=>{this.cache=e}))}create(e){return this.http.post(Qk,e).pipe(ri(i=>{this.updateCache(i,!0)}))}get(e){let i=this.cache.filter(r=>r.id===e)[0];return i?vt(i):this.http.get(`${Qk}/${e}`)}update(e,i){return this.http.put(`${Qk}/${e}`,i).pipe(ri(r=>{this.updateCache(r,!0)}))}checkNameAvailable(e,i){return this.http.get(`${Qk}/name-availability`,{params:{name:e,id:i}}).pipe(st(r=>r.available))}updateCache(e,i){this.cache=this.cache.filter(r=>r.id!==e.id),this.cache.push(e),i&&this.notifyChanged(e.id)}notifyChanged(e){this.changedSubject.next(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Het=(()=>{class t{constructor(e){this.subService=e}static{this.\u0275fac=function(i){return new(i||t)(E(lc))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscription-list"]],decls:1,vars:0,consts:[["matSort","","matSortActive","name",3,"dataSource",4,"transloco"],["matSort","","matSortActive","name",3,"dataSource"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"routerLink"]],template:function(i,r){i&1&&k(0,PQe,4,1,"lac-table",0)},dependencies:[zn,Vn,Hn,tr,ir,Kn,Lr,dr,Fn,gn]})}}return t})(),qp=class{static removeNonDigits(n){return n&&n.replace(RegExp("\\D","g"),"")}static toUpperCaseFirstLetter(n){return typeof n!="string"?"":n.charAt(0).toUpperCase()+n.slice(1)}static toLowerCaseFirstLetter(n){return typeof n!="string"?"":n.charAt(0).toLowerCase()+n.slice(1)}static htmlEncode(n){let e=document.createElement("div");return e.innerText=e.textContent=n,e.innerHTML}},vZ=(()=>{class t{constructor(e,i,r,o,a){this.route=e,this.logger=i,this.subService=r,this.dialogService=o,this.transloco=a,this.hasParentIntegration=!1,this.hasParentIntegration=Ye.hasParentIntegration}ngOnInit(){this.logger.logTrace("SubscriptionsComponent ngOnInit"),this.$serviceChangeSubscription=this.subService.changed.subscribe(()=>{let e=qp.toLowerCaseFirstLetter(this.transloco.translate("common.subscriptions"));this.dialogService.confirm(this.transloco.translate("components.subscriptions.reload-page-after-modifying-sub",{subsLabel:e})).then(i=>{i&&location.reload()})})}ngOnDestroy(){this.logger.logTrace("SubscriptionsComponent ngOnDestroy"),this.$serviceChangeSubscription&&this.$serviceChangeSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E($t),E(lc),E(Qi),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscriptions"]],decls:2,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["box-commands","",4,"ngIf"],["box-commands",""],["mat-stroked-button","","color","primary","routerLink","new"]],template:function(i,r){i&1&&(k(0,OQe,5,3,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ee,Ze,Fn,_n,gn,un,Het]})}}return t})(),zet=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g,_,v){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.messageService=s,this.spaControl=l,this.authManagementService=u,this.transloco=p,this.listOfRoles=g,this.listOfUnassignableRoles=_,this.userService=v,this.saving=!1,this.closing=!1,this.loadingAccess=!0,this.validateRoles=y=>{let x=y;return x&&!x.controls.some(I=>I.value.enabled||I.value.indeterminate)?{selectRole:!0}:null},this.createForm()}get roles(){return this.form.get("roles")}clearRoles(){for(;this.roles.controls.length>0;)this.roles.removeAt(0)}createForm(){let e=this.listOfRoles.map(i=>this.fb.group({role:i,enabled:!1,indeterminate:!1,inherited:!1}));this.form=this.fb.group({roles:this.fb.array(e,this.validateRoles)})}ngOnInit(){let e=this.spaControl.userProfile;this.subscription={id:"",name:""},this.$toUnsubscribe=this.route.params.pipe(st(i=>i.subId),OR(this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents"),(i,r)=>({subId:i,canManage:r}))).subscribe(i=>{let r=i.subId,o=i.canManage;if(this.loadingAccess=!0,o){let s=e.subscriptions.find(l=>l.subscription.id===r);s?this.subscription=s.subscription:this.subscription={id:Ye.subscriptionRoot,name:"Root subscription"}}let a=this.route.parent.snapshot.params.userId;this.logger.logTrace("Retrieving access of user",a,"to subscription",r),this.form.get("roles").disable(),this.userService.getUserPermissionsOnSubscription(a,r).subscribe(s=>{let l=s?s.rootRoles??s.roles:[];this.logger.logTrace("Retrieved access of user",a,"to subscription",r,l);let u=this.spaControl.getSubscriptionRoles(r,!0).map(p=>{let g=l.some(_=>_===p);return{role:p,enabled:g,inherited:!1,indeterminate:!1}});this.clearRoles();for(let p of u){let g=this.fb.group(p);this.listOfUnassignableRoles.some(_=>_===p.role)?g.disable():g.enable(),this.roles.push(g)}this.loadingAccess=!1})})}toggleCheckbox(e){this.listOfUnassignableRoles.some(i=>i===e.value.role)||(e.patchValue({enabled:!e.value.enabled,indeterminate:e.value.inherited?!e.value.indeterminate:!1}),e.markAsDirty(),this.logger.logDebug("r",e))}onSubmit(){let e=this.form.value,i=this.route.parent.snapshot.params.userId,r=this.subscription.id,a={roles:e.roles.filter(s=>!this.listOfUnassignableRoles.some(l=>l===s.role)&&s.enabled).map(s=>s.role)};this.saving=!0,this.authManagementService.updateSubscriptionRoles(r,i,a).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.user-access-edit.user-access-updated-successfully")),this.closing=!0,this.close()},s=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("UserAccessEditComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.user-access-edit.discard-user-access-changes"))}return!0}close(){this.router.navigate(["../.."],{relativeTo:this.route})}getErrorMessage(e){let i=this.form.get(e);switch(e){case"roles":return i.hasError("selectRole")?this.transloco.translate("errors.select-at-least-one-role"):""}return this.transloco.translate("errors.field-invalid")}ngOnDestroy(){this.$toUnsubscribe&&this.$toUnsubscribe.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(Bi),E(di),E(ZE),E(ur),E(eM),E(aZ),E(JE))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-access-edit"]],features:[Zt([{provide:yW,useValue:{clickAction:"noop"}}])],decls:1,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],[3,"ngSubmit","formGroup"],[1,"row","pt-4"],[1,"col-md","col-12"],[3,"label"],["formArrayName","roles"],[4,"ngIf"],[3,"formGroupName",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","type","submit",3,"disabled"],[3,"formGroupName"],["color","primary","formControlName","enabled",3,"click","indeterminateChange","indeterminate"]],template:function(i,r){i&1&&k(0,jQe,14,10,"spa-box",0)},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,xs,Au,Si,Ze,Co,Fn,un,wn,Wp]})}}return t})(),Uet=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.eventService=r,this.logger=o}ngOnInit(){let e=this.route.parent.snapshot.params.userId;this.logger.logTrace("UserActionsComponent ngOnInit -- userId:",e),this.dataSource=this.eventService.getServiceForUserActions(e)}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(zx),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-actions"]],decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["hideAgents","",3,"dataSource"]],template:function(i,r){i&1&&k(0,HQe,4,3,"spa-box",0)},dependencies:[Fn,un,Ux]})}}return t})(),n_e=(()=>{class t{constructor(e,i,r,o,a){this.routeHelper=e,this.router=i,this.spaControl=r,this.route=o,this.dialogService=a}redirectToParent(e,i,r){return this.routeHelper.activatedNamedRoutes.pipe(Bs(),ri(o=>{let a;if(o.isInRoute("Sub")){let l=this.spaControl.selectedSubscriptionSnapshot.sub;if(l!=Ye.subscriptionNoFilter)a=this.spaControl.userProfile.subscriptions.find(u=>u.subscription.id===l).subscription.parentSubscriptionId;else if(e===Pb.UserEditAccess){this.dialogService.subSelector(r,!0).then(u=>{if(u){let p=`${Ye.parentUrl.replace(/\/$/,"")}/child-redirect?redirectType=${e}&subscriptionId=${u.subscription.parentSubscriptionId}`;i&&(p=`${p}&userId=${i}`),window.open(p,"_blank")}});return}else a=Ye.subscriptionNoFilter}else o.isInRoute("SysAdmin")&&(a=Ye.subscriptionRoot);let s=`${Ye.parentUrl.replace(/\/$/,"")}/child-redirect?redirectType=${e}&subscriptionId=${a}`;i&&(s=`${s}&userId=${i}`),window.open(s,"_blank")}))}static{this.\u0275fac=function(i){return new(i||t)(ae(ro),ae(lt),ae(di),ae(Ut),ae(Qi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),T0e=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g,_){this.route=e,this.logger=i,this.userService=r,this.router=o,this.spaControl=a,this.messageService=s,this.dialogService=l,this.authManagementService=u,this.parentRedirectService=p,this.transloco=g,this.agentService=_,this.$toUnsubscribe=[],this.loading=!0,this.cannotRevoke=!1,this.revoking=!1,this.parentIntegrationEnabled=!1,this.subscriptionGender=Ye.labels.subscriptionGender,this.showSubs$=a.allSubscriptionsSelected,this.mode=this.route.snapshot.data.mode,this.rootSubSelected$=a.selectedSubscription.pipe(st(v=>v.sub===Ye.subscriptionRoot)),this.parentName=Ye.parentName,this.agentId=this.spaControl.userProfile.id}ngOnInit(){this.logger.logTrace("UserDetailComponent ngOnInit"),this.parentIntegrationEnabled=Ye.hasParentIntegration,this.mode=this.route.snapshot.data.mode,this.load(),this.$toUnsubscribe.push(Cn(this.route.paramMap,this.userService.changed,this.spaControl.selectedSubscription,My(6e4)).subscribe(()=>{this.model&&this.load()})),this.canManage$=this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents"),this.canEdit$=this.spaControl.userHasPermissionOnSelectedSubscription("EditUsers"),this.canViewEvents$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewAgentEvents"),this.canViewActions$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewAgentActions")}isParentUser(){return this.mode==jx.Parent}load(){let e=this.route.snapshot.params.userId;this.logger.logTrace(`UserDetailComponent -- loading user ${e}`),this.loading=!0,(this.mode==jx.App?this.userService.get(e):this.userService.getFromParent(e)).subscribe(i=>{i.id&&this.mode==jx.Parent&&this.router.navigate(["../..",i.id],{relativeTo:this.route}),this.model=i,this.loading=!1;let r=this.spaControl.selectedSubscriptionSnapshot.sub;this.cannotRevoke=r!=Ye.subscriptionNoFilter&&this.model.subscriptions.some(o=>r==o.subscriptionId&&o.roles.length==0)})}confirmRevoke(e){let i=qp.toLowerCaseFirstLetter(this.transloco.translate("common.subscription")),r=this.transloco.translate("components.user-detail.confirm-access-revocation",{subLabel:i,subGender:this.subscriptionGender}),o=this.model.subscriptions.filter(a=>a.subscriptionId=e)[0];this.dialogService.confirm(r).then(a=>{if(this.revoking=!1,a){let s=this.route.snapshot.params.userId;this.authManagementService.updateSubscriptionRoles(e,s,{roles:[]}).subscribe(l=>{this.messageService.showSuccess(this.transloco.translate("components.user-detail.access-revoked-successfully")),this.close()})}})}navigateToUserDetail(){this.$toUnsubscribe.push(this.parentRedirectService.redirectToParent(Pb.UserDetails,this.model.parentId).subscribe(()=>{this.logger.logTrace("Redirected to parent application user details")}))}navigateToParentEditAccess(){this.$toUnsubscribe.push(this.parentRedirectService.redirectToParent(Pb.UserEditAccess,this.model.parentId,this.spaControl.userProfile.subscriptions).subscribe(()=>{this.logger.logTrace("Redirected to parent application access edit")}))}revoke(){this.revoking=!0,this.spaControl.selectedSubscriptionSnapshot.sub!=Ye.subscriptionNoFilter?this.confirmRevoke(this.spaControl.selectedSubscriptionSnapshot.sub):this.dialogService.subSelector(this.spaControl.userProfile.subscriptions,!0).then(e=>{this.logger.logDebug("Selector result.",e),e?this.confirmRevoke(e.subscription.id):this.revoking=!1})}navigateToEditAccess(){Ye.hasParentIntegration?this.navigateToParentEditAccess():this.editAccess()}editAccess(){this.spaControl.selectedSubscriptionSnapshot.sub!=Ye.subscriptionNoFilter?this.router.navigate([`access/${this.spaControl.selectedSubscriptionSnapshot.sub}`],{relativeTo:this.route}):this.dialogService.subSelector(this.spaControl.userProfile.subscriptions,!0).then(e=>{this.logger.logDebug("Selector result.",e),e&&this.router.navigate([`access/${e.subscription.id}`],{relativeTo:this.route})})}close(){this.mode===jx.App?this.router.navigate([".."],{relativeTo:this.route}):this.router.navigate(["../.."],{relativeTo:this.route})}displayRootRoles(e){return this.parentIntegrationEnabled?e.parentRootRoles:e.rootRoles}displayRoles(e){return this.parentIntegrationEnabled?e.parentRoles:e.roles}lock(){return Mt(this,null,function*(){yield this.agentService.confirmAndUpdateLockStatus({id:this.model.id,lock:!0,type:"User",dialogMessage:this.transloco.translate("components.user-detail.confirm-lock"),dialogConfirmButtonText:this.transloco.translate("common.lock"),successMessage:this.transloco.translate("components.user-detail.successfully-locked")})})}unlock(){return Mt(this,null,function*(){yield this.agentService.confirmAndUpdateLockStatus({id:this.model.id,lock:!1,type:"User",dialogMessage:this.transloco.translate("components.user-detail.confirm-unlock"),dialogConfirmButtonText:this.transloco.translate("common.unlock"),successMessage:this.transloco.translate("components.user-detail.successfully-unlocked")})})}ngOnDestroy(){this.logger.logTrace("UserDetailComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E($t),E(JE),E(lt),E(di),E(Bi),E(Qi),E(ZE),E(n_e),E(ur),E(t_e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-detail"]],decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title","",4,"ngIf"],["box-commands",""],["mat-stroked-button","","color","primary","type","button","routerLink","events",3,"disabled",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","routerLink","actions",3,"disabled",4,"ngIf"],["mat-stroked-button","","color","primary","type","button","routerLink","edit",3,"disabled"],["mat-stroked-button","","color","primary","type","button",3,"click",4,"ngIf"],[4,"ngIf"],["box-title",""],[1,"text-accent"],["mat-stroked-button","","color","primary","type","button","routerLink","events",3,"disabled"],["mat-stroked-button","","color","primary","type","button","routerLink","actions",3,"disabled"],["mat-stroked-button","","color","primary","type","button",3,"click"],["mat-stroked-button","","color","warn","type","button",3,"click","disabled"],["mat-stroked-button","","color","warn","type","button",3,"disabled","click",4,"ngIf"],[1,"row","pt-4"],[1,"col-md","col-12"],[3,"label"],[1,"d-flex","flex-column"],["class","agent-locked",4,"ngIf"],["label","Email"],["mat-stroked-button","","color","primary","type","button",3,"click","disabled"],[1,"agent-locked"],[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&(k(0,nZe,14,18,"spa-box",0),H(1,"router-outlet"))},dependencies:[Vt,Ee,Ze,Fn,_n,gn,un,wn,Ea,Wp,sf]})}}return t})(),Get=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.eventService=r,this.logger=o}ngOnInit(){let e=this.route.parent.snapshot.params.userId;this.logger.logTrace("UserEventsComponent ngOnInit -- userId:",e),this.dataSource=this.eventService.getServiceForUserEvents(e)}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(zx),E($t))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-events"]],decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["hideEntities","","showSubscriptions","",3,"dataSource"]],template:function(i,r){i&1&&k(0,rZe,4,3,"spa-box",0)},dependencies:[Fn,un,Ux]})}}return t})(),r_e=function(t){return t.InternalServerError="InternalServerError",t.EmailDisabled="EmailDisabled",t}(r_e||{}),$et=/^.+\@.+\..+$/,qet=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g,_){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.messageService=s,this.spaControl=l,this.userService=u,this.authManagementService=p,this.inviteService=g,this.transloco=_,this.$toUnsubscribe=[],this.saving=!1,this.closing=!1,this.maxSubs=Ye.maxShowingSubscriptions,this.subscriptionGender=Ye.labels.subscriptionGender,this.rootSub={id:Ye.subscriptionRoot,name:"Sys Admin"},this.validateRoles=v=>{let y=v;return y&&!y.value.some(x=>x.enabled)?{selectRole:!0}:null},this.validateUserControl=v=>v.value.id||v.value.emailAddress||$et.exec(v.value)||v.value.subject?null:{selectOrTypeEmail:!0},this.validateUserNotInSub=v=>{let y=v.get("sub").value,x=v.get("user"),I=x.value.id;return I?(this.logger.logTrace(`Checking whether user ${I} is already on subscription ${y}`),this.authManagementService.getUserSubscriptionRoles(I,y).pipe(st(C=>{if(C)if((y!=Ye.subscriptionRoot?C.roles:C).length==0){this.logger.logTrace(`User ${I} is not on subscription ${y} yet`);return}else{this.logger.logTrace(`User ${I} is already on subscription ${y}`),x.setErrors({userAlreadyInSub:{value:name}});return}else{this.logger.logTrace(`User ${I} is not on subscription ${y} yet`);return}}))):vt(null)},this.createForm()}get roles(){return this.form.get("roles")}clearRoles(){for(;this.roles.controls.length>0;)this.roles.removeAt(0)}createForm(){let e=this.spaControl.getSubscriptionRoles(this.spaControl.selectedSubscriptionSnapshot.sub).map(r=>this.fb.group({role:r,enabled:!1})),i=this.spaControl.selectedSubscriptionSnapshot.sub;if(this.form=this.fb.group({sub:[i!==Ye.subscriptionNoFilter?i:"",Se.required],user:["",this.validateUserControl],roles:this.fb.array(e,this.validateRoles)}),i!==Ye.subscriptionNoFilter)if(i===Ye.subscriptionRoot)this.selectedSubscription=this.rootSub.name;else{let r=this.getSubAccess(i);r&&(this.selectedSubscription=r.subscription.name)}this.$userChangesSubscription&&this.$userChangesSubscription.unsubscribe(),this.$userChangesSubscription=Cn(this.form.get("user").valueChanges,this.form.get("sub").valueChanges).pipe(Wi(()=>this.validateUserNotInSub(this.form))).subscribe({error:r=>{r?.status==422&&r?.error?.code=="UserNotFound"&&this.messageService.dismiss()}})}getSubAccess(e){return this.spaControl.userProfile.subscriptions.find(i=>i.subscription.id===e)}ngOnInit(){let e=this.spaControl.userProfile;this.subscriptions=[],this.$toUnsubscribe.push(this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents").subscribe(o=>{if(o){let a=this.getSubAccess(this.spaControl.selectedSubscriptionSnapshot.sub);if(a)this.subscriptions.push(a.subscription);else{this.subscriptions.push(this.rootSub);for(let s of e.subscriptions)this.subscriptions.push(s.subscription)}}})),this.form.get("sub").valueChanges.subscribe(o=>{let a=this.spaControl.getSubscriptionRoles(o).map(s=>({role:s,enabled:!1}));this.clearRoles();for(let s of a)this.roles.push(this.fb.group(s))});let r=this.form.get("user");this.filteredUsers=r.valueChanges.pipe(kn(""),vi(o=>o&&!o.id),st(o=>typeof o=="string"?o:o.name),$o(800),Ls(),Wi(o=>o?o.length<=3?(this.waitingInput=!0,vt([])):(this.waitingInput=!1,this.loadingUsers=!0,this.userService.listTopGlobalUsers(o)):vt([])),ri(()=>this.loadingUsers=!1,()=>this.loadingUsers=!1)),this.submitAction$=r.valueChanges.pipe(st(o=>o.id||o.subject?this.transloco.translate("components.user-invite.add-user"):this.transloco.translate("components.user-invite.invite-user")),kn(this.transloco.translate("components.user-invite.add-user")))}displayFn(e){if(e)return e.emailAddress?`${e.name} (${e.emailAddress})`:e.name}onSubmit(){if(this.logger.logTrace("UserInviteComponent onSubmit"),!this.form.valid)return;this.saving=!0;let e=this.form.value,i=e.sub,r=e.roles.filter(a=>a.enabled).map(a=>a.role),o={roles:r};if(e.user.id)this.authManagementService.updateSubscriptionRoles(i,e.user.id,o).subscribe(()=>{this.messageService.showSuccess(this.transloco.translate("components.user-invite.user-added-successfully")),this.closing=!0,this.close()},a=>{this.saving=!1});else if(e.user.subject){let a=e.sub===Ye.subscriptionRoot,s={roles:r},l={emailAddress:e.user.emailAddress,name:e.user.name,subject:e.user.subject,authorizationData:a?{roles:[]}:s,rootAuthorizationData:a?s:{roles:[]}};this.userService.create(e.sub,l).subscribe(u=>{this.messageService.showSuccess(this.transloco.translate("components.user-invite.user-added-successfully")),this.closing=!0,this.close()},u=>{this.saving=!1})}else{let a=e.user,s=i===Ye.subscriptionRoot?{rootAuthorizationData:{roles:r}}:{authorizationData:{roles:r}};this.inviteService.create(i,a,s).subscribe(l=>{if(l.emailSent)this.messageService.showSuccess(this.transloco.translate("components.user-invite.user-invited-successfully"));else if(l.sendFailReason===r_e.EmailDisabled){let u=`${window.location.origin}/private/claim-access/${l.claimCode}`;this.dialogService.showValue(u,{title:this.transloco.translate("components.user-invite.access-link"),message:this.transloco.translate("components.user-invite.invitation-created-but-email-is-disabled")})}else this.dialogService.alert(this.transloco.translate("components.user-invite.error-while-sending-email"),this.transloco.translate("common.warning"));this.closing=!0,this.close()},l=>{this.saving=!1})}}canDeactivate(){if(this.logger.logTrace("UserInviteComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.user-invite.discard-invitation"))}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}displaySubscription(){return this.selectedSubscription||""}selectSubscription(){let e=this.subscriptions.map(i=>({subscription:i,roles:[]}));this.dialogService.subSelector(e).then(i=>{i&&(this.form.patchValue({sub:i.subscription.id}),this.selectedSubscription=i.subscription.name)})}getErrorMessage(e){let i=this.form.get(e),r=qp.toLowerCaseFirstLetter(this.transloco.translate("common.subscription"));switch(e){case"sub":return i.hasError("required")?this.transloco.translate("errors.select-a-subscription",{subLabel:r,subGender:this.subscriptionGender}):"";case"user":return i.hasError("selectOrTypeEmail")?this.transloco.translate("components.user-invite.select-user-or-type-email"):i.hasError("userAlreadyInSub")?this.transloco.translate("components.user-invite.user-is-already-in-sub",{subLabel:r,subGender:this.subscriptionGender}):"";case"roles":return i.hasError("selectRole")?this.transloco.translate("errors.select-at-least-one-role"):""}return this.transloco.translate("errors.field-invalid")}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe();this.$userChangesSubscription&&this.$userChangesSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(Bi),E(di),E(JE),E(ZE),E(rB),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-invite"]],decls:2,vars:0,consts:[["auto","matAutocomplete"],[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],[3,"formGroup"],[1,"container"],[1,"row","mt-3"],[1,"col-md-6","col-12"],[1,"d-flex","flex-column"],[1,"col-12","px-0"],["type","text","matInput","","formControlName","user",3,"matAutocomplete"],["matSuffix","","class","spin-counterclockwise text-primary",4,"ngIf"],[4,"ngIf"],[3,"displayWith"],[3,"value",4,"ngFor","ngForOf"],["class","col-12 p-0",4,"ngIf"],["class","col",4,"ngIf"],["formArrayName","roles",1,"col"],[1,"mb-0","font-medium"],[1,"d-md-flex","d-block","align-items-center"],["class","me-4",3,"formGroupName",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],[3,"submit","form"],["matSuffix","",1,"spin-counterclockwise","text-primary"],[3,"value"],[1,"col-12","p-0"],[1,"text-warn","d-flex","align-items-center"],[1,"me-2"],[1,"col"],["formControlName","sub"],["mat-stroked-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",3,"click"],["mat-icon-button","","color","primary",3,"click"],[1,"font-medium"],[1,"me-4",3,"formGroupName"],["color","primary","formControlName","enabled"]],template:function(i,r){i&1&&(k(0,gZe,32,22,"spa-box",1),H(1,"router-outlet"))},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,xs,Au,He,Wt,bt,jt,Si,ZS,Ze,fi,Li,Mi,AL,$2,Co,Fn,_n,un,o_,Ea,b3,Wp]})}}return t})(),Wet=(()=>{class t{constructor(e,i,r,o,a){this.logger=e,this.userService=i,this.route=r,this.router=o,this.spaControl=a,this.columnsToDisplay=["name","emailAddress","roles"],this.showSubs$=a.allSubscriptionsSelected,this.rootSubSelected$=a.selectedSubscription.pipe(st(s=>s.sub===Ye.subscriptionRoot))}displayRootRoles(e){return Ye.hasParentIntegration?e.parentRootRoles:e.rootRoles}displayRoles(e){return Ye.hasParentIntegration?e.parentRoles:e.roles}navigateToUser(e){var i=e.id||`parent/${e.subject}`;this.router.navigate([i],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(JE),E(Ut),E(lt),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-list"]],decls:1,vars:0,consts:[["matSort","","matSortActive","name",3,"dataSource",4,"transloco"],["matSort","","matSortActive","name",3,"dataSource"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","emailAddress"],[4,"matHeaderCellDef"],["matColumnDef","roles"],["class","cell-sm",4,"matHeaderCellDef"],["class","cell-sm",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["mat-sort-header",""],[3,"routerLink","click",4,"ngIf"],["class","d-flex align-items-center agent-locked",3,"routerLink","matTooltip","click",4,"ngIf"],[3,"click","routerLink"],[1,"d-flex","align-items-center","agent-locked",3,"click","routerLink","matTooltip"],[1,"mr-2"],[1,"cell-sm"],[4,"ngIf"],[4,"ngFor","ngForOf"]],template:function(i,r){i&1&&k(0,MZe,12,3,"lac-table",0)},dependencies:[Vt,Ee,He,yi,zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,Lr,dr,Fn,gn,Ea,Wp,sf]})}}return t})(),Yet=(()=>{class t{constructor(e,i,r,o,a){this.router=e,this.route=i,this.logger=r,this.spaControl=o,this.parentRedirectService=a,this.$toUnsubscribe=[],this.parentIntegrationEnabled=!1,this.parentIntegrationEnabled=Ye.hasParentIntegration}ngOnInit(){this.logger.logTrace("UsersComponent ngOnInit"),this.canManage$=this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents"),this.canViewInvites$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewInvites")}navigateToInvite(){Ye.hasParentIntegration?this.$toUnsubscribe.push(this.parentRedirectService.redirectToParent(Pb.Invite).subscribe(()=>{this.logger.logTrace("Redirected to parent application invite")})):this.router.navigate(["invite"],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("UsersComponent OnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(lt),E(Ut),E($t),E(di),E(n_e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-users"]],decls:2,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],["box-commands",""],["mat-stroked-button","","color","primary",3,"click","disabled"]],template:function(i,r){i&1&&(k(0,RZe,10,9,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ze,Fn,_n,un,jet,Wet,Ea]})}}return t})(),Ket=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.appService=s,this.messageService=l,this.spaControl=u,this.transloco=p,this.$toUnsubscribe=[],this.saving=!1,this.saved=!1,this.rootSubSelected=!1,this.maxSubs=Ye.maxShowingSubscriptions,this.subscriptionGender=Ye.labels.subscriptionGender,this.rootSub={id:Ye.subscriptionRoot,name:"Sys Admin"},this.checkNameAvailable=g=>gs(300).pipe(Wi(()=>{let _=g.get("name"),v=g.get("sub").value,y=_.value;return y?(this.logger.logTrace("Checking name availability:",y,"on subscription",v),v?this.appService.checkNameAvailable(v,y).pipe(st(x=>(this.logger.logTrace("Name available:",x),_.setErrors(x?null:{nameTaken:{value:y}}),vt()))):vt()):vt()})),this.validateRoles=g=>{let _=g;return _&&!_.value.some(v=>v.enabled)?{selectRole:!0}:null},this.createForm()}get roles(){return this.form.get("roles")}clearRoles(){for(;this.roles.controls.length>0;)this.roles.removeAt(0)}createForm(){let e=this.spaControl.selectedSubscriptionSnapshot.sub!==Ye.subscriptionNoFilter?this.spaControl.selectedSubscriptionSnapshot.sub:"";this.rootSubSelected=e==Ye.subscriptionRoot;let i=this.spaControl.getSubscriptionRoles(e).map(r=>this.fb.group({role:r,enabled:!1}));if(this.form=this.fb.group({sub:[e,Se.required],name:["",Se.required],roles:this.fb.array(i,this.validateRoles),appId:[""]}),e===Ye.subscriptionRoot)this.selectedSubscription=this.rootSub.name;else{let r=this.getSubAccess(e);r&&(this.selectedSubscription=r.subscription.name,this.form.get("sub").disable())}this.$nameChangesSubscription&&this.$nameChangesSubscription.unsubscribe(),this.$nameChangesSubscription=Cn(this.form.get("name").valueChanges,this.form.get("sub").valueChanges).pipe(Wi(()=>this.checkNameAvailable(this.form))).subscribe()}getSubAccess(e){return e?this.spaControl.userProfile.subscriptions.find(i=>i.subscription.id===e):null}ngOnInit(){let e=this.spaControl.userProfile;this.subscriptions=[];let i=this.form.get("sub");this.$toUnsubscribe.push(i.valueChanges.subscribe(r=>{this.rootSubSelected=r===Ye.subscriptionRoot;let o=this.spaControl.getSubscriptionRoles(r).map(a=>({role:a,enabled:!1}));this.clearRoles();for(let a of o)this.roles.push(this.fb.group(a))}),this.spaControl.selectedSubscription.subscribe(r=>{i.setValue(r.sub!==Ye.subscriptionNoFilter?this.spaControl.selectedSubscriptionSnapshot.sub:"")}),this.spaControl.userHasPermissionOnSelectedSubscription("ManageAgents").subscribe(r=>{if(r){this.subscriptions=[];let o=this.getSubAccess(this.spaControl.selectedSubscriptionSnapshot.sub);if(o)this.subscriptions.push(o.subscription);else{this.subscriptions.push(this.rootSub);for(let a of e.subscriptions)this.subscriptions.push(a.subscription)}}}))}onSubmit(){if(!this.form.valid)return;let e=this.form.getRawValue(),i=e.roles.filter(s=>s.enabled).map(s=>s.role),r=e.sub===Ye.subscriptionRoot,o={roles:i};r&&(o.grantAppId=e.appId||null);let a={name:e.name,authorizationData:r?{roles:[]}:o,rootAuthorizationData:r?o:{roles:[]}};this.saving=!0,this.$toUnsubscribe.push(this.appService.create(e.sub,a).subscribe(s=>{this.messageService.showSuccess(this.transloco.translate("components.application-create.app-created-successfully")),this.saved=!0,this.router.navigate(["..",s.id],{relativeTo:this.route})},s=>{this.saving=!1}))}displaySubscription(){return this.selectedSubscription||""}selectSubscription(){let e=this.subscriptions.map(i=>({subscription:i,roles:[]}));this.dialogService.subSelector(e).then(i=>{i&&(this.form.patchValue({sub:i.subscription.id}),this.selectedSubscription=i.subscription.name)})}canDeactivate(){if(this.logger.logTrace("ApplicationCreateComponent canDeactivate",this.dialogService),!this.saved){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.application-create.discard-app-creation"))}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}getErrorMessage(e){let i=this.form.get(e);switch(e){case"sub":let r=qp.toLowerCaseFirstLetter(this.transloco.translate("common.subscription"));return i.hasError("required")?this.transloco.translate("errors.select-a-subscription",{subLabel:r,subGender:this.subscriptionGender}):"";case"name":return i.hasError("required")?this.transloco.translate("errors.field-required"):i.hasError("nameTaken")?this.transloco.translate("errors.name-already-taken"):""}return this.transloco.translate("errors.field-invalid")}ngOnDestroy(){this.logger.logTrace("ApplicationCreateComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe();this.$nameChangesSubscription&&this.$nameChangesSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(iM),E(Bi),E(di),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-application-create"]],decls:1,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],[3,"formGroup"],[1,"container"],[1,"row","mt-3"],[1,"col"],["matInput","","formControlName","name"],[4,"ngIf"],["class","col",4,"ngIf"],["formArrayName","roles",1,"col"],[1,"mb-0","font-medium"],[1,"d-md-flex","d-block","align-items-center"],["class","me-4",3,"formGroupName",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],[3,"submit","form"],["formControlName","sub"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-stroked-button","","color","primary",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary",3,"click"],["mat-icon-button","","color","primary",3,"click"],[1,"font-medium"],["matInput","","formControlName","appId"],[1,"me-4",3,"formGroupName"],["color","primary","formControlName","enabled"]],template:function(i,r){i&1&&k(0,UZe,24,14,"spa-box",0)},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,xs,Au,He,Wt,bt,jt,Si,Ze,fi,Li,Mi,Co,Fn,un,o_,Wp]})}}return t})(),iB=(()=>{class t{get model(){return this._model}set model(e){this._model=e,this.resetForm()}get submitAction(){return this.model?this.transloco.translate("common.save"):this.transloco.translate("common.create")}constructor(e,i,r,o){this.fb=e,this.logger=i,this.subscriptionService=r,this.transloco=o,this.submitted=new Ae,this.hasParentIntegration=Ye.hasParentIntegration,this.checkNameAvailable=a=>gs(300).pipe(Wi(()=>(this.logger.logTrace("Checking subscription name availability: ",a.value),this.subscriptionService.checkNameAvailable(a.value,this.model?this.model.id:null).pipe(st(s=>(this.logger.logTrace("Name available:",s),s?null:{nameTaken:{value:a.value}})))))),this.createForm()}createForm(){this.form=this.fb.group({name:[{value:"",disabled:this.hasParentIntegration},[Se.required,Se.maxLength(100)],this.checkNameAvailable],alias:[{value:"",disabled:this.hasParentIntegration},Se.maxLength(50)]})}resetForm(){this.model&&this.form.reset({name:this.model.name,alias:this.model.alias})}ngOnInit(){}onSubmit(){if(!this.form.valid)return;let e=this.form.value,i={name:e.name,alias:e.alias};this.submitted.emit(i)}getErrorMessage(e){let i=this.form.get(e);if(i&&i.hasError("maxlength"))return this.transloco.translate("errors.max-length",{value:i.getError("maxlength").requiredLength});switch(e){case"name":return i.hasError("required")?this.transloco.translate("errors.field-required"):i.hasError("nameTaken")?this.transloco.translate("errors.name-already-taken"):""}return this.transloco.translate("errors.field-invalid")}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E($t),E(lc),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscription-form"]],inputs:{model:"model"},outputs:{submitted:"submitted"},decls:1,vars:0,consts:[[3,"formGroup",4,"transloco"],[3,"formGroup"],[1,"row"],[1,"col"],["matInput","","formControlName","name"],["matInput","","formControlName","alias"],[3,"submit","form"]],template:function(i,r){i&1&&k(0,GZe,16,7,"form",0)},dependencies:[zt,Gt,it,pt,dt,Tt,Wt,bt,jt,Si,Fn,o_]})}}return t})(),Xet=(()=>{class t{constructor(e,i,r,o,a,s,l){this.route=e,this.router=i,this.logger=r,this.dialogService=o,this.subscriptionService=a,this.messageService=s,this.transloco=l,this.saving=!1,this.closing=!1,this.subscriptionGender=Ye.labels.subscriptionGender}ngOnInit(){}onSubmit(e){this.logger.logTrace("SubscriptionCreateComponent onSubmit",e),this.saving=!0,this.subscriptionService.create(e).subscribe(()=>{let i=this.transloco.translate("common.subscription");this.messageService.showSuccess(this.transloco.translate("components.subscription-create.subscription-created-successfully",{subLabel:i,subGender:this.subscriptionGender})),this.closing=!0,this.close()},i=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("SubscriptionCreateComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.formComponent.form.dirty)return this.dialogService.confirmDiscard()}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Qi),E(lc),E(Bi),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscription-create"]],viewQuery:function(i,r){if(i&1&&ot(iB,5),i&2){let o;Pe(o=Ne())&&(r.formComponent=o.first)}},decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],[3,"submitted"]],template:function(i,r){i&1&&k(0,$Ze,5,7,"spa-box",0)},dependencies:[Fn,un,iB,b3]})}}return t})(),Qet=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.logger=r,this.subscriptionService=o,this.loading=!0,this.hasParentIntegration=Ye.hasParentIntegration,this.$toUnsubscribe=[]}ngOnInit(){this.logger.logTrace("SubscriptionDetailComponent ngOnInit"),this.$toUnsubscribe.push(Cn(this.route.paramMap,this.subscriptionService.changed).subscribe(()=>this.load()))}load(){this.logger.logTrace("SubscriptionDetailComponent load");let e=this.route.snapshot.params.id;this.logger.logTrace("SubscriptionDetailComponent -- id:",e),this.loading=!0,this.subscriptionService.get(e).subscribe(i=>{this.logger.logTrace("SubscriptionDetailComponent -- model loaded"),this.model=i,this.loading=!1})}close(){this.router.navigate([".."],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("SubscriptionDetailComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(lc))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscription-detail"]],decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title","",4,"ngIf"],["box-commands",""],["mat-stroked-button","","color","primary","type","button","routerLink","edit"],[4,"ngIf"],["box-title",""],[1,"row","pt-4"],[1,"col-md","col-12"],["label","ID"],[3,"label"]],template:function(i,r){i&1&&(k(0,YZe,6,5,"spa-box",0),H(1,"router-outlet"))},dependencies:[Ee,Ze,Fn,_n,gn,un,wn]})}}return t})(),Zet=(()=>{class t{constructor(e,i,r,o,a,s,l){this.route=e,this.router=i,this.logger=r,this.dialogService=o,this.subscriptionService=a,this.messageService=s,this.transloco=l,this.loading=!0,this.saving=!1,this.closing=!1,this.subscriptionGender=Ye.labels.subscriptionGender}ngOnInit(){this.logger.logTrace("SubscriptionEditComponent ngOnInit"),this.route.parent.paramMap.subscribe(e=>{let i=e.get("id");this.logger.logTrace("Subscription id:",i),this.loading=!0,this.subscriptionService.get(i).subscribe(r=>{this.model=r,this.loading=!1})})}onSubmit(e){this.saving=!0,this.subscriptionService.update(this.model.id,e).subscribe(()=>{let i=this.transloco.translate("common.subscription");this.messageService.showSuccess(this.transloco.translate("components.subscription-edit.subscription-updated-successfully",{subLabel:i,subGender:this.subscriptionGender})),this.closing=!0,this.close()},i=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("SubscriptionEditComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.formComponent.form.dirty)return this.dialogService.confirmDiscard()}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Qi),E(lc),E(Bi),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-subscription-edit"]],viewQuery:function(i,r){if(i&1&&ot(iB,5),i&2){let o;Pe(o=Ne())&&(r.formComponent=o.first)}},decls:2,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],[3,"submitted","model"]],template:function(i,r){i&1&&(k(0,KZe,4,4,"spa-box",0),H(1,"router-outlet"))},dependencies:[Fn,_n,un,iB]})}}return t})(),o_e=(()=>{class t{static{this.translationMap=null}static{this.langOfTranslationMap=null}static{this.fallbackTranslationMap=null}static{this.fallbackLanguage=null}constructor(e,i){this.transloco=e,this.getOverriddenBreadcrumbDisplayName=i}transform(e){let i=this.transloco.getActiveLang();if(this.latestTransformedValue!==void 0&&this.latestLanguageUsed==i&&this.latestValue==e.name)return this.latestTransformedValue;let r;if(this.latestValue=e.name,this.latestLanguageUsed=i,this.getOverriddenBreadcrumbDisplayName&&(r=this.getOverriddenBreadcrumbDisplayName(e.name)))return this.latestTransformedValue=r,r;if(!t.translationMap||t.langOfTranslationMap!=i)if(t.translationMap=this.transloco.translateObject("enums.named-routes"))t.langOfTranslationMap=i;else{let{fallbackTranslationMap:o,fallbackLanguage:a}=this.fetchFallbackTranslationInfo();this.latestLanguageUsed=a,t.translationMap=o,t.langOfTranslationMap=a}return t.translationMap&&(r=t.translationMap[e.name])?(this.latestTransformedValue=r,r):(r=e.displayName||e.name,this.latestTransformedValue=r,r)}fetchFallbackTranslationInfo(){return t.fallbackLanguage&&t.fallbackTranslationMap?{fallbackTranslationMap:t.fallbackTranslationMap,fallbackLanguage:t.fallbackLanguage}:(t.fallbackLanguage=Array.isArray(this.transloco.config.fallbackLang)?this.transloco.config.fallbackLang[0]:this.transloco.config.fallbackLang,t.fallbackTranslationMap=this.transloco.translateObject("enums.named-routes",{},t.fallbackLanguage),{fallbackTranslationMap:t.fallbackTranslationMap,fallbackLanguage:t.fallbackLanguage})}static{this.\u0275fac=function(i){return new(i||t)(E(ur,16),E(sZ,24))}}static{this.\u0275pipe=oi({name:"breadcrumb",type:t,pure:!1})}}return t})(),a_e=(()=>{class t{get isBreadcrumbsArrayEmpty(){return this.breadcrumbsArray.length==0}get canNavigateUp(){return this.breadcrumbsArray.length>1}constructor(e,i,r,o){this.logger=e,this.routeHelperService=i,this.router=r,this.getOverriddenBreadcrumbDisplayName=o,this.$toUnsubscribe=[],this.breadcrumbsUpdate=new Ae,this.buildBreadcrumbsArray=()=>{let a=this.routeHelperService.activatedNamedRoutesSnapshot;this.breadcrumbsArray=a.activatedRoutes;let s=a.activatedRoutes.map(l=>l.branchRoot).lastIndexOf(!0);s!=-1&&(this.breadcrumbsArray=this.breadcrumbsArray.slice(s)),this.breadcrumbsUpdate.emit(this.breadcrumbsArray),this.logger.logTrace("BreadcrumbComponent -- breadcrumbs updated: ",this.breadcrumbsArray)}}ngOnInit(){this.logger.logTrace("BreadcrumbComponent ngOnInit"),this.$toUnsubscribe.push(this.routeHelperService.activatedNamedRoutes.subscribe(this.buildBreadcrumbsArray))}navigateUp(){this.canNavigateUp&&this.router.navigateByUrl(this.breadcrumbsArray[this.breadcrumbsArray.length-2].url)}removeBreadcrumb(e){let i;this.breadcrumbsArray&&(i=this.breadcrumbsArray.findIndex(r=>r.name==e))>-1&&this.breadcrumbsArray.splice(i,1)}ngOnDestroy(){this.logger.logTrace("BreadcrumbComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(ro),E(lt),E(sZ,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-breadcrumb"]],outputs:{breadcrumbsUpdate:"breadcrumbsUpdate"},decls:1,vars:1,consts:[["class","py-1 d-flex align-items-center align-middle breadcrumb",4,"ngIf"],[1,"py-1","d-flex","align-items-center","align-middle","breadcrumb"],["mat-mini-fab","","color","accent",1,"me-2","mat-elevation-z0",3,"click","disabled"],[4,"ngIf"],[1,"py-2","bg-lighter","breadcrumb-bar","d-flex","align-items-center","align-middle"],[4,"ngFor","ngForOf"],[3,"routerLink"],["class","text-light",4,"ngIf"],[1,"text-light"]],template:function(i,r){i&1&&k(0,JZe,5,3,"div",0),i&2&&f("ngIf",!r.isBreadcrumbsArrayEmpty)},dependencies:[Vt,Ee,He,ma,gn,o_e]})}}return t})(),Ll=function(t){return t.MaxSize="MaxSize",t.Type="Type",t.ZeroByteFile="ZeroByteFile",t.InvalidContentType="InvalidContentType",t.InvalidExtensionForType="InvalidExtensionForType",t.MaxFilenameSize="MaxFilenameSize",t}(Ll||{});var bZ=(()=>{class t{constructor(e,i){this.data=e,this.transloco=i,this.errors=null,this.title=e.title||this.transloco.translate("components.dialog-upload-error.errors-on-upload"),this.errors=e.errors,this.acceptedTypes=e.acceptedTypes||[],this.maxFileSize=e.maxFileSize,this.maxFilenameSize=e.maxFilenameSize}ngOnInit(){}getError(e){switch(e){case Ll.MaxSize:return this.transloco.translate("components.dialog-upload-error.size-limit-reached",{value:this.formatFileSize(this.maxFileSize)});case Ll.Type:return this.transloco.translate("components.dialog-upload-error.invalid-file-type",{value:this.formatListOfAcceptedTypes()});case Ll.ZeroByteFile:return this.transloco.translate("components.dialog-upload-error.cant-upload-empty-file");case Ll.InvalidContentType:return this.transloco.translate("components.dialog-upload-error.invalid-content-type");case Ll.InvalidExtensionForType:return this.transloco.translate("components.dialog-upload-error.invalid-extension-for-type");case Ll.MaxFilenameSize:return this.transloco.translate("components.dialog-upload-error.filename-size-limit-reached",{value:this.maxFilenameSize});default:return this.transloco.translate("common.error")}}formatListOfAcceptedTypes(){let e=this.acceptedTypes.length,i=this.acceptedTypes.map(r=>{let o=Oge.getExtension(r);return o?`.${o}`:r});return e>1?`"${i.slice(0,e).join('", "')}"`:`"${i[0]}"`}formatFileSize(e){var i=1024;if(Math.abs(e)=i&&o{class t{get defaultApiRoute(){return this.spaControl.userProfile?"/api/uploads":"/api/uploads/public"}constructor(e,i){this.http=e,this.spaControl=i}uploadFile(e,i,r,o){return this.sendUploadRequest(e,i||this.defaultApiRoute,r,o)}startSegmentedUpload(){return this.sendStartSegmentedUploadRequest(this.defaultApiRoute)}uploadFile2(e,i,r,o){return i=i||this.defaultApiRoute,e.size{if(s.type===s0.UploadProgress)return new YE("Progress",null,Math.round(100*s.loaded/s.total));if(s instanceof e1)return new YE("Completed",s.body)}),vi(s=>s!=null))}uploadFileSegmentedly(e,i,r,o){let a=new qe,s=Ye.uploadSegmentLength;return this.sendStartSegmentedUploadRequest(i,r,o).subscribe(l=>{let u=new qe,p=(r||new $a).append("ticket",l);u.subscribe(g=>{let _=g*s,v=(g+1)*s;v=v>e.size?e.size:v;let y=new FormData;y.append("file",e.slice(_,v)),y.append("name",e.name),y.append("contentType",e.type);let x=(o||new bs).append("content-range",`bytes ${_}-${v-1}/${e.size}`);this.sendUploadRequest(y,i,p,x).subscribe(I=>{if(I.type===s0.UploadProgress)a.next(new YE("Progress",null,Math.round(100*(_/e.size+I.loaded/I.total*((v-_)/e.size)))));else if(I instanceof e1){let C=++g;C*s{a.error(I)})}),u.next(0)},l=>{a.error(l)}),a.asObservable()}sendUploadRequest(e,i,r,o){let a={headers:o,params:r,reportProgress:!0},s=new Jy("POST",i,e,a);return this.http.request(s)}sendStartSegmentedUploadRequest(e,i,r){let o={headers:r,params:i};return this.http.post(e+"/segmented-upload-ticket",{},o)}makeHot(e){let i=new qe;return e.subscribe(i),i.asObservable()}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(di))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oB=(()=>{class t{transform(e){var i=1024;if(Math.abs(e)=i&&o{class t{constructor(){this.filesDropped=new Ae,this.filesOver=new Ae}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.emit(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.emit(!1)}onDrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.emit(!1),this.filesDropped.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","spaDnd",""]],hostBindings:function(i,r){i&1&&$("dragover",function(a){return r.onDragOver(a)})("dragleave",function(a){return r.onDragLeave(a)})("drop",function(a){return r.onDrop(a)})},outputs:{filesDropped:"filesDropped",filesOver:"filesOver"}})}}return t})(),A0e=nZ.default,Jet=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","filesAction",""]]})}}return t})(),cc=(()=>{class t{get maxFileSize(){return this._maxFileSize||Ye.maxFileSize}set maxFileSize(e){this._maxFileSize=e}get maxFilenameSize(){return this._maxFilenameSize?this._maxFilenameSize:Ye.maxFilenameSize}set maxFilenameSize(e){this._maxFilenameSize=e}get loadingFiles(){return this._loadingFiles}get changesPending(){return!!(this.filesToAdd&&this.filesToAdd.length>0||this.filesToDelete&&this.filesToDelete.length>0)}get filesToShow(){let e=[];return this.existingFiles!=null&&e.push(...this.existingFiles),this.filesToDelete!=null&&(e=e.filter(i=>!this.filesToDelete.value.some(r=>r.id==i.id))),this.filesToAdd!=null&&e.push(...this.filesToAdd.value.filter(i=>i.id!=null)),e}get willSwapFile(){return this.single&&(this.filesToAdd&&this.filesToAdd.length>0||this.existingFiles&&this.existingFiles.length>0)}constructor(e,i,r,o,a,s,l,u){this.fb=e,this.dialogService=i,this.uploadService=r,this.logger=o,this.dialog=a,this.fileSizePipe=s,this.spaControl=l,this.captchaService=u,this.accept="",this.filesLoading=new Ae,this.numberOfFilesLoading=0,this._loadingFiles=!1,this.useCaptcha=Ye.captcha.enabled}ngOnInit(){if(this.filesToAdd==null&&!this.readOnly)throw"A FormArray representing the files to be added need to be passed to FilesComponent, but none was received.";if(this.filesToAdd!=null&&this.readOnly&&this.logger.logWarning("FilesComponent -- a filesToAdd array was passed to this component unnecessarily, since it is in read only mode"),this.filesToDelete==null&&!this.readOnly&&this.existingFiles!=null)throw"A FormArray representing the files to be deleted need to be passed to FilesComponent, but none was received.";if(this.filesToDelete!=null&&this.readOnly&&this.logger.logWarning("FilesComponent -- a filesToDelete array was passed to this component unnecessarily, since it is in read only mode"),this.existingFiles==null&&this.readOnly&&this.logger.logWarning("FilesComponent -- read only mode is activated but the input 'existingFiles' is undefined"),this.existingFiles!=null&&this.existingFiles.length>1&&this.single)throw"FilesComponent is marked as single, but an existingFiles array containing more than one file was passed"}transferDataSuccess(e){return Mt(this,null,function*(){if(!this.readOnly&&(e.target?.files||e.srcElement?.files||e.dataTransfer?.files)){let i=[],r=0;e.dataTransfer?.files?i=e.dataTransfer.files:e.target?.files?i=e.target.files:i=e.srcElement.files,this.single&&i.length>1&&this.logger.logWarning('FilesComponent -- multiple files were selected, but the property "single" is set to true. Thus, only the first valid file will be added.');let o=[];if(this.useCaptcha&&!this.spaControl.userProfile&&(!this.captchaTicketExpiration||A0e().isAfter(this.captchaTicketExpiration))){this.loading=!0;try{yield this.setCaptchaHeaders()}finally{this.loading=!1}}let a;try{this.loading=!0,a=yield this.uploadService.validate(this.convertFilesToInspectionModel(i)).toPromise(),this.loading=!1}catch(s){throw this.loading=!1,s}for(let s=0;sthis.maxFileSize){o.push({file:`${l.name} (${this.fileSizePipe.transform(l.size)})`,type:Ll.MaxSize});continue}if(l.name.length>this.maxFilenameSize){o.push({file:`${l.name}`,type:Ll.MaxFilenameSize});continue}if(this.acceptedTypes&&!this.acceptedTypes.some(p=>p==l.type)){o.push({file:`${l.name} (${this.fileSizePipe.transform(l.size)})`,type:Ll.Type});continue}else if(!u.isContentTypeValid||!u.isExtensionValid){u.isContentTypeValid||o.push({file:`${l.name} (${this.fileSizePipe.transform(l.size)})`,type:Ll.InvalidContentType}),u.isExtensionValid||o.push({file:`${l.name} (${l.type})`,type:Ll.InvalidExtensionForType});continue}if(this.single)if(r==0)this.filesToAdd.length==1?(this.logger.logInformation(`FilesComponent -- as the property "single" is set to true, the file that was added before (${this.filesToAdd.controls[0].get("name").value}) will be overwritten by this new valid file ("${l.name}")`),this.filesToAdd.removeAt(0)):this.existingFiles&&this.existingFiles.length==1&&(this.logger.logInformation(`FilesComponent -- as the property "single" is set to true, the existing file "${this.existingFiles[0].name}" will be overwritten by this new valid file ("${l.name}")`),this.delete(this.existingFiles[0]));else continue;r++,this.uploadFile(l)}o&&o.length>0&&this.openErrorDetailsDialog(o)}})}convertFilesToInspectionModel(e){let i=[];if(e)for(let r=0;r{r.type==="Progress"?i.controls.percentDone.setValue(r.progress):r.type==="Completed"&&(i.controls.id.setValue(r.model.id),i.controls.name.setValue(r.model.name),i.controls.contentType.setValue(r.model.contentType),i.controls.location.setValue(r.model.location),this.fileFinishedLoading())},()=>{this.fileFinishedLoading()})}openErrorDetailsDialog(e,i=null){return this.dialog.open(bZ,{width:"720px",data:{errors:e,title:i,acceptedTypes:this.acceptedTypes,maxFileSize:this.maxFileSize,maxFilenameSize:this.maxFilenameSize}}).afterClosed().toPromise()}fileStartedLoading(){this.numberOfFilesLoading==0&&(this.filesLoading.emit(!0),this._loadingFiles=!0,this.logger.logTrace("FilesComponent -- file(s) started loading")),this.numberOfFilesLoading++}fileFinishedLoading(){this.numberOfFilesLoading>0&&this.numberOfFilesLoading--,this.numberOfFilesLoading==0&&(this.filesLoading.emit(!1),this._loadingFiles=!1,this.logger.logTrace("FilesComponent -- file(s) finished loading"))}fileModelToFormGroup(e){return this.fb.group({id:[e.id,Se.required],name:[e.name,Se.required],contentType:[e.contentType,Se.required],location:[""],request:[null],percentDone:[""]})}addFile(e){let i=this.fileModelToFormGroup(e);return this.filesToAdd.push(i),i}addEmptyFile(){let e={id:"",name:"",contentType:"",location:""};return this.addFile(e)}setCaptchaHeaders(){return Mt(this,null,function*(){let e=yield this.captchaService.executeAsync(()=>{this.loading=!1}),i=yield this.uploadService.generateCaptchaTicket(e).toPromise();this.captchaTicketExpiration=A0e().add(Math.max(i.secondsToExpire-60,60),"seconds"),this.httpHeaders||(this.httpHeaders=new bs),this.httpHeaders=this.httpHeaders.set("X-Captcha-Ticket",i.ticket)})}fileButtonClick(){this.touched=!0,this.readOnly||this.fileButton.nativeElement.click()}delete(e){if(!this.readOnly){var i=this.filesToAdd.value.findIndex(r=>r.id==e.id);i>-1?this.filesToAdd.removeAt(i):this.filesToDelete.push(this.fileModelToFormGroup(e))}}viewFile(e){var i=this.filesToShow.findIndex(r=>r.id==e.id);i>-1&&this.dialogService.openFile(this.filesToShow,i)}testClick(){this.logger.logDebug(this.changesPending),this.logger.logDebug(this.numberOfFilesLoading)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Qi),E(yZ),E($t),E(Dn),E(oB),E(di),E(J0e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-files"]],contentQueries:function(i,r,o){if(i&1&&bi(o,Jet,4,Mn),i&2){let a;Pe(a=Ne())&&(r.filesActions=a)}},viewQuery:function(i,r){if(i&1&&ot(nJe,5),i&2){let o;Pe(o=Ne())&&(r.fileButton=o.first)}},inputs:{filesToAdd:"filesToAdd",filesToDelete:"filesToDelete",existingFiles:"existingFiles",acceptedTypes:"acceptedTypes",accept:"accept",onFileClick:"onFileClick",uploadUrl:"uploadUrl",httpParams:"httpParams",httpHeaders:"httpHeaders",readOnly:[ve.HasDecoratorInputTransform,"readOnly","readOnly",Sn],single:[ve.HasDecoratorInputTransform,"single","single",Sn],maxFileSize:"maxFileSize",hideViewButton:[ve.HasDecoratorInputTransform,"hideViewButton","hideViewButton",Sn],hideDeleteButton:[ve.HasDecoratorInputTransform,"hideDeleteButton","hideDeleteButton",Sn],maxFilenameSize:"maxFilenameSize"},outputs:{filesLoading:"filesLoading"},features:[Ei],decls:1,vars:0,consts:[["fileInp",""],["spaDnd","","class","stretch top-container",3,"filesOver","filesDropped",4,"transloco"],["spaDnd","",1,"stretch","top-container",3,"filesOver","filesDropped"],[3,"show"],[1,"dnd-container",3,"ngClass"],[1,"dnd-highlight",3,"ngClass"],[1,"hightligh-text"],[1,"dnd-height"],[1,"dropzone"],[3,"click",4,"ngIf"],[4,"ngIf"],["class","button-container",4,"ngIf"],[3,"click"],["class","dnd-text",4,"ngIf"],["class","centered",4,"ngIf"],[1,"dnd-text"],[1,"text-bottom",3,"ngClass"],[1,"centered"],[4,"ngFor","ngForOf"],[1,"d-flex","align-items-center","px-3","py-3"],["class","view-button me-2","type","button",3,"click",4,"ngIf"],["class","delete-button me-2","type","button",3,"click",4,"ngIf"],[1,"file-data"],["mode","determinate",3,"value",4,"ngIf"],["mode","indeterminate",4,"ngIf"],[1,"ps-1",3,"click"],["type","button",1,"view-button","me-2",3,"click"],["type","button",1,"delete-button","me-2",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","determinate",3,"value"],["mode","indeterminate"],[1,"button-container"],["type","file","id","file-input","hidden","",3,"change","click","multiple","accept"],["mat-mini-fab","","color","primary","type","button",3,"click"],["aria-label","Swap file"],["aria-label","Add file"]],template:function(i,r){i&1&&k(0,CJe,11,13,"div",1)},dependencies:[ji,Vt,Ee,ta,He,ma,kc,mw,li,Fn,xZ]})}}return t})();var k0e=(()=>{class t extends Sl{constructor(e,i,r,o,a,s){super(),this.spaControl=e,this.appInsightsService=i,this.logger=r,this.transloco=o,this.dialogService=a,this.messageService=s,this.onApiError=(l,u,p)=>{if(this.spaControl._initialized)if(l.status===401){if(Ye.rootAuthenticationEnabled&&this.spaControl.hasRootToken())return this.refreshRootTokenAndRetry(l,u,p);if(Ye.oidc.enabled&&this.spaControl.shouldAttemptLogin()){let g=window.location.pathname+window.location.search;return this.logger.logInformation("ErrorHandlingService -- API unauthorized while using OIDC auth. Error: ",l,", request: ",u,", returnUrl: ",g),this.spaControl.startLogin(g),qC}}else{if(l.status===403)return this.logger.logError("ErrorHandlingService -- API forbidden error: ",l,", request: ",u),this.messageService.showError(this.transloco.translate("services.spa-control.user-doesnt-have-permission")),Os(l);if(l.status===0)return this.logger.logError("ErrorHandlingService -- API connectivity error: ",l,", request: ",u),this.messageService.showError(this.transloco.translate("services.spa-control.no-communication-with-server")),Os(l);if(l.status===429)return this.logger.logError('ErrorHandlingService -- API "too many requests" error: ',l,", request: ",u),this.messageService.showError(this.transloco.translate("services.error-handling.too-many-requests-try-again-later")),Os(l);{this.logger.logError("ErrorHandlingService -- API error: ",l,", request: ",u);let g=l.error&&l.error.message?l.error.message:this.transloco.translate("services.spa-control.an-error-has-occurred",{message:l.message});return this.messageService.showError(g),Os(l)}}else return Os(l)}}handleError(e){this.appInsightsService.initialized&&this.appInsightsService.appInsights.trackException({error:e}),super.handleError(e)}refreshRootTokenAndRetry(e,i,r){return this.logger.logInformation("ErrorHandlingService -- API unauthorized while using root token auth. Error: ",e,", request: ",i),this.messageService.showWarning(this.transloco.translate("errors.session-expired"),{duration:5e3}),this.refreshRootTokenSubject?this.logger.logDebug("ErrorHandlingService -- using the existing subject that represents the request that will refresh the root token"):(this.logger.logDebug("ErrorHandlingService -- creating subject that represents the request that will refresh the root token"),this.refreshRootTokenSubject=new qe,this.dialogService.rootLogin({disableClose:!0,navigateHomeIfCancelled:!0,message:this.transloco.translate("services.error-handling.session-expired-insert-password")}).pipe(ri(o=>this.refreshRootTokenSubject=null)).subscribe(this.refreshRootTokenSubject)),this.refreshRootTokenSubject.asObservable().pipe(Wi(o=>o&&o.result==Zk.Success?(this.logger.logDebug("ErrorHandlingService -- since the root token has just been refreshed, retry the request, now with the new root token"),i=i.clone({setHeaders:{Authorization:`RootToken ${o.rootToken}`}}),r.handle(i)):(this.messageService.showInfo(this.transloco.translate("services.error-handling.redirected-home-since-session-expired"),{duration:1e4}),this.logger.logDebug("ErrorHandlingService -- failed refreshing root token."),Os(e))))}static{this.\u0275fac=function(i){return new(i||t)(ae(di),ae(Q0e),ae($t),ae(ur),ae(Qi),ae(Bi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ett=(()=>{class t{constructor(e,i){this.http=e,this.logger=i,this.loadedSubject=new qe,this.loaded$=this.loadedSubject.asObservable()}getTranslation(e){return this.logger.logDebug(`HttpTranslocoLoader -- loading translation file for language "${e}"...`),this.http.get(`/api/i18n/${e}`).pipe(ri(i=>{this.logger.logDebug(`HttpTranslocoLoader -- loaded translation file for language "${e}": `,i),this.loadedSubject.next(i)}))}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ttt=(()=>{class t extends XE{constructor(e){super(e),this.spaLanguage=e,this.currencyPipe=new Yoe(this.currentLocale)}transform(e,i,r="symbol",o,a){return this.transformUsingCache({value:e,currencyCode:i,display:r,digitsInfo:o,locale:a})}transformFunction(e){return this.currencyPipe.transform(e.value,e.currencyCode,e.display,e.digitsInfo,e.locale)}static{this.\u0275fac=function(i){return new(i||t)(E(Nb,16))}}static{this.\u0275pipe=oi({name:"spaCurrency",type:t,pure:!1})}}return t})(),itt=(()=>{class t extends XE{constructor(e){super(e),this.spaLanguage=e,this.decimalPipe=new qoe(this.currentLocale)}transform(e,i,r){return this.transformUsingCache({value:e,digitsInfo:i,locale:r})}transformFunction(e){return this.decimalPipe.transform(e.value,e.digitsInfo,e.locale)}static{this.\u0275fac=function(i){return new(i||t)(E(Nb,16))}}static{this.\u0275pipe=oi({name:"spaNumber",type:t,pure:!1})}}return t})(),ntt=(()=>{class t extends XE{constructor(e){super(e),this.spaLanguage=e,this.percentPipe=new Woe(this.currentLocale)}transform(e,i,r){return this.transformUsingCache({value:e,digitsInfo:i,locale:r})}transformFunction(e){return this.percentPipe.transform(e.value,e.digitsInfo,e.locale)}static{this.\u0275fac=function(i){return new(i||t)(E(Nb,16))}}static{this.\u0275pipe=oi({name:"spaPercent",type:t,pure:!1})}}return t})(),rtt=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.route=e,this.router=i,this.logger=r,this.fb=o,this.dialogService=a,this.messageService=s,this.userService=l,this.transloco=u,this.$toUnsubscribe=[],this.closing=!1,this.saving=!1,this.loading=!0,this.subscriptionGender=Ye.labels.subscriptionGender,this.createForm()}createForm(){this.form=this.fb.group({name:["",Se.required],email:["",Se.required]})}rebuildForm(){this.form.reset({name:this.model.name,email:this.model.emailAddress})}ngOnInit(){this.$toUnsubscribe.push(this.route.parent.paramMap.subscribe(e=>{let i=e.get("userId");this.logger.logTrace("User id:",i),this.loading=!0,this.userService.get(i).subscribe(r=>{this.model=r,this.rebuildForm(),this.loading=!1})}))}onSubmit(){if(this.logger.logTrace("UserEditComponent onSubmit"),!this.form.valid||!this.model){this.logger.logInformation("UserEditComponent -- not submitting form, since it is not valid, or the model is not loaded yet");return}this.saving=!0;let e=this.form.value,i={emailAddress:e.email,name:e.name,subject:null,authorizationData:null,rootAuthorizationData:null};this.userService.update(this.model.subject,i).subscribe(r=>{this.messageService.showSuccess(this.transloco.translate("components.user-edit.user-updated-successfully")),this.closing=!0,this.close()},r=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("UserEditComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirm(this.transloco.translate("common.continue-in-background"));if(this.form.dirty)return this.dialogService.confirm(this.transloco.translate("components.user-edit.discard-changes-on-user"))}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}getErrorMessage(e){let i=this.form.get(e);switch(e){case"name":return i.hasError("required")?this.transloco.translate("errors.field-required"):"";case"email":return i.hasError("required")?this.transloco.translate("errors.field-required"):""}return this.transloco.translate("errors.field-invalid")}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Ti),E(Qi),E(Bi),E(JE),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-user-edit"]],decls:1,vars:0,consts:[[3,"loading",4,"transloco"],[3,"loading"],["box-title",""],[3,"formGroup"],[1,"row","pt-4"],[1,"col-12"],["matInput","","formControlName","name"],["matInput","","formControlName","email"],[1,"mt-3"],[1,"me-2",3,"submit","form","disabled"],["mat-flat-button","","color","warn","type","button",3,"click","disabled"]],template:function(i,r){i&1&&k(0,SJe,22,12,"spa-box",0)},dependencies:[zt,Gt,it,pt,dt,Tt,Wt,bt,jt,Si,Ze,Fn,un,o_]})}}return t})();var ott=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,i="html"){switch(i){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${i}`)}}static{this.\u0275fac=function(i){return new(i||t)(E(Kl,16))}}static{this.\u0275pipe=oi({name:"safe",type:t,pure:!0})}}return t})(),att=(()=>{class t{constructor(e){this.dialogService=e}show(e){return this.dialogService.showEvent(e)}static{this.\u0275fac=function(i){return new(i||t)(ae(Qi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),s_e=new ke("TRANSLOCO_INTL_MESSAGE_FORMAT_CONFIG");function l_e(t,n,e){return(i,r)=>new LQ(i,t,n,e).format(r)}var M0e=new Map;function stt(t,n,e){return(i,r)=>{let a=`${`__${t?.toString()||LQ.defaultLocale}__`}${r}`,s=M0e.get(a);if(s)return s;let l=l_e(t,n,e)(i,r);return M0e.set(a,l),l}}var ltt=(()=>{class t extends fW{constructor(e,i){super(i),this.config=e,this.mfFactory=this.getMFFactory(e?.locales)}transpile(e,i={},r,o){if(!e)return e;if(G2(e)&&i)Object.keys(i).forEach(a=>{let s=U2(e,a),l=U2(i,a),u=super.transpile(s,l,r,o),p=this.mfFactory(u,l);e=hW(e,a,p)});else if(!Array.isArray(e)){let a=super.transpile(e,i,r,o);return this.mfFactory(a,i)}return e}onLangChanged(e){this.mfFactory=this.getMFFactory(e)}getMFFactory(e){return this.config?.enableCache?stt(e,this.config?.formats,this.config?.opts):l_e(e,this.config?.formats,this.config?.opts)}static{this.\u0275fac=function(i){return new(i||t)(ae(s_e),ae(Xf,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),ctt=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:s_e,useValue:e},{provide:TL,useClass:ltt}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})(),dtt="/api/servers",utt=(()=>{class t{constructor(e){this.http=e}list(){return this.http.get(dtt)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),mtt=(()=>{class t{constructor(e,i){this.route=e,this.serverService=i}ngOnInit(){this.isLoading=!0,this.serverService.list().subscribe(e=>{this.serversDataSource=e,this.isLoading=!1},e=>this.isLoading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(utt))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-servers-list"]],decls:1,vars:0,consts:[[3,"loading","hidden",4,"transloco"],[3,"loading","hidden"],["box-title",""],["matSort","","matSortActive","name",3,"dataSource",4,"ngIf"],["matSort","","matSortActive","name",3,"dataSource"],["matColumnDef","name"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","lastHeartbeat"],["matColumnDef","isHealthy"],["matColumnDef","failedHealthCheck"],["mat-sort-header",""]],template:function(i,r){i&1&&k(0,NJe,4,4,"spa-box",0)},dependencies:[Ee,zn,Vn,Hn,tr,ir,Kn,Lr,dr,Fn,un,QE]})}}return t})(),aB=(()=>{class t{static{this.nextId=0}get value(){return this.getValueFromForm()}set value(e){if(!e){this.onChange(e),this.stateChanges.next();return}let i=null,r=!1;if(this.dayStart||this.dayEnd||this.withTime)if(e instanceof Date)this.dayEnd&&e.setDate(e.getDate()-1),i=e,this.setValueFromDate(e),r=!0;else{let o=new Date(e);isNaN(o.getTime())||(this.dayEnd&&o.setDate(o.getDate()-1),i=o,this.setValueFromDate(o),r=!0)}else if(e instanceof Date)i=e,this.setDateValue(e.getFullYear(),e.getMonth()+1,e.getDate()),r=!0;else{let o=e.match(WE.DATE_REGEX);if(o){let a=o[1],s=o[2],l=o[3];i=new Date(parseInt(a),parseInt(s)-1,parseInt(l)),this.setDateValue(a,s,l),r=!0}}if(i&&this.form.controls.datePicker.setValue(i),!r)setTimeout(()=>{this.writeValue(null),this.onChange(null)});else{let o=this.getValueFromForm();o!=e&&setTimeout(()=>{this.writeValue(o),this.onChange(o)},0)}this.stateChanges.next()}get placeholder(){return this._placeholder?this._placeholder:this.currentLocale=="en-US"?this.transloco.translate("common.date-format-mm-dd-yyyy"):this.transloco.translate("common.date-format-dd-mm-yyyy")}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get empty(){return!this.form.controls.date.value}get shouldLabelFloat(){return this.readonly?!this.empty:this.focused||!this.empty}get required(){return this._required}set required(e){this._required=Sn(e),this.stateChanges.next()}get disabled(){return this._disabled}set disabled(e){this._disabled=Sn(e),this._disabled?this.form.disable():this.form.enable(),this.stateChanges.next()}get dayStart(){return this._dayStart}set dayStart(e){this._dayStart=Sn(e),this.stateChanges.next(),this.handleInput()}get dayEnd(){return this._dayEnd}set dayEnd(e){this._dayEnd=Sn(e),this.stateChanges.next(),this.handleInput()}get readonly(){return this._readonly}set readonly(e){this._readonly=Sn(e),this.stateChanges.next(),this.handleInput()}get withTime(){return this._withTime}set withTime(e){this._withTime=Sn(e),this.stateChanges.next(),this.handleInput()}get showSeconds(){return this._showSeconds}set showSeconds(e){this._showSeconds=Sn(e),this.stateChanges.next(),this.handleInput()}get noTimeZone(){return this._noTimeZone}set noTimeZone(e){this._noTimeZone=Sn(e),this.stateChanges.next(),this.handleInput()}get hideClear(){return this._hideClear}set hideClear(e){this._hideClear=Sn(e),this.stateChanges.next(),this.handleInput()}get hidePicker(){return this._hidePicker}set hidePicker(e){this._hidePicker=Sn(e),this.stateChanges.next(),this.handleInput()}get hours(){let e=Number(this.form.controls.hours.value);return isNaN(e)?0:e}get minutes(){let e=Number(this.form.controls.minutes.value);return isNaN(e)?0:e}get seconds(){let e=Number(this.form.controls.seconds.value);return isNaN(e)?0:e}constructor(e,i,r,o,a,s,l,u){this.ngControl=i,this.parentForm=r,this.parentFormGroup=o,this.parentFormField=a,this.elementRef=s,this.spaLanguage=l,this.transloco=u,this.$toUnsubscribe=[],this.stateChanges=new qe,this.id=`spa-date-input-${t.nextId++}`,this.focused=!1,this.touched=!1,this._required=!1,this._disabled=!1,this.errorState=!1,this.controlType="spa-date-input",this.describedBy="",this._dayStart=!1,this._dayEnd=!1,this._readonly=!1,this._withTime=!1,this._showSeconds=!1,this._noTimeZone=!1,this._hideClear=!1,this._hidePicker=!1,this.stepHours=WE.DEFAULT_STEP,this.stepMinutes=WE.DEFAULT_STEP,this.stepSeconds=WE.DEFAULT_STEP,this.onChange=p=>{},this.onTouched=()=>{},this.form=e.group({date:"",datePicker:"",hours:"00",minutes:"00",seconds:"00"}),this.ngControl!=null&&(this.ngControl.valueAccessor=this),this.$toUnsubscribe.push(this.form.controls.datePicker.valueChanges.subscribe(p=>{this.setValueFromDate(p,!1),this.handleInput()}),this.spaLanguage.currentLocale.subscribe(p=>{let g=this.form.controls.date.value?.split("/");if(g?.length==3){let _=parseInt(g[0]).toString().padStart(2,"0"),v=parseInt(g[1]).toString().padStart(2,"0"),y=parseInt(g[2]),x=`${v}/${_}/${y}`;switch(this.currentLocale){case"en-US":(p=="pt-BR"||p=="es-ES")&&this.form.controls.date.setValue(x);break;case"pt-BR":case"es-ES":p=="en-US"&&this.form.controls.date.setValue(x);break}}this.currentLocale=p}))}getValueFromForm(){let e=this.getSelectedDate();if(!e)return"";let i=`${e.year}-${e.month.toString().padStart(2,"0")}-${e.day.toString().padStart(2,"0")}`;if(this.dayEnd){let o=new Date(Date.UTC(e.year,e.month-1,e.day+1)),a=o.getUTCFullYear(),s=(o.getUTCMonth()+1).toString().padStart(2,"0"),l=o.getUTCDate().toString().padStart(2,"0");i=`${a}-${s}-${l}`}let r={invalidDate:!0};if(this.dayStart||this.dayEnd||this.withTime){let o=new Date(`${i}T${this.form.controls.hours.value}:${this.form.controls.minutes.value}:${this.form.controls.seconds.value}`);if(!o||isNaN(o.getTime()))return this.form.controls.date.setErrors(r),"";this.form.controls.date.setErrors(null);let a=o.getFullYear(),s=(o.getMonth()+1).toString().padStart(2,"0"),l=o.getDate().toString().padStart(2,"0"),u=this.dayStart||this.dayEnd?"00":o.getHours().toString().padStart(2,"0"),p=this.dayStart||this.dayEnd?"00":o.getMinutes().toString().padStart(2,"0"),g=this.dayStart||this.dayEnd?"00":o.getSeconds().toString().padStart(2,"0"),_=o.getMilliseconds().toString().padStart(3,"0"),v=o.getTimezoneOffset(),y=Math.abs(v)/60,x=Math.abs(v)%60,I=v>=0?"-":"+",C=`${a}-${s}-${l}T${u}:${p}:${g}.${_}`;return this.noTimeZone||(C+=`${I}${y.toString().padStart(2,"0")}:${x.toString().padStart(2,"0")}`),C}else{let o=new Date(i);return!o||isNaN(o.getTime())?(this.form.controls.date.setErrors(r),""):(this.form.controls.date.setErrors(null),i)}}onFocusIn(e){this.focused||(this.focused=!0,this.stateChanges.next())}onFocusOut(e){this.elementRef.nativeElement.contains(e.relatedTarget)||(this.touched=!0,this.focused=!1,this.onTouched(),this.stateChanges.next())}ngOnDestroy(){this.stateChanges.complete(),this.$toUnsubscribe.forEach(e=>e.unsubscribe())}ngDoCheck(){this.ngControl&&this.updateErrorState()}updateErrorState(){let e=this.parentFormGroup||this.parentForm,i=this.errorState,r=(this.ngControl?.invalid||this.form.invalid)&&(this.touched||e.submitted);i!==r&&(this.errorState=r,this.stateChanges.next())}setDescribedByIds(e){this.describedBy=e.join(" ")}onContainerClick(e){e.target.tagName.toLowerCase()!="input"&&this.elementRef.nativeElement.querySelector("input").focus()}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}handleInput(){this.onChange(this.value);let e=this.getSelectedDate();if(e){let i=new Date(e.year,e.month-1,e.day);this.form.controls.datePicker.setValue(i,{onlySelf:!1,emitEvent:!1})}}setValueFromDate(e,i=!0){if(!e)return null;this.setDateValue(e.getFullYear(),e.getMonth()+1,e.getDate()),i&&(this.form.controls.hours.setValue(this.formatTwoDigitTimeValue(e.getHours())),this.form.controls.minutes.setValue(this.formatTwoDigitTimeValue(e.getMinutes())),this.form.controls.seconds.setValue(this.formatTwoDigitTimeValue(e.getSeconds())))}setDateValue(e,i,r){let o=e.toString(),a=i.toString().padStart(2,"0"),s=r.toString().padStart(2,"0");switch(this.currentLocale){case"en-US":this.form.controls.date.setValue(`${a}/${s}/${o}`);break;case"pt-BR":case"es-ES":default:this.form.controls.date.setValue(`${s}/${a}/${o}`);break}}openPicker(){this.datePicker.open()}clear(){setTimeout(e=>{this.form.controls.date.setValue(""),this.form.controls.hours.setValue("00"),this.form.controls.minutes.setValue("00"),this.form.controls.seconds.setValue("00"),this.form.controls.datePicker.setValue(""),this.handleInput()},0)}change(e,i){let r=this.getNextValueByProp(e,i);this.form.controls[e].setValue(this.formatTwoDigitTimeValue(r),{onlySelf:!1,emitEvent:!1}),this.handleInput()}getNextValueByProp(e,i){let r=e[0].toUpperCase()+e.slice(1),o=WE.LIMIT_TIMES[`min${r}`],a=WE.LIMIT_TIMES[`max${r}`],s;return i==null?s=this[e]%a:(s=i?this[e]+this[`step${r}`]:this[e]-this[`step${r}`],s=s%a,i?s=s>a?s-a+o:s:s=s1?i:`0${i}`}selectInputIfCursorStart(e,i){if(!i)return;if(e.target.selectionStart<=0){let o=i instanceof Xe?i.nativeElement:i;o.focus(),o.selectionStart=o.selectionEnd=o.value.length,e.preventDefault()}}selectInputIfCursorEnd(e,i,r){if(!i)return;if(e.target.selectionStart>=r){let a=i instanceof Xe?i.nativeElement:i;a.focus(),a.selectionStart=a.selectionEnd=0,e.preventDefault()}}getSelectedDate(){let e=this.form.controls.date.value.split("/");if(e.length!=3)return null;let i=parseInt(e[0]),r=parseInt(e[1]);if(e[2].length!=4)return null;let o=parseInt(e[2]);if(isNaN(i)||isNaN(r)||isNaN(o))return null;let a=o,s,l;switch(this.currentLocale){case"en-US":s=i,l=r;break;case"pt-BR":case"es-ES":default:s=r,l=i;break}return{year:a,month:s,day:l}}onPaste(e){if(!this.withTime)return;let i=/^\d{1,2}\/\d{1,2}\/\d{4}[, ]?(\d{2}):(\d{2}):?(\d{2})?$/,r=e.clipboardData.getData("text/plain").match(i);if(r){this.form.controls.date.setValue("");let o=r[1];this.form.controls.hours.setValue(this.formatTwoDigitTimeValue(parseInt(o)),{onlySelf:!1,emitEvent:!1});let a=r[2];if(this.form.controls.minutes.setValue(this.formatTwoDigitTimeValue(parseInt(a)),{onlySelf:!1,emitEvent:!1}),r.length>=4){let s=r[3];this.form.controls.seconds.setValue(this.formatTwoDigitTimeValue(parseInt(s)),{onlySelf:!1,emitEvent:!1})}}}static{this.\u0275fac=function(i){return new(i||t)(E(oN),E(Yc,10),E(kh,8),E(dt,8),E(bt,8),E(Xe),E(Nb),E(ur))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-date-input"]],viewQuery:function(i,r){if(i&1&&(ot(OJe,5),ot(LJe,5),ot(VJe,5),ot(BJe,5),ot(jJe,5)),i&2){let o;Pe(o=Ne())&&(r.datePicker=o.first),Pe(o=Ne())&&(r.dateInput=o.first),Pe(o=Ne())&&(r.hourInput=o.first),Pe(o=Ne())&&(r.minuteInput=o.first),Pe(o=Ne())&&(r.secondInput=o.first)}},hostVars:3,hostBindings:function(i,r){i&2&&(La("id",r.id),yt("floating",r.shouldLabelFloat))},inputs:{value:"value",placeholder:"placeholder",required:"required",disabled:"disabled",userAriaDescribedBy:[ve.None,"aria-describedby","userAriaDescribedBy"],dayStart:"dayStart",dayEnd:"dayEnd",readonly:"readonly",withTime:"withTime",showSeconds:"showSeconds",noTimeZone:"noTimeZone",hideClear:"hideClear",hidePicker:"hidePicker",stepHours:"stepHours",stepMinutes:"stepMinutes",stepSeconds:"stepSeconds"},features:[Zt([{provide:Iv,useExisting:t}])],decls:11,vars:16,consts:[["dateInput",""],["datePicker",""],["hourInput",""],["minuteInput",""],["secondInput",""],[3,"focusin","focusout","formGroup","id"],[1,"d-flex"],["matInput","","formControlName","date","mask","00/00/0000",3,"input","keydown.ArrowRight","paste","ngClass","readonly","placeholder","dropSpecialCharacters"],[1,"date-icons"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["formControlName","datePicker","hidden","",3,"matDatepicker"],[1,"me-1"],["placeholder","00","matInput","","formControlName","hours","mask","00",1,"time-input",3,"input","keydown.ArrowUp","keydown.ArrowDown","keydown.ArrowLeft","keydown.ArrowRight","blur","readonly"],["placeholder","00","matInput","","formControlName","minutes","mask","00",1,"time-input",3,"input","keydown.ArrowUp","keydown.ArrowDown","keydown.ArrowLeft","keydown.ArrowRight","blur","readonly"],["placeholder","00","matInput","","formControlName","seconds","mask","00",1,"time-input",3,"keydown.ArrowUp","keydown.ArrowDown","keydown.ArrowLeft","blur","readonly"],["mat-icon-button","",3,"click","disabled"],["mat-icon-button","",3,"click"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",5),$("focusin",function(s){return W(o),Y(r.onFocusIn(s))})("focusout",function(s){return W(o),Y(r.onFocusOut(s))}),d(1,"div",6)(2,"input",7,0),$("input",function(s){return W(o),r.handleInput(),Y(r.selectInputIfCursorEnd(s,r.hourInput,10))})("keydown.ArrowRight",function(s){return W(o),Y(r.selectInputIfCursorEnd(s,r.hourInput,10))})("paste",function(s){return W(o),Y(r.onPaste(s))}),c(),k(4,UJe,9,3),d(5,"div",8),k(6,GJe,3,1,"button",9)(7,$Je,3,0,"button",10),c()(),H(8,"input",11)(9,"mat-datepicker",null,1),c()}if(i&2){let o=je(10);f("formGroup",r.form)("id",r.id),xt("aria-describedby",r.describedBy)("aria-labelledby",r.parentFormField==null?null:r.parentFormField.getLabelId())("aria-describedby",r.describedBy),m(2),f("ngClass",so(13,HJe,r.empty,!r.empty))("readonly",r.readonly)("placeholder",r.placeholder)("dropSpecialCharacters",!1),m(2),Xt(4,r.withTime&&!r.empty?4:-1),m(2),f("ngIf",!r.hideClear),m(),f("ngIf",!r.hidePicker),m(),f("matDatepicker",o)}},dependencies:[ji,Ee,Gt,it,pt,dt,Tt,He,Wt,fi,Fo,Rb,vg],styles:[".time-input[_ngcontent-%COMP%]{width:24px;min-width:24px;text-align:center}.date-input[_ngcontent-%COMP%]{width:95px;min-width:95px}.date-icons[_ngcontent-%COMP%]{height:var(--mat-form-field-container-height);margin-top:calc(-1 * var(--mat-form-field-filled-with-label-container-padding-top));position:absolute;right:0;align-content:center}"]})}}return t})(),WE=(()=>{class t{static{this.NUMERIC_REGEX=/[^0-9]/g}static{this.DATE_REGEX=/^(\d{4})-(\d{2})-(\d{2})/}static{this.DEFAULT_STEP=1}static{this.LIMIT_TIMES={minHours:0,maxHours:24,minMinutes:0,maxMinutes:60,minSeconds:0,maxSeconds:60}}}return t})();var As=(()=>{class t{constructor(){this.trigger=new Ae}onClick(){this.trigger.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-link-button"]],outputs:{trigger:"trigger"},ngContentSelectors:Jk,decls:2,vars:0,consts:[[1,"clean-button","link",3,"click"]],template:function(i,r){i&1&&(hi(),d(0,"button",0),$("click",function(){return r.onClick()}),ct(1),c())}})}}return t})();var ptt=(()=>{class t{constructor(e){this.showReturnToHomeButton=e}goToHome(){window.location.href="/"}static{this.\u0275fac=function(i){return new(i||t)(E($0e))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-access-locked"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"row","g-0"],[1,"col-md-8","offset-md-2","col-lg-6","offset-lg-3","col-xl-4","offset-xl-4"],[1,"d-flex","flex-column","align-items-center","justify-content-center"],[1,"main-icon"],[1,"icon"],[1,"px-4"],[1,"d-flex","flex-column","align-items-center","justify-content-center","my-4"],["mat-raised-button","","color","accent",1,"me-0",3,"routerLink"],["mat-stroked-button","","color","primary",1,"mt-3","ms-0"],["mat-stroked-button","","color","primary",1,"mt-3","ms-0",3,"click"]],template:function(i,r){i&1&&k(0,WJe,16,6,"ng-container",0)},dependencies:[He,Ze,ws,Fn,gn],styles:[".main-icon[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:15px}.main-icon[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:80px;height:80px;font-size:80px;--mdc-icon-button-icon-size: 80px}"]})}}return t})();function htt(){return F0e.default}function ftt(t){return()=>t.init()}function gtt(t){return()=>t.init()}function _tt(t){return t.onApiError}var CZ={availableLangs:["en","pt","es"],defaultLang:"en",fallbackLang:"en",missingHandler:{useFallbackTranslation:!0}};var c_e=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:eM,useValue:e.listOfRoles},{provide:O0e,useValue:e.listOfRootRoles},{provide:Xf,useValue:Ve(Ve({},CZ),e.translocoConfig)},{provide:lZ,useValue:e.languageToLocalesMapping},{provide:L0e,useValue:e.requiredIdClaims},{provide:oZ,useValue:e.asyncInit},{provide:V0e,useExisting:e.entityNavigator!=null?e.entityNavigator:fZ},{provide:B0e,useExisting:e.eventViewer!=null?e.eventViewer:att},{provide:j0e,useValue:e.getEntityIcon},{provide:H0e,useValue:e.getEventTypeName},{provide:z0e,useValue:e.getRoleName},{provide:aZ,useValue:e.listOfUnassignableRoles?e.listOfUnassignableRoles:[]},{provide:sZ,useValue:e.getBreadcrumbDisplayName},{provide:nB,useValue:e.enableLanguageRoute},{provide:G0e,useValue:e.oidcRedirectPath},{provide:$0e,useValue:e.showReturnToHomeButton},{provide:cZ,useValue:e.enableInvisibleCaptcha??!0}]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[{provide:gp,useFactory:ftt,deps:[tM],multi:!0},{provide:gp,useFactory:gtt,deps:[Nb],multi:!0},{provide:eT,useClass:bet,multi:!0},{provide:U0e,useFactory:_tt,deps:[k0e]},{provide:Sl,useClass:k0e},{provide:pW,useClass:ett},{provide:IW,useValue:{autoFocus:!1}},n4,dZ,o_e,Zo,uZ,pZ,hZ,Hx,Wp,sf,oB,ott,QE,ttt,itt,ntt,q5()],imports:[po,_T,vT,hN,uw,Hh,T2,Ic,zW,K2,DW,Av,q2,LL,OW,BW,Tv,kW,vW,xW,HW,j2,dq,oue,rW,iue.forRoot({player:htt}),gW,ctt.forRoot(),zT,Xk,C2,_T,vT,uw,Hh,DW,Ic,T2,zW,K2,q2,OW,BW,kW,vW,xW,B2,O2,HW,j2,dq,rW,gW]})}}return t})(),vtt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.logger.logTrace("SpaInitSuccessGuard canActivate",e,i),this.spaControl.initialized.pipe(st(()=>this.spaControl.initError?(this.logger.logDebug('SpaInitSuccessGuard -- Due to initialization error, redirecting to "/private-unavailable"'),this.router.navigateByUrl("/private-unavailable"),!1):!0))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),btt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.logger.logTrace("SpaInitErrorGuard canActivate",e,i),this.spaControl.initialized.pipe(st(()=>this.spaControl.initError?!0:(this.logger.logDebug('SpaInitErrorGuard -- Due to the lack of initialization errors, redirecting to "/"'),this.router.navigateByUrl("/"),!1)))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),d_e=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){if(this.logger.logTrace("AuthenticatedGuard canActivate",e,i),this.spaControl.signInError){let r="AuthenticatedGuard -- detected sign in error, ";return this.spaControl.shouldAttemptLogin()?(r+="trying login again",this.spaControl.startLogin()):(r+="sending user to sign-in page",this.router.navigateByUrl("/private/sign-in")),this.logger.logWarning(r),vt(!1)}else return this.spaControl.userProfile?(this.logger.logTrace("AuthenticatedGuard -- user is authenticated"),vt(!0)):Ye.oidc.enabled?this.spaControl.shouldAttemptLogin()?(this.logger.logInformation("AuthenticatedGuard -- starting login with the following return url: ",i.url),this.spaControl.startLogin(i.url),qC):(this.logger.logInformation('AuthenticatedGuard -- navigating to "sign in" page'),this.router.navigateByUrl("/private/sign-in"),vt(!1)):(this.logger.logInformation(`AuthenticatedGuard -- navigating back to "${this.router.url}", since user is not authenticated, and OIDC is disabled`),this.router.navigateByUrl(this.router.url),vt(!1))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ytt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){this.logger.logTrace("FillSubscriptionGuard canActivate",e,i);let r=e.queryParams.goto;this.logger.logTrace(`FillSubscriptionGuard -- goto: ${r}`);let o=this.spaControl.guessSubscription();if(o){let a=["/private","s",o];r&&(a=a.concat(r.split("/"))),this.logger.logInformation(`FillSubscriptionGuard -- redirecting to subscription ${o} ${r}`),this.router.navigate(a)}else return this.logger.logTrace("SubscriptionAccessGuard -- because the user has no access any subscription, redirecting to '/private/no-access'"),this.router.navigate(["/private/no-access"]),!1;return!1}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xtt=(()=>{class t{constructor(e,i,r,o,a){this.logger=e,this.spaControl=i,this.router=r,this.messageService=o,this.transloco=a,this.subscriptionGender=Ye.labels.subscriptionGender,this.theSubscription=qp.toLowerCaseFirstLetter(Ye.labels.theSubscription)}canActivate(e,i){this.logger.logTrace("SubscriptionAccessGuard canActivate",e,i);let r=e.params.sub;if(this.logger.logTrace(`SubscriptionAccessGuard -- sub: ${r}`),r==Ye.subscriptionRoot)return this.router.navigate(["/private"]),qC;if(r!=Ye.subscriptionNoFilter&&!this.spaControl.userProfile.subscriptions.map(o=>o.subscription.id).includes(r)){let o=this.spaControl.guessSubscription();return o?(this.transloco.selectTranslate("common.subscription").pipe(cn(1)).subscribe(a=>{let s=qp.toLowerCaseFirstLetter(a),l=this.transloco.translate("guards.subscription-access.redirected-to-another-sub",{subLabel:s,subGender:this.subscriptionGender});this.messageService.showInfo(l,{duration:0})}),this.router.navigate(["/private/s",o]),!1):(this.logger.logTrace("SubscriptionAccessGuard -- because the user has no access any subscription, redirecting to '/private/no-access'"),this.router.navigate(["/private/no-access"]),!1)}else return this.spaControl.trySetSubscription(r).pipe(ri(o=>{o||(this.logger.logTrace(`SubscriptionAccessGuard -- because the user has no access to subscription ${r}, redirecting to '/private/no-access'`),this.router.navigate(["/private/no-access"]))}))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt),ae(Bi),ae(ur))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ctt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.logger.logTrace("NotAuthenticatedGuard canActivate",e,i),this.spaControl.userProfile?(this.router.navigateByUrl("/private"),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Stt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){this.logger.logTrace("SignOutGuard -- canActivate",e,i);let r=this.spaControl.signOut();return r?(this.router.navigateByUrl(r),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),wtt=(()=>{class t{constructor(e,i,r,o,a){this.logger=e,this.spaControl=i,this.router=r,this.messageService=o,this.transloco=a}canActivate(e,i){this.logger.logTrace("NoAccessGuard canActivate",e,i);let r=this.spaControl.selectedSubscriptionSnapshot;return Ye.oidc.enabled?!this.spaControl.userProfile||this.spaControl.userHasAnyRole()&&(!r.sub||r.permissions.length>0)?(this.logger.logTrace('NoAccessGuard -- since user is not authenticated, or user permissions are not yet known, or user has indeed permissions, navigating to "/private/s"'),this.router.navigateByUrl(this.router.createUrlTree(["private/s"],{queryParams:e.queryParams})),!1):!0:(this.logger.logTrace('NoAccessGuard -- since Oidc is disabled, navigating to "/"'),this.router.navigateByUrl("/"),!1)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt),ae(Bi),ae(ur))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ett=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){this.logger.logTrace("ClaimAccessGuard -- canActivate",e,i);let r=e.params.code;return this.spaControl.userProfile?new Promise((o,a)=>{this.spaControl.claimAccess(r).catch(s=>{this.logger.logError(`Error claiming access with code ${r}`,s),this.router.navigate(["/"]),o(!1)})}):(this.spaControl.startLogin(i.url),qC)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Itt=(()=>{class t{constructor(e,i,r){this.logger=e,this.startup=i,this.router=r}canActivate(e,i){return this.logger.logTrace("InitSuccessGuard canActivate",e,i),this.startup.initError?(this.router.navigateByUrl("/unavailable"),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(tM),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Dtt=(()=>{class t{constructor(e,i,r){this.logger=e,this.startup=i,this.router=r}canActivate(e,i){return this.logger.logTrace("InitErrorGuard canActivate",e,i),this.startup.initError?!0:(this.router.navigateByUrl("/"),!1)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(tM),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ttt=(()=>{class t{constructor(e,i,r,o){this.logger=e,this.spaControl=i,this.router=r,this.authenticatedGuard=o}canActivate(e,i){return this.logger.logTrace("PrivateRouteGuard canActivate",e,i),this.spaControl.userHasAnyRole()?!0:(this.logger.logInformation("PrivateRouteGuard -- user has no access"),this.router.navigateByUrl("/private/no-access"),!1)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt),ae(d_e))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),nu=(()=>{class t{canDeactivate(e){return e.canDeactivate?this.canDeactivateAsync(e):!0}canDeactivateAsync(e){return Mt(this,null,function*(){let i=e.canDeactivate();return!!($g(i)?yield $C(i):yield Promise.resolve(i))})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Att=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){this.logger.logTrace("UserAccessEditGuard canActivate",e,i);let r=e.params.subId,o=this.spaControl.selectedSubscriptionSnapshot.sub;return o!=Ye.subscriptionNoFilter&&o!=r?(this.logger.logTrace(`Cannot edit user access of subscription ${r} from subscription ${o}`),this.router.navigateByUrl("/private"),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ktt=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.logger.logTrace("RootAccessGuard -- canActivate",e,i),this.spaControl.trySetSubscription(Ye.subscriptionRoot).pipe(ri(r=>{r||this.router.navigate(["/private/s"])}))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),KE=(()=>{class t{constructor(e,i){this.logger=e,this.router=i}canActivate(e,i){return this.logger.logTrace("ParentIntegrationDisabledGuard -- invoked"),Ye.hasParentIntegration?(this.logger.logTrace("ParentIntegrationDisabledGuard -- parent integration enabled, redirecting home."),this.router.navigateByUrl("/"),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Mtt=(()=>{class t{constructor(e,i){this.logger=e,this.router=i}canActivate(e,i){return this.logger.logTrace("ParentIntegrationEnabledGuard -- invoked"),Ye.hasParentIntegration?!0:(this.logger.logTrace("ParentIntegrationEnabledGuard -- parent integration disabled, redirecting home."),this.router.navigateByUrl("/"),!1)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ftt=(()=>{class t{constructor(e,i){this.logger=e,this.router=i}canActivate(e,i){if(this.logger.logTrace("ChildRedirectGuard -- canActivate",e,i),e.queryParams.redirectType&&e.queryParams.subscriptionId){let r=e.queryParams.redirectType,o=e.queryParams.subscriptionId,a=o===Ye.subscriptionRoot?"/private/sysadmin":`/private/s/${o}/admin`;if(r===Pb.Invite)return this.logger.logTrace("ChildRedirectGuard -- redirecting to invite"),this.router.navigateByUrl(`${a}/users/invite`),!1;let s=e.queryParams.userId;if(s){if(r===Pb.UserDetails)return this.logger.logTrace("ChildRedirectGuard -- redirecting to user details"),this.router.navigateByUrl(`${a}/users/${s}`),!1;if(r===Pb.UserEditAccess)return this.logger.logTrace("ChildRedirectGuard -- redirecting to user access edit details"),this.router.navigateByUrl(`${a}/users/${s}/access/${o}`),!1}}return this.router.navigateByUrl("/"),!1}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Rtt=(()=>{class t{constructor(e,i,r){this.logger=e,this.transloco=i,this.languageRouteEnabled=r}canActivate(e,i){if(this.logger.logTrace("TranslationLoadedGuard canActivate",e,i),this.languageRouteEnabled){let r=this.transloco.getActiveLang(),o;return(o=this.transloco.getTranslation(r))&&Object.keys(o).length>0?(this.logger.logTrace(`TranslationLoadedGuard -- translation file of language "${r}" is already loaded: `,o),!0):(this.logger.logTrace(`TranslationLoadedGuard -- loading translation file of language "${r}"...`),this.transloco.load(r).pipe(st(a=>!!a)))}else return this.logger.logTrace("TranslationLoadedGuard -- nothing to do, since language route is disabled..."),!0}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(ur),ae(nB))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ptt=(()=>{class t{constructor(e,i){this.spaControl=e,this.router=i}canActivate(e,i){return this.spaControl.userProfile?.isLocked?(this.router.navigateByUrl("/private/access-locked"),!1):!0}static{this.\u0275fac=function(i){return new(i||t)(ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ntt=(()=>{class t{constructor(e,i){this.spaControl=e,this.router=i}canActivate(e,i){return this.spaControl.userProfile?.isLocked?!0:(this.router.navigateByUrl("/private"),!1)}static{this.\u0275fac=function(i){return new(i||t)(ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function u_e(t,n,e,i,r){return[{path:r?":lang":"",canActivate:El([Rtt]),children:[{path:"",canActivate:El([Itt]),component:t.layoutComponent,data:{routeName:"Home"},children:[...n.publicRoutes||[],{path:"",pathMatch:"full",canActivate:e?[e]:[],component:t.homeComponent},{path:"private",canActivate:El([vtt]),children:[{path:"",canActivate:El([d_e]),data:{routeName:"Private",branchRoot:!0},children:[{path:"",canActivate:[Ptt],children:[...n.privateRoutes||[],{path:"s",canActivate:El([Ttt]),children:[{path:"",canActivate:El([ytt]),component:QQ},{path:":sub",canActivate:El([xtt]),data:{routeName:"Sub",branchRoot:!0},children:n.subscriptionRoutes||[]}]},{path:"sysadmin",canActivate:El([ktt]),data:{routeName:"SysAdmin",branchRoot:!0},children:[...n.sysAdminRoutes||[],{path:"subscriptions",component:t.subscriptionsComponent||vZ,data:{routeName:"Subscriptions"},children:[{path:"new",pathMatch:"full",component:t.subscriptionCreateComponent||Xet,canActivate:El([KE]),canDeactivate:Uf([nu]),data:{routeName:"SubscriptionCreate"}},{path:":id",component:t.subscriptionDetailComponent||Qet,data:{routeName:"SubscriptionDetail"},children:[{path:"edit",component:t.subscriptionEditComponent||Zet,canDeactivate:Uf([nu]),data:{routeName:"SubscriptionEdit"}}]}]},{path:"servers",component:mtt,data:{routeName:"ServersList"}},...sB(t),{path:"",pathMatch:"full",redirectTo:"subscriptions"}]},{path:"no-access",component:t.noAccessComponent||het,canActivate:[wtt]},{path:"claim-access/:code",canActivate:[Ett],component:QQ},t.privateHomeComponent?{path:"",pathMatch:"full",component:t.privateHomeComponent}:{path:"",redirectTo:"s",pathMatch:"full"}]},{path:"access-locked",component:t.accessLockedComponent||ptt,canActivate:[Ntt],data:{routeName:"AccessLocked"}}]},{path:"sign-in",component:t.signInComponent||fet,canActivate:El([Ctt])},{path:"sign-out",component:t.signOutComponent||get,canActivate:El([Stt])}]},{path:"private-unavailable",component:t.privateAreaUnavailableComponent||_et,canActivate:El([btt])}]},{path:"unavailable",component:t.serviceUnavailableComponent||yet,canActivate:El([Dtt])},{path:"child-redirect",component:QQ,canActivate:El([i||Ftt])}]}]}function sB(t){return[{path:"users",component:t.usersComponent||Yet,data:{routeName:"Users"},children:[{path:"invite",pathMatch:"full",component:t.userInviteComponent||qet,canActivate:El([KE]),canDeactivate:Uf([nu]),data:{routeName:"Invite"}},{path:"parent/:userId",component:t.userDetailComponent||T0e,canActivate:El([Mtt]),data:{mode:jx.Parent,routeName:"UserDetail"}},{path:":userId",component:t.userDetailComponent||T0e,data:{routeName:"UserDetail",mode:jx.App},children:[{path:"events",component:t.userEventsComponent||Get,data:{routeName:"UserEvents"}},{path:"actions",component:t.userActionsComponent||Uet,data:{routeName:"UserActions"}},{path:"edit",component:t.userEditComponent||rtt,canDeactivate:Uf([nu]),data:{routeName:"UserEdit"}},{path:"access/:subId",component:t.userAccessEditComponent||zet,canActivate:El([Att,KE]),canDeactivate:Uf([nu]),data:{routeName:"UserAccessEdit"}}]},{path:"invites/:inviteId",component:t.inviteDetailComponent||Vet,canActivate:El([KE]),data:{routeName:"InviteDetail"},children:[{path:"edit",component:t.inviteEditComponent||Bet,canDeactivate:Uf([nu]),data:{routeName:"InviteEdit"}}]}]},{path:"applications",component:t.applicationsComponent||Let,data:{routeName:"Applications"},children:[{path:"new",pathMatch:"full",component:t.applicationCreateComponent||Ket,canDeactivate:Uf([nu]),data:{routeName:"ApplicationCreate"}},{path:":id",component:t.applicationDetailComponent||Met,data:{routeName:"ApplicationDetail"},children:[{path:"edit",component:t.applicationEditComponent||Fet,canDeactivate:Uf([nu]),data:{routeName:"ApplicationEdit"}},{path:"events",component:t.applicationEventsComponent||Ret,data:{routeName:"ApplicationEvents"}},{path:"actions",component:t.applicationActionsComponent||Aet,data:{routeName:"ApplicationActions"}},{path:"keys",component:t.applicationKeysComponent||Net,data:{routeName:"ApplicationKeys"},children:[{path:"new",component:t.applicationKeyCreateComponent||Pet,canDeactivate:Uf([nu]),data:{routeName:"ApplicationKeyCreate"}}]}]}]},{path:"events",component:t.eventsComponent||_Z,data:{routeName:"Events"}}]}var bg=class{static arrayMin(n){return i=>{var r=i;return!r||r.controls.length>=n?null:{arrayMin:!0}}}static optionalEmail(n){return n.value==null||n.value===""?null:Se.email(n)}static requiredEmail(n){return n.value==null||n.value===""?{required:{value:n.value}}:Se.email(n)}static cpf(n){let e={cpf:!0},i=qp.removeNonDigits(n.value);if(i==null||i.length===0)return null;if(i.length!=11||i=="00000000000"||i=="11111111111"||i=="22222222222"||i=="33333333333"||i=="44444444444"||i=="55555555555"||i=="66666666666"||i=="77777777777"||i=="88888888888"||i=="99999999999")return e;let r=0,o="",a="0123456789",s=10,l=0,u=0,p=0,g=0,_="";_=i.substring(0,9);for(let v=0;v<9;v++){if(o=_.charAt(v),a.search(o)==-1)return e;r=Number(o),l=l+r*s,s--}u=l%11,p=11-u,p>9&&(p=0),s=11,l=0,_=_+p;for(let v=0;v<10;v++)o=_.charAt(v),r=Number(o),l=l+r*s,s--;return u=l%11,g=11-u,g>9&&(g=0),_=_+g,i!=_?e:null}static cnpj(n){let e={cnpj:!0},i=n.value;if(i==null||i.length<1)return null;var r=[6,5,4,3,2,9,8,7,6,5,4,3,2];if((i=i.replace(/[^\d]/g,"")).length!=14||/0{14}/.test(i))return e;for(var o=0,a=0;o<12;a+=i[o]*r[++o]);if(i[12]!=((a%=11)<2?0:11-a))return e;for(var o=0,a=0;o<=12;a+=i[o]*r[o++]);return i[13]!=((a%=11)<2?0:11-a)?e:null}};function Ott(t){let n=t,e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length,r=parseInt(t.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return e===Math.floor(e)&&e>=0&&e<=1?1:r===0&&e!==0&&e%1e6===0&&i===0||!(r>=0&&r<=5)?4:5}var m_e=["pt",[["AM","PM"],void 0,void 0],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",Ott];var Ltt=["*"];function __e(...t){return t.reduce((n,e)=>{e??={};let i=Object.keys(e);for(let r of i){let o=n[r],a=e[r];p_e(o)&&p_e(a)?n[r]=__e(o,a):n[r]=a}return n},{})}function p_e(t){return t instanceof Object&&t.constructor===Object}function h_e(t,n=2){let e=t.getBoundingClientRect(),i=document.elementFromPoint(e.left,e.top),r=document.elementFromPoint(e.right,e.bottom),o=!!i&&i!==t&&!f_e(i,t),a=!!r&&r!==t&&!f_e(r,t);return n===0?o:n===1?a:o||a}function f_e(t,n){return t.contains(n)||n.contains(t)}function g_e(t,n=2){let e=window.innerWidth,i=window.innerHeight,r=t.getBoundingClientRect(),o=r.left>=0&&r.right<=e,a=r.top>=0,s=r.bottom<=i;return n===0?a&&o:n===1?s&&o:a&&s&&o}var lB=class t{static getVisibleSection(n,e){return t._isHeightOverflowing(n,e)?t._getOverlap(n,e):n}static isHeightOverflowing(n,e){return t._isHeightOverflowing(n instanceof HTMLElement?n.getBoundingClientRect():n,e instanceof HTMLElement?e.getBoundingClientRect():e)}static _isHeightOverflowing(n,e){return e.heightn.clientHeight,r=e.overflowY;return i&&["scroll","auto"].includes(r)?n:v_e(n.parentNode)}var tI=class{static getScrollContainer(n,e){return typeof e=="string"?document.documentElement.querySelector(e):e instanceof HTMLElement?e:v_e(n)}},b_e=(()=>{class t{constructor(){this.platformId=Me(Oa),this.isBrowser=Pd(this.platformId),this.document=Me(ni),this.window=this.document.defaultView}ensureVisible(e,i){this.scrollOptions=i,this.anchorEl=e;let r=i.smoothScroll&&this.isBrowser?"smooth":"auto",o=this.scrollOptions.scrollContainer,a=tI.getScrollContainer(e,o)??document.documentElement;if(lB.isHeightOverflowing(e,a))e.scrollIntoView({block:"start",inline:"start",behavior:r});else if(i.center&&!("safari"in this.window))e.scrollIntoView({block:"center",inline:"center",behavior:r});else if(!g_e(e,1)||h_e(e,1))e.scrollIntoView({block:"end",inline:"nearest",behavior:r});else if(!g_e(e,0)||h_e(e,0))e.scrollIntoView({block:"start",inline:"nearest",behavior:r});else return Promise.resolve();return r==="smooth"?$C(this.waitForScrollFinish$):Promise.resolve()}get waitForScrollFinish$(){let e=this.scrollOptions.scrollContainer,i=tI.getScrollContainer(this.anchorEl,e)??document;return xn(i,"scroll").pipe(ky({each:75,with:()=>vt(void 0)}),$o(50),st(()=>{}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Vtt=(()=>{class t{constructor(){this.resizeElSubject=new qe,this.platformId=Me(Oa),this.isResizeObserverSupported=Pd(this.platformId)&&!!ResizeObserver,this.document=Me(ni),this.window=this.document.defaultView,this.resize$=Cn(this.resizeElSubject,xn(this.window,"resize")).pipe($o(10))}observeElement(e){this.isResizeObserverSupported&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver(()=>this.resizeElSubject.next())),this.resizeObserver?.observe(e)}unobserveElement(e){this.resizeObserver?.unobserve(e)}disconnect(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Btt=(()=>{class t{constructor(){this.isSpotlightClosed=!1,this.rendererFactory=Me(wh),this.renderer=this.rendererFactory.createRenderer(null,null),this.resizeObserverService=Me(Vtt),this.scrollingService=Me(b_e),this.document=Me(ni)}show(e,i){this.targetHtmlElement&&this.resizeObserverService.unobserveElement(this.targetHtmlElement),this.targetHtmlElement=e.nativeElement,this.step=i,this.resizeObserverService.observeElement(this.targetHtmlElement),this.backdropElements||(this.backdropElements=this.createBackdropElements(),this.subscribeToResizeEvents()),this.isSpotlightClosed=!1,this.setBackdropPosition()}closeSpotlight(){if(!this.backdropElements)return;let e=this.targetHtmlElement.getBoundingClientRect(),i=e.left+e.width/2,r=e.top+e.height/2,o={top:r,right:i,bottom:r,left:i,width:0,height:0};this.isSpotlightClosed=!0,this.setBackdropPosition(o)}setBackdropPosition(e=null){let i=this.document.documentElement,r=tI.getScrollContainer(this.targetHtmlElement,this.step.scrollContainer)??i,o=e??this.targetHtmlElement.getBoundingClientRect(),a=r.getBoundingClientRect(),s=lB.getVisibleSection(o,a),l=i.scrollHeight,u=i.scrollWidth,p=this.document.defaultView,g=p.scrollX,_=p.scrollY,v=this.isSpotlightClosed?0:this.step.backdropConfig?.offset??0,y={width:s.left+g-v,height:l,top:0,left:0},x={width:s.width+v*2,height:s.top+_-v,top:0,left:s.left+g-v},I={width:s.width+v*2,height:l-(s.bottom+_)-v,top:s.bottom+_+v,left:s.left+g-v},C={width:u-(s.right+g)-v,height:l,top:0,left:s.right+g+v},D=[y,x,I,C];for(let A=0;A{this.setBackdropPosition(),this.step.disableScrollToAnchor||this.scrollingService.ensureVisible(this.targetHtmlElement,{center:this.step.centerAnchorOnScroll,smoothScroll:!1})})}close(){this.backdropElements&&(this.resizeObserverService.unobserveElement(this.targetHtmlElement),this.removeBackdropElement(),this.resizeSubscription.unsubscribe())}disconnectResizeObserver(){this.resizeObserverService.disconnect()}removeBackdropElement(){this.backdropElements.forEach(e=>this.renderer.removeChild(this.parentContainer,e)),this.backdropElements=void 0}applyStyles(e,i){for(let r of Object.keys(e))this.renderer.setStyle(i,r,e[r])}createBackdropStyles(e){let i=this.step.backdropConfig,r=Gi(Ve({},e),{width:Math.max(e.width,0),height:Math.max(e.height,0)});return{position:"absolute",width:`${r.width}px`,height:`${r.height}px`,top:`${r.top}px`,left:`${r.left}px`,backgroundColor:i?.backgroundColor??"rgba(0, 0, 0, 0.7)",zIndex:i?.zIndex??"101"}}createBackdropElement(){let e=this.renderer.createElement("div");return this.renderer.addClass(e,"ngx-ui-tour_backdrop"),this.renderer.appendChild(this.parentContainer,e),e}createBackdropElements(){return Array.from({length:4}).map(()=>this.createBackdropElement())}get parentContainer(){let e=this.step.backdropConfig?.parentContainer;return e instanceof HTMLElement?e:typeof e=="string"?this.document.documentElement.querySelector(e)??this.document.body:this.document.body}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jtt=(()=>{class t{constructor(){this.rendererFactory=Me(wh),this.renderer=this.rendererFactory.createRenderer(null,null)}removeListener(){this.unListenToAnchorClickFn&&(this.unListenToAnchorClickFn(),this.unListenToAnchorClickFn=void 0)}addListener(e,i){this.unListenToAnchorClickFn=this.renderer.listen(e,"click",i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Htt=(()=>{class t{constructor(){this.isEnabled=!1,this.platformId=Me(Oa),this.isBrowser=Pd(this.platformId),this.rendererFactory=Me(wh),this.renderer=this.rendererFactory.createRenderer(null,null)}enable(e){!this.isBrowser||this.isEnabled||(this.userScrollContainer=e,this.toggleOverflow(),this.isEnabled=!0)}disable(){this.isEnabled&&(this.toggleOverflow(),this.isEnabled=!1)}toggleOverflow(){let e=tI.getScrollContainer(null,this.userScrollContainer)??document.documentElement;this.isEnabled?this.renderer.removeStyle(e,"overflow"):this.renderer.setStyle(e,"overflow","hidden")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ou=function(t){return t[t.OFF=0]="OFF",t[t.ON=1]="ON",t[t.PAUSED=2]="PAUSED",t}(ou||{}),eI=function(t){return t[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t}(eI||{}),ztt={disableScrollToAnchor:!1,prevBtnTitle:"Prev",nextBtnTitle:"Next",endBtnTitle:"End",enableBackdrop:!1,isAsync:!1,isOptional:!1,delayAfterNavigation:100,delayBeforeStepShow:0,nextOnAnchorClick:!1,duplicateAnchorHandling:"error",centerAnchorOnScroll:!0,disablePageScrolling:!0,smoothScroll:!0,allowUserInitiatedNavigation:!1,stepDimensions:{minWidth:"250px",maxWidth:"280px",width:"auto"},showProgress:!0},SZ=(()=>{class t{constructor(){this.stepShow$=new qe,this.stepHide$=new qe,this.initialize$=new qe,this.start$=new qe,this.end$=new qe,this.pause$=new qe,this.resume$=new qe,this.anchorRegister$=new qe,this.anchorUnregister$=new qe,this.events$=Cn(this.stepShow$.pipe(st(e=>({name:"stepShow",value:e}))),this.stepHide$.pipe(st(e=>({name:"stepHide",value:e}))),this.initialize$.pipe(st(e=>({name:"initialize",value:e}))),this.start$.pipe(st(e=>({name:"start",value:e}))),this.end$.pipe(st(e=>({name:"end",value:e}))),this.pause$.pipe(st(e=>({name:"pause",value:e}))),this.resume$.pipe(st(e=>({name:"resume",value:e}))),this.anchorRegister$.pipe(st(e=>({name:"anchorRegister",value:e}))),this.anchorUnregister$.pipe(st(e=>({name:"anchorUnregister",value:e})))),this.steps=[],this.anchors={},this.status=ou.OFF,this.isHotKeysEnabled=!0,this.direction=eI.Forwards,this.waitingForScroll=!1,this.navigationStarted=!1,this.router=Me(lt),this.backdrop=Me(Btt),this.anchorClickService=Me(jtt),this.scrollBlockingService=Me(Htt),this.scrollingService=Me(b_e)}initialize(e,i){if(this.status===ou.ON){console.warn("Can not re-initialize the UI tour while it's still active");return}e&&e.length>0&&(this.status=ou.OFF,this.steps=e.map(r=>__e(ztt,this.userDefaults,i,r)),this.validateSteps(),this.initialize$.next(this.steps),this.subscribeToNavigationStartEvent())}setDefaults(e){this.userDefaults=e}getDefaults(){return this.userDefaults}validateSteps(){for(let e of this.steps)if(e.isAsync&&e.isOptional&&!e.asyncStepTimeout)throw new Error(`Tour step with anchor id "${e.anchorId}" can only be both "async" and "optional" when "asyncStepTimeout" is specified!`)}subscribeToNavigationStartEvent(){this.router.events.pipe(vi(e=>e instanceof Fh),Ft(this.end$)).subscribe(e=>{if(!this.currentStep)return;let i=e.navigationTrigger==="popstate",r=this.currentStep.allowUserInitiatedNavigation;!this.navigationStarted&&(i||!r)&&this.end()})}disableHotkeys(){this.isHotKeysEnabled=!1}enableHotkeys(){this.isHotKeysEnabled=!0}start(){if(this.status===ou.ON){console.warn("tourService.start() called while the tour is already running.");return}this.startAt(0)}startAt(e){this.status=ou.ON,this.goToStep(this.loadStep(e)),this.start$.next()}end(){this.waitingForScroll||this.status!==ou.OFF&&(this.status=ou.OFF,this.disableTour(),this.currentStep=void 0,this.direction=eI.Forwards,this.end$.next())}pause(){this.status=ou.PAUSED,this.disableTour(),this.pause$.next()}disableTour(){this.hideStep(this.currentStep),this.anchorClickService.removeListener(),this.backdrop.close(),this.backdrop.disconnectResizeObserver(),this.scrollBlockingService.disable()}resume(){this.status=ou.ON,this.showStep(this.currentStep),this.resume$.next()}toggle(e){e?this.currentStep?this.pause():this.resume():this.currentStep?this.end():this.start()}next(){this.waitingForScroll||(this.direction=eI.Forwards,this.hasNext(this.currentStep)&&this.goToStep(this.loadStep(this.currentStep.nextStep??this.getStepIndex(this.currentStep)+1)))}getStepIndex(e){let i=this.steps.indexOf(e);return i<0?0:i}hasNext(e){return e?e.nextStep!==void 0||this.getStepIndex(e)0&&!this.isPrevOptionalAnchorMising(e):(console.warn("Can't get previous step. No currentStep."),!1)}isPrevOptionalAnchorMising(e){let i=this.getStepIndex(e);for(let r=i-1;r>-1;r--){let o=this.steps[r];if(!o.isOptional||this.anchors[o.anchorId])return!1}return!0}goto(e){this.goToStep(this.loadStep(e))}register(e,i){if(e){if(this.anchors[e])switch(this.findStepByAnchorId(e)?.duplicateAnchorHandling??this.userDefaults?.duplicateAnchorHandling??"error"){case"error":throw new Error(`Tour anchor with id "${e}" already registered!`);case"registerFirst":return}this.anchors[e]=i,this.anchorRegister$.next(e)}}findStepByAnchorId(e){return this.steps.find(i=>i.anchorId===e)}unregister(e){e&&(delete this.anchors[e],this.anchorUnregister$.next(e))}getStatus(){return this.status}isHotkeysEnabled(){return this.isHotKeysEnabled}goToStep(e){if(!e){console.warn("Can't go to non-existent step"),this.end();return}this.currentStep&&(this.backdrop.closeSpotlight(),this.hideStep(this.currentStep)),this.anchorClickService.removeListener(),e.route!==void 0&&e.route!==null?this.navigateToRouteAndSetStep(e):this.setCurrentStepAsync(e)}listenToOnAnchorClick(e){if(e.nextOnAnchorClick){let i=this.anchors[e.anchorId].element.nativeElement;this.anchorClickService.addListener(i,()=>this.next())}}navigateToRouteAndSetStep(e){return Mt(this,null,function*(){let i=typeof e.route=="string"?e.route:this.router.createUrlTree(e.route),r={paths:"exact",matrixParams:"exact",queryParams:"subset",fragment:"exact"};if(this.router.isActive(i,r)){this.setCurrentStepAsync(e);return}this.navigationStarted=!0;let a=yield this.router.navigateByUrl(i);this.navigationStarted=!1,a?this.setCurrentStepAsync(e,e.delayAfterNavigation):(console.warn("Navigation to route failed: ",e.route),this.end())})}loadStep(e){return typeof e=="number"?this.steps[e]:this.steps.find(i=>i.stepId===e)}setCurrentStep(e){this.currentStep=e,this.showStep(this.currentStep)}setCurrentStepAsync(e,i=0){i=i||e.delayBeforeStepShow,setTimeout(()=>this.setCurrentStep(e),i)}showStep(e,i=!1){return Mt(this,null,function*(){let r=this.anchors[e&&e.anchorId];if(!r){if(e.isAsync&&!i){let o=this.anchorRegister$.pipe(vi(a=>a===e.anchorId),Bs(),Wl(0));e.asyncStepTimeout&&(o=o.pipe(ky({each:e.asyncStepTimeout,with:()=>vt(null)}))),o.subscribe(()=>this.showStep(e,!0));return}if(e.isOptional){this.direction===eI.Forwards?this.next():this.prev();return}console.warn(`Can't attach to unregistered anchor with id "${e.anchorId}"`),this.end();return}this.listenToOnAnchorClick(e),this.waitingForScroll=!0,yield this.scrollToAnchor(e),this.waitingForScroll=!1,r.showTourStep(e),this.toggleBackdrop(e),this.togglePageScrolling(e),this.stepShow$.next({step:e,direction:this.direction})})}hideStep(e){let i=this.anchors[e&&e.anchorId];i&&(i.hideTourStep(),this.stepHide$.next({step:e,direction:this.direction}))}scrollToAnchor(e){if(e.disableScrollToAnchor)return Promise.resolve();let i=this.anchors[e?.anchorId],r=i.element.nativeElement;return this.scrollingService.ensureVisible(r,{center:e.centerAnchorOnScroll,smoothScroll:e.smoothScroll,scrollContainer:e.scrollContainer})}toggleBackdrop(e){let i=this.anchors[e?.anchorId];e.enableBackdrop?this.backdrop.show(i.element,e):this.backdrop.close()}togglePageScrolling(e){e.disablePageScrolling?this.scrollBlockingService.enable(e.scrollContainer):this.scrollBlockingService.disable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),y_e=(()=>{class t{constructor(e){this.tourService=e}onEscapeKey(){this.tourService.getStatus()===ou.ON&&this.tourService.isHotkeysEnabled()&&this.tourService.end()}onArrowRightKey(){let e=this.tourService.currentStep;this.tourService.getStatus()===ou.ON&&this.tourService.hasNext(this.tourService.currentStep)&&this.tourService.isHotkeysEnabled()&&!e?.nextOnAnchorClick&&this.tourService.next()}onArrowLeftKey(){this.tourService.getStatus()===ou.ON&&this.tourService.hasPrev(this.tourService.currentStep)&&this.tourService.isHotkeysEnabled()&&this.tourService.prev()}static{this.\u0275fac=function(i){return new(i||t)(E(SZ))}}static{this.\u0275cmp=oe({type:t,selectors:[["tour-hotkey-listener"]],hostBindings:function(i,r){i&1&&$("keydown.Escape",function(){return r.onEscapeKey()},!1,Rf)("keydown.ArrowRight",function(){return r.onArrowRightKey()},!1,Rf)("keydown.ArrowLeft",function(){return r.onArrowLeftKey()},!1,Rf)},standalone:!0,features:[Dt],ngContentSelectors:Ltt,decls:1,vars:0,template:function(i,r){i&1&&(hi(),ct(0))},encapsulation:2})}}return t})();var Utt=t=>({step:t});function Gtt(t,n){t&1&&dn(0)}function $tt(t,n){if(t&1&&(d(0,"div",8),h(1),c()),t&2){let e=S().step,i=S();m(),Do("",(i.tourService.steps==null?null:i.tourService.steps.indexOf(e))+1," / ",i.tourService.steps==null?null:i.tourService.steps.length,"")}}function qtt(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S(2);return Y(r.tourService.next())}),h(1),d(2,"mat-icon",12),h(3,"chevron_right"),c()()}if(t&2){let e=S().step;m(),ue(" ",e.nextBtnTitle," ")}}function Wtt(t,n){if(t&1){let e=ie();d(0,"button",13),$("click",function(){W(e);let r=S(2);return Y(r.tourService.end())}),h(1),c()}if(t&2){let e=S().step;m(),ue(" ",e.endBtnTitle," ")}}function Ytt(t,n){if(t&1){let e=ie();d(0,"mat-card",3),$("click",function(r){return W(e),Y(r.stopPropagation())}),d(1,"mat-card-header")(2,"div",4)(3,"mat-card-title"),h(4),c(),d(5,"button",5),$("click",function(){W(e);let r=S();return Y(r.tourService.end())}),d(6,"mat-icon"),h(7,"close"),c()()()(),H(8,"mat-card-content",6),d(9,"mat-card-actions")(10,"button",7),$("click",function(){W(e);let r=S();return Y(r.tourService.prev())}),d(11,"mat-icon"),h(12,"chevron_left"),c(),h(13),c(),k(14,$tt,2,2,"div",8)(15,qtt,4,1,"button",9)(16,Wtt,2,1,"button",10),c()()}if(t&2){let e=n.step,i=S();Vo("width",e.stepDimensions==null?null:e.stepDimensions.width)("min-width",e.stepDimensions==null?null:e.stepDimensions.minWidth)("max-width",e.stepDimensions==null?null:e.stepDimensions.maxWidth),m(4),ue(" ",e.title," "),m(4),f("innerHTML",e.content,qc),m(),yt("no-progress",!e.showProgress),m(),f("disabled",!i.tourService.hasPrev(e)),m(3),ue(" ",e.prevBtnTitle," "),m(),Xt(14,e.showProgress?14:-1),m(),Xt(15,i.tourService.hasNext(e)&&!e.nextOnAnchorClick?15:-1),m(),Xt(16,i.tourService.hasNext(e)?-1:16)}}var Ktt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["tour-anchor-opener"]],viewQuery:function(i,r){if(i&1&&ot(Es,7),i&2){let o;Pe(o=Ne())&&(r.trigger=o.first)}},standalone:!0,features:[Dt],decls:1,vars:1,consts:[["matMenuTriggerFor","",3,"matMenuTriggerRestoreFocus"]],template:function(i,r){i&1&&H(0,"span",0),i&2&&f("matMenuTriggerRestoreFocus",!1)},dependencies:[uw,Es],styles:["[_nghost-%COMP%]{display:none}"]})}}return t})(),cB=(()=>{class t extends SZ{initialize(e,i){let r=this.getDefaults();i??={},i.showArrow??=r?.showArrow??!0,super.initialize(e,i)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),x_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),C_e=(()=>{class t{constructor(e,i,r,o){this.viewContainer=e,this.element=i,this.tourService=r,this.tourStepTemplate=o}ngOnInit(){this.tourService.register(this.tourAnchor,this)}ngOnDestroy(){this.tourService.unregister(this.tourAnchor)}createOpener(){this.opener=this.viewContainer.createComponent(Ktt).instance}showTourStep(e){this.isActive=!0,this.tourStepTemplate.templateComponent.step=e,this.opener||this.createOpener();let i=this.opener.trigger,r=i;r._element=this.element,r._parentMaterialMenu=null,r._setPosition=(u,p)=>this.setPosition(u,p,e);let o=this.tourStepTemplate.templateComponent.tourStep;i.menu=o,o.xPosition=e.placement?.xPosition||"after",o.yPosition=e.placement?.yPosition||"below",o.hasBackdrop=!!e.closeOnOutsideClick;let a=e.popoverClass??"",s=e.showArrow?"arrow":"",l=e.placement?.horizontal?"horizontal":"";o.panelClass=`tour-step ${a} ${s} ${l}`,i.openMenu(),this.menuCloseSubscription&&this.menuCloseSubscription.unsubscribe(),this.menuCloseSubscription=i.menuClosed.pipe(Bs()).subscribe(()=>{this.tourService.getStatus()!==ou.OFF&&this.tourService.end()})}setPosition(e,i,r){let[o,a]=e.xPosition==="before"?["end","start"]:["start","end"],[s,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,p]=[s,l],[g,_]=[o,a],v=r.placement?.horizontal;v?(_=o=e.xPosition==="before"?"start":"end",a=g=o==="end"?"start":"end"):e.overlapTrigger||(u=s==="top"?"bottom":"top",p=l==="top"?"bottom":"top");let y=r.backdropConfig?.offset??0,x=v?y:-y,I=v?-y:y,C={originX:o,originY:u,overlayX:g,overlayY:s,offsetX:x,offsetY:I},D={originX:a,originY:u,overlayX:_,overlayY:s,offsetX:-x,offsetY:I},A={originX:o,originY:p,overlayX:g,overlayY:l,offsetX:x,offsetY:-I},M={originX:a,originY:p,overlayX:_,overlayY:l,offsetX:-x,offsetY:-I};i.withPositions(v?[C,D]:[C,A,M])}hideTourStep(){this.isActive=!1,this.menuCloseSubscription&&this.menuCloseSubscription.unsubscribe(),this.opener.trigger.closeMenu()}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(Xe),E(cB),E(x_e))}}static{this.\u0275dir=ze({type:t,selectors:[["","tourAnchor",""]],hostVars:2,hostBindings:function(i,r){i&2&&yt("touranchor--is-active",r.isActive)},inputs:{tourAnchor:"tourAnchor"},standalone:!0})}}return t})(),dB=(()=>{class t extends y_e{constructor(e,i){super(i),this.tourStepTemplateService=e,this.tourService=i,this.step={}}ngAfterViewInit(){this.tourStepTemplateService.templateComponent=this}static{this.\u0275fac=function(i){return new(i||t)(E(x_e),E(cB))}}static{this.\u0275cmp=oe({type:t,selectors:[["tour-step-template"]],contentQueries:function(i,r,o){if(i&1&&bi(o,Mn,5),i&2){let a;Pe(a=Ne())&&(r.stepTemplateContent=a.first)}},viewQuery:function(i,r){if(i&1&&ot(Ia,5),i&2){let o;Pe(o=Ne())&&(r.tourStep=o.first)}},inputs:{stepTemplate:"stepTemplate"},standalone:!0,features:[qt,Dt],decls:4,vars:5,consts:[["defaultTemplate",""],[3,"overlapTrigger"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click"],[1,"header-group"],["mat-icon-button","",1,"close",3,"click"],[1,"mat-body",3,"innerHTML"],["mat-button","",1,"prev",3,"click","disabled"],[1,"progress"],["mat-button","",1,"next"],["mat-button",""],["mat-button","",1,"next",3,"click"],["iconPositionEnd",""],["mat-button","",3,"click"]],template:function(i,r){if(i&1&&(d(0,"mat-menu",1),k(1,Gtt,1,0,"ng-container",2),c(),k(2,Ytt,17,15,"ng-template",null,0,Ii)),i&2){let o=je(3);f("overlapTrigger",!1),m(),f("ngTemplateOutlet",r.stepTemplate||r.stepTemplateContent||o)("ngTemplateOutletContext",Le(3,Utt,r.step))}},dependencies:[q2,ws,Iue,lw,kL,Eue,uw,Ia,ta,Ic,Ze,fi,Hh,He],styles:['html[_ngcontent-%COMP%]{--mat-icon-button-touch-target-display: none}.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 36px;width:var(--mdc-icon-button-state-layer-size);height:var(--mdc-icon-button-state-layer-size);padding:6px} .tour-step .mat-mdc-menu-content{padding:0!important} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step{min-width:unset;max-width:unset;overflow:unset;box-shadow:none;filter:drop-shadow(0px 5px 5px rgba(0,0,0,.2)) drop-shadow(0px 8px 10px rgba(0,0,0,.14))} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow{position:relative} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow:after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow:before{bottom:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow:after{border-color:#fff0;border-width:8px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow:before{border-color:#e3e4e600;border-width:9px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before:not(.horizontal):after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before:not(.horizontal):before{right:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before:not(.horizontal):after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before:not(.horizontal):before{right:20px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before:not(.horizontal):before{margin-right:-1px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after:not(.horizontal):after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after:not(.horizontal):before{left:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after:not(.horizontal):after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after:not(.horizontal):before{left:20px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after:not(.horizontal):after{margin-left:1px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below:not(.horizontal){margin-top:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below:not(.horizontal):after{border-top-color:transparent;border-bottom-color:#fff} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below:not(.horizontal):before{border-top-color:transparent;border-bottom-color:#e3e4e6} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above:not(.horizontal){margin-bottom:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above:not(.horizontal):after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above:not(.horizontal):before{top:100%} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above:not(.horizontal):after{border-top-color:#fff;border-bottom-color:transparent} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above:not(.horizontal):before{border-top-color:#e3e4e6;border-bottom-color:transparent} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before.horizontal{margin-right:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before.horizontal:after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before.horizontal:before{left:100%} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before.horizontal:after{border-left-color:#fff;border-right-color:transparent} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-before.horizontal:before{border-left-color:#e3e4e6;border-right-color:transparent} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after.horizontal{margin-left:10px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after.horizontal:after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after.horizontal:before{right:100%} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after.horizontal:after{border-left-color:transparent;border-right-color:#fff} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-after.horizontal:before{border-left-color:transparent;border-right-color:#e3e4e6} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below.horizontal:after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below.horizontal:before{top:16px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-below.horizontal:after{margin-top:1px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above.horizontal:after, .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above.horizontal:before{bottom:16px} .mat-mdc-menu-panel.mat-mdc-menu-panel.tour-step.arrow.mat-menu-above.horizontal:after{margin-bottom:1px}mat-card[_ngcontent-%COMP%]{box-shadow:none}mat-card-content[_ngcontent-%COMP%]{margin:8px 0}mat-card-actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}mat-card-actions[_ngcontent-%COMP%] .progress[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#00000061;white-space:nowrap}mat-card-actions.no-progress[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}mat-card-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{max-width:fit-content}mat-card-actions[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{justify-self:flex-end}mat-card-actions[_ngcontent-%COMP%] button.prev[_ngcontent-%COMP%]{padding-left:4px}mat-card-actions[_ngcontent-%COMP%] button.next[_ngcontent-%COMP%]{padding-right:4px}mat-card-header[_ngcontent-%COMP%] .header-group[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:-8px;width:100%}mat-card-header[_ngcontent-%COMP%] .header-group[_ngcontent-%COMP%] mat-card-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}mat-card-header[_ngcontent-%COMP%] .header-group[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:-8px}']})}}return t})();function wZ(t,n){let e=!n?.manualCleanup;e&&!n?.injector&&DP(wZ);let i=e?n?.injector?.get(ev)??Me(ev):null,r;n?.requireSync?r=iv({kind:0}):r=iv({kind:1,value:n?.initialValue});let o=t.subscribe({next:a=>r.set({kind:1,value:a}),error:a=>{if(n?.rejectErrors)throw a;r.set({kind:2,error:a})}});return i?.onDestroy(o.unsubscribe.bind(o)),ov(()=>{let a=r();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new Kt(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}var Xtt=4,Qtt=.001,Ztt=1e-7,Jtt=10,nM=11,uB=1/(nM-1),eit=typeof Float32Array=="function";function w_e(t,n){return 1-3*n+3*t}function E_e(t,n){return 3*n-6*t}function I_e(t){return 3*t}function mB(t,n,e){return((w_e(n,e)*t+E_e(n,e))*t+I_e(n))*t}function D_e(t,n,e){return 3*w_e(n,e)*t*t+2*E_e(n,e)*t+I_e(n)}function tit(t,n,e,i,r){let o,a,s=0;do a=n+(e-n)/2,o=mB(a,i,r)-t,o>0?e=a:n=a;while(Math.abs(o)>Ztt&&++s=Qtt?iit(a,g,t,e):_===0?g:tit(a,s,s+uB,t,e)}return function(s){return s===0?0:s===1?1:mB(o(s),n,i)}}var oit=new ke("SMOOTH_SCROLL_OPTIONS");var T_e=(()=>{class t{constructor(){this.document=Me(ni),this.zone=Me(ht),this._defaultOptions=Ve({duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1}},Me(oit,{optional:!0})),this.onGoingScrolls=new Map}get now(){return this.document.defaultView.performance?.now?.bind(this.document.defaultView.performance)||Date.now}scrollElement(e,i,r){e.scrollLeft=i,e.scrollTop=r}getElement(e,i){return typeof e=="string"?(i||this.document).querySelector(e):ed(e)}getScrollDestroyerRef(e){return this.onGoingScrolls.has(e)&&this.onGoingScrolls.get(e).next(),this.onGoingScrolls.set(e,new qe).get(e)}step(e){return new mn(i=>{let r=(this.now()-e.startTime)/e.duration;r=r>1?1:r;let o=e.easing(r);e.currentX=e.startX+(e.x-e.startX)*o,e.currentY=e.startY+(e.y-e.startY)*o,this.scrollElement(e.scrollable,e.currentX,e.currentY),requestAnimationFrame(()=>{i.next(),i.complete()})})}isReached(e,i){return e.currentX===e.x&&e.currentY===e.y?(i.next(),!0):!1}scrolling(e,i){return this.step(e).pipe(Wg(()=>!this.isReached(e,i)),Wi(()=>this.scrolling(e,i)))}onScrollReached(e,i,r){r.complete(),this.onGoingScrolls.delete(e),this.zone.run(()=>i())}interrupted(e,i){return Cn(xn(e,"wheel",{passive:!0,capture:!0}),xn(e,"touchmove",{passive:!0,capture:!0}),i).pipe(cn(1))}applyScrollToOptions(e,i){return i.duration?new Promise(r=>{this.zone.runOutsideAngular(()=>{let o=this.getScrollDestroyerRef(e),a={scrollable:e,startTime:this.now(),startX:e.scrollLeft,startY:e.scrollTop,x:i.left==null?e.scrollLeft:~~i.left,y:i.top==null?e.scrollTop:~~i.top,duration:i.duration,easing:rit(i.easing.x1,i.easing.y1,i.easing.x2,i.easing.y2)};this.scrolling(a,o).pipe(Ft(this.interrupted(e,o)),Vs(()=>this.onScrollReached(e,r,o))).subscribe()})}):(this.scrollElement(e,i.left,i.top),Promise.resolve())}scrollTo(e,i){let r=this.getElement(e),o=getComputedStyle(r).direction==="rtl",a=Gi(Ve(Ve({},this._defaultOptions),i),{left:i.left==null?o?i.end:i.start:i.left,right:i.right==null?o?i.start:i.end:i.right});return a.bottom!=null&&(a.top=r.scrollHeight-r.clientHeight-a.bottom),o?(a.left!=null&&(a.right=r.scrollWidth-r.clientWidth-a.left),a.left=a.right?-a.right:a.right):a.right!=null&&(a.left=r.scrollWidth-r.clientWidth-a.right),this.applyScrollToOptions(r,a)}scrollToElement(e,i,r={}){let o=this.getElement(e),a=this.getElement(i,o);if(a&&o){let s=o.getBoundingClientRect(),l=a.getBoundingClientRect(),u=Gi(Ve({},r),{left:l.left+o.scrollLeft-s.left+(r.left||0),top:l.top+o.scrollTop-s.top+(r.top||0)});return this.scrollTo(o,u)}return Promise.resolve()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ait=["scrollbarButton",""];function sit(t,n){if(t&1&&H(0,"button",5)(1,"button",6),t&2){let e=S();Cm("ng-scrollbar-button ",e.cmp.buttonClass,""),m(),Cm("ng-scrollbar-button ",e.cmp.buttonClass,"")}}function lit(t,n){if(t&1&&H(0,"button",5)(1,"button",6),t&2){let e=S();Cm("ng-scrollbar-button ",e.cmp.buttonClass,""),m(),Cm("ng-scrollbar-button ",e.cmp.buttonClass,"")}}var cit="[_nghost-%COMP%]{position:absolute;inset:0;pointer-events:none;min-width:calc(var(--viewport-width) * 1px);min-height:calc(var(--viewport-height) * 1px)}.ng-scrollbar-sticky[_ngcontent-%COMP%]{top:calc(var(--_scrollbar-wrapper-top) * 1px);left:calc(var(--_scrollbar-wrapper-left) * 1px);right:calc(var(--_scrollbar-wrapper-right) * 1px);height:calc(var(--_scrollbar-wrapper-height) * 1px);width:calc(var(--_scrollbar-wrapper-width) * 1px);position:sticky;z-index:100;opacity:var(--_scrollbar-hover-opacity);transition:var(--_scrollbar-opacity-transition)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{touch-action:none;-webkit-user-select:none;user-select:none;top:var(--_scrollbar-track-top);bottom:var(--_scrollbar-track-bottom);right:var(--_scrollbar-track-right);left:var(--_scrollbar-track-left);pointer-events:var(--_scrollbar-pointer-events);transition:var(--scrollbar-track-wrapper-transition);position:absolute;overflow:hidden;display:flex;place-items:center}.ng-scrollbar-track[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;background-color:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);cursor:default;z-index:1;order:2}.ng-scrollbar-thumb[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;transition:var(--scrollbar-thumb-transition);border-radius:var(--scrollbar-border-radius);height:var(--_thumb-height);width:var(--_thumb-width);animation-name:_ngcontent-%COMP%_scrollbarThumbAnimation;animation-duration:1ms;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_scrollbarThumbAnimation{0%{translate:var(--_scrollbar-thumb-transform-from)}to{translate:var(--_scrollbar-thumb-transform-to)}}";function dit(t,n){t&1&&H(0,"scrollbar-y")}function uit(t,n){t&1&&H(0,"scrollbar-x")}var mit=["contentWrapper"],pit=["*"];var hit=(()=>{class t{constructor(){this.nativeElement=Me(Xe).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","scrollViewport",""]],standalone:!0})}}return t})(),oM=function(t){return t.AfterInit="AfterInit",t.Resized="ResizeObserver",t}(oM||{}),fit=new ke("NG_SCROLLBAR_OPTIONS"),git=new ke("NG_SCROLLBAR_POLYFILL");function M_e({element:t,contentWrapper:n,throttleDuration:e}){let i=oM.AfterInit,r,o=new mn(a=>(r=new ResizeObserver(()=>{a.next(i),i=oM.Resized}),r.observe(t),n&&r.observe(n),()=>{r?.disconnect()}));return e?o.pipe(sH(e,null,{leading:!0,trailing:!0})):o}function DZ(t){return ri(()=>t.onselectstart=()=>!1)}function TZ(t){return ri(()=>t.onselectstart=null)}function rM(){return ri(t=>{t.preventDefault(),t.stopPropagation()})}var EZ=function(t){return t.Viewport="ng-scroll-viewport",t.Content="ng-scroll-content",t}(EZ||{}),IZ=class{constructor(){this.initialized=iv(!1)}get offsetHeight(){return this.nativeElement.offsetHeight}get offsetWidth(){return this.nativeElement.offsetWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get contentHeight(){return this.contentWrapperElement.offsetHeight}get contentWidth(){return this.contentWrapperElement.offsetWidth}get scrollMaxX(){return this.contentWidth-this.offsetWidth}get scrollMaxY(){return this.contentHeight-this.offsetHeight}init(n,e,i){n.classList.add(EZ.Viewport),this.nativeElement=n,e.classList.add(EZ.Content),i?(i.style.position="relative",this.contentWrapperElement=i):this.contentWrapperElement=e,this.initialized.set(!0)}scrollYTo(n){this.nativeElement.scrollTop=n}scrollXTo(n){this.nativeElement.scrollLeft=n}},lM=new ke("NG_SCROLLBAR"),A_e={trackClass:"",thumbClass:"",buttonClass:"",orientation:"auto",appearance:"native",visibility:"native",position:"native",trackScrollDuration:50,sensorThrottleTime:0,disableSensor:!1,disableInteraction:!1,buttons:!1},_it=(()=>{class t{constructor(){this.injectedOptions=Me(fit,{optional:!0}),this.options=this.injectedOptions?Ve(Ve({},A_e),this.injectedOptions):A_e,this.zone=Me(ht),this.platform=Me(ln),this.injector=Me(ao),this.isMobile=this.platform.IOS||this.platform.ANDROID,this.dir=Me(Kr),this.smoothScroll=Me(T_e),this.nativeElement=Me(Xe).nativeElement,this.dragging=iv("none"),this.orientation=Yy(this.options.orientation),this.visibility=Yy(this.options.visibility),this.buttons=Yy(this.options.buttons,{transform:at}),this.disableInteraction=Yy(this.options.disableInteraction,{transform:at}),this.disableSensor=Yy(this.options.disableSensor,{transform:at}),this.sensorThrottleTime=Yy(this.options.sensorThrottleTime,{transform:Gr}),this.viewportDimension=iv({contentHeight:0,contentWidth:0,offsetHeight:0,offsetWidth:0}),this.state=ov(()=>{let e=!1,i=!1,r=!1,o=!1,a=this.orientation(),s=this.visibility(),l=this.viewportDimension();return(a==="auto"||a==="vertical")&&(r=l.contentHeight>l.offsetHeight,e=s==="visible"||r),(a==="auto"||a==="horizontal")&&(o=l.contentWidth>l.offsetWidth,i=s==="visible"||o),{verticalUsed:e,horizontalUsed:i,isVerticallyScrollable:r,isHorizontallyScrollable:o}}),this.isVerticallyScrollable=ov(()=>this.state().isVerticallyScrollable),this.isHorizontallyScrollable=ov(()=>this.state().isHorizontallyScrollable),this.verticalUsed=ov(()=>this.state().verticalUsed),this.horizontalUsed=ov(()=>this.state().horizontalUsed),this.trackScrollDuration=this.options.trackScrollDuration,this.appearance=this.options.appearance,this.position=this.options.position,this.trackClass=this.options.trackClass,this.thumbClass=this.options.thumbClass,this.buttonClass=this.options.thumbClass,this.afterInit=new Ae,this.afterUpdate=new Ae,this.viewport=new IZ}ngOnInit(){Du(this.injector,()=>{this.direction=wZ(this.dir.change.pipe(st(()=>this.dir.value)),{initialValue:this.dir.value}),_p(e=>{this.disableSensor()?this.sizeChangeSub?.unsubscribe():this.platform.isBrowser&&this.viewport.initialized()&&(this.sizeChangeSub?.unsubscribe(),this.zone.runOutsideAngular(()=>{this.sizeChangeSub=M_e({element:this.viewport.nativeElement,contentWrapper:this.viewport.contentWrapperElement,throttleDuration:this.sensorThrottleTime()}).pipe(ri(i=>this.update(i))).subscribe()})),e(()=>this.sizeChangeSub?.unsubscribe())})})}ngAfterViewInit(){this.platform.isBrowser&&this.disableSensor()&&requestAnimationFrame(()=>{this.update(oM.AfterInit)})}update(e){this.updateCSSVariables(),this.zone.run(()=>{this.viewportDimension.set({contentHeight:this.viewport.contentHeight,contentWidth:this.viewport.contentWidth,offsetHeight:this.viewport.offsetHeight,offsetWidth:this.viewport.offsetWidth}),e===oM.AfterInit?this.afterInit.emit():this.afterUpdate.emit()})}scrollTo(e){return this.smoothScroll.scrollTo(this.viewport.nativeElement,e)}scrollToElement(e,i){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,e,i)}updateCSSVariables(){this.nativeElement.style.setProperty("--content-height",`${this.viewport.contentHeight}`),this.nativeElement.style.setProperty("--content-width",`${this.viewport.contentWidth}`),this.nativeElement.style.setProperty("--viewport-height",`${this.viewport.offsetHeight}`),this.nativeElement.style.setProperty("--viewport-width",`${this.viewport.offsetWidth}`)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,hostVars:14,hostBindings:function(i,r){i&2&&(xt("verticalUsed",r.verticalUsed())("horizontalUsed",r.horizontalUsed())("isVerticallyScrollable",r.isVerticallyScrollable())("isHorizontallyScrollable",r.isHorizontallyScrollable())("mobile",r.isMobile)("dir",r.direction())("position",r.position)("dragging",r.dragging())("appearance",r.appearance)("visibility",r.visibility())("orientation",r.orientation())("disableInteraction",r.disableInteraction()),yt("ng-scrollbar",!0))},inputs:{orientation:[ve.SignalBased,"orientation"],visibility:[ve.SignalBased,"visibility"],buttons:[ve.SignalBased,"buttons"],disableInteraction:[ve.SignalBased,"disableInteraction"],disableSensor:[ve.SignalBased,"disableSensor"],sensorThrottleTime:[ve.SignalBased,"sensorThrottleTime"],trackScrollDuration:[ve.HasDecoratorInputTransform,"trackScrollDuration","trackScrollDuration",Gr],appearance:"appearance",position:"position",trackClass:"trackClass",thumbClass:"thumbClass",buttonClass:"buttonClass"},outputs:{afterInit:"afterInit",afterUpdate:"afterUpdate"},features:[Zt([{provide:lM,useExisting:t}]),Ei]})}}return t})(),vit="https://flackr.github.io/scroll-timeline/dist/scroll-timeline.js",F_e=(()=>{class t{constructor(){this.isBrowser=Pd(Me(Oa)),this._polyfillUrl=Me(git,{optional:!0})||vit,this.document=Me(ni),this.window=this.document.defaultView,this.scrollTimelinePolyfill=iv(null),this.isBrowser&&(!this.window.ScrollTimeline||!CSS.supports("animation-timeline","scroll()"))&&this.initPolyfill()}initPolyfill(){return Mt(this,null,function*(){try{let e=this.document.createElement("script");e.src=this._polyfillUrl,yield new Promise((i,r)=>{e.onload=i,e.onerror=r,this.document.head.appendChild(e)}),this.window.ScrollTimeline?this.scrollTimelinePolyfill.set(this.window.ScrollTimeline):console.error("[NgScrollbar]: ScrollTimeline is not attached to the window object.")}catch(e){console.error("[NgScrollbar]: Error loading ScrollTimeline script:",e)}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),AZ=new ke("SCROLLBAR_CONTROL"),R_e=(()=>{class t{constructor(){this.cmp=Me(lM)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t})}}return t})(),kZ=(()=>{class t{constructor(){this.cmp=Me(lM),this.control=Me(AZ),this.document=Me(ni),this.zone=Me(ht),this.nativeElement=Me(Xe).nativeElement,_p(e=>{this.cmp.disableInteraction()?this._pointerEventsSub?.unsubscribe():this.zone.runOutsideAngular(()=>{this._pointerEventsSub=this.pointerEvents.subscribe()}),e(()=>this._pointerEventsSub?.unsubscribe())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t})}}return t})(),aM=(()=>{class t extends kZ{get size(){return this.nativeElement[this.control.sizeProperty]}get trackMax(){return this.track.size-this.size}get pointerEvents(){return xn(this.nativeElement,"pointerdown").pipe(rM(),DZ(this.document),Wi(e=>{let i,r,o=vt(e).pipe(ri(()=>{i=this.trackMax,r=this.control.viewportScrollMax,this.setDragging(this.control.axis)})),a=xn(this.document,"pointermove").pipe(rM()),s=xn(this.document,"pointerup",{capture:!0}).pipe(rM(),TZ(this.document),ri(()=>this.setDragging("none")));return o.pipe(st(l=>l[this.control.offsetProperty]),Wi(l=>a.pipe(st(u=>u[this.control.clientProperty]),st(u=>u-this.track.offset),st(u=>r*(u-l)/i),ri(u=>this.control.instantScrollTo(u,r)),Ft(s))))}))}constructor(){_p(()=>{let e=this.manager.scrollTimelinePolyfill();e&&!this._animation&&(this._animation=bit(e,this.nativeElement,this.cmp.viewport.nativeElement,this.control.axis))}),super(),this.manager=Me(F_e),this.track=Me(sM)}setDragging(e){this.zone.run(()=>this.cmp.dragging.set(e))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,features:[qt]})}}return t})();function bit(t,n,e,i){return n.animate({translate:["var(--_scrollbar-thumb-transform-from)","var(--_scrollbar-thumb-transform-to)"]},{fill:"both",easing:"linear",timeline:new t({source:e,axis:i})})}var sM=(()=>{class t extends kZ{get viewportSize(){return this.cmp.viewport[this.control.sizeProperty]}get clientRect(){return this.nativeElement.getBoundingClientRect()}get offset(){return this.clientRect[this.control.clientRectProperty]}get size(){return this.nativeElement[this.control.sizeProperty]}get pointerEvents(){let e=xn(this.nativeElement,"pointerdown").pipe(rM(),DZ(this.document)),i=xn(this.document,"pointerup",{passive:!0}).pipe(TZ(this.document)),r=xn(this.nativeElement,"pointerover",{passive:!0}).pipe(ri(l=>this.currMousePosition=l[this.control.offsetProperty]),st(()=>!0)),o=xn(this.nativeElement,"pointerout",{passive:!0}).pipe(st(()=>!1)),a=Cn(r,o).pipe(kn(!0)),s=xn(this.nativeElement,"pointermove",{passive:!0}).pipe(ri(l=>this.currMousePosition=l[this.control.offsetProperty]));return e.pipe(Wi(l=>(s.pipe(Ft(i)).subscribe(),this.onTrackFirstClick(l).pipe(Wl(200),Wi(()=>a.pipe(Wi(u=>{let p=this.getScrollDirection(this.currMousePosition),g=this.scrollDirection===p;return u&&g?this.onTrackOngoingMousedown():ka}))),Ft(i)))))}constructor(){_p(e=>{this.cmp.disableSensor()?(this.update(),this.sizeChangeSub?.unsubscribe()):this.zone.runOutsideAngular(()=>{this.sizeChangeSub=M_e({element:this.nativeElement,throttleDuration:this.cmp.sensorThrottleTime()}).pipe(ri(()=>this.update())).subscribe()}),e(()=>this.sizeChangeSub?.unsubscribe())}),super()}update(){this.cmp.nativeElement.style.setProperty(this.cssLengthProperty,`${this.size}`)}onTrackFirstClick(e){return this.currMousePosition=e[this.control.offsetProperty],this.scrollDirection=this.getScrollDirection(this.currMousePosition),this.scrollMax=this.control.viewportScrollMax,this.scrollTo(this.nextStep())}nextStep(){if(this.scrollDirection==="forward"){let i=this.getScrollForwardStep();return i>=this.scrollMax?this.scrollMax:i}let e=this.getScrollBackwardStep();return e<=0?0:e}onTrackOngoingMousedown(){let e=this.nextStep();return this.scrollTo(e).pipe(Wg(()=>!this.isReached(e)),Wi(()=>this.onTrackOngoingMousedown()))}isReached(e){return this.scrollDirection==="forward"?e>=this.scrollMax:e<=0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,contentQueries:function(i,r,o){if(i&1&&bi(o,aM,5),i&2){let a;Pe(a=Ne())&&(r.thumb=a.first)}},features:[qt]})}}return t})(),yit=(()=>{class t extends sM{get viewportScrollSize(){return this.cmp.viewport.contentWidth}constructor(){_p(()=>{this.cmp.direction()==="rtl"?(this.getCurrPosition=()=>(this.viewportScrollSize-this.viewportSize-this.control.viewportScrollOffset)*this.size/this.viewportScrollSize,this.getScrollDirection=e=>ethis.control.viewportScrollOffset*this.size/this.viewportScrollSize,this.getScrollDirection=e=>e>this.getCurrPosition()?"forward":"backward")}),super(),this.cssLengthProperty="--track-x-length"}scrollTo(e){return GC(this.cmp.scrollTo({start:e,duration:this.cmp.trackScrollDuration}))}getScrollForwardStep(){return this.control.viewportScrollOffset+this.viewportSize}getScrollBackwardStep(){return this.control.viewportScrollOffset-this.viewportSize}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,selectors:[["","scrollbarTrackX",""]],standalone:!0,features:[Zt([{provide:sM,useExisting:t}]),qt]})}}return t})(),xit=(()=>{class t extends sM{constructor(){super(...arguments),this.cssLengthProperty="--track-y-length"}get viewportScrollSize(){return this.cmp.viewport.contentHeight}getCurrPosition(){return this.control.viewportScrollOffset*this.size/this.viewportScrollSize}getScrollDirection(e){return e>this.getCurrPosition()?"forward":"backward"}scrollTo(e){return GC(this.cmp.scrollTo({top:e,duration:this.cmp.trackScrollDuration}))}getScrollForwardStep(){return this.control.viewportScrollOffset+this.viewportSize}getScrollBackwardStep(){return this.control.viewportScrollOffset-this.viewportSize}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","scrollbarTrackY",""]],standalone:!0,features:[Zt([{provide:sM,useExisting:t}]),qt]})}}return t})(),Cit=(()=>{class t extends aM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","scrollbarThumbX",""]],standalone:!0,features:[Zt([{provide:aM,useExisting:t}]),qt]})}}return t})(),Sit=(()=>{class t extends aM{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","scrollbarThumbY",""]],standalone:!0,features:[Zt([{provide:aM,useExisting:t}]),qt]})}}return t})(),P_e=(()=>{class t extends kZ{constructor(){super(...arguments),this.injector=Me(ao),this.afterFirstClickDelay=120,this.firstClickDuration=100,this.scrollBy=50,this.onGoingScrollBy=12,this.canScrollFunc={forward:(e,i)=>ee>0},this.scrollStepFunc={forward:(e,i)=>i+e,backward:(e,i)=>i-e},this.horizontalScrollStepFunc={rtl:{forward:(e,i,r)=>r-i-e,backward:(e,i,r)=>r-i+e},ltr:this.scrollStepFunc}}get pointerEvents(){let e=xn(this.nativeElement,"pointerdown").pipe(rM(),DZ(this.document)),i=xn(this.document,"pointerup",{passive:!0}).pipe(TZ(this.document)),r=xn(this.nativeElement,"pointerleave",{passive:!0}),o=Cn(i,r);return e.pipe(Wi(()=>this.firstScrollStep().pipe(Wl(this.afterFirstClickDelay),Wi(()=>this.onOngoingPointerdown()),Ft(o))))}ngOnInit(){this.canScroll=this.canScrollFunc[this.scrollDirection],this.control.axis==="x"?Du(this.injector,()=>{_p(()=>{let e=this.cmp.direction();this.nextStep=this.horizontalScrollStepFunc[e][this.scrollDirection]})}):this.nextStep=this.scrollStepFunc[this.scrollDirection]}firstScrollStep(){let e=this.nextStep(this.scrollBy,this.control.viewportScrollOffset,this.control.viewportScrollMax);return this.control.scrollTo(e,this.firstClickDuration)}onGoingScrollStep(){let e=this.control.viewportScrollMax,i=this.nextStep(this.onGoingScrollBy,this.control.viewportScrollOffset,e);this.control.instantScrollTo(i,e)}onOngoingPointerdown(){return My(0,HC).pipe(Wg(()=>this.canScroll(this.control.viewportScrollOffset,this.control.viewportScrollMax)),ri(()=>this.onGoingScrollStep()))}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["button","scrollbarButton",""]],inputs:{scrollbarButton:"scrollbarButton",scrollDirection:"scrollDirection"},standalone:!0,features:[qt,Dt],attrs:ait,decls:3,vars:0,consts:[[1,"ng-scrollbar-button-icon"],["viewBox","0 0 512 512","xmlns","http://www.w3.org/2000/svg"],["d","M413.1,327.3l-1.8-2.1l-136-156.5c-4.6-5.3-11.5-8.6-19.2-8.6c-7.7,0-14.6,3.4-19.2,8.6L101,324.9l-2.3,2.6 C97,330,96,333,96,336.2c0,8.7,7.4,15.8,16.6,15.8v0h286.8v0c9.2,0,16.6-7.1,16.6-15.8C416,332.9,414.9,329.8,413.1,327.3z"]],template:function(i,r){i&1&&(d(0,"div",0),Na(),d(1,"svg",1),H(2,"path",2),c()())},styles:["[_nghost-%COMP%]{--scrollbar-button-size: 20px;position:relative;border:none;margin:0;padding:0;border-radius:0;appearance:none;background-color:var(--scrollbar-button-color)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{fill:var(--scrollbar-button-fill)}[_nghost-%COMP%]:hover{background:var(--scrollbar-button-hover-color)}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{fill:var(--scrollbar-button-hover-fill)}[_nghost-%COMP%]:active{background:var(--scrollbar-button-active-color)}[_nghost-%COMP%]:active svg[_ngcontent-%COMP%]{fill:var(--scrollbar-button-active-fill)}[scrollbarButton=top][_nghost-%COMP%], [scrollbarButton=start][_nghost-%COMP%]{order:1}[scrollbarButton=bottom][_nghost-%COMP%], [scrollbarButton=end][_nghost-%COMP%]{order:3}[scrollbarButton=top][_nghost-%COMP%], [scrollbarButton=bottom][_nghost-%COMP%]{width:100%;height:var(--scrollbar-button-size)}[scrollbarButton=start][_nghost-%COMP%], [scrollbarButton=end][_nghost-%COMP%]{width:var(--scrollbar-button-size);height:100%}[scrollbarButton=bottom][_nghost-%COMP%]{--_button-rotate: 180deg}[scrollbarButton=start][_nghost-%COMP%]{--_button-rotate: -90deg}[scrollbarButton=start][_nghost-%COMP%] .ng-scrollbar-button-icon[_ngcontent-%COMP%]{writing-mode:vertical-lr}[scrollbarButton=end][_nghost-%COMP%]{--_button-rotate: 90deg}[scrollbarButton=end][_nghost-%COMP%] .ng-scrollbar-button-icon[_ngcontent-%COMP%]{writing-mode:vertical-rl}.ng-scrollbar-button-icon[_ngcontent-%COMP%]{rotate:var(--_button-rotate);display:flex;place-content:center;place-items:center;width:100%;height:100%}"],changeDetection:0})}}return t})(),wit=(()=>{class t extends R_e{constructor(){super(...arguments),this.clientRectProperty="top",this.sizeProperty="offsetHeight",this.clientProperty="clientY",this.offsetProperty="offsetY",this.axis="y"}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}scrollTo(e,i){return GC(this.cmp.scrollTo({top:e,duration:i}))}instantScrollTo(e){this.cmp.viewport.scrollYTo(e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["scrollbar-y"]],standalone:!0,features:[Zt([{provide:AZ,useExisting:t}]),qt,Dt],decls:6,vars:7,consts:[["sticky",""],[1,"ng-scrollbar-sticky"],[1,"ng-scrollbar-track-wrapper"],["scrollbarTrackY",""],["scrollbarThumbY",""],["scrollbarButton","top","scrollDirection","backward"],["scrollbarButton","bottom","scrollDirection","forward"]],template:function(i,r){i&1&&(d(0,"div",1,0)(2,"div",2)(3,"div",3),H(4,"div",4),c(),k(5,sit,2,6),c()()),i&2&&(m(3),Cm("ng-scrollbar-track ",r.cmp.trackClass,""),m(),Cm("ng-scrollbar-thumb ",r.cmp.thumbClass,""),m(),Xt(5,r.cmp.buttons()?5:-1))},dependencies:[xit,Sit,P_e],styles:["[_nghost-%COMP%]{position:absolute;inset:0;pointer-events:none;min-width:calc(var(--viewport-width) * 1px);min-height:calc(var(--viewport-height) * 1px)}.ng-scrollbar-sticky[_ngcontent-%COMP%]{top:calc(var(--_scrollbar-wrapper-top) * 1px);left:calc(var(--_scrollbar-wrapper-left) * 1px);right:calc(var(--_scrollbar-wrapper-right) * 1px);height:calc(var(--_scrollbar-wrapper-height) * 1px);width:calc(var(--_scrollbar-wrapper-width) * 1px);position:sticky;z-index:100;opacity:var(--_scrollbar-hover-opacity);transition:var(--_scrollbar-opacity-transition)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{touch-action:none;-webkit-user-select:none;user-select:none;top:var(--_scrollbar-track-top);bottom:var(--_scrollbar-track-bottom);right:var(--_scrollbar-track-right);left:var(--_scrollbar-track-left);pointer-events:var(--_scrollbar-pointer-events);transition:var(--scrollbar-track-wrapper-transition);position:absolute;overflow:hidden;display:flex;place-items:center}.ng-scrollbar-track[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;background-color:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);cursor:default;z-index:1;order:2}.ng-scrollbar-thumb[_ngcontent-%COMP%]{box-sizing:border-box;position:absolute;transition:var(--scrollbar-thumb-transition);border-radius:var(--scrollbar-border-radius);height:var(--_thumb-height);width:var(--_thumb-width);animation-name:_ngcontent-%COMP%_scrollbarThumbAnimation;animation-duration:1ms;animation-timing-function:linear}@keyframes _ngcontent-%COMP%_scrollbarThumbAnimation{0%{translate:var(--_scrollbar-thumb-transform-from)}to{translate:var(--_scrollbar-thumb-transform-to)}}","[_nghost-%COMP%]{--_scrollbar-wrapper-top: 0;--_scrollbar-wrapper-left: var(--_scrollbar-wrapper-y-left);--_scrollbar-wrapper-right: var(--_scrollbar-wrapper-y-right);--_scrollbar-wrapper-height: var(--viewport-height);--_scrollbar-wrapper-width: var(--_scrollbar-thickness);--_scrollbar-track-top: var(--_vertical-top);--_scrollbar-track-bottom: var(--_vertical-bottom);--_scrollbar-track-right: var(--_vertical-right);--_scrollbar-track-left: var(--_vertical-left);--_thumb-height: calc(var(--thumb-y-length) * 1px);--_thumb-width: 100%;--_scrollbar-thumb-transform-from: 0 0;--_scrollbar-thumb-transform-to: 0 calc(var(--_scrollbar-y-thumb-transform-to-value) * 1px)}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{width:var(--_track-y-thickness);flex-direction:column}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]:hover{--_track-y-thickness: var(--_scrollbar-hover-thickness-px);--_thumb-y-color: var(--scrollbar-thumb-hover-color)}.ng-scrollbar-thumb[_ngcontent-%COMP%]{animation-timeline:var(--_animation-timeline-y);min-height:calc(var(--scrollbar-thumb-min-size) * 1px);display:var(--_vertical-thumb-display);background-color:var(--_thumb-y-color)}"],changeDetection:0})}}return t})(),Eit=(()=>{class t extends R_e{get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get viewportScrollOffset(){return Math.abs(this.cmp.viewport.scrollLeft)}constructor(){_p(()=>{this.cmp.direction()==="rtl"?this.handlePosition=(e,i)=>-(i-e):this.handlePosition=e=>e}),super(),this.manager=Me(F_e),this.clientRectProperty="left",this.sizeProperty="offsetWidth",this.clientProperty="clientX",this.offsetProperty="offsetX",this.axis="x"}scrollTo(e,i){return GC(this.cmp.scrollTo({left:e,duration:i}))}instantScrollTo(e,i){this.cmp.viewport.scrollXTo(this.handlePosition(e,i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["scrollbar-x"]],hostVars:1,hostBindings:function(i,r){i&2&&xt("dir",r.cmp.direction())},standalone:!0,features:[Zt([{provide:AZ,useExisting:t}]),qt,Dt],decls:6,vars:7,consts:[["sticky",""],[1,"ng-scrollbar-sticky"],[1,"ng-scrollbar-track-wrapper"],["scrollbarTrackX",""],["scrollbarThumbX",""],["scrollbarButton","start","scrollDirection","backward"],["scrollbarButton","end","scrollDirection","forward"]],template:function(i,r){i&1&&(d(0,"div",1,0)(2,"div",2)(3,"div",3),H(4,"div",4),c(),k(5,lit,2,6),c()()),i&2&&(m(3),Cm("ng-scrollbar-track ",r.cmp.trackClass,""),m(),Cm("ng-scrollbar-thumb ",r.cmp.thumbClass,""),m(),Xt(5,r.cmp.buttons()?5:-1))},dependencies:[yit,Cit,P_e],styles:[cit,"[_nghost-%COMP%]{--_scrollbar-wrapper-top: var(--_scrollbar-wrapper-x-top);--_scrollbar-wrapper-left: 0;--_scrollbar-wrapper-right: 0;--_scrollbar-wrapper-height: var(--_scrollbar-thickness);--_scrollbar-wrapper-width: var(--viewport-width);--_scrollbar-track-top: var(--_horizontal-top);--_scrollbar-track-bottom: var(--_horizontal-bottom);--_scrollbar-track-right: var(--_horizontal-right);--_scrollbar-track-left: var(--_horizontal-left);--_thumb-height: 100%;--_thumb-width: calc(var(--thumb-x-length) * 1px);--_scrollbar-thumb-transform-from: 0;--_scrollbar-thumb-transform-to: calc(var(--_scrollbar-x-thumb-transform-to-value) * 1px)}[_nghost-%COMP%] .ng-scrollbar-button[scrollbarButton=start][_ngcontent-%COMP%]{_--button-rotate:90}[_nghost-%COMP%] .ng-scrollbar-button[scrollbarButton=end][_ngcontent-%COMP%]{_--button-rotate:-90}[dir=rtl][_nghost-%COMP%] .ng-scrollbar-thumb[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_scrollbarThumbRTLAnimation;will-change:right;--_scrollbar-thumb-transform-to: calc(var(--_scrollbar-x-thumb-transform-to-value) * -1px)}[dir=rtl][_nghost-%COMP%] .ng-scrollbar-button[scrollbarButton=start][_ngcontent-%COMP%]{--_button-rotate: 90deg}[dir=rtl][_nghost-%COMP%] .ng-scrollbar-button[scrollbarButton=end][_ngcontent-%COMP%]{--_button-rotate: -90deg}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]{height:var(--_track-x-thickness);flex-direction:row}.ng-scrollbar-track-wrapper[_ngcontent-%COMP%]:hover{--_track-x-thickness: var(--_scrollbar-hover-thickness-px);--_thumb-x-color: var(--scrollbar-thumb-hover-color)}.ng-scrollbar-thumb[_ngcontent-%COMP%]{animation-timeline:var(--_animation-timeline-x);min-width:calc(var(--scrollbar-thumb-min-size) * 1px);display:var(--_horizontal-thumb-display);background-color:var(--_thumb-x-color)}@keyframes _ngcontent-%COMP%_scrollbarThumbRTLAnimation{0%{right:var(--_scrollbar-thumb-transform-from)}to{right:calc(var(--_scrollbar-thumb-transform-to) * -1)}}"],changeDetection:0})}}return t})(),k_e=(()=>{class t{constructor(){this.cmp=Me(lM)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["scrollbars"]],standalone:!0,features:[Dt],decls:2,vars:2,template:function(i,r){i&1&&k(0,dit,1,0,"scrollbar-y")(1,uit,1,0,"scrollbar-x"),i&2&&(Xt(0,r.cmp.verticalUsed()?0:-1),m(),Xt(1,r.cmp.horizontalUsed()?1:-1))},dependencies:[Eit,wit],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}}return t})(),Ju=(()=>{class t extends _it{ngOnInit(){this.viewport.init(this.nativeElement,this.contentWrapper.nativeElement),super.ngOnInit()}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275cmp=oe({type:t,selectors:[["ng-scrollbar",3,"externalViewport",""]],viewQuery:function(i,r){if(i&1&&(ot(mit,7),ot(k_e,7)),i&2){let o;Pe(o=Ne())&&(r.contentWrapper=o.first),Pe(o=Ne())&&(r._scrollbars=o.first)}},exportAs:["ngScrollbar"],standalone:!0,features:[Zt([{provide:lM,useExisting:t}]),qre([hit]),qt,Dt],ngContentSelectors:pit,decls:4,vars:0,consts:[["contentWrapper",""]],template:function(i,r){i&1&&(hi(),d(0,"div",null,0),ct(2),H(3,"scrollbars"),c())},dependencies:[k_e],styles:["[_nghost-%COMP%]{display:block;position:relative;max-height:100%;max-width:100%;--scrollbar-border-radius: 0px;--scrollbar-thickness: 5;--scrollbar-offset: 0;--scrollbar-track-wrapper-transition: width 60ms linear, height 60ms linear;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgb(0 0 0 / 20%);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-hover-thickness: var(--scrollbar-thickness);--scrollbar-thumb-transition: none;--scrollbar-thumb-min-size: 20;--scrollbar-button-color: var(--scrollbar-thumb-color);--scrollbar-button-hover-color: var(--scrollbar-button-color);--scrollbar-button-active-color: var(--scrollbar-button-hover-color);--scrollbar-button-fill: white;--scrollbar-button-hover-fill: var(--scrollbar-button-fill);--scrollbar-button-active-fill: var(--scrollbar-button-hover-fill);--scrollbar-hover-opacity-transition-enter-duration: 0;--scrollbar-hover-opacity-transition-leave-duration: .4s;--scrollbar-hover-opacity-transition-leave-delay: 1s;--scrollbar-overscroll-behavior: initial;--scrollbar-mobile-overscroll-behavior: none;--_scrollbar-thickness: calc(var(--scrollbar-thickness) + var(--scrollbar-offset) * 2);--_scrollbar-pointer-events: auto;--_scrollbar-offset-px: calc(var(--scrollbar-offset) * 1px);--_scrollbar-thickness-px: calc(var(--scrollbar-thickness) * 1px);--_scrollbar-hover-thickness-px: calc(var(--scrollbar-hover-thickness) * 1px);--_viewport-padding-top: 0;--_viewport-padding-bottom: 0;--_viewport-padding-left: 0;--_viewport-padding-right: 0;--_horizontal-thumb-display: block;--_vertical-thumb-display: block;--_viewport-overflow: auto;--_thumb-x-color: var(--scrollbar-thumb-color);--_thumb-y-color: var(--scrollbar-thumb-color);--_track-y-thickness: var(--_scrollbar-thickness-px);--_track-x-thickness: var(--_scrollbar-thickness-px);--_viewport-overscroll-behavior: var(--scrollbar-overscroll-behavior);--_scrollbar-content-width: fit-content}[_nghost-%COMP%]{--_vertical-top: var(--_scrollbar-offset-px);--_vertical-bottom: var(--_scrollbar-offset-px);--_horizontal-left: var(--_scrollbar-offset-px);--_horizontal-right: var(--_scrollbar-offset-px);--_horizontal-top: initial;--_horizontal-bottom: var(--_scrollbar-offset-px);--_scrollbar-wrapper-x-top: calc(var(--viewport-height) - var(--_scrollbar-thickness));--reached-offset: 1px;--reached-offset-top: var(--reached-offset);--reached-offset-bottom: var(--reached-offset);--reached-offset-start: var(--reached-offset);--reached-offset-end: var(--reached-offset);--dropped-offset: 1px;--dropped-offset-top: var(--dropped-offset);--dropped-offset-bottom: var(--dropped-offset);--dropped-offset-start: var(--dropped-offset);--dropped-offset-end: var(--dropped-offset);--_viewport_scroll-timeline: unset;--_animation-timeline-y: unset;--_scrollbar-y-thumb-transform-to-value: unset;--_scrollbar-x-thumb-transform-to-value: unset;--_scrollbar-thumb-transform-from: unset;--_scrollbar-thumb-transform-to: unset}.ng-scrollbar-external-viewport[_nghost-%COMP%] .ng-scroll-viewport{min-height:100%;min-width:100%;height:100%;max-height:100%;max-width:100%}.ng-scroll-viewport[_nghost-%COMP%], .ng-scrollbar-external-viewport[_nghost-%COMP%] .ng-scroll-viewport{position:relative;overflow:var(--_viewport-overflow);scroll-timeline:var(--_viewport_scroll-timeline);box-sizing:border-box!important;-webkit-overflow-scrolling:touch;will-change:scroll-position;-webkit-user-select:var(--_viewport-user-select);user-select:var(--_viewport-user-select);overscroll-behavior:var(--_viewport-overscroll-behavior)}.ng-scroll-viewport[_nghost-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], .ng-scrollbar-external-viewport[_nghost-%COMP%] .ng-scroll-viewport>.ng-scroll-content{width:var(--_scrollbar-content-width);z-index:1;min-width:100%;min-height:100%;contain:content;padding:var(--_viewport-padding-top, 0) var(--_viewport-padding-right, 0) var(--_viewport-padding-bottom, 0) var(--_viewport-padding-left, 0)}.ng-scroll-viewport[_nghost-%COMP%], .ng-scrollbar-external-viewport[_nghost-%COMP%] .ng-scroll-viewport{scrollbar-width:none!important}.ng-scroll-viewport[_nghost-%COMP%]::-webkit-scrollbar, .ng-scrollbar-external-viewport[_nghost-%COMP%] .ng-scroll-viewport::-webkit-scrollbar{display:none!important}[position=invertX][_nghost-%COMP%], [position=invertAll][_nghost-%COMP%]{--_horizontal-top: var(--_scrollbar-offset-px);--_horizontal-bottom: initial;--_scrollbar-wrapper-x-top: 0}[dir=ltr][_nghost-%COMP%]{--_scrollbar-wrapper-y-right: initial;--_vertical-right: var(--_scrollbar-offset-px);--_vertical-left: initial;--_scrollbar-wrapper-y-left: calc(var(--viewport-width) - var(--_scrollbar-thickness))}[dir=ltr][position=invertY][_nghost-%COMP%], [dir=ltr][position=invertAll][_nghost-%COMP%]{--_vertical-left: var(--_scrollbar-offset-px);--_vertical-right: initial;--_scrollbar-wrapper-y-left: 0}[dir=rtl][_nghost-%COMP%]{--_scrollbar-wrapper-y-left: initial;--_vertical-left: var(--_scrollbar-offset-px);--_vertical-right: initial;--_scrollbar-wrapper-y-right: calc(var(--viewport-width) - var(--_scrollbar-thickness))}[dir=rtl][position=invertY][_nghost-%COMP%], [dir=rtl][position=invertAll][_nghost-%COMP%]{--_vertical-right: var(--_scrollbar-offset-px);--_vertical-left: initial;--_scrollbar-wrapper-y-right: 0}[verticalUsed=true][horizontalUsed=true][_nghost-%COMP%]{--_scrollbar-thickness-margin: calc(var(--scrollbar-thickness) + var(--scrollbar-offset) * 3);--_scrollbar-thickness-margin-px: calc(var(--_scrollbar-thickness-margin) * 1px)}[horizontalUsed=true][_nghost-%COMP%]{--_vertical-top: var(--_scrollbar-offset-px);--_vertical-bottom: var(--_scrollbar-thickness-margin-px)}[horizontalUsed=true][position=invertX][_nghost-%COMP%], [horizontalUsed=true][position=invertAll][_nghost-%COMP%]{--_vertical-top: var(--_scrollbar-thickness-margin-px);--_vertical-bottom: var(--_scrollbar-offset-px)}[verticalUsed=true][dir=ltr][_nghost-%COMP%]{--_horizontal-left: var(--_scrollbar-offset-px);--_horizontal-right: var(--_scrollbar-thickness-margin-px)}[verticalUsed=true][dir=rtl][_nghost-%COMP%]{--_horizontal-left: var(--_scrollbar-thickness-margin-px);--_horizontal-right: var(--_scrollbar-offset-px)}[verticalUsed=true][position=invertY][dir=ltr][_nghost-%COMP%], [verticalUsed=true][position=invertAll][dir=ltr][_nghost-%COMP%]{--_horizontal-left: var(--_scrollbar-thickness-margin-px);--_horizontal-right: var(--_scrollbar-offset-px)}[verticalUsed=true][position=invertY][dir=rtl][_nghost-%COMP%], [verticalUsed=true][position=invertAll][dir=rtl][_nghost-%COMP%]{--_horizontal-left: var(--_scrollbar-offset-px);--_horizontal-right: var(--_scrollbar-thickness-margin-px)}[appearance=native][verticalUsed=true][dir=ltr][_nghost-%COMP%]{--_viewport-padding-left: 0;--_viewport-padding-right: calc(var(--_scrollbar-thickness) * 1px)}[appearance=native][verticalUsed=true][dir=rtl][_nghost-%COMP%]{--_viewport-padding-left: calc(var(--_scrollbar-thickness) * 1px);--_viewport-padding-right: 0}[appearance=native][verticalUsed=true][position=invertY][dir=ltr][_nghost-%COMP%], [appearance=native][verticalUsed=true][position=invertAll][dir=ltr][_nghost-%COMP%]{--_viewport-padding-left: calc(var(--_scrollbar-thickness) * 1px);--_viewport-padding-right: 0}[appearance=native][verticalUsed=true][position=invertY][dir=rtl][_nghost-%COMP%], [appearance=native][verticalUsed=true][position=invertAll][dir=rtl][_nghost-%COMP%]{--_viewport-padding-left: 0;--_viewport-padding-right: calc(var(--_scrollbar-thickness) * 1px)}[appearance=native][horizontalUsed=true][_nghost-%COMP%]{--_viewport-padding-top: 0;--_viewport-padding-bottom: calc(var(--_scrollbar-thickness) * 1px)}[appearance=native][horizontalUsed=true][position=invertX][_nghost-%COMP%], [appearance=native][horizontalUsed=true][position=invertAll][_nghost-%COMP%]{--_viewport-padding-top: calc(var(--_scrollbar-thickness) * 1px);--_viewport-padding-bottom: 0}[visibility=hover][_nghost-%COMP%]{--_scrollbar-hover-opacity: 0;--_scrollbar-opacity-transition: opacity var(--scrollbar-hover-opacity-transition-leave-duration) var(--scrollbar-hover-opacity-transition-leave-delay)}[visibility=hover][_nghost-%COMP%]:hover, [visibility=hover][_nghost-%COMP%]:active, [visibility=hover][_nghost-%COMP%]:focus{--_scrollbar-hover-opacity: 1;--_scrollbar-opacity-transition: opacity var(--scrollbar-hover-opacity-transition-enter-duration)}[dir=ltr][_nghost-%COMP%] .scroll-reached-trigger-element[trigger=start], [dir=ltr][_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=start]{left:0;right:unset}[dir=ltr][_nghost-%COMP%] .scroll-reached-trigger-element[trigger=end], [dir=ltr][_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=end]{right:0;left:unset}[dir=rtl][_nghost-%COMP%] .scroll-reached-trigger-element[trigger=start], [dir=rtl][_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=start]{right:0;left:unset}[dir=rtl][_nghost-%COMP%] .scroll-reached-trigger-element[trigger=end], [dir=rtl][_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=end]{left:0;right:unset}[_nghost-%COMP%] .ng-scroll-reached-wrapper, [_nghost-%COMP%] .ng-scroll-dropped-wrapper, [_nghost-%COMP%] .scroll-reached-trigger-element, [_nghost-%COMP%] .scroll-dropped-trigger-element{position:absolute;-webkit-user-select:none;user-select:none;pointer-events:none;z-index:-9999}[_nghost-%COMP%] .ng-scroll-reached-wrapper, [_nghost-%COMP%] .ng-scroll-dropped-wrapper{visibility:hidden;inset:0;min-width:calc(var(--viewport-width) * 1px);min-height:calc(var(--viewport-height) * 1px)}[_nghost-%COMP%] [isHorizontallyScrollable=false] .scroll-reached-trigger-element[trigger=end], [_nghost-%COMP%] [isHorizontallyScrollable=false] .scroll-dropped-trigger-element[trigger=end]{display:none}[_nghost-%COMP%] [isVerticallyScrollable=false] .scroll-reached-trigger-element[trigger=bottom], [_nghost-%COMP%] [isVerticallyScrollable=false] .scroll-dropped-trigger-element[trigger=bottom]{display:none}[_nghost-%COMP%] .scroll-reached-trigger-element{background:red}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=top], [_nghost-%COMP%] .scroll-reached-trigger-element[trigger=bottom]{left:0;right:0}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=start], [_nghost-%COMP%] .scroll-reached-trigger-element[trigger=end]{top:0;bottom:0}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=top]{top:0;height:var(--reached-offset-top)}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=bottom]{bottom:0;height:var(--reached-offset-bottom)}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=start]{width:var(--reached-offset-start)}[_nghost-%COMP%] .scroll-reached-trigger-element[trigger=end]{width:var(--reached-offset-end)}[_nghost-%COMP%] .scroll-dropped-trigger-element[_ngcontent-%COMP%]{background:#00f}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=top][_ngcontent-%COMP%], [_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=bottom][_ngcontent-%COMP%]{left:0;right:0}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=start][_ngcontent-%COMP%], [_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=end][_ngcontent-%COMP%]{top:0;bottom:0}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=top][_ngcontent-%COMP%]{top:0;height:var(--dropped-offset-top)}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=bottom][_ngcontent-%COMP%]{bottom:0;height:var(--dropped-offset-bottom)}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=start][_ngcontent-%COMP%]{width:var(--dropped-offset-start)}[_nghost-%COMP%] .scroll-dropped-trigger-element[trigger=end][_ngcontent-%COMP%]{width:var(--dropped-offset-end)}[verticalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerY;--_animation-timeline-y: --scrollerY;--_viewport_scroll-timeline: --scrollerY y;--_scrollbar-y-thumb-transform-to-value: calc(var(--track-y-length) - var(--thumb-y-length))}[horizontalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerX;--_animation-timeline-x: --scrollerX;--_viewport_scroll-timeline: --scrollerX x;--_scrollbar-x-thumb-transform-to-value: calc(var(--track-x-length) - var(--thumb-x-length))}[verticalUsed=true][horizontalUsed=true][_nghost-%COMP%]{--_timeline-scope: --scrollerX, --scrollerY;--_viewport_scroll-timeline: --scrollerX x, --scrollerY y}[orientation=vertical][_nghost-%COMP%]{--_viewport-overflow: hidden auto;--_scrollbar-content-width: unset}[orientation=horizontal][_nghost-%COMP%]{--_viewport-overflow: auto hidden}[disableInteraction=true][_nghost-%COMP%]{--_scrollbar-pointer-events: none}[isVerticallyScrollable=false][_nghost-%COMP%]{--_vertical-thumb-display: none}[isHorizontallyScrollable=false][_nghost-%COMP%]{--_horizontal-thumb-display: none}[dragging=x][_nghost-%COMP%], [dragging=y][_nghost-%COMP%]{--_viewport-user-select: none}[horizontalUsed=true][_nghost-%COMP%]{--thumb-x-length: max(calc(var(--viewport-width) * var(--track-x-length) / var(--content-width)), var(--scrollbar-thumb-min-size))}[verticalUsed=true][_nghost-%COMP%]{--thumb-y-length: max(calc(var(--viewport-height) * var(--track-y-length) / var(--content-height)), var(--scrollbar-thumb-min-size))}[dragging=x][_nghost-%COMP%]{--_track-x-thickness: calc(var(--scrollbar-hover-thickness) * 1px);--_thumb-x-color: var(--scrollbar-thumb-hover-color)}[dragging=y][_nghost-%COMP%]{--_track-y-thickness: calc(var(--scrollbar-hover-thickness) * 1px);--_thumb-y-color: var(--scrollbar-thumb-hover-color)}[mobile=true][_nghost-%COMP%]{--_viewport-overscroll-behavior: var(--scrollbar-mobile-overscroll-behavior)}"],changeDetection:0})}}return t})();var Iit=["searchSelectInput"],Dit=["innerSelectSearch"],Tit=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Ait=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function kit(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",10),$("change",function(r){W(e);let o=S();return Y(o._emitSelectAllBooleanToParent(r.checked))}),c()}if(t&2){let e=S();f("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Mit(t,n){t&1&&H(0,"mat-spinner",7)}function Fit(t,n){t&1&&ct(0,1)}function Rit(t,n){if(t&1&&H(0,"mat-icon",12),t&2){let e=S(2);f("svgIcon",e.closeSvgIcon)}}function Pit(t,n){if(t&1&&(d(0,"mat-icon"),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.closeIcon," ")}}function Nit(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S();return Y(r._reset(!0))}),k(1,Fit,1,0)(2,Rit,1,1)(3,Pit,2,1),c()}if(t&2){let e=S();m(),Xt(1,e.clearIcon?1:e.closeSvgIcon?2:3)}}function Oit(t,n){t&1&&ct(0,2)}function Lit(t,n){if(t&1&&h(0),t&2){let e=S(2);ue(" ",e.noEntriesFoundLabel," ")}}function Vit(t,n){if(t&1&&(d(0,"div",9),k(1,Oit,1,0)(2,Lit,1,1),c()),t&2){let e=S();m(),Xt(1,e.noEntriesFound?1:2)}}var Bit=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=ze({type:t,selectors:[["","ngxMatSelectSearchClear",""]],standalone:!0})}return t})(),jit=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Hit=new ke("mat-selectsearch-default-options"),zit=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=ze({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]],standalone:!0})}return t})(),MZ=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new Ae;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new Tr(null);optionsList$=this._options$.pipe(Wi(e=>e?e.changes.pipe(st(i=>i.toArray()),kn(e.toArray())):vt(null)));optionsLength$=this.optionsList$.pipe(st(e=>e?e.length:0));previousSelectedValues;_formControl=new uv("",{nonNullable:!0});_showNoEntriesFound$=vm([this._formControl.valueChanges,this.optionsLength$]).pipe(st(([e,i])=>!!(this.noEntriesFoundLabel&&e&&i===this.getOptionsLengthOffset())));_onDestroy=new qe;activeDescendant;constructor(e,i,r,o,a,s){this.matSelect=e,this.changeDetectorRef=i,this._viewportRuler=r,this.matOption=o,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let i of jit)Object.prototype.hasOwnProperty.call(e,i)&&(this[i]=e[i])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(Wl(1),Ft(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(cn(1),Wi(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(ri(()=>{setTimeout(()=>{let i=this._options.toArray(),r=i[this.getOptionsLengthOffset()],o=this.matSelect._keyManager;o&&this.matSelect.panelOpen&&r&&((!e||!this.matSelect.compareWith(e.value,r.value)||!o.activeItem||!i.find(s=>this.matSelect.compareWith(s.value,o.activeItem?.value)))&&o.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=r})}))})).pipe(Ft(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(Ft(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(Ft(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(Ft(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let i=this.matSelect._getAriaActiveDescendant(),r=this._options.toArray().findIndex(o=>o.id===i);r!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[r]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",i))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(vi(i=>i!==this._lastExternalInputValue),ri(()=>this._lastExternalInputValue=void 0),Ft(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,i=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=i}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(Ft(this._onDestroy)).subscribe(e=>{let i=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let r=this.matSelect.options.map(o=>o.value);this.previousSelectedValues.forEach(o=>{!e.some(a=>this.matSelect.compareWith(a,o))&&!r.some(a=>this.matSelect.compareWith(a,o))&&(this.recreateValuesArray?e=[...e,o]:e.push(o),i=!0)})}this.previousSelectedValues=e,i&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,i=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){i=e;break}i&&(this.innerSelectSearch.nativeElement.style.width=i.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(i){return new(i||t)(E(Li),E(Di),E(Dc),E(Mi,8),E(bt,8),E(Hit,8))};static \u0275cmp=oe({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,Bit,5),bi(o,zit,5)),i&2){let a;Pe(a=Ne())&&(r.clearIcon=a.first),Pe(a=Ne())&&(r.noEntriesFound=a.first)}},viewQuery:function(i,r){if(i&1&&(ot(Iit,7,Xe),ot(Dit,7,Xe)),i&2){let o;Pe(o=Ne())&&(r.searchSelectInput=o.first),Pe(o=Ne())&&(r.innerSelectSearch=o.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},standalone:!0,features:[Zt([{provide:ys,useExisting:fr(()=>t),multi:!0}]),Dt],ngContentSelectors:Ait,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(i,r){if(i&1){let o=ie();hi(Tit),H(0,"input",2),d(1,"div",3,0)(3,"div",4),k(4,kit,1,5,"mat-checkbox",5),d(5,"input",6,1),$("keydown",function(s){return W(o),Y(r._handleKeydown(s))})("keyup",function(s){return W(o),Y(r._handleKeyup(s))})("blur",function(){return W(o),Y(r.onBlur())}),c(),k(7,Mit,1,0,"mat-spinner",7)(8,Nit,4,1,"button",8),ct(9),c(),H(10,"mat-divider"),c(),k(11,Vit,3,1,"div",9),ce(12,"async")}i&2&&(m(),yt("mat-select-search-inner-multiple",r.matSelect.multiple)("mat-select-search-inner-toggle-all",r._isToggleAllCheckboxVisible()),m(3),Xt(4,r._isToggleAllCheckboxVisible()?4:-1),m(),f("type",r.type)("formControl",r._formControl)("placeholder",r.placeholderLabel),xt("aria-label",r.ariaLabel),m(2),Xt(7,r.searching?7:-1),m(),Xt(8,!r.hideClearSearchButton&&r.value&&!r.searching?8:-1),m(3),Xt(11,xe(12,12,r._showNoEntriesFound$)?11:-1))},dependencies:[Ea,vT,Gt,it,Od,Co,kc,yi,pw,He,Ic,fi],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white))}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0})}return t})();var N_e=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=gt({type:t});static \u0275inj=ft({imports:[MZ]})}return t})();var Git=["switch"],$it=["*"];function qit(t,n){t&1&&(d(0,"div",10),Na(),d(1,"svg",12),H(2,"path",13),c(),d(3,"svg",14),H(4,"path",15),c()())}var Wit=new ke("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1})}),Yit={provide:ys,useExisting:fr(()=>Fr),multi:!0},pB=class{constructor(n,e){this.source=n,this.checked=e}},Kit=0,Fr=(()=>{class t{_createChangeEvent(e){return new pB(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,a,s){this._elementRef=e,this._focusMonitor=i,this._changeDetectorRef=r,this.defaults=a,this._onChange=l=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new Ae,this.toggleChange=new Ae,this.tabIndex=parseInt(o)||0,this.color=a.color||"accent",this._noopAnimations=s==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++Kit}`,this.hideIcon=a.hideIcon??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new pB(this,this.checked)))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(ua),E(Di),Sa("tabindex"),E(Wit),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(i,r){if(i&1&&ot(Git,5),i&2){let o;Pe(o=Ne())&&(r._switchElement=o.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(i,r){i&2&&(La("id",r.id),xt("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),In(r.color?"mat-"+r.color:""),yt("mat-mdc-slide-toggle-focused",r._focused)("mat-mdc-slide-toggle-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ve.None,"aria-describedby","ariaDescribedby"],required:[ve.HasDecoratorInputTransform,"required","required",at],color:"color",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Gr(e)],checked:[ve.HasDecoratorInputTransform,"checked","checked",at],hideIcon:[ve.HasDecoratorInputTransform,"hideIcon","hideIcon",at]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[Zt([Yit,{provide:wl,useExisting:t,multi:!0}]),Ei,Oi,Dt],ngContentSelectors:$it,decls:13,vars:24,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"div",1)(1,"button",2,0),$("click",function(){return W(o),Y(r._handleClick())}),H(3,"div",3),d(4,"div",4)(5,"div",5)(6,"div",6),H(7,"div",7),c(),d(8,"div",8),H(9,"div",9),c(),k(10,qit,5,0,"div",10),c()()(),d(11,"label",11),$("click",function(s){return W(o),Y(s.stopPropagation())}),ct(12),c()()}if(i&2){let o=je(2);f("labelPosition",r.labelPosition),m(),yt("mdc-switch--selected",r.checked)("mdc-switch--unselected",!r.checked)("mdc-switch--checked",r.checked)("mdc-switch--disabled",r.disabled),f("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled),xt("id",r.buttonId)("name",r.name)("aria-label",r.ariaLabel)("aria-labelledby",r._getAriaLabelledBy())("aria-describedby",r.ariaDescribedby)("aria-required",r.required||null)("aria-checked",r.checked),m(8),f("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),m(),Xt(10,r.hideIcon?-1:10),m(),f("for",r.buttonId),xt("id",r._labelId)}},dependencies:[Jl,XS],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative}.mdc-switch[hidden]{display:none}.mdc-switch:disabled{cursor:default;pointer-events:none}.mdc-switch__track{overflow:hidden;position:relative;width:100%}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%}@media screen and (forced-colors: active){.mdc-switch__track::before,.mdc-switch__track::after{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(-100%)}[dir=rtl] .mdc-switch__track::after,.mdc-switch__track[dir=rtl]::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track[dir=rtl]::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::after{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0)}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0)}[dir=rtl] .mdc-switch__handle-track,.mdc-switch__handle-track[dir=rtl]{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track,.mdc-switch--selected .mdc-switch__handle-track[dir=rtl]{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto}[dir=rtl] .mdc-switch__handle,.mdc-switch__handle[dir=rtl]{left:auto;right:0}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media screen and (forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-elevation-overlay{bottom:0;left:0;right:0;top:0}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1}.mdc-switch:disabled .mdc-switch__ripple{display:none}.mdc-switch__icons{height:100%;position:relative;width:100%;z-index:1}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}.mdc-switch{width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color)}.mdc-switch.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color)}.mdc-switch .mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation)}.mdc-switch .mdc-switch__focus-ring-wrapper,.mdc-switch .mdc-switch__handle{height:var(--mdc-switch-handle-height)}.mdc-switch .mdc-switch__handle{border-radius:var(--mdc-switch-handle-shape)}.mdc-switch .mdc-switch__handle{width:var(--mdc-switch-handle-width)}.mdc-switch .mdc-switch__handle-track{width:calc(100% - var(--mdc-switch-handle-width))}.mdc-switch.mdc-switch--selected:enabled .mdc-switch__icon{fill:var(--mdc-switch-selected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color)}.mdc-switch.mdc-switch--unselected:enabled .mdc-switch__icon{fill:var(--mdc-switch-unselected-icon-color)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color)}.mdc-switch.mdc-switch--selected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch.mdc-switch--unselected:disabled .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size)}.mdc-switch.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-hover-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-focus-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-selected-pressed-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-hover-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-focus-state-layer-color)}.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background-color:var(--mdc-switch-unselected-pressed-state-layer-color)}.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-selected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--selected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-selected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--selected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--selected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-selected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus):hover .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:hover:not(:focus).mdc-ripple-surface--hover .mdc-switch__ripple::before{opacity:var(--mdc-switch-unselected-hover-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:focus.mdc-ripple-upgraded--background-focused .mdc-switch__ripple::before,.mdc-switch.mdc-switch--unselected:enabled:focus:not(.mdc-ripple-upgraded):focus .mdc-switch__ripple::before{transition-duration:75ms;opacity:var(--mdc-switch-unselected-focus-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded) .mdc-switch__ripple::after{transition:opacity 150ms linear}.mdc-switch.mdc-switch--unselected:enabled:active:not(.mdc-ripple-upgraded):active .mdc-switch__ripple::after{transition-duration:75ms;opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch.mdc-switch--unselected:enabled:active.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity)}.mdc-switch .mdc-switch__ripple{height:var(--mdc-switch-state-layer-size);width:var(--mdc-switch-state-layer-size)}.mdc-switch .mdc-switch__track{height:var(--mdc-switch-track-height)}.mdc-switch:disabled .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch:enabled .mdc-switch__track::after{background:var(--mdc-switch-selected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color)}.mdc-switch:enabled .mdc-switch__track::before{background:var(--mdc-switch-unselected-track-color)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color)}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color)}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color)}.mdc-switch:disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color)}.mdc-switch .mdc-switch__track{border-radius:var(--mdc-switch-track-shape)}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mdc-switch:disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mat-mdc-slide-toggle{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle .mdc-switch__ripple::after{content:"";opacity:0}.mat-mdc-slide-toggle .mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:opacity 75ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-elevation-overlay,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mdc-switch__handle{transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle:active .mdc-switch:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--selected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle:active .mdc-switch--unselected:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch__track::after,.mdc-switch__track::before{border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color)}.mdc-switch--selected .mdc-switch__track::after,.mdc-switch--selected .mdc-switch__track::before{border-width:var(--mat-switch-selected-track-outline-width)}.mdc-switch--disabled .mdc-switch__track::after,.mdc-switch--disabled .mdc-switch__track::before{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}'],encapsulation:2,changeDetection:0})}}return t})();var O_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Fr,ki,ki]})}}return t})();var Xit=["input"],Qit=["formField"],Zit=["*"],L_e=0,hB=class{constructor(n,e){this.source=n,this.value=e}},Jit={provide:ys,useExisting:fr(()=>ep),multi:!0},V_e=new ke("MatRadioGroup"),ent=new ke("mat-radio-default-options",{providedIn:"root",factory:tnt});function tnt(){return{color:"accent"}}var ep=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${L_e++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new Ae}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new hB(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static{this.\u0275fac=function(i){return new(i||t)(E(Di))}}static{this.\u0275dir=ze({type:t,selectors:[["mat-radio-group"]],contentQueries:function(i,r,o){if(i&1&&bi(o,em,5),i&2){let a;Pe(a=Ne())&&(r._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],required:[ve.HasDecoratorInputTransform,"required","required",at]},outputs:{change:"change"},exportAs:["matRadioGroup"],standalone:!0,features:[Zt([Jit,{provide:V_e,useExisting:t}]),Ei]})}}return t})(),em=(()=>{class t{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,a,s,l,u){this._elementRef=i,this._changeDetector=r,this._focusMonitor=o,this._radioDispatcher=a,this._providerOverride=l,this._uniqueId=`mat-radio-${++L_e}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Ae,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations=s==="NoopAnimations",u&&(this.tabIndex=Gr(u,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new hB(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}static{this.\u0275fac=function(i){return new(i||t)(E(V_e,8),E(Xe),E(Di),E(ua),E(tw),E(Zn,8),E(ent,8),Sa("tabindex"))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ot(Xit,5),ot(Qit,7,Xe)),i&2){let o;Pe(o=Ne())&&(r._inputElement=o.first),Pe(o=Ne())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,r){i&1&&$("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(xt("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),yt("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ve.None,"aria-describedby","ariaDescribedby"],disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Gr(e)],checked:[ve.HasDecoratorInputTransform,"checked","checked",at],value:"value",labelPosition:"labelPosition",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],required:[ve.HasDecoratorInputTransform,"required","required",at],color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[Ei,Dt],ngContentSelectors:Zit,decls:13,vars:16,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"div",2,0)(2,"div",3)(3,"div",4),$("click",function(s){return W(o),Y(r._onTouchTargetClick(s))}),c(),d(4,"input",5,1),$("change",function(s){return W(o),Y(r._onInputInteraction(s))}),c(),d(6,"div",6),H(7,"div",7)(8,"div",8),c(),d(9,"div",9),H(10,"div",10),c()(),d(11,"label",11),ct(12),c()()}i&2&&(f("labelPosition",r.labelPosition),m(2),yt("mdc-radio--disabled",r.disabled),m(2),f("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),xt("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),m(5),f("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),m(2),f("for",r.inputId))},dependencies:[Jl,XS],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0})}}return t})(),B_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,po,jd,em,ki]})}}return t})();var int=["*"];function nnt(t,n){t&1&&ct(0)}var FZ=(()=>{class t{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"],standalone:!0})}}return t})(),RZ=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","cdkStepLabel",""]],standalone:!0})}}return t})(),rnt=0;var a_={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},PZ=new ke("STEPPER_GLOBAL_OPTIONS"),fB=(()=>{class t{get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(e,i){this._stepper=e,this.interacted=!1,this.interactedStream=new Ae,this.editable=!0,this.optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static{this.\u0275fac=function(i){return new(i||t)(E(fr(()=>cM)),E(PZ,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["cdk-step"]],contentQueries:function(i,r,o){if(i&1&&bi(o,RZ,5),i&2){let a;Pe(a=Ne())&&(r.stepLabel=a.first)}},viewQuery:function(i,r){if(i&1&&ot(Mn,7),i&2){let o;Pe(o=Ne())&&(r.content=o.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],state:"state",editable:[ve.HasDecoratorInputTransform,"editable","editable",at],optional:[ve.HasDecoratorInputTransform,"optional","optional",at],completed:[ve.HasDecoratorInputTransform,"completed","completed",at],hasError:[ve.HasDecoratorInputTransform,"hasError","hasError",at]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],standalone:!0,features:[Ei,Oi,Dt],ngContentSelectors:int,decls:1,vars:0,template:function(i,r){i&1&&(hi(),k(0,nnt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}}return t})(),cM=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this.steps&&this._steps?(this._isValidIndex(e),this.selected?._markAsInteracted(),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}constructor(e,i,r){this._dir=e,this._changeDetectorRef=i,this._elementRef=r,this._destroyed=new qe,this.steps=new js,this._sortedHeaders=new js,this.linear=!1,this._selectedIndex=0,this.selectionChange=new Ae,this.selectedIndexChange=new Ae,this._orientation="horizontal",this._groupId=rnt++}ngAfterContentInit(){this._steps.changes.pipe(kn(this._steps),Ft(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(kn(this._stepHeader),Ft(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Ep(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),(this._dir?this._dir.change:vt()).pipe(kn(this._layoutDirection()),Ft(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex;return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,i=a_.NUMBER){let r=this.steps.toArray()[e],o=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,o):this._getGuidelineLogic(r,o,i)}_getDefaultIndicatorLogic(e,i){return e._showError()&&e.hasError&&!i?a_.ERROR:!e.completed||i?a_.NUMBER:e.editable?a_.EDIT:a_.DONE}_getGuidelineLogic(e,i,r=a_.NUMBER){return e._showError()&&e.hasError&&!i?a_.ERROR:e.completed&&!i?a_.DONE:e.completed&&i?r:e.editable&&i?a_.EDIT:r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let i=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:i[e],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let i=ho(e),r=e.keyCode,o=this._keyManager;o.activeItemIndex!=null&&!i&&(r===32||r===13)?(this.selectedIndex=o.activeItemIndex,e.preventDefault()):o.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Yf();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e{class t{constructor(e){this._stepper=e,this.type="submit"}static{this.\u0275fac=function(i){return new(i||t)(E(cM))}}static{this.\u0275dir=ze({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(i,r){i&1&&$("click",function(){return r._stepper.next()}),i&2&&La("type",r.type)},inputs:{type:"type"},standalone:!0})}}return t})();var H_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Kf]})}}return t})();function ont(t,n){if(t&1&&dn(0,2),t&2){let e=S();f("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function ant(t,n){if(t&1&&(d(0,"span",7),h(1),c()),t&2){let e=S(2);m(),U(e._getDefaultTextForState(e.state))}}function snt(t,n){if(t&1&&(d(0,"span",8),h(1),c()),t&2){let e=S(3);m(),U(e._intl.completedLabel)}}function lnt(t,n){if(t&1&&(d(0,"span",8),h(1),c()),t&2){let e=S(3);m(),U(e._intl.editableLabel)}}function cnt(t,n){if(t&1&&(k(0,snt,2,1,"span",8)(1,lnt,2,1),d(2,"mat-icon",7),h(3),c()),t&2){let e=S(2);Xt(0,e.state==="done"?0:e.state==="edit"?1:-1),m(3),U(e._getDefaultTextForState(e.state))}}function dnt(t,n){if(t&1&&k(0,ant,2,1)(1,cnt,4,2),t&2){let e,i=S();Xt(0,(e=i.state)==="number"?0:1)}}function unt(t,n){t&1&&(d(0,"div",4),dn(1,9),c()),t&2&&(m(),f("ngTemplateOutlet",n.template))}function mnt(t,n){if(t&1&&(d(0,"div",4),h(1),c()),t&2){let e=S();m(),U(e.label)}}function pnt(t,n){if(t&1&&(d(0,"div",5),h(1),c()),t&2){let e=S();m(),U(e._intl.optionalLabel)}}function hnt(t,n){if(t&1&&(d(0,"div",6),h(1),c()),t&2){let e=S();m(),U(e.errorMessage)}}var U_e=["*"];function fnt(t,n){}function gnt(t,n){if(t&1&&(ct(0),k(1,fnt,0,0,"ng-template",0)),t&2){let e=S();m(),f("cdkPortalOutlet",e._portal)}}var G_e=(t,n)=>({step:t,i:n}),$_e=t=>({animationDuration:t}),q_e=(t,n)=>({value:t,params:n});function _nt(t,n){t&1&&ct(0)}function vnt(t,n){t&1&&H(0,"div",6)}function bnt(t,n){if(t&1&&(dn(0,5),k(1,vnt,1,0,"div",6)),t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count;S(2);let a=je(4);f("ngTemplateOutlet",a)("ngTemplateOutletContext",so(3,G_e,e,i)),m(),Xt(1,r!==o-1?1:-1)}}function ynt(t,n){if(t&1){let e=ie();d(0,"div",7),$("@horizontalStepTransition.done",function(r){W(e);let o=S(2);return Y(o._animationDone.next(r))}),dn(1,8),c()}if(t&2){let e=n.$implicit,i=n.$index,r=S(2);yt("mat-horizontal-stepper-content-inactive",r.selectedIndex!==i),f("@horizontalStepTransition",so(8,q_e,r._getAnimationDirection(i),Le(6,$_e,r._getAnimationDuration())))("id",r._getStepContentId(i)),xt("aria-labelledby",r._getStepLabelId(i)),m(),f("ngTemplateOutlet",e.content)}}function xnt(t,n){if(t&1&&(d(0,"div",1)(1,"div",2),Md(2,bnt,2,6,null,null,kd),c(),d(4,"div",3),Md(5,ynt,2,11,"div",4,kd),c()()),t&2){let e=S();m(2),Fd(e.steps),m(3),Fd(e.steps)}}function Cnt(t,n){if(t&1){let e=ie();d(0,"div",9),dn(1,5),d(2,"div",10)(3,"div",11),$("@verticalStepTransition.done",function(r){W(e);let o=S(2);return Y(o._animationDone.next(r))}),d(4,"div",12),dn(5,8),c()()()()}if(t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count,a=S(2),s=je(4);m(),f("ngTemplateOutlet",s)("ngTemplateOutletContext",so(10,G_e,e,i)),m(),yt("mat-stepper-vertical-line",r!==o-1),m(),yt("mat-vertical-stepper-content-inactive",a.selectedIndex!==i),f("@verticalStepTransition",so(15,q_e,a._getAnimationDirection(i),Le(13,$_e,a._getAnimationDuration())))("id",a._getStepContentId(i)),xt("aria-labelledby",a._getStepLabelId(i)),m(2),f("ngTemplateOutlet",e.content)}}function Snt(t,n){if(t&1&&Md(0,Cnt,6,18,"div",9,kd),t&2){let e=S();Fd(e.steps)}}function wnt(t,n){if(t&1){let e=ie();d(0,"mat-step-header",13),$("click",function(){let r=W(e).step;return Y(r.select())})("keydown",function(r){W(e);let o=S();return Y(o._onKeydown(r))}),c()}if(t&2){let e=n.step,i=n.i,r=S();yt("mat-horizontal-stepper-header",r.orientation==="horizontal")("mat-vertical-stepper-header",r.orientation==="vertical"),f("tabIndex",r._getFocusIndex()===i?0:-1)("id",r._getStepLabelId(i))("index",i)("state",r._getIndicatorType(i,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===i)("active",r._stepIsNavigable(i,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(i,e))("color",e.color||r.color),xt("aria-posinset",i+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(i))("aria-selected",r.selectedIndex==i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",r._stepIsNavigable(i,e)?null:!0)}}var dM=(()=>{class t extends RZ{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["","matStepLabel",""]],standalone:!0,features:[qt]})}}return t})(),gB=(()=>{class t{constructor(){this.changes=new qe,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ent(t){return t||new gB}var Int={provide:gB,deps:[[new Iu,new bm,gB]],useFactory:Ent},NZ=(()=>{class t extends FZ{constructor(e,i,r,o){super(r),this._intl=e,this._focusMonitor=i,this._intlSubscription=e.changes.subscribe(()=>o.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof dM?null:this.label}_templateLabel(){return this.label instanceof dM?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static{this.\u0275fac=function(i){return new(i||t)(E(gB),E(ua),E(Xe),E(Di))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(i,r){i&2&&In("mat-"+(r.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},standalone:!0,features:[qt,Dt],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,r){if(i&1&&(H(0,"div",0),d(1,"div")(2,"div",1),k(3,ont,1,2,"ng-container",2)(4,dnt,2,1),c()(),d(5,"div",3),k(6,unt,2,1,"div",4)(7,mnt,2,1)(8,pnt,2,1,"div",5)(9,hnt,2,1,"div",6),c()),i&2){let o;f("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disableRipple),m(),Cm("mat-step-icon-state-",r.state," mat-step-icon"),yt("mat-step-icon-selected",r.selected),m(2),Xt(3,r.iconOverrides&&r.iconOverrides[r.state]?3:4),m(2),yt("mat-step-label-active",r.active)("mat-step-label-selected",r.selected)("mat-step-label-error",r.state=="error"),m(),Xt(6,(o=r._templateLabel())?6:r._stringLabel()?7:-1,o),m(2),Xt(8,r.optional&&r.state!="error"?8:-1),m(),Xt(9,r.state==="error"?9:-1)}},dependencies:[Jl,ta,He],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color);border-radius:var(--mat-stepper-header-hover-state-layer-shape)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color);border-radius:var(--mat-stepper-header-focus-state-layer-shape)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0})}}return t})(),W_e="500ms",Y_e="225ms",z_e={horizontalStepTransition:Bo("horizontalStepTransition",[cr("previous",$i({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),cr("current",$i({transform:"none",visibility:"inherit"})),cr("next",$i({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),gr("* => *",oT([xr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),i1("@*",t1(),{optional:!0})]),{params:{animationDuration:W_e}})]),verticalStepTransition:Bo("verticalStepTransition",[cr("previous",$i({height:"0px",visibility:"hidden"})),cr("next",$i({height:"0px",visibility:"hidden"})),cr("current",$i({height:"*",visibility:"inherit"})),gr("* <=> current",oT([xr("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),i1("@*",t1(),{optional:!0})]),{params:{animationDuration:Y_e}})])},Dnt=(()=>{class t{constructor(e){this.templateRef=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[ve.None,"matStepperIcon","name"]},standalone:!0})}}return t})(),Tnt=(()=>{class t{constructor(e){this._template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["ng-template","matStepContent",""]],standalone:!0})}}return t})(),tp=(()=>{class t extends fB{constructor(e,i,r,o){super(e,o),this._errorStateMatcher=i,this._viewContainerRef=r,this._isSelected=Ji.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(Wi(()=>this._stepper.selectionChange.pipe(st(e=>e.selectedStep===this),kn(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new $s(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let r=this._errorStateMatcher.isErrorState(e,i),o=!!(e&&e.invalid&&this.interacted);return r||o}static{this.\u0275fac=function(i){return new(i||t)(E(fr(()=>tm)),E(Dp,4),E(Er),E(PZ,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-step"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,dM,5),bi(o,Tnt,5)),i&2){let a;Pe(a=Ne())&&(r.stepLabel=a.first),Pe(a=Ne())&&(r._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],standalone:!0,features:[Zt([{provide:Dp,useExisting:t},{provide:fB,useExisting:t}]),qt,Dt],ngContentSelectors:U_e,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,r){i&1&&(hi(),k(0,gnt,2,1,"ng-template"))},dependencies:[Tl],encapsulation:2,changeDetection:0})}}return t})(),tm=(()=>{class t extends cM{get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}constructor(e,i,r){super(e,i,r),this._stepHeader=void 0,this._steps=void 0,this.steps=new js,this.animationDone=new Ae,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new qe,this._animationDuration="",this._isServer=!Me(ln).isBrowser;let o=r.nativeElement.nodeName.toLowerCase();this.orientation=o==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(Ft(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Ls((e,i)=>e.fromState===i.fromState&&e.toState===i.toState),Ft(this._destroyed)).subscribe(e=>{e.toState==="current"&&this.animationDone.emit()})}_stepIsNavigable(e,i){return i.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:this.orientation==="horizontal"?W_e:Y_e}static{this.\u0275fac=function(i){return new(i||t)(E(Kr,8),E(Di),E(Xe))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,r,o){if(i&1&&(bi(o,tp,5),bi(o,Dnt,5)),i&2){let a;Pe(a=Ne())&&(r._steps=a),Pe(a=Ne())&&(r._icons=a)}},viewQuery:function(i,r){if(i&1&&ot(NZ,5),i&2){let o;Pe(o=Ne())&&(r._stepHeader=o)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(i,r){i&2&&(xt("aria-orientation",r.orientation),yt("mat-stepper-horizontal",r.orientation==="horizontal")("mat-stepper-vertical",r.orientation==="vertical")("mat-stepper-label-position-end",r.orientation==="horizontal"&&r.labelPosition=="end")("mat-stepper-label-position-bottom",r.orientation==="horizontal"&&r.labelPosition=="bottom")("mat-stepper-header-position-bottom",r.headerPosition==="bottom"))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],standalone:!0,features:[Zt([{provide:cM,useExisting:t}]),qt,Dt],ngContentSelectors:U_e,decls:5,vars:2,consts:[["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","mat-horizontal-stepper-content-inactive"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,r){if(i&1&&(hi(),k(0,_nt,1,0)(1,xnt,7,0)(2,Snt,2,0)(3,wnt,1,23,"ng-template",null,0,Ii)),i&2){let o;Xt(0,r._isServer?0:-1),m(),Xt(1,(o=r.orientation)==="horizontal"?1:o==="vertical"?2:-1)}},dependencies:[ta,NZ],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[z_e.horizontalStepTransition,z_e.verticalStepTransition]},changeDetection:0})}}return t})(),K_e=(()=>{class t extends j_e{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=an(t)))(r||t)}})()}static{this.\u0275dir=ze({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(i,r){i&2&&La("type",r.type)},standalone:!0,features:[qt]})}}return t})();var X_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Int,Dp],imports:[ki,po,zd,H_e,Hh,jd,tm,NZ,ki]})}}return t})();var Ant=0,Q_e="mat-badge-content",_B=new Set,knt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["ng-component"]],standalone:!0,features:[Dt],decls:0,vars:0,template:function(i,r){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color);color:var(--mat-badge-text-color);font-family:var(--mat-badge-text-font);font-weight:var(--mat-badge-text-weight);border-radius:var(--mat-badge-container-shape)}.cdk-high-contrast-active .mat-badge-content{outline:solid 1px;border-radius:0}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color);color:var(--mat-badge-disabled-state-text-color)}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, unset);min-height:var(--mat-badge-small-size-container-size, unset);line-height:var(--mat-badge-legacy-small-size-container-size, var(--mat-badge-small-size-container-size));padding:var(--mat-badge-small-size-container-padding);font-size:var(--mat-badge-small-size-text-size);margin:var(--mat-badge-small-size-container-offset)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, unset);min-height:var(--mat-badge-container-size, unset);line-height:var(--mat-badge-legacy-container-size, var(--mat-badge-container-size));padding:var(--mat-badge-container-padding);font-size:var(--mat-badge-text-size);margin:var(--mat-badge-container-offset)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, unset);min-height:var(--mat-badge-large-size-container-size, unset);line-height:var(--mat-badge-legacy-large-size-container-size, var(--mat-badge-large-size-container-size));padding:var(--mat-badge-large-size-container-padding);font-size:var(--mat-badge-large-size-text-size);margin:var(--mat-badge-large-size-container-offset)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset)}"],encapsulation:2,changeDetection:0})}}return t})(),vB=(()=>{class t{get color(){return this._color}set color(e){this._setColor(e),this._color=e}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateDescription(e)}constructor(e,i,r,o,a){this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=a,this._color="primary",this.overlap=!0,this.position="above after",this.size="medium",this._id=Ant++,this._isInitialized=!1,this._interactivityChecker=Me(b0),this._document=Me(ni);let s=Me(Wc);if(!_B.has(s)){_B.add(s);let l=Iz(knt,{environmentInjector:Me(Yl)});s.onDestroy(()=>{_B.delete(s),_B.size===0&&l.destroy()})}}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(Q_e),this._animationMode==="NoopAnimations"&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&this._animationMode!=="NoopAnimations"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){let i=`${e??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Q_e}`);for(let i of Array.from(e))i!==this._badgeElement&&i.remove()}static{this.\u0275fac=function(i){return new(i||t)(E(ht),E(Xe),E(WS),E(Sc),E(Zn,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,r){i&2&&yt("mat-badge-overlap",r.overlap)("mat-badge-above",r.isAbove())("mat-badge-below",!r.isAbove())("mat-badge-before",!r.isAfter())("mat-badge-after",r.isAfter())("mat-badge-small",r.size==="small")("mat-badge-medium",r.size==="medium")("mat-badge-large",r.size==="large")("mat-badge-hidden",r.hidden||!r.content)("mat-badge-disabled",r.disabled)},inputs:{color:[ve.None,"matBadgeColor","color"],overlap:[ve.HasDecoratorInputTransform,"matBadgeOverlap","overlap",at],disabled:[ve.HasDecoratorInputTransform,"matBadgeDisabled","disabled",at],position:[ve.None,"matBadgePosition","position"],content:[ve.None,"matBadge","content"],description:[ve.None,"matBadgeDescription","description"],size:[ve.None,"matBadgeSize","size"],hidden:[ve.HasDecoratorInputTransform,"matBadgeHidden","hidden",at]},standalone:!0,features:[Ei]})}}return t})(),Z_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[Cv,ki,ki]})}}return t})();var zo=(()=>{class t{constructor(e,i,r){this.http=e,this.logger=i,this.startupService=r,this.config=null}init(){return new Promise(e=>{this.logger.logDebug("ConfigurationService -- fetching configuration"),this.fetchConfig().then(i=>{this.logger.logInformation("ConfigurationService -- configuration fetched: ",i),this.config=i,e(void 0)},i=>{this.logger.logCritical("ConfigurationService -- error fetching application configuration: ",i),this.startupService.initError=i,e(void 0)})})}fetchConfig(){return this.http.get("/api/app-configuration").toPromise()}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae($t),ae(tM))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Mnt(t,n){if(t&1){let e=ie();d(0,"div",0),$("click",function(r){return W(e),Y(r.stopPropagation())}),d(1,"h2",1),h(2),d(3,"button",2),$("click",function(){W(e);let r=S();return Y(r.tourService.end())}),d(4,"mat-icon"),h(5,"close"),c()()(),d(6,"p",3),h(7),c(),d(8,"div",4)(9,"button",5),$("click",function(){W(e);let r=S();return Y(r.tourService.prev())}),d(10,"mat-icon"),h(11,"chevron_left"),c()(),d(12,"button",5),$("click",function(){W(e);let r=S();return Y(r.tourService.next())}),d(13,"mat-icon"),h(14,"chevron_right"),c()()()()}if(t&2){let e=n.step,i=S();m(2),ue(" ",e==null?null:e.title," "),m(5),ue(" ",e==null?null:e.content," "),m(2),f("disabled",!i.tourService.hasPrev(e)),m(3),f("disabled",!i.tourService.hasNext(e))}}var eve=(()=>{class t{constructor(e){this.tourService=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(cB))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-tour"]],decls:2,vars:0,consts:[[1,"ps-3","pe-2","py-2",3,"click"],[1,"mb-1","d-flex","align-items-center","justify-content-between"],["mat-icon-button","","color","warn",3,"click"],[1,"wrap"],[1,"mt-2","d-flex","justify-content-center"],["mat-icon-button","","color","primary",3,"click","disabled"]],template:function(i,r){i&1&&(d(0,"tour-step-template"),k(1,Mnt,15,4,"ng-template"),c())},dependencies:[He,fi,dB],styles:[".wrap[_ngcontent-%COMP%]{max-width:35ch;word-break:normal;overflow-wrap:break-word}"]})}}return t})();var tve=(()=>{class t{constructor(e){this.configService=e,this.title="app"}static{this.\u0275fac=function(i){return new(i||t)(E(zo))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-root"]],decls:3,vars:0,template:function(i,r){i&1&&(d(0,"div"),H(1,"spa-root")(2,"app-tour"),c())},dependencies:[e_e,eve],styles:["@media (max-width: 767px){.body-content[_ngcontent-%COMP%]{padding-top:50px}}"]})}}return t})();var ive=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.navigateByUrl("/private/s")}static{this.\u0275fac=function(i){return new(i||t)(E(lt))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-private-home"]],decls:0,vars:0,template:function(i,r){}})}}return t})();var nve=["Admin","Manager","Worker","Monitor","RegistryIntegration","IssuerIntegration"],rve=["Owner","Contributor","Reader"],bl=function(t){return t.Created="Created",t.Active="Active",t.Canceled="Canceled",t.CanceledTemporarily="CanceledTemporarily",t}(bl||{}),lf=function(t){return t.Created="Created",t.Started="Started",t.Completed="Completed",t.Canceled="Canceled",t}(lf||{}),Vl=function(t){return t.Created="Created",t.Signed="Signed",t.Registered="Registered",t.Canceled="Canceled",t.SentToRegistry="SentToRegistry",t.AcceptedByRegistry="AcceptedByRegistry",t}(Vl||{}),ss=function(t){return t.Json="Json",t.Csv="Csv",t.Manual="Manual",t}(ss||{}),Bl=function(t){return t.EmissionRegistration="EmissionRegistration",t.Emission="Emission",t.Registration="Registration",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t}(Bl||{}),im=function(t){return t.NoAuth="NoAuth",t.Basic="Basic",t.Bearer="Bearer",t.ApiKey="ApiKey",t}(im||{}),Gx=function(t){return t.Processing="Processing",t.Waiting="Waiting",t.Success="Success",t.Warning="Warning",t.Error="Error",t}(Gx||{}),Ob=function(t){return t.Xml="XML do diploma",t.AcademicDocumentation="Documenta\xE7\xE3o acad\xEAmica",t.VisualRepresentation="Representa\xE7\xE3o visual",t.LetterheadVisualRepresentation="Representa\xE7\xE3o visual timbrada",t.AcademicTranscript="Hist\xF3rico escolar",t.Curriculum="Curr\xEDculo escolar",t}(Ob||{}),Zr=function(t){return t.IssuerRegistry="IssuerRegistry",t.Issuer="Issuer",t.Registry="Registry",t}(Zr||{}),su=function(t){return t.Manual="Manual",t.Subscription="Subscription",t.Integration="Integration",t}(su||{}),ks=function(t){return t.TermoResponsabilidade="TermoResponsabilidade",t.DocumentoIdentidadeDoAluno="DocumentoIdentidadeDoAluno",t.ProvaConclusaoEnsinoMedio="ProvaConclusaoEnsinoMedio",t.HistoricoEscolar="HistoricoEscolar",t.ProvaColacao="ProvaColacao",t.ComprovacaoEstagioCurricular="ComprovacaoEstagioCurricular",t.CertidaoNascimento="CertidaoNascimento",t.CertidaoCasamento="CertidaoCasamento",t.TituloEleitor="TituloEleitor",t.AtoNaturalizacao="AtoNaturalizacao",t.AtoDesignacao="AtoDesignacao",t.Outros="Outros",t}(ks||{}),jl=function(t){return t.Created="Created",t.Approved="Approved",t.Rejected="Rejected",t.Registered="Registered",t.Signed="Signed",t.Canceled="Canceled",t.SentToIssuer="SentToIssuer",t.CreatedAwaitingAcceptance="CreatedAwaitingAcceptance",t.Accepted="Accepted",t}(jl||{}),Pt=function(t){return t.Degree="Degree",t.Emission="Emission",t.Registration="Registration",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t.Event="Event",t.Restamp="Restamp",t}(Pt||{}),Ka=function(t){return t.Abandono="Abandono",t.Desistencia="Desist\xEAncia",t.Formado="Formado",t.IntercambioInternacional="Interc\xE2mbio internacional",t.IntercambioNacional="Interc\xE2mbio nacional",t.Jubilado="Jubilado",t.Licenca="Licen\xE7a",t.MatriculadoEmDisciplina="Matriculado em disciplina",t.OutraSituacao="Outra situa\xE7\xE3o",t.Trancamento="Trancamento",t}(Ka||{}),yl=function(t){return t.Enem="Enem",t.Vestibular="Vestibular",t.AvaliacaoSeriada="Avalia\xE7\xE3o Seriada",t.SelecaoSimplificada="Sele\xE7\xE3o Simplificada",t.EgressoBILI="Egresso BI/LI",t.PECG="PEC-G",t.TransferenciaExOfficio="Transfer\xEAncia Ex Officio",t.Decisaojudicial="Decis\xE3o judicial",t.SelecaoparaVagasRemanescentes="Sele\xE7\xE3o para Vagas Remanescentes",t.SelecaoparaVagasdeProgramasEspeciais="Sele\xE7\xE3o para Vagas de Programas Especiais",t.Programasdeavaliacaoseriadaoucontinuada="Programas de avalia\xE7\xE3o seriada ou continuada",t.Convenios="Convenios",t.Historicoescolar="Hist\xF3rico escolar",t.Sisu="Sisu",t.Provaagendada="Prova agendada",t.Entrevista="Entrevista",t.Transferencia="Transferencia",t.Outros="Outros",t}(yl||{}),ip=function(t){return t.Habilitado="Habilitado",t.Irregular="Irregular",t.NaoHabilitado="N\xE3o habilitado",t}(ip||{}),OZ=function(t){return t.Ingressante="Ingressante",t.Concluinte="Concluinte",t}(OZ||{}),Lb=function(t){return t.EstudantenaohabilitadoaoEnadeemrazaodocalendariodocicloavaliativo="Estudante n\xE3o habilitado ao Enade em raz\xE3o do calend\xE1rio do ciclo avaliativo",t.EstudantenaohabilitadoaoEnadeemrazaodanaturezadoprojetopedagogicodocurso="Estudante n\xE3o habilitado ao Enade em raz\xE3o da natureza do projeto pedag\xF3gico do curso",t.Outro="Outro",t}(Lb||{}),vo=function(t){return t.AtividadeComplementar="AtividadeComplementar",t.Disciplina="Disciplina",t.Estagio="Estagio",t.SituacaoDiscente="SituacaoDiscente",t}(vo||{}),$x=function(t){return t.Aprovado="Aprovado",t.Reprovado="Reprovado",t.Pendente="Pendente",t}($x||{}),Ms=function(t){return t.Created="Created",t.Active="Active",t.Canceled="Canceled",t.CanceledTemporarily="CanceledTemporarily",t}(Ms||{}),s_=function(t){return t.Partial="Partial",t.Final="Final",t.Copy="Copy",t}(s_||{}),Jr=function(t){return t.Degree="Degree",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t}(Jr||{}),l_=function(t){return t.Default="Default",t.Lyceum="Lyceum",t}(l_||{}),fd=function(t){return t.January="January",t.February="February",t.March="March",t.April="April",t.May="May",t.June="June",t.July="July",t.August="August",t.September="September",t.October="October",t.November="November",t.December="December",t}(fd||{}),Vb=function(t){return t.Reitor="Reitor",t.ReitorExercicio="Reitor em Exerc\xEDcio",t.ResponsavelRegistro="Respons\xE1vel pelo registro",t.CoordenadorCurso="Coordenador de Curso",t.SubcoordenadorCurso="Subcoordenador de Curso",t.CoordenadorCursoExercicio="Coordenador de Curso em exerc\xEDcio",t.ChefeRegistroDiplomas="Chefe da \xE1rea de registro de diplomas",t.ChefeExercicioRegistroDiplomas="Chefe em exerc\xEDcio da \xE1rea de registro de diplomas",t.Outro="Outro",t}(Vb||{}),qx=function(t){return t.Licenciado="Licenciado",t.Tecnologo="Tecn\xF3logo",t.Bacharel="Bacharel",t.Medico="M\xE9dico",t.Outro="Outro",t}(qx||{}),LZ=function(t){return t.Tecnologo="Tecn\xF3logo",t.Bacharelado="Bacharelado",t.Licenciatura="Licenciatura",t.CursoSequencial="Curso sequencial",t}(LZ||{}),VZ=function(t){return t.Tecnologo="Tecn\xF3logo",t.Graduacao="Gradua\xE7\xE3o",t.Especializacao="Especializa\xE7\xE3o",t.Mestrado="Mestrado",t.Doutorado="Doutorado",t}(VZ||{}),bB=function(t){return t.Presencial="Presencial",t.EAD="EAD",t.Semipresencial="Semipresencial",t}(bB||{}),ls=function(t){return t.None="None",t.Nota="Nota",t.NotaAteCem="NotaAteCem",t.Conceito="Conceito",t.ConceitoRM="ConceitoRM",t.ConceitoEspecificoDoCurso="ConceitoEspecificoDoCurso",t}(ls||{}),BZ=function(t){return t.A="A+",t.A1="A",t.A2="A-",t.B="B+",t.B1="B",t.B2="B-",t.C="C+",t.C1="C",t.C2="C-",t.D="D+",t.D1="D",t.D2="D-",t.E="E+",t.E1="E",t.E2="E-",t.F="F+",t.F1="F",t.F2="F-",t}(BZ||{}),jZ=function(t){return t.A="A",t.B="B",t.C="C",t.APD="APD",t.APP="APP",t.APR="APR",t}(jZ||{}),Wx=function(t){return t.Cursado="Cursado",t.Validado="Validado",t.Aproveitado="Aproveitado",t.Outro="Outro",t}(Wx||{}),br=function(t){return t.Default="Default",t.Nsf="Nsf",t.JudicialDecision="JudicialDecision",t}(br||{}),Yp=function(t){return t.PessoaJuridica="PessoaJuridica",t.PessoaFisica="PessoaFisica",t}(Yp||{}),oI=function(t){return t.V1041="V1041",t.V105="V105",t}(oI||{}),Fs=function(t){return t.HasInformation="HasInformation",t.InProgress="InProgress",t.Unavailable="Unavailable",t}(Fs||{}),gd=function(t){return t.Issuer="Issuer",t.Registry="Registry",t.Original="Original",t}(gd||{}),xl=function(t){return t[t.PreviousStep=0]="PreviousStep",t[t.NextStep=1]="NextStep",t[t.PreviousDegreeStep=2]="PreviousDegreeStep",t[t.NextDegreeStep=3]="NextDegreeStep",t[t.GenerateDegree=4]="GenerateDegree",t[t.ReturnToBeginning=5]="ReturnToBeginning",t}(xl||{}),Kp=function(t){return t.HoraAula="HoraAula",t.HoraRelogio="HoraRelogio",t}(Kp||{}),c_=function(t){return t[t.FullDate=0]="FullDate",t[t.MonthAndYear=1]="MonthAndYear",t[t.Year=2]="Year",t}(c_||{}),aI=function(t){return t.Parecer="Parecer",t.Resolucao="Resolucao",t.Decreto="Decreto",t.Portaria="Portaria",t.Deliberacao="Delibera\xE7\xE3o",t.LeiFederal="Lei Federal",t.LeiEstadual="Lei Estadual",t.LeiMunicipal="Lei Municipal",t.Despacho="Despacho",t}(aI||{}),nm=function(t){return t.Parecer="Parecer",t.Resolucao="Resolucao",t.Decreto="Decreto",t.Portaria="Portaria",t.Deliberacao="Delibera\xE7\xE3o",t.LeiFederal="Lei Federal",t.LeiEstadual="Lei Estadual",t.LeiMunicipal="Lei Municipal",t.AtoProprio="Ato Pr\xF3prio",t}(nm||{}),uM=function(t){return t.AC="AC",t.AL="AL",t.AP="AP",t.AM="AM",t.BA="BA",t.CE="CE",t.DF="DF",t.ES="ES",t.GO="GO",t.MA="MA",t.MG="MG",t.MS="MS",t.MT="MT",t.PA="PA",t.PB="PB",t.PE="PE",t.PI="PI",t.PR="PR",t.RJ="RJ",t.RN="RN",t.RO="RO",t.RR="RR",t.RS="RS",t.SC="SC",t.SE="SE",t.SP="SP",t.TO="TO",t}(uM||{}),Xp=function(t){return t.ErroDeFato="ErroDeFato",t.ErroDeDireito="ErroDeDireito",t.DecisaoJudicial="DecisaoJudicial",t.ReemissaoParaComplementoDeInformacao="ReemissaoParaComplementoDeInformacao",t.ReemissaoParaInclusaoDeHabilitacao="ReemissaoParaInclusaoDeHabilitacao",t.ReemissaoParaAnotacaoDeRegistro="ReemissaoParaAnotacaoDeRegistro",t}(Xp||{}),sI=function(t){return t.Issuer="Issuer",t.Registry="Registry",t}(sI||{}),HZ=function(t){return t.Started="Started",t.Created="Created",t.Generated="Generated",t.Signed="Signed",t.Error="Error",t}(HZ||{}),lu=function(t){return t.Created="Created",t.Active="Active",t.Canceled="Canceled",t}(lu||{});var zZ=function(t){return t.Degree="Degree",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t}(zZ||{}),cf=function(t){return t.DegreeForm="degree_form",t.EmissionForm="emission_form",t}(cf||{}),rm=function(t){return t.Xlsx="Xlsx",t.Pdf="Pdf",t}(rm||{}),lI=function(t){return t.StudentDataTableTitle="Dados Pessoais",t.CourseDataTableTitle="Dados do V\xEDnculo do Discente",t.DisciplineDataTableTitle="Componentes Curriculares Cursados/Cursando",t.CompActivityAndInternshipDataTableTitle="Atividade Complementar/Est\xE1gio",t}(lI||{}),d_=function(t){return t.Restamped="Restamped",t.NonRestamped="NonRestamped",t.WithError="WithError",t}(d_||{}),_d=function(t){return t.Degree="Degree",t.AcademicDocumentation="AcademicDocumentation",t.Registration="Registration",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t}(_d||{}),u_=function(t){return t.RestampDate="RestampDate",t.ExpiringDate="ExpiringDate",t}(u_||{}),om=function(t){return t.Automatic="Automatic",t.Manual="Manual",t}(om||{}),UZ=function(t){return t.Created="Created",t.Signed="Signed",t}(UZ||{});var Bb=(()=>{class t{constructor(e,i,r,o){this.router=e,this.spaEntityNavigator=i,this.logger=r,this.routeHelper=o,this.routeHelper.activatedNamedRoutes.subscribe(a=>{this.subAreaRoute=a.findNamedRoute("Sub")})}getEntityPath(e,i){switch(e){case"Batch":return`batches/${i}`;case"Template":return`templates/${i}`;case"Degree":return`degrees/${i}`;case"Emission":return`emissions/${i}`;case"Registration":return`registrations/${i}`;case"Setting":return"settings";case"DocumentFlow":return`flows/${i}`;case"AcademicTranscript":return`academic-transcripts/${i}`;case"Institute":return`institutes/${i}`;case"Curriculum":return`curriculums/${i}`}return null}navigateTo(e,i,r){let o=this.getEntityPath(i,r);if(e)if(o!=null){let a=`${e}/${o}`;this.logger.logTrace(`EntityNavigationService -- navigating to entity '${i}': '${a}'`),this.router.navigateByUrl(a);return}else this.logger.logTrace(`EntityNavigationService -- could not find any url for entity '${i}'. Checking if SpaEntityNavigationService can navigate to it...`);this.spaEntityNavigator.navigate(i,r)}navigate(e,i){this.navigateTo(this.subAreaRoute?.url,e,i)}navigateEntityInSubscription(e,i,r){let o=`${this.getSubscriptionUrl(e)}`;this.navigateTo(o,i,r)}getSubscriptionUrl(e){let i=`/private/s/${e}`,r;if(this.subAreaRoute&&(r=this.subAreaRoute.activatedRoute.firstChild))for(let o of r.snapshot.url)i+=`/${o.path}`;return i}static{this.\u0275fac=function(i){return new(i||t)(ae(lt),ae(fZ),ae($t),ae(ro))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ove=t=>[t];function Rnt(t,n){if(t&1&&(d(0,"button",2),h(1),c()),t&2){let e=n.$implicit,i=S(2);f("routerLink",Le(2,ove,i.getNewUrl(e.subscription.id))),m(),U(e.subscription.name)}}function Pnt(t,n){if(t&1&&(he(0),k(1,Rnt,2,4,"button",1),fe()),t&2){let e=S();m(),f("ngForOf",e.userProfile.subscriptions)}}function Nnt(t,n){if(t&1){let e=ie();he(0),d(1,"button",3),$("click",function(){W(e);let r=S();return Y(r.openSelector())}),h(2,"Selecionar uma organiza\xE7\xE3o"),c(),fe()}}function Ont(t,n){if(t&1&&(he(0),d(1,"button",2),h(2,"Todas as organiza\xE7\xF5es"),c(),fe()),t&2){let e=S();m(),f("routerLink",Le(1,ove,e.getNewUrl(e.allSubs)))}}var ave=(()=>{class t{constructor(e,i,r,o){this.spaControl=e,this.dialogService=i,this.router=r,this.navigationService=o,this.$toUnsubscribe=[],this.isUserAdmin=!1,this.allSubs=Ye.subscriptionNoFilter,this.maxSubs=Ye.maxShowingSubscriptions}ngOnInit(){this.spaControl.initialized.subscribe(()=>{this.userProfile=this.spaControl.userProfile,this.isUserAdmin=this.spaControl.userHasAnyRootRole()})}getNewUrl(e){return this.navigationService.getSubscriptionUrl(e)}openSelector(){this.dialogService.subSelector(this.userProfile.subscriptions).then(e=>{e&&this.router.navigateByUrl(this.getNewUrl(e.subscription.id))})}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Qi),E(lt),E(Bb))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-selector"]],decls:3,vars:3,consts:[[4,"ngIf"],["mat-menu-item","",3,"routerLink",4,"ngFor","ngForOf"],["mat-menu-item","",3,"routerLink"],["mat-menu-item","",3,"click"]],template:function(i,r){i&1&&k(0,Pnt,2,1,"ng-container",0)(1,Nnt,3,0,"ng-container",0)(2,Ont,3,3,"ng-container",0),i&2&&(f("ngIf",r.userProfile.subscriptions.length<=r.maxSubs),m(),f("ngIf",r.userProfile.subscriptions.length>r.maxSubs),m(),f("ngIf",r.isUserAdmin))},dependencies:[Vt,Ee,Gd,gn]})}}return t})();function Vnt(t,n){if(t&1&&(he(0),d(1,"button",6)(2,"mat-icon"),h(3,"domain"),c(),d(4,"span"),h(5,"Organiza\xE7\xE3o"),c()(),H(6,"mat-divider"),fe()),t&2){S();let e=je(18);m(),f("matMenuTriggerFor",e)}}function Bnt(t,n){t&1&&(he(0),d(1,"button",7)(2,"mat-icon"),h(3,"lock"),c(),d(4,"span"),h(5,"\xC1rea Restrita"),c()(),H(6,"mat-divider"),fe())}function jnt(t,n){t&1&&(he(0),d(1,"button",8)(2,"mat-icon"),h(3,"lock"),c(),d(4,"span"),h(5,"Sys Admin"),c()(),H(6,"mat-divider"),fe())}function Hnt(t,n){t&1&&(he(0),d(1,"button",7)(2,"mat-icon"),h(3,"input"),c(),d(4,"span"),h(5,"Sair do Sys Admin"),c()(),H(6,"mat-divider"),fe())}var jb=(()=>{class t{constructor(e,i,r){this.spaControl=e,this.routeHelper=i,this.router=r,this.$toUnsubscribe=[],this.inSubscriptionArea=!1,this.inSysAdminArea=!1,this.hasAccessToSysAdmin=!1,this.hasAccessToHangfire=!1,this.hangfireAccessCleared=!1,this.inAccessLocked=!1}ngOnInit(){this.spaControl.initialized.subscribe(()=>{this.userProfile=this.spaControl.userProfile,this.hasAccessToSysAdmin=this.spaControl.userProfile.permissionsOnRoot.length>0,this.hasAccessToHangfire=this.spaControl.userProfile.permissionsOnRoot.includes("HangfireAccess"),this.hasAccessToHangfire&&this.spaControl.getHangfireAccessTicket().subscribe(e=>this.hangfireAccessCleared=!0)}),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>{this.inSubscriptionArea=e.isInRoute("Sub"),this.inSysAdminArea=e.isInRoute("SysAdmin"),this.inAccessLocked=e.isInRoute("AccessLocked")}))}logout(){Ye.oidc.enabled&&this.spaControl.hasValidOidcToken()?this.router.navigateByUrl("/private/sign-out"):Ye.rootAuthenticationEnabled&&this.spaControl.hasRootToken()&&(this.spaControl.rootLogout(),this.router.navigateByUrl("/"))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(ro),E(lt))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-user-menu"]],decls:20,vars:5,consts:[["subscriptionMenu","matMenu"],[1,"pt-4","px-4","d-flex","flex-column","align-items-center"],[1,"user-menu-icon","bg-primary","text-white","mb-2"],[4,"ngIf"],["mat-menu-item","",1,"text-warn",3,"click"],[1,"text-warn"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","","routerLink","/private/s"],["mat-menu-item","","routerLink","/private/sysadmin"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1)(1,"div",2)(2,"mat-icon"),h(3,"person"),c()(),d(4,"h3"),h(5),c()(),H(6,"mat-divider"),k(7,Vnt,7,1,"ng-container",3)(8,Bnt,7,0,"ng-container",3)(9,jnt,7,0,"ng-container",3)(10,Hnt,7,0,"ng-container",3),d(11,"button",4),$("click",function(){return W(o),Y(r.logout())}),d(12,"mat-icon",5),h(13,"power_settings_new"),c(),d(14,"span")(15,"strong"),h(16,"Sair"),c()()(),d(17,"mat-menu",null,0),H(19,"app-subscription-selector"),c()}i&2&&(m(5),U(r.userProfile==null?null:r.userProfile.name),m(2),f("ngIf",r.inSubscriptionArea&&!r.inAccessLocked),m(),f("ngIf",!r.inSubscriptionArea&&!r.inSysAdminArea&&!r.inAccessLocked),m(),f("ngIf",r.inSubscriptionArea&&!r.inSysAdminArea&&r.hasAccessToSysAdmin&&!r.inAccessLocked),m(),f("ngIf",r.inSysAdminArea&&!r.inAccessLocked))},dependencies:[Ee,Ia,Gd,Es,He,kc,gn,ave],styles:[".user-menu-icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:100%;display:flex;align-items:center;justify-content:center}"]})}}return t})();var znt=t=>[t],Unt=t=>[t,"restamps"],Gnt=t=>[t,"subscriptions"],$nt=t=>[t,"servers"],qnt=t=>[t,"settings"],Wnt=t=>[t,"degrees"],Ynt=t=>[t,"academic-transcripts"],Knt=t=>[t,"curriculums"],Xnt=t=>[t,"institutes"],Qnt=t=>[t,"batches"],Znt=t=>[t,"templates"],Jnt=t=>[t,"flows"],ert=t=>[t,"generate"],trt=t=>[t,"emissions","new"],irt=t=>[t,"registrations","new"],nrt=t=>[t,"registrations"],rrt=t=>[t,"emissions"],sve=()=>({exact:!0}),ort=t=>[t,"users"],art=t=>[t,"applications"],srt=t=>[t,"events"];function lrt(t,n){t&1&&(he(0),d(1,"div",13)(2,"a",14),H(3,"img",15),c()(),fe())}function crt(t,n){if(t&1&&(d(0,"button",21)(1,"mat-icon",22),h(2,"add"),c(),h(3," Gerar diplomas"),c()),t&2){let e=S(3);f("routerLink",Le(1,ert,e.currentAreaUrl))}}function drt(t,n){if(t&1&&(d(0,"button",21)(1,"mat-icon",22),h(2,"add"),c(),h(3," Emitir diplomas"),c()),t&2){let e=S(3);f("routerLink",Le(1,trt,e.currentAreaUrl))}}function urt(t,n){if(t&1&&(d(0,"button",21),h(1,"Registrar diplomas"),c()),t&2){let e=S(3);f("routerLink",Le(1,irt,e.currentAreaUrl))}}function mrt(t,n){if(t&1&&(d(0,"div",19),k(1,crt,4,3,"button",20)(2,drt,4,3,"button",20)(3,urt,2,3,"button",20),c()),t&2){let e=S(2);m(),f("ngIf",(e.subscription==null?null:e.subscription.type)==e.SubscriptionTypes.IssuerRegistry),m(),f("ngIf",(e.subscription==null?null:e.subscription.type)==e.SubscriptionTypes.Issuer),m(),f("ngIf",(e.subscription==null?null:e.subscription.type)==e.SubscriptionTypes.Registry)}}function prt(t,n){t&1&&dn(0)}function hrt(t,n){if(t&1&&(he(0),k(1,prt,1,0,"ng-container",23),fe()),t&2){S();let e=je(23);m(),f("ngTemplateOutlet",e)}}function frt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"card_membership"),c(),d(3,"div",6),h(4,"Diplomas"),c()())}function grt(t,n){t&1&&dn(0)}function _rt(t,n){if(t&1&&(he(0),k(1,grt,1,0,"ng-container",23),fe()),t&2){S();let e=je(23);m(),f("ngTemplateOutlet",e)}}function vrt(t,n){if(t&1&&(he(0),d(1,"a",8)(2,"mat-list-item",24)(3,"mat-icon",5),h(4,"menu_book"),c(),d(5,"div",6),h(6,"Req. registro"),c()()(),fe()),t&2){let e=S(2);m(),f("routerLink",Le(1,nrt,e.currentAreaUrl))}}function brt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"history_edu"),c(),d(3,"div",6),h(4,"Hist. Escolares"),c()())}function yrt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"library_books"),c(),d(3,"div",6),h(4,"Curr\xEDculos"),c()())}function xrt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"account_balance"),c(),d(3,"div",6),h(4,"Institui\xE7\xF5es"),c()())}function Crt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"dynamic_feed"),c(),d(3,"div",6),h(4,"Lotes"),c()())}function Srt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"description"),c(),d(3,"div",6),h(4,"Modelos"),c()())}function wrt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"account_tree"),c(),d(3,"div",6),h(4,"Fluxos"),c()())}function Ert(t,n){if(t&1&&(d(0,"a",8)(1,"mat-list-item",24)(2,"mat-icon",5),h(3,"input"),c(),d(4,"div",6),h(5,"Emiss\xF5es"),c()()()),t&2){let e=S(2);f("routerLink",Le(1,rrt,e.currentAreaUrl))}}function Irt(t,n){if(t&1&&(he(0),d(1,"div",16)(2,"a",17),H(3,"img",15),c()(),k(4,mrt,4,3,"div",18)(5,hrt,2,1,"ng-container",7),d(6,"a",8),k(7,frt,5,0,"mat-list-item",10),c(),k(8,_rt,2,1,"ng-container",7)(9,vrt,7,3,"ng-container",7),d(10,"a",8),k(11,brt,5,0,"mat-list-item",10),c(),d(12,"a",8),k(13,yrt,5,0,"mat-list-item",10),c(),d(14,"a",8),k(15,xrt,5,0,"mat-list-item",10),c(),d(16,"a",8),k(17,Crt,5,0,"mat-list-item",10),c(),d(18,"a",8),k(19,Srt,5,0,"mat-list-item",10),c(),d(20,"a",8),k(21,wrt,5,0,"mat-list-item",10),c(),k(22,Ert,6,3,"ng-template",null,1,Ii),fe()),t&2){let e=S();m(4),f("ngIf",e.hasSubscriptionSelected),m(),f("ngIf",(e.subscription==null?null:e.subscription.type)==e.SubscriptionTypes.Issuer),m(),f("routerLink",Le(18,Wnt,e.currentAreaUrl)),m(),f("ngIf",e.subscription&&e.subscription.type!=e.SubscriptionTypes.Registry),m(),f("ngIf",(e.subscription==null?null:e.subscription.type)==e.SubscriptionTypes.IssuerRegistry),m(),f("ngIf",e.subscription&&e.subscription.type!=e.SubscriptionTypes.Issuer),m(),f("routerLink",Le(20,Ynt,e.currentAreaUrl)),m(),f("ngIf",e.subscription&&e.subscription.type!=e.SubscriptionTypes.Registry),m(),f("routerLink",Le(22,Knt,e.currentAreaUrl)),m(),f("ngIf",e.subscription&&e.subscription.type!=e.SubscriptionTypes.Registry),m(),f("routerLink",Le(24,Xnt,e.currentAreaUrl)),m(),f("ngIf",e.subscription),m(),f("routerLink",Le(26,Qnt,e.currentAreaUrl)),m(),f("ngIf",e.subscription),m(),f("routerLink",Le(28,Znt,e.currentAreaUrl)),m(),f("ngIf",e.subscription&&e.subscription.type!=e.SubscriptionTypes.Registry),m(),f("routerLink",Le(30,Jnt,e.currentAreaUrl)),m(),f("ngIf",e.subscription)}}function Drt(t,n){t&1&&(he(0),d(1,"div",16)(2,"a",14),H(3,"img",15),c()(),fe())}function Trt(t,n){t&1&&(d(0,"mat-list-item",25)(1,"mat-icon",5),h(2,"settings"),c(),d(3,"div",6),h(4,"Geral"),c()()),t&2&&f("routerLinkActiveOptions",Wo(1,sve))}function Art(t,n){t&1&&(d(0,"mat-list-item",25)(1,"mat-icon",5),h(2,"more_time"),c(),d(3,"div",6),h(4,"Renotariza\xE7\xF5es"),c()()),t&2&&f("routerLinkActiveOptions",Wo(1,sve))}function krt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"domain"),c(),d(3,"div",6),h(4,"Organiza\xE7\xF5es"),c()())}function Mrt(t,n){if(t&1&&(d(0,"a",8)(1,"mat-list-item",24)(2,"mat-icon",5),h(3,"group"),c(),d(4,"div",6),h(5,"Usu\xE1rios"),c()()()),t&2){let e=S();f("routerLink",Le(1,ort,e.currentAreaUrl))}}function Frt(t,n){if(t&1&&(d(0,"a",8)(1,"mat-list-item",24)(2,"mat-icon",5),h(3,"device_hub"),c(),d(4,"div",6),h(5,"Aplica\xE7\xF5es"),c()()()),t&2){let e=S();f("routerLink",Le(1,art,e.currentAreaUrl))}}function Rrt(t,n){if(t&1&&(d(0,"a",8)(1,"mat-list-item",24)(2,"mat-icon",5),h(3,"schedule"),c(),d(4,"div",6),h(5,"Eventos"),c()()()),t&2){let e=S();f("routerLink",Le(1,srt,e.currentAreaUrl))}}function Prt(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"hive"),c(),d(3,"div",6),h(4,"Servidores"),c()())}function Nrt(t,n){t&1&&(d(0,"a",26)(1,"mat-icon",5),h(2,"dashboard"),c(),d(3,"div",6),h(4,"Hangfire"),c()())}function Ort(t,n){t&1&&(d(0,"mat-list-item",24)(1,"mat-icon",5),h(2,"settings"),c(),d(3,"div",6),h(4,"Configura\xE7\xF5es"),c()())}var lve=(()=>{class t{constructor(e,i){this.spaControl=e,this.routeHelper=i,this.SubscriptionTypes=Zr,this.$toUnsubscribe=[],this.inPrivateArea=!1,this.inSubscriptionArea=!1,this.inSysAdminArea=!1,this.hasSubscriptionSelected=!1,this.hasHangfireAccess=!1,this.hangfireAccessCleared=!1}ngOnInit(){this.canViewEvents$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewSubscriptionEvents"),this.canViewUsers$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewUsers"),this.canViewApplications$=this.spaControl.userHasPermissionOnSelectedSubscription("ViewApplications"),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>{this.inPrivateArea=e.isInRoute("Private"),this.inSubscriptionArea=e.isInRoute("Sub"),this.inSysAdminArea=e.isInRoute("SysAdmin"),this.inSysAdminArea?this.currentAreaUrl=e.findNamedRoute("SysAdmin").url:this.inSubscriptionArea?this.currentAreaUrl=e.findNamedRoute("Sub").url:this.inPrivateArea&&(this.currentAreaUrl=e.findNamedRoute("Private").url)}),this.spaControl.userHasPermissionOnSelectedSubscription("HangfireAccess").subscribe(e=>{this.hasHangfireAccess=e,e&&this.spaControl.getHangfireAccessTicket().subscribe(i=>this.hangfireAccessCleared=!0)}),this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter,this.subscription=e.subscription})),this.userProfile=this.spaControl.userProfile}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-nav-menu"]],decls:30,vars:33,consts:[["userMenu","matMenu"],["emissionsItem",""],[1,"d-flex","flex-column","spa-nav-menu"],[1,"d-block","d-md-none"],["matRipple","",3,"matMenuTriggerFor"],["matListItemIcon",""],["matListItemTitle",""],[4,"ngIf"],[3,"routerLink"],["matRipple","","routerLinkActive","active-link",3,"routerLinkActiveOptions",4,"ngIf"],["matRipple","","routerLinkActive","active-link",4,"ngIf"],[3,"routerLink",4,"ngIf"],["role","button","mat-flat-button","","color","accent","class","align-self-center","href","/hangfire","target","_blank",4,"ngIf"],[1,"d-flex","justify-content-center","my-3"],["routerLink","/private","routerLinkActive","active"],["src","/theme-assets/light-logo"],[1,"d-md-flex","d-none","justify-content-center","my-3"],["routerLink","/private/s","routerLinkActive","active"],["class","d-flex justify-content-center",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"routerLink",4,"ngIf"],["mat-raised-button","","color","accent",3,"routerLink"],["mat-list-icon",""],[4,"ngTemplateOutlet"],["matRipple","","routerLinkActive","active-link"],["matRipple","","routerLinkActive","active-link",3,"routerLinkActiveOptions"],["role","button","mat-flat-button","","color","accent","href","/hangfire","target","_blank",1,"align-self-center"]],template:function(i,r){if(i&1&&(d(0,"mat-list",2)(1,"div",3)(2,"mat-list-item",4)(3,"mat-icon",5),h(4,"person"),c(),d(5,"div",6),h(6),c()(),H(7,"mat-divider"),c(),k(8,lrt,4,0,"ng-container",7)(9,Irt,24,32,"ng-container",7)(10,Drt,4,0,"ng-container",7),d(11,"a",8),k(12,Trt,5,2,"mat-list-item",9),c(),d(13,"a",8),k(14,Art,5,2,"mat-list-item",9),c(),d(15,"a",8),k(16,krt,5,0,"mat-list-item",10),c(),k(17,Mrt,6,3,"a",11),ce(18,"async"),k(19,Frt,6,3,"a",11)(20,Rrt,6,3,"a",11),ce(21,"async"),d(22,"a",8),k(23,Prt,5,0,"mat-list-item",10),c(),k(24,Nrt,5,0,"a",12),d(25,"a",8),k(26,Ort,5,0,"mat-list-item",10),c()(),d(27,"mat-menu",null,0),H(29,"app-user-menu"),c()),i&2){let o=je(28);m(2),f("matMenuTriggerFor",o),m(4),U(r.userProfile.name),m(2),f("ngIf",r.inPrivateArea&&!r.inSubscriptionArea&&!r.inSysAdminArea),m(),f("ngIf",r.inSubscriptionArea&&!r.inSysAdminArea),m(),f("ngIf",r.inSysAdminArea),m(),f("routerLink",Le(23,znt,r.currentAreaUrl)),m(),f("ngIf",r.inSysAdminArea),m(),f("routerLink",Le(25,Unt,r.currentAreaUrl)),m(),f("ngIf",r.subscription||r.inSysAdminArea),m(),f("routerLink",Le(27,Gnt,r.currentAreaUrl)),m(),f("ngIf",r.inSysAdminArea),m(),f("ngIf",xe(18,19,r.canViewUsers$)),m(2),f("ngIf",r.inSysAdminArea),m(),f("ngIf",xe(21,21,r.canViewEvents$)),m(2),f("routerLink",Le(29,$nt,r.currentAreaUrl)),m(),f("ngIf",r.inSysAdminArea),m(),f("ngIf",r.inSysAdminArea&&r.hasHangfireAccess&&r.hangfireAccessCleared),m(),f("routerLink",Le(31,qnt,r.currentAreaUrl)),m(),f("ngIf",r.inSubscriptionArea&&!r.inSysAdminArea)}},dependencies:[Ee,ta,Ia,Es,He,ec,Ze,N1,E0,RW,kc,FW,gn,zf,jb,Ea],styles:[".mat-mdc-list-base[_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{font-size:17px}.icon-margin-end[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-end:3px!important}"]})}}return t})();function Vrt(t,n){if(t&1&&(d(0,"a",16)(1,"mat-icon"),h(2,"help"),c()()),t&2){let e=S();f("href",e.userManualUrl,qo)}}var cve=(()=>{class t{constructor(e){this.spaControl=e,this.toggleSideMenu=new Ae}ngOnInit(){this.spaControl.initialized.subscribe(()=>this.userProfile=this.spaControl.userProfile)}static{this.\u0275fac=function(i){return new(i||t)(E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-nav-top-private"]],inputs:{userManualUrl:"userManualUrl",canDownloadManual:"canDownloadManual"},outputs:{toggleSideMenu:"toggleSideMenu"},decls:23,vars:3,consts:[["userMenu","matMenu"],["mat-elevation-z2",""],[1,"d-none","d-md-block","small-label-container","bg-light","text-primary","area-title"],[1,"d-md-none","d-block","justify-content-center","my-3"],["routerLink","/private/s","routerLinkActive","active"],["src","/theme-assets/light-logo"],[1,"fill-remaining-space"],["class","d-none d-md-block","target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",3,"href",4,"ngIf"],[1,"d-none","d-md-block"],["mat-flat-button","","color","primary",1,"mx-1","bg-dark",3,"matMenuTriggerFor"],[1,"d-flex","align-items-center","align-middle"],["mat-list-icon","",1,"me-1"],[1,"nav-name"],["id","responsiveBtn",1,"d-block","d-md-none"],["mat-flat-button","","color","accent",3,"click"],["mat-list-icon",""],["target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",1,"d-none","d-md-block",3,"href"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-toolbar",1)(1,"div",2)(2,"small"),h(3,"\xC1REA PRIVADA"),c()(),d(4,"div",3)(5,"a",4),H(6,"img",5),c()(),H(7,"span",6),k(8,Vrt,3,1,"a",7),d(9,"div",8)(10,"button",9)(11,"div",10)(12,"mat-icon",11),h(13,"person"),c(),d(14,"span",12),h(15),c()()()(),d(16,"div",13)(17,"button",14),$("click",function(){return W(o),Y(r.toggleSideMenu.emit())}),d(18,"mat-icon",15),h(19,"menu"),c()()()(),d(20,"mat-menu",null,0),H(22,"app-user-menu"),c()}if(i&2){let o=je(21);m(8),f("ngIf",r.canDownloadManual),m(2),f("matMenuTriggerFor",o),m(5),U(r.userProfile.name)}},dependencies:[Ee,Ia,Es,He,Ze,Ev,fw,gn,zf,yi,jb]})}}return t})();function jrt(t,n){if(t&1&&(d(0,"a",16)(1,"mat-icon"),h(2,"help"),c()()),t&2){let e=S();f("href",e.userManualUrl,qo)}}var dve=(()=>{class t{constructor(e,i){this.logger=e,this.spaControl=i,this.$toUnsubscribe=[],this.toggleSideMenu=new Ae,this.setCurrentSubscription=r=>{this.logger.logTrace("NavTopSubComponent -- sub changed:",r),r===Ye.subscriptionRoot?this.currentSubscription={id:r,type:Zr.IssuerRegistry,name:"Sys admin"}:r===Ye.subscriptionNoFilter?this.currentSubscription={id:r,type:Zr.IssuerRegistry,name:"Todas as organiza\xE7\xF5es"}:this.currentSubscription=this.userProfile.subscriptions.map(o=>o.subscription).find(o=>o.id===r)}}ngOnInit(){this.spaControl.initialized.subscribe(()=>this.userProfile=this.spaControl.userProfile),this.$toUnsubscribe.push(this.spaControl.selectedSubscription.pipe(st(e=>e.sub)).subscribe(this.setCurrentSubscription))}ngOnDestroy(){this.logger.logTrace("NavTopSubComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-nav-top-sub"]],inputs:{userManualUrl:"userManualUrl",canDownloadManual:"canDownloadManual"},outputs:{toggleSideMenu:"toggleSideMenu"},decls:23,vars:4,consts:[["userMenu","matMenu"],["mat-elevation-z2",""],[1,"d-none","d-md-block","text-primary"],[1,"d-md-none","d-block","justify-content-center","my-3"],["routerLink","/private/s","routerLinkActive","active"],["src","/theme-assets/dark-logo"],[1,"fill-remaining-space"],["class","d-none d-md-block","target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",3,"href",4,"ngIf"],["tourAnchor","first.anchor.id",1,"d-none","d-md-block"],["mat-flat-button","","color","primary",1,"mx-1","bg-dark",3,"matMenuTriggerFor"],[1,"d-flex","align-items-center","align-middle"],["mat-list-icon","",1,"me-1"],[1,"nav-name"],["id","responsiveBtn",1,"d-block","d-md-none"],["mat-flat-button","","color","accent",3,"click"],["mat-list-icon",""],["target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",1,"d-none","d-md-block",3,"href"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-toolbar",1)(1,"div",2)(2,"h3"),h(3),c()(),d(4,"div",3)(5,"a",4),H(6,"img",5),c()(),H(7,"span",6),k(8,jrt,3,1,"a",7),d(9,"div",8)(10,"button",9)(11,"div",10)(12,"mat-icon",11),h(13,"person"),c(),d(14,"span",12),h(15),c()()()(),d(16,"div",13)(17,"button",14),$("click",function(){return W(o),Y(r.toggleSideMenu.emit())}),d(18,"mat-icon",15),h(19,"menu"),c()()()(),d(20,"mat-menu",null,0),H(22,"app-user-menu"),c()}if(i&2){let o=je(21);m(3),U(r.currentSubscription==null?null:r.currentSubscription.name),m(5),f("ngIf",r.canDownloadManual),m(2),f("matMenuTriggerFor",o),m(5),U(r.userProfile.name)}},dependencies:[Ee,Ia,Es,He,Ze,Ev,fw,gn,zf,yi,C_e,jb]})}}return t})();function zrt(t,n){if(t&1&&(d(0,"a",14)(1,"mat-icon"),h(2,"help"),c()()),t&2){let e=S();f("href",e.userManualUrl,qo)}}var uve=(()=>{class t{constructor(e){this.spaControl=e,this.toggleSideMenu=new Ae}ngOnInit(){this.userProfile=this.spaControl.userProfile}static{this.\u0275fac=function(i){return new(i||t)(E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-nav-top-sysadmin"]],inputs:{userManualUrl:"userManualUrl",canDownloadManual:"canDownloadManual"},outputs:{toggleSideMenu:"toggleSideMenu"},decls:22,vars:3,consts:[["userMenu","matMenu"],["mat-elevation-z2",""],[1,"d-none","d-md-block"],[1,"d-flex","d-md-none","justify-content-center","my-3"],["routerLink","/private/s","routerLinkActive","active"],["src","/theme-assets/dark-logo"],[1,"fill-remaining-space"],["class","d-none d-md-block","target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",3,"href",4,"ngIf"],["mat-flat-button","","color","primary",1,"mx-1","bg-primary",3,"matMenuTriggerFor"],[1,"d-flex","align-items-center","align-middle"],["mat-list-icon",""],[1,"nav-name"],["id","responsiveBtn",1,"d-block","d-md-none"],["mat-flat-button","","color","accent",3,"click"],["target","_blank","mat-icon-button","","matTooltip","Baixar manual de uso",1,"d-none","d-md-block",3,"href"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-toolbar",1)(1,"div",2),h(2," Administra\xE7\xE3o do Sistema "),c(),d(3,"div",3)(4,"a",4),H(5,"img",5),c()(),H(6,"span",6),k(7,zrt,3,1,"a",7),d(8,"div",2)(9,"button",8)(10,"div",9)(11,"mat-icon",10),h(12,"person"),c(),d(13,"span",11),h(14),c()()()(),d(15,"div",12)(16,"button",13),$("click",function(){return W(o),Y(r.toggleSideMenu.emit())}),d(17,"mat-icon",10),h(18,"menu"),c()()()(),d(19,"mat-menu",null,0),H(21,"app-user-menu"),c()}if(i&2){let o=je(20);m(7),f("ngIf",r.canDownloadManual),m(2),f("matMenuTriggerFor",o),m(5),U(r.userProfile.name)}},dependencies:[Ee,Ia,Es,He,Ze,Ev,fw,gn,zf,yi,jb]})}}return t})();var Grt=t=>({"bg-admin":t}),$rt=(t,n,e)=>({"bg-private":t,"bg-primary":n,"bg-dark":e});function qrt(t,n){t&1&&dn(0)}function Wrt(t,n){if(t&1&&(d(0,"section"),k(1,qrt,1,0,"ng-container",3),c()),t&2){S();let e=je(3);m(),f("ngTemplateOutlet",e)}}function Yrt(t,n){if(t&1){let e=ie();he(0),d(1,"app-nav-top-private",7),$("toggleSideMenu",function(){W(e);let r=S(2);return Y(r.onToggleSidenav())}),c(),fe()}if(t&2){let e=S(2);m(),f("userManualUrl",e.userManualUrl)("canDownloadManual",e.canDownloadManual)}}function Krt(t,n){if(t&1){let e=ie();he(0),d(1,"app-nav-top-sub",7),$("toggleSideMenu",function(){W(e);let r=S(2);return Y(r.onToggleSidenav())}),c(),fe()}if(t&2){let e=S(2);m(),f("userManualUrl",e.userManualUrl)("canDownloadManual",e.canDownloadManual)}}function Xrt(t,n){if(t&1){let e=ie();he(0),d(1,"app-nav-top-sysadmin",7),$("toggleSideMenu",function(){W(e);let r=S(2);return Y(r.onToggleSidenav())}),c(),fe()}if(t&2){let e=S(2);m(),f("userManualUrl",e.userManualUrl)("canDownloadManual",e.canDownloadManual)}}function Qrt(t,n){t&1&&H(0,"spa-breadcrumb")}function Zrt(t,n){t&1&&dn(0)}function Jrt(t,n){if(t&1&&(d(0,"mat-sidenav-container",4)(1,"mat-sidenav",5),H(2,"app-nav-menu"),c(),d(3,"mat-sidenav-content"),k(4,Yrt,2,2,"ng-container",1)(5,Krt,2,2,"ng-container",1)(6,Xrt,2,2,"ng-container",1),d(7,"div",6),k(8,Qrt,1,0,"spa-breadcrumb",1)(9,Zrt,1,0,"ng-container",3),c()()()),t&2){let e=S(),i=je(3);f("ngClass",Le(9,Grt,e.inSysAdminArea)),m(),f("ngClass",coe(11,$rt,!e.inSubscriptionArea&&!e.inSysAdminArea,e.inSubscriptionArea,e.inSysAdminArea))("opened",e.showSidebar)("mode",e.showSidebar?"side":"over"),m(3),f("ngIf",e.inPrivateArea&&!e.inSubscriptionArea&&!e.inSysAdminArea),m(),f("ngIf",e.inSubscriptionArea),m(),f("ngIf",e.inSysAdminArea),m(2),f("ngIf",e.showBreadcrumb),m(),f("ngTemplateOutlet",i)}}function eot(t,n){t&1&&H(0,"router-outlet")}var mve=(()=>{class t{constructor(e,i,r,o,a){this.logger=e,this.router=i,this.routeHelper=r,this.configService=o,this.spaControl=a,this.$toUnsubscribe=[],this.inPrivateArea=!1,this.inSubscriptionArea=!1,this.inSysAdminArea=!1,this.userManualUrl=null,this.widthThreshold=767}get showSidebar(){return this.screenWidth>this.widthThreshold&&!this.hideMenu}ngOnInit(){this.screenWidth=window.innerWidth,window.onresize=()=>{this.screenWidth=window.innerWidth},this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>{this.inPrivateArea=e.isInRoute("Private"),this.inSubscriptionArea=e.isInRoute("Sub"),this.inSysAdminArea=e.isInRoute("SysAdmin");let i=e.isInRoute("AccessLocked"),r=!this.spaControl.userHasAnyRole();this.showBreadcrumb=!(i||r),this.hideMenu=i||r,!this.showSidebar&&this.sidenav&&this.sidenav.opened&&this.sidenav.toggle()})),this.userManualUrl=this.configService.config.clientConfig.userManualUrl,this.canDownloadManual=this.userManualUrl&&this.userManualUrl.length>0}onToggleSidenav(){this.sidenav&&this.sidenav.toggle()}ngOnDestroy(){this.logger.logTrace("LayoutComponent OnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(lt),E(ro),E(zo),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-layout"]],viewQuery:function(i,r){if(i&1&&ot(X2,5),i&2){let o;Pe(o=Ne())&&(r.sidenav=o.first)}},decls:5,vars:2,consts:[["routerOutlet",""],[4,"ngIf"],[3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"ngClass","opened","mode"],[1,"fluid"],[3,"toggleSideMenu","userManualUrl","canDownloadManual"]],template:function(i,r){i&1&&(k(0,Wrt,2,1,"section",1)(1,Jrt,10,15,"mat-sidenav-container",2)(2,eot,1,0,"ng-template",null,0,Ii),H(4,"footer")),i&2&&(f("ngIf",!r.inPrivateArea),m(),f("ngIf",r.inPrivateArea))},dependencies:[ji,Ee,ta,X2,VW,BL,a_e,_n,lve,cve,dve,uve]})}}return t})();var m_="/api/templates",cI="-1",vd=(()=>{class t{constructor(e){this.http=e,this.templates={listPaginated:i=>this.list(i)}}get(e){return this.http.get(`${m_}/${e}`)}list(e){return this.http.get(`${m_}`,{params:e.getHttpParams()})}searchHttpParams(e,i){let r=new Ud().withLimit(20).withOrder("","Desc");return i!=null&&(r=r.withSearchTerm(i)),r.getHttpParams().append("type",e==null?"":e.toString())}autocomplete(e,i=null){return this.http.get(`${m_}/autocomplete`,{params:this.searchHttpParams(e,i)})}getRecent(e,i){return this.http.get(`${m_}`,{params:this.searchHttpParams(e,i)})}create(e){return this.http.post(m_,e)}update(e,i){return this.http.put(`${m_}/${e}`,i)}previewTicket(e){return this.http.post(`${m_}/preview-ticket`,e)}delete(e){return this.http.delete(`${m_}/${e}`)}getDocumentVisualRepresentationPreviewTicket(e,i){return this.http.post(`${m_}/${e}/visual-representation/preview-ticket`,i)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cu="/api/degrees",tot="/api/v2/degrees",Jo=(()=>{class t{constructor(e,i){this.http=e,this.fb=i,this.degrees={listPaginated:r=>this.list(r)}}create(e){return this.http.post(`${cu}`,e)}get(e){return this.http.get(`${cu}/${e}`)}getHistory(e){return this.http.get(`${cu}/${e}/history`)}updateStatus(e,i,r,o){return this.http.post(`${cu}/${e}/status`,{status:i,cancellationReason:r,reason:o})}listPaginatedFilters(e,i){return{listPaginated:r=>{e.q&&(r.searchTerm=e.q);let o=this.http.get(`${tot}`,{params:r.getHttpParams().append("batchId",e.batchId==null?"":e.batchId.toString()).append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString()).append("status",e.status==null?"":e.status.toString()).append("isSigned",e.isSigned==null?"":e.isSigned.toString())});return i&&(o=o.pipe(ri(i))),o}}}list(e){return this.http.get(`${cu}`,{params:e.getHttpParams()})}getRecent(){let e=new Ud().withLimit(20).withOrder("","Desc");return this.http.get(`${cu}`,{params:e.getHttpParams()})}getVisualRepresentationTicket(e){return this.http.get(`${cu}/${e}/visual-representation-ticket`)}getLetterheadVisualRepresentationTicket(e){return this.http.get(`${cu}/${e}/letterhead-visual-representation-ticket`)}getXmlUrl(e){return`${cu}/${e}/validation/xml`}getVisualRepresentationUrl(e){return`${cu}/${e}/validation/visual-representation`}getDegreeTicket(e){return this.http.get(`${cu}/${e}/xml-ticket`)}getAcademicDocumentationTicket(e){return this.http.get(`${cu}/${e}/academic-documentation-ticket`)}getDegreeTickets(e){return this.http.post(`${cu}/tickets`,e)}getDegreeBatch(e){return this.http.post(`${cu}/batch`,e)}static buildSearchParamsForm(){return new tN({searchQuery:new Oo,startDate:new Oo,endDate:new Oo,documentStatus:new Oo,isSigned:new Oo})}static buildSearchParamsFromForm(e,i){let r=e.get("startDate").value,o=e.get("endDate").value;return{batchId:i,q:e.get("searchQuery").value,startDateUtc:r||null,endDateUtc:o||null,status:e.get("documentStatus").value,isSigned:e.get("isSigned").value}}createAcademicTranscriptFromDegree(e,i){return this.http.post(`${cu}/${e}/academic-transcript`,i)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(Ti))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iot=[[["","icon",""]],"*"],not=["[icon]","*"];function rot(t,n){if(t&1&&(d(0,"div",10)(1,"button",11),h(2),c()()),t&2){let e=S();m(),f("routerLink",e.viewMoreRoute),m(),U(e.viewMoreMessage)}}var pve=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dash-card"]],inputs:{title:"title",colorClass:"colorClass",count:"count",viewMoreMessage:"viewMoreMessage",viewMoreRoute:"viewMoreRoute",isLoading:"isLoading"},ngContentSelectors:not,decls:14,vars:5,consts:[[1,"mx-0"],[3,"show"],[1,"d-flex"],[1,"d-flex","justify-content-start"],["mat-fab","","mat-card-avatar","",1,"me-2","text-white",3,"ngClass"],[1,"align-self-end","ms-2"],[1,"align-self-end","ms-auto","me-2"],[1,"mt-2"],["visibility","hover",2,"min-height","230px","max-height","230px","padding-top","10px"],["class","d-flex justify-content-center",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-button","",1,"text-primary",3,"routerLink"]],template:function(i,r){i&1&&(hi(iot),d(0,"mat-card",0),H(1,"ngx-loading",1),d(2,"mat-card-header",2)(3,"div",3)(4,"button",4),ct(5),c(),d(6,"h2",5),h(7),c()(),d(8,"h2",6),h(9),c()(),d(10,"mat-card-content",7)(11,"ng-scrollbar",8),ct(12,1),c(),k(13,rot,3,2,"div",9),c()()),i&2&&(m(),f("show",r.isLoading),m(3),f("ngClass",r.colorClass),m(3),U(r.title),m(2),U(r.count),m(4),f("ngIf",r.viewMoreMessage))},dependencies:[ji,Ee,Ze,QS,ws,ML,lw,kL,li,gn,Ju]})}}return t})();var aot=t=>["degrees",t],sot=t=>["templates",t];function lot(t,n){if(t&1&&(d(0,"div")(1,"div",8)(2,"div",9)(3,"h3",10)(4,"mat-icon",11),h(5,"card_membership"),c(),d(6,"span",12),h(7),ce(8,"cpf"),c()()(),d(9,"div",13)(10,"span"),h(11),ce(12,"date"),c()()(),H(13,"hr",14),c()),t&2){let e=n.$implicit;m(2),f("routerLink",Le(10,aot,e.id)),m(5),KD("",e.studentName," (",xe(8,5,e.studentCpf),") - ",e.course,""),m(4),U(Bt(12,7,e.updateDate,"short"))}}function cot(t,n){t&1&&(d(0,"div",15)(1,"p"),h(2,"Nenhum diploma cadastrado"),c()())}function dot(t,n){if(t&1&&(d(0,"div")(1,"div",8)(2,"div",9)(3,"h3",10)(4,"mat-icon",11),h(5,"description"),c(),d(6,"span",12),h(7),c()()(),d(8,"div",13)(9,"span"),h(10),ce(11,"date"),c()()(),H(12,"hr",14),c()),t&2){let e=n.$implicit;m(2),f("routerLink",Le(6,sot,e.id)),m(5),U(e.name),m(3),U(Bt(11,3,e.creationDate,"short"))}}function uot(t,n){t&1&&(d(0,"div",15)(1,"p"),h(2,"Nenhum modelo cadastrado"),c()())}var hve=(()=>{class t{constructor(e,i,r,o,a){this.route=e,this.router=i,this.spaControl=r,this.templateService=o,this.degreeService=a,this.$toUnsubscribe=[],this.degrees=[],this.templates=[],this.setCurrentSubscription=s=>{this.currentSubscriptionId=s,this.isSubscriptionSelected=s!==Ye.subscriptionNoFilter}}ngOnInit(){this.$toUnsubscribe.push(this.spaControl.selectedSubscription.pipe(st(e=>e.sub)).subscribe(this.setCurrentSubscription)),this.templatesLoading=!0,this.templateService.getRecent().subscribe(e=>{this.templates=e.items,this.totalTemplates=e.totalCount,this.templatesLoading=!1},e=>this.templatesLoading=!1),this.degreesLoading=!0,this.degreeService.getRecent().subscribe(e=>{this.degrees=e.items,this.totalDegrees=e.totalCount,this.degreesLoading=!1},e=>this.degreesLoading=!1)}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}navigateToTemplate(e){this.router.navigate(["templates",e],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(di),E(vd),E(Jo))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-home"]],decls:14,vars:8,consts:[[1,"container-fluid"],[1,"row","mb-3"],[1,"col-12","col-md-6","order-6","order-md-1","ps-2","ps-sm-3","pe-2","pe-sm-3"],["title","Diplomas","colorClass","bg-primary","viewMoreMessage","VER TODOS","viewMoreRoute","degrees",3,"isLoading","count"],["mat-fab","","icon","",1,"middle"],[4,"ngFor","ngForOf"],["class","d-flex justify-content-center p-4",4,"ngIf"],["title","Modelos","colorClass","bg-glow","viewMoreMessage","VER TODOS","viewMoreRoute","templates",3,"isLoading","count"],[1,"d-flex","ps-3","pe-3","align-items-center"],[1,"pointer",3,"routerLink"],[1,"mb-0","d-flex","align-items-center"],[1,"middle"],[1,"ms-2"],[1,"ms-auto"],[1,"discrete","my-3"],[1,"d-flex","justify-content-center","p-4"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"app-dash-card",3)(4,"mat-icon",4),h(5,"card_membership"),c(),k(6,lot,14,12,"div",5)(7,cot,3,0,"div",6),c()(),d(8,"div",2)(9,"app-dash-card",7)(10,"mat-icon",4),h(11,"description"),c(),k(12,dot,13,8,"div",5)(13,uot,3,0,"div",6),c()()()()),i&2&&(m(3),f("isLoading",r.degreesLoading)("count",r.totalDegrees),m(3),f("ngForOf",r.degrees),m(),f("ngIf",r.degrees.length==0&&!r.degreesLoading),m(2),f("isLoading",r.templatesLoading)("count",r.totalTemplates),m(3),f("ngForOf",r.templates),m(),f("ngIf",r.templates.length==0&&!r.templatesLoading))},dependencies:[Vt,Ee,He,gn,pve,rn,Zo],styles:[".mat-mdc-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"]})}}return t})();var fve=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.spaControl.userProfile?(this.logger.logInformation("HomeRedirectGuard -- redirecting to subscription area"),this.router.navigateByUrl("/private/s"),!1):(this.logger.logInformation("HomeRedirectGuard -- not redirecting"),!0)}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var mot="/theme-assets",gve=(()=>{class t{constructor(e){this.http=e}getText(e){return this.http.get(`${mot}/${e}`,{responseType:"text"})}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var xB=(()=>{class t{constructor(e,i){this.assetLoader=e,this.logger=i}getHomeHtml(){return new Promise((e,i)=>{this.assetLoader.getText("home.html").subscribe(r=>e(r),r=>i(r))})}init(){return new Promise(e=>{this.logger.logDebug("LayoutService -- initializing layout"),this.assetLoader.getText("home.html").subscribe(i=>{this.homeHtml=i,e(void 0)},i=>{this.logger.logCritical("LayoutService -- error initializing layout: ",i),e(void 0)})})}static{this.\u0275fac=function(i){return new(i||t)(ae(gve),ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var _ve=(()=>{class t{constructor(e,i){this.layoutService=e,this.domSanitizer=i,this.html=this.domSanitizer.bypassSecurityTrustHtml(this.layoutService.homeHtml)}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(xB),E(Kl))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-home"]],decls:6,vars:1,consts:[[3,"innerHTML"],[1,"d-none"],["mat-flat-button","","color","primary"],[1,"me-1"]],template:function(i,r){i&1&&(H(0,"div",0),d(1,"div",1)(2,"button",2)(3,"mat-icon",3),h(4,"add"),c(),h(5," button "),c()()),i&2&&f("innerHTML",r.html,qc)},dependencies:[He,Ze]})}}return t})();var mM="validar";var CB="/api/documents",Ub=(()=>{class t{constructor(e){this.http=e}getEvents(e,i){return this.http.get(`${CB}/${e}/events`,{params:new $a().set("type",i)})}validate(e,i){return i||(i=""),this.http.get(`${CB}/${e}/validation?captcha=${i}`)}getExportedDocumentTicket(e,i){return this.http.get(`${CB}/${e}/export-file-ticket?type=${i}`)}getRestamps(e,i){return this.http.get(`${CB}/${e}/restamps`,{params:new $a().set("documentType",i)})}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fot=new ke("recaptcha-language"),got=new ke("recaptcha-base-url"),_ot=new ke("recaptcha-nonce-tag"),vot=new ke("recaptcha-settings"),bot=new ke("recaptcha-v3-site-key"),yot=new ke("recaptcha-loader-options");function xot(t,n,e,{url:i,lang:r,nonce:o}={}){window.ng2recaptchaloaded=()=>{e(grecaptcha)};let a=document.createElement("script");a.innerHTML="";let{url:s,nonce:l}=n(new URL(i||"https://www.google.com/recaptcha/api.js"));s.searchParams.set("render",t==="explicit"?t:t.key),s.searchParams.set("onload","ng2recaptchaloaded"),s.searchParams.set("trustedtypes","true"),r&&s.searchParams.set("hl",r),a.src=s.href;let u=l||o;u&&a.setAttribute("nonce",u),a.async=!0,a.defer=!0,document.head.appendChild(a)}function Cot({v3SiteKey:t,onBeforeLoad:n,onLoaded:e}){let i=t?{key:t}:"explicit";vve.loadScript(i,n,e)}var vve={loadScript:xot,newLoadScript:Cot};function Sot(t){return t.asObservable().pipe(vi(n=>n!==null))}var bve=(()=>{class t{static{this.ready=null}constructor(e,i,r,o,a,s){this.platformId=e,this.language=i,this.baseUrl=r,this.nonce=o,this.v3SiteKey=a,this.options=s;let l=this.init();this.ready=l?Sot(l):vt()}init(){if(t.ready)return t.ready;if(!Pd(this.platformId))return;let e=new Tr(null);return t.ready=e,vve.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:i=>{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(i);let r=new URL(this.baseUrl??i);return this.language&&r.searchParams.set("hl",this.language),{url:r,nonce:this.nonce}},onLoaded:i=>{let r=i;this.options?.onLoaded&&(r=this.options.onLoaded(i)),e.next(r)}}),e}static{this.\u0275fac=function(i){return new(i||t)(ae(Oa),ae(fot,8),ae(got,8),ae(_ot,8),ae(bot,8),ae(yot,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),wot=0,yve=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.loader=i,this.zone=r,this.id=`ngrecaptcha-${wot++}`,this.errorMode="default",this.resolved=new Ae,this.error=new Ae,this.errored=new Ae,o&&(this.siteKey=o.siteKey,this.theme=o.theme,this.type=o.type,this.size=o.size,this.badge=o.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(e=>{e!=null&&e.render instanceof Function&&(this.grecaptcha=e,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){this.size==="invisible"&&(this.widget!=null?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){this.widget!=null&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return this.widget!=null?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}onError(e){this.error.emit(e),this.errored.emit(e)}captchaResponseCallback(e){this.resolved.emit(e)}grecaptchaReset(){this.widget!=null&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){let e={badge:this.badge,callback:i=>{this.zone.run(()=>this.captchaResponseCallback(i))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};this.errorMode==="handled"&&(e["error-callback"]=(...i)=>{this.zone.run(()=>this.onError(i))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,e),this.executeRequested===!0&&(this.executeRequested=!1,this.execute())}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(bve),E(ht),E(vot,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(i,r){i&2&&xt("id",r.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error",errored:"errored"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return t})(),Eot=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({})}}return t})(),xve=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[bve],imports:[Eot]})}}return t})();var wB=(()=>{class t{transform(e){switch(e){case bl.CanceledTemporarily:return"Anulado temporariamente";case bl.Canceled:return"Anulado";case bl.Active:return"Ativo";case bl.Created:default:return"Criado"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"degreeStatus",type:t,pure:!0})}}return t})();var Gb=(()=>{class t{transform(e){switch(e){case jl.Approved:return"Aguardando registro";case jl.Rejected:return"Recusada";case jl.Registered:return"Aguardando assinaturas";case jl.Signed:return"Registro conclu\xEDdo";case jl.Canceled:return"Cancelada";case jl.SentToIssuer:return"Registro enviado \xE0 emissora";case jl.CreatedAwaitingAcceptance:return"Aguardando aceita\xE7\xE3o";case jl.Created:case jl.Accepted:default:return"Aguardando revis\xE3o"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"registrationStatus",type:t,pure:!0})}}return t})();var $b=(()=>{class t{transform(e){switch(e){case Vl.Registered:return"Registrada";case Vl.Signed:return"Aguardando registro";case Vl.Canceled:return"Cancelada";case Vl.SentToRegistry:return"Enviada \xE0 registradora";case Vl.AcceptedByRegistry:return"Aceita pela registradora";case Vl.Created:default:return"Aguardando assinaturas"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"emissionStatus",type:t,pure:!0})}}return t})();var qb=(()=>{class t{transform(e){switch(e){case Ms.Active:return"Ativo";case Ms.Canceled:return"Anulado";case Ms.CanceledTemporarily:return"Anulado temporariamente";case Ms.Created:default:return"Aguardando assinaturas"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"academicTranscriptStatus",type:t,pure:!0})}}return t})();var Wb=(()=>{class t{transform(e){switch(e){case lu.Active:return"Ativo";case lu.Canceled:return"Anulado";case lu.Created:default:return"Aguardando assinaturas"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"curriculumStatus",type:t,pure:!0})}}return t})();function Dot(t,n){t&1&&(d(0,"mat-header-cell",8),h(1,"Data"),c())}function Tot(t,n){if(t&1&&(d(0,"mat-cell",8),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.date,"short")," ")}}function Aot(t,n){t&1&&(d(0,"mat-header-cell",8),h(1,"Status"),c())}function kot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"degreeStatus"),c()),t&2){let e=S().$implicit;m(),U(xe(2,1,e.status))}}function Mot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"emissionStatus"),c()),t&2){let e=S().$implicit;m(),U(xe(2,1,e.status))}}function Fot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"registrationStatus"),c()),t&2){let e=S().$implicit;m(),U(xe(2,1,e.status))}}function Rot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"academicTranscriptStatus"),c()),t&2){let e=S().$implicit;m(),U(xe(2,1,e.status))}}function Pot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"curriculumStatus"),c()),t&2){let e=S().$implicit;m(),U(xe(2,1,e.status))}}function Not(t,n){if(t&1&&(d(0,"mat-cell",8),k(1,kot,3,3,"span",9)(2,Mot,3,3,"span",9)(3,Fot,3,3,"span",9)(4,Rot,3,3,"span",9)(5,Pot,3,3,"span",9),c()),t&2){let e=S();m(),f("ngIf",e.type==e.Types.Degree),m(),f("ngIf",e.type==e.Types.Emission),m(),f("ngIf",e.type==e.Types.Registration),m(),f("ngIf",e.type==e.Types.AcademicTranscript),m(),f("ngIf",e.type==e.Types.Curriculum)}}function Oot(t,n){t&1&&(d(0,"mat-header-cell",8),h(1,"Descri\xE7\xE3o"),c())}function Lot(t,n){if(t&1&&(d(0,"mat-cell",8),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.reason," ")}}var bd=(()=>{class t{constructor(){this.Types=Pt,this.type=Pt.Degree}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-history-table"]],inputs:{history:"history",type:"type"},decls:14,vars:2,consts:[["matSort","","matSortActive","date","matSortDirection","desc",1,"history-table","centered-cells",3,"dataSource","disableSearch"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","date"],["fxFlex","65",4,"matHeaderCellDef"],["fxFlex","65",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","reason"],["fxFlex","65"],[4,"ngIf"]],template:function(i,r){i&1&&(d(0,"lac-table",0)(1,"div",1)(2,"div",2)(3,"h3"),h(4,"Nenhum registro encontrado."),c()()(),he(5,3),k(6,Dot,2,0,"mat-header-cell",4)(7,Tot,3,4,"mat-cell",5),fe(),he(8,6),k(9,Aot,2,0,"mat-header-cell",4)(10,Not,6,5,"mat-cell",5),fe(),he(11,7),k(12,Oot,2,0,"mat-header-cell",4)(13,Lot,2,1,"mat-cell",5),fe(),c()),i&2&&f("dataSource",r.history)("disableSearch",!0)},dependencies:[Ee,zn,Vn,Hn,tr,ir,Kn,dr,Xr,rn,wB,Gb,$b,qb,Wb]})}}return t})();var Sve=(()=>{class t{constructor(e){this.cpfPipe=e}transform(e,...i){return e.startsWith("***")?`***.${e.substr(3,3)}.${e.substr(6,3)}-**`:this.cpfPipe.transform(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Zo,16))}}static{this.\u0275pipe=oi({name:"maskedCpf",type:t,pure:!0})}}return t})();var dI=(()=>{class t{transform(e){switch(e){case yl.Enem:return"Enem";case yl.Vestibular:return"Vestibular";case yl.Provaagendada:return"Prova agendada";case yl.Entrevista:return"Entrevista";case yl.Transferencia:return"Transfer\xEAncia";case yl.Outros:return"Outros";case yl.AvaliacaoSeriada:return"Avalia\xE7\xE3o Seriada";case yl.SelecaoSimplificada:return"Sele\xE7\xE3o Simplificada";case yl.EgressoBILI:return"Egresso BI/LI";case yl.PECG:return"PEC-G";case yl.TransferenciaExOfficio:return"Transfer\xEAncia Ex Officio";case yl.Decisaojudicial:return"Decis\xE3o judicial";case yl.SelecaoparaVagasRemanescentes:return"Sele\xE7\xE3o para Vagas Remanescentes";case yl.SelecaoparaVagasdeProgramasEspeciais:return"Sele\xE7\xE3o para Vagas de Programas Especiais";case yl.Programasdeavaliacaoseriadaoucontinuada:return"Programas de avali\xE7\xE3o seriada ou continuada";case yl.Convenios:return"Conv\xEAnios";case yl.Historicoescolar:return"Hist\xF3rico escolar";case yl.Sisu:return"Sisu";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"admissionType",type:t,pure:!0})}}return t})();function Bot(t,n){if(t&1&&(d(0,"spa-prop",13),h(1),c()),t&2){let e=S();m(),U(e.id)}}function jot(t,n){if(t&1&&(d(0,"spa-prop",14),h(1),c()),t&2){let e=S();m(),ue(" ",e.diplomado.nomeSocial," ")}}function Hot(t,n){if(t&1&&(d(0,"spa-prop",15),h(1),c()),t&2){let e=S();m(),ue(" ",e.sexo," ")}}function zot(t,n){if(t&1&&(d(0,"spa-prop",16),h(1),c()),t&2){let e=S();m(),ue(" ",e.nacionalidade," ")}}function Uot(t,n){if(t&1&&(d(0,"spa-prop",17),h(1),c()),t&2){let e=S();m(),ue(" ",e.naturalidade," ")}}function Got(t,n){if(t&1&&(d(0,"spa-prop",18),h(1),ce(2,"maskedCpf"),c()),t&2){let e=S();m(),ue(" ",xe(2,1,e.diplomado.cpf)," ")}}function $ot(t,n){if(t&1&&(d(0,"spa-prop",19),h(1),c()),t&2){let e=S();m(),Do(" ",e.diplomado.rg.numero," - ",e.diplomado.rg.uf," ")}}function qot(t,n){if(t&1&&(d(0,"spa-prop",20),h(1),ce(2,"date"),c()),t&2){let e=S();m(),ue(" ",e.diplomado.dataNascimento?Bt(2,1,e.dataNascimento,"dd/MM/yyyy"):e.dataNascimento," ")}}function Wot(t,n){if(t&1&&(d(0,"spa-prop",21),h(1),ce(2,"admissionType"),c()),t&2){let e=S();m(),ue(" ",xe(2,1,e.formaAcesso)," ")}}function Yot(t,n){if(t&1&&(d(0,"spa-prop",22),h(1),ce(2,"date"),c()),t&2){let e=S();m(),ue(" ",Bt(2,1,e.dataIngresso,"dd/MM/yyyy")," ")}}function Kot(t,n){if(t&1&&(d(0,"spa-prop",23),h(1),ce(2,"date"),c()),t&2){let e=S();m(),ue(" ",Bt(2,1,e.dataConclusao,"dd/MM/yyyy")," ")}}var uI=(()=>{class t{constructor(){this.UnavailableText="Indispon\xEDvel"}ngOnInit(){this.isJudicialDecision=this.degreeType==br.JudicialDecision,this.id=this.diplomado.id,this.sexo=this.diplomado.sexo,this.nacionalidade=this.diplomado.nacionalidade,this.dataNascimento=this.diplomado.dataNascimento,this.diplomado.naturalidade&&(this.diplomado.naturalidade.nomeMunicipioEstrangeiro?.length>0?this.naturalidade=this.diplomado.naturalidade.nomeMunicipioEstrangeiro:this.naturalidade=`${this.diplomado.naturalidade?.nomeMunicipio}, ${this.diplomado.naturalidade?.uf}`),this.isJudicialDecision&&(this.id||(this.id=this.UnavailableText),this.sexo||(this.sexo=this.UnavailableText),this.nacionalidade||(this.nacionalidade=this.UnavailableText),this.dataNascimento||(this.dataNascimento=this.UnavailableText),this.naturalidade||(this.naturalidade=this.UnavailableText))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dados-diplomado"]],inputs:{diplomado:"diplomado",dataConclusao:"dataConclusao",formaAcesso:"formaAcesso",dataIngresso:"dataIngresso",isValidation:"isValidation",degreeType:"degreeType"},decls:14,vars:12,consts:[[1,"row","economic-prop"],["label","ID","class","col-md-3","style","word-break: break-word;",4,"ngIf"],["label","Nome",1,"col-md-3"],["label","Nome Social","class","col-md-3",4,"ngIf"],["label","Sexo","class","col-md-3",4,"ngIf"],["label","Nacionalidade","class","col-md-3",4,"ngIf"],["label","Naturalidade","class","col-md-3",4,"ngIf"],["label","CPF","class","col-md-3",4,"ngIf"],["label","RG","class","col-md-3",4,"ngIf"],["label","Data de Nascimento","class","col-md-3",4,"ngIf"],["label","Forma de acesso","class","col-md-3",4,"ngIf"],["label","Data de Ingresso","class","col-md-3",4,"ngIf"],["label","Data de Conclus\xE3o","class","col-md-3",4,"ngIf"],["label","ID",1,"col-md-3",2,"word-break","break-word"],["label","Nome Social",1,"col-md-3"],["label","Sexo",1,"col-md-3"],["label","Nacionalidade",1,"col-md-3"],["label","Naturalidade",1,"col-md-3"],["label","CPF",1,"col-md-3"],["label","RG",1,"col-md-3"],["label","Data de Nascimento",1,"col-md-3"],["label","Forma de acesso",1,"col-md-3"],["label","Data de Ingresso",1,"col-md-3"],["label","Data de Conclus\xE3o",1,"col-md-3"]],template:function(i,r){i&1&&(d(0,"div",0),k(1,Bot,2,1,"spa-prop",1),d(2,"spa-prop",2),h(3),c(),k(4,jot,2,1,"spa-prop",3)(5,Hot,2,1,"spa-prop",4)(6,zot,2,1,"spa-prop",5)(7,Uot,2,1,"spa-prop",6)(8,Got,3,3,"spa-prop",7)(9,$ot,2,2,"spa-prop",8)(10,qot,3,4,"spa-prop",9)(11,Wot,3,3,"spa-prop",10)(12,Yot,3,4,"spa-prop",11)(13,Kot,3,4,"spa-prop",12),c()),i&2&&(m(),f("ngIf",r.id&&!r.isValidation),m(2),U(r.diplomado.nome),m(),f("ngIf",r.diplomado.nomeSocial),m(),f("ngIf",r.sexo&&!r.isValidation),m(),f("ngIf",r.nacionalidade),m(),f("ngIf",r.naturalidade),m(),f("ngIf",r.diplomado.cpf),m(),f("ngIf",r.diplomado.rg&&!r.isValidation),m(),f("ngIf",r.dataNascimento),m(),f("ngIf",r.formaAcesso),m(),f("ngIf",r.dataIngresso),m(),f("ngIf",r.dataConclusao))},dependencies:[Ee,wn,rn,Sve,dI]})}}return t})();var yg=(()=>{class t{transform(e){switch(nm[e]??aI[e]??e){case nm.Parecer:return"Parecer";case nm.Resolucao:return"Resolu\xE7\xE3o";case nm.Decreto:return"Decreto";case nm.Portaria:return"Portaria";case nm.Deliberacao:return"Delibera\xE7\xE3o";case nm.LeiFederal:return"Lei federal";case nm.LeiEstadual:return"Lei estadual";case nm.LeiMunicipal:return"Lei municipal";case aI.Despacho:return"Despacho";case nm.AtoProprio:return"Ato pr\xF3pio";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"regulatoryAct",type:t,pure:!0})}}return t})();function Xot(t,n){if(t&1&&(he(0),h(1),ce(2,"regulatoryAct"),ce(3,"date"),fe()),t&2){let e=S(2);m(),KD(" ",xe(2,3,e.ato.tipo)," n\xBA ",e.ato.numero," de ",Bt(3,5,e.ato.data,"dd/MM/yyyy")," ")}}function Qot(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3);m(),Do("",e.emecProcessingText," ",e.ato.informacoesTramitacaoEmec.numeroProcesso,"")}}function Zot(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"date"),ce(3,"date"),c()),t&2){let e=S(3);m(),Ih("Em tramita\xE7\xE3o: ",e.ato.informacoesTramitacaoEmec.tipoProcesso," n\xBA ",e.ato.informacoesTramitacaoEmec.numeroProcesso,", protocolado em ",Bt(2,4,e.ato.informacoesTramitacaoEmec.dataProtocolo,"dd/MM/yyyy")," e cadastrado em ",Bt(3,7,e.ato.informacoesTramitacaoEmec.dataCadastro,"dd/MM/yyyy"),"")}}function Jot(t,n){if(t&1&&k(0,Qot,2,2,"span",4)(1,Zot,4,10,"span",4),t&2){let e=S(2);f("ngIf",!e.isIes),m(),f("ngIf",e.isIes)}}function eat(t,n){if(t&1&&(d(0,"spa-prop",2),k(1,Xot,4,8,"ng-container",3)(2,Jot,2,2,"ng-template",null,0,Ii),c()),t&2){let e=je(3),i=S();f("label",i.label),m(),f("ngIf",i.ato.informacoesTramitacaoEmec==null||i.excludeProcessingInformations)("ngIfElse",e)}}var kB=(()=>{class t{constructor(){this.emecProcessingText="Curso reconhecido na forma do art. 11, \xA7 1\xBA, do Decreto n\xBA 9.235, de 15/12/2017, e do art. 26, \xA7 1\xBA, da Portaria MEC n\xBA 1.095 de 25/10/2018, D.O.U n\xB0 207, Se\xE7\xE3o 1, p\xE1g. 32 de 26/10/2018 - Processo n\xB0"}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-ato-regulatorio"]],inputs:{ato:"ato",label:"label",excludeProcessingInformations:"excludeProcessingInformations",isIes:"isIes"},decls:1,vars:1,consts:[["tramitacaoEmec",""],[3,"label",4,"ngIf"],[3,"label"],[4,"ngIf","ngIfElse"],[4,"ngIf"]],template:function(i,r){i&1&&k(0,eat,4,3,"spa-prop",1),i&2&&f("ngIf",r.ato)},dependencies:[Ee,wn,rn,yg]})}}return t})();function tat(t,n){if(t&1&&(d(0,"spa-prop",11),h(1),c()),t&2){let e=S();m(),ue(" ",e.curso.codigoCursoEMEC," ")}}function iat(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=n.$implicit,i=n.index,r=S(2);m(),Do("",e,"",i+1{class t{constructor(){this.excludeProcessingInformations=!0}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dados-curso"]],inputs:{curso:"curso",isValidation:"isValidation"},decls:14,vars:12,consts:[[1,"row","economic-prop"],["label","Nome do Curso",1,"col-md-3"],["label","C\xF3digo do Curso e-MEC","class","col-md-3",4,"ngIf"],["label","Nome Habilita\xE7\xE3o","class","col-md-3",4,"ngIf"],["label","\xCAnfase","class","col-md-3",4,"ngIf"],["label","Modalidade","class","col-md-3",4,"ngIf"],["label","T\xEDtulo Conferido","class","col-md-3",4,"ngIf"],["label","Grau Conferido","class","col-md-3",4,"ngIf"],["label","Endere\xE7o Curso","class","col-md-3",4,"ngIf"],["label","Polo","class","col-md-3",4,"ngIf"],["class","col-md-3",4,"ngIf"],["label","C\xF3digo do Curso e-MEC",1,"col-md-3"],["label","Nome Habilita\xE7\xE3o",1,"col-md-3"],[4,"ngFor","ngForOf"],["label","\xCAnfase",1,"col-md-3"],["label","Modalidade",1,"col-md-3"],["label","T\xEDtulo Conferido",1,"col-md-3"],["label","Grau Conferido",1,"col-md-3"],["label","Endere\xE7o Curso",1,"col-md-3"],["label","Polo",1,"col-md-3"],[1,"col-md-3"],["label","Autoriza\xE7\xE3o",3,"ato","excludeProcessingInformations"],["label","Reconhecimento",3,"ato"],["label","Renova\xE7\xE3o de Reconhecimento",3,"ato","excludeProcessingInformations"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"spa-prop",1),h(2),c(),k(3,tat,2,1,"spa-prop",2)(4,nat,2,1,"spa-prop",3)(5,oat,2,1,"spa-prop",4)(6,aat,2,1,"spa-prop",5)(7,sat,2,1,"spa-prop",6)(8,lat,2,1,"spa-prop",7)(9,cat,2,4,"spa-prop",8)(10,dat,2,1,"spa-prop",9)(11,uat,2,2,"div",10)(12,mat,2,1,"div",10)(13,pat,2,2,"div",10),c()),i&2&&(m(2),U(r.curso.nomeCurso),m(),f("ngIf",r.curso.codigoCursoEMEC),m(),f("ngIf",r.curso.nomesHabilitacao),m(),f("ngIf",r.curso.enfases),m(),f("ngIf",!r.isValidation&&(r.curso.modalidade||r.curso.modalidadeNSF)),m(),f("ngIf",r.curso.tituloConferido),m(),f("ngIf",r.curso.grauConferido),m(),f("ngIf",r.curso.enderecoCurso),m(),f("ngIf",r.curso.polo),m(),f("ngIf",r.curso.autorizacao),m(),f("ngIf",r.curso.reconhecimento),m(),f("ngIf",r.curso.renovacaoReconhecimento))},dependencies:[Vt,Ee,wn,kB]})}}return t})();var Xb=(()=>{class t{transform(e){return e.length<14&&(e=e.padStart(14,"0")),e.length===14?`${e.substr(0,2)}.${e.substr(2,3)}.${e.substr(5,3)}/${e.substr(8,4)}-${e.substr(12)}`:e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"CnpjPipe",type:t,pure:!0})}}return t})();function hat(t,n){if(t&1&&(d(0,"spa-prop",7),h(1),c()),t&2){let e=S();m(),ue(" ",e.codigoMEC," ")}}function fat(t,n){if(t&1&&(d(0,"spa-prop",8),h(1),ce(2,"CnpjPipe"),c()),t&2){let e=S();m(),ue(" ",xe(2,1,e.cnpj)," ")}}function gat(t,n){if(t&1&&(d(0,"spa-prop",9),h(1),c()),t&2){let e=S();m(),Ih(" ",e.endereco.logradouro,", ",e.endereco.bairro," - ",e.endereco.nomeMunicipio,", ",e.endereco.uf," ")}}function _at(t,n){if(t&1&&(d(0,"div",13),H(1,"app-ato-regulatorio",14),c()),t&2){let e=S(2);m(),f("ato",e.ies.credenciamento)("isIes",!0)}}function vat(t,n){if(t&1&&(d(0,"div",13),H(1,"app-ato-regulatorio",15),c()),t&2){let e=S(2);m(),f("ato",e.ies.recredenciamento)("isIes",!0)}}function bat(t,n){if(t&1&&(d(0,"div",13),H(1,"app-ato-regulatorio",16),c()),t&2){let e=S(2);m(),f("ato",e.ies.renovacaoDeRecredenciamento)("isIes",!0)}}function yat(t,n){if(t&1&&(d(0,"spa-prop",17),h(1),ce(2,"CnpjPipe"),c()),t&2){let e=S(2);m(),Do(" ",e.ies.mantenedora.razaoSocial," (",xe(2,2,e.ies.mantenedora.cnpj),") ")}}function xat(t,n){if(t&1&&(d(0,"div",10),k(1,_at,2,2,"div",11)(2,vat,2,2,"div",11)(3,bat,2,2,"div",11)(4,yat,3,4,"spa-prop",12),c()),t&2){let e=S();m(),f("ngIf",e.ies.credenciamento),m(),f("ngIf",e.ies.recredenciamento),m(),f("ngIf",e.ies.renovacaoDeRecredenciamento),m(),f("ngIf",e.ies.mantenedora)}}function Cat(t,n){if(t&1&&(d(0,"div",18),H(1,"app-ato-regulatorio",19),c()),t&2){let e=S();m(),f("ato",e.dadosIesOriginal.descredenciamento)}}var Qb=(()=>{class t{constructor(){}ngOnInit(){this.ies?(this.nome=this.ies.nome,this.codigoMEC=this.ies.codigoMEC,this.cnpj=this.ies.cnpj,this.endereco=this.ies.endereco):this.dadosIesOriginal&&(this.nome=this.dadosIesOriginal.nome,this.codigoMEC=this.dadosIesOriginal.codigoMEC,this.cnpj=this.dadosIesOriginal.cnpj,this.endereco=this.dadosIesOriginal.endereco,this.codigoMEC||(this.codigoMEC="Indispon\xEDvel"))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dados-ies"]],inputs:{ies:"ies",dadosIesOriginal:"dadosIesOriginal"},decls:9,vars:6,consts:[[1,"row","economic-prop"],["label","Nome",1,"col-md-3"],["label","C\xF3digo e-MEC","class","col-md-3",4,"ngIf"],["label","CNPJ","class","col-md-3",4,"ngIf"],["label","Endere\xE7o","class","col-md-3",4,"ngIf"],["class","inherit",4,"ngIf"],["class","col-md-3 inherit",4,"ngIf"],["label","C\xF3digo e-MEC",1,"col-md-3"],["label","CNPJ",1,"col-md-3"],["label","Endere\xE7o",1,"col-md-3"],[1,"inherit"],["class","col-md-3",4,"ngIf"],["label","Mantenedora","class","col-md-3",4,"ngIf"],[1,"col-md-3"],["label","Credenciamento",3,"ato","isIes"],["label","Recredenciamento",3,"ato","isIes"],["label","Renova\xE7\xE3o de Recredenciamento",3,"ato","isIes"],["label","Mantenedora",1,"col-md-3"],[1,"col-md-3","inherit"],["label","Descredenciamento",3,"ato"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"spa-prop",1),h(2),c(),k(3,hat,2,1,"spa-prop",2)(4,fat,3,3,"spa-prop",3)(5,gat,2,4,"spa-prop",4),H(6,"div"),k(7,xat,5,4,"div",5)(8,Cat,2,1,"div",6),c()),i&2&&(m(2),U(r.nome),m(),f("ngIf",r.codigoMEC),m(),f("ngIf",r.cnpj),m(),f("ngIf",r.endereco),m(2),f("ngIf",r.ies),m(),f("ngIf",r.dadosIesOriginal==null?null:r.dadosIesOriginal.descredenciamento))},dependencies:[Ee,wn,kB,Xb],styles:[".inherit[_ngcontent-%COMP%]{display:inherit}"]})}}return t})();function Sat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",13),h(2,"check_circle"),c(),d(3,"h2",14),h(4,"Diploma v\xE1lido"),c()())}function wat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",15),h(2,"cancel"),c(),d(3,"h2",16),h(4,"Diploma inv\xE1lido"),c()())}function Eat(t,n){if(t&1&&(d(0,"a",8)(1,"mat-icon"),h(2,"save_alt"),c(),h(3," Baixar representa\xE7\xE3o visual "),c()),t&2){let e=S();ba("href",e.visualRepresentationUrl,qo),f("disabled",!e.diploma.isValid||!e.verificationCode)}}function Iat(t,n){if(t&1&&(d(0,"spa-prop",28),h(1),ce(2,"date"),c()),t&2){let e=S(2);m(),ue(" ",Bt(2,1,e.livroRegistro.dataExpedicaoDiploma,"dd/MM/yyyy")," ")}}function Dat(t,n){if(t&1&&(d(0,"spa-prop",29),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.livroRegistro.numeroRegistro," ")}}function Tat(t,n){if(t&1&&(d(0,"spa-prop",30),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.livroRegistro.numeroFolhaDoDiploma," ")}}function Aat(t,n){if(t&1&&(d(0,"spa-prop",31),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.livroRegistro.numeroSequenciaDoDiploma," ")}}function kat(t,n){if(t&1&&(d(0,"spa-prop",32),h(1),ce(2,"date"),c()),t&2){let e=S(2);m(),ue(" ",Bt(2,1,e.livroRegistro.dataRegistroDiploma,"dd/MM/yyyy")," ")}}function Mat(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Dados p\xFAblicos do diploma"),c(),d(3,"div",18)(4,"small"),h(5,"Diplomado"),c()(),H(6,"app-dados-diplomado",19),d(7,"div",18)(8,"small"),h(9,"Diploma"),c()(),d(10,"div",20),k(11,Iat,3,4,"spa-prop",21)(12,Dat,2,1,"spa-prop",22)(13,Tat,2,1,"spa-prop",23)(14,Aat,2,1,"spa-prop",24)(15,kat,3,4,"spa-prop",25),c(),d(16,"div",18)(17,"small"),h(18,"Dados do Curso"),c()(),H(19,"app-dados-curso",26),d(20,"div",18)(21,"small"),h(22,"Institui\xE7\xE3o de Ensino Emissora"),c()(),H(23,"app-dados-ies",27),d(24,"div",18)(25,"small"),h(26,"Institui\xE7\xE3o de Ensino Registradora"),c()(),H(27,"app-dados-ies",27),fe()),t&2){let e=S();m(6),f("diplomado",e.dadosDiploma.diplomado)("dataIngresso",e.diploma.dataIngresso)("dataConclusao",e.diploma.dataConclusao)("isValidation",e.isValidation),m(5),f("ngIf",e.livroRegistro==null?null:e.livroRegistro.dataExpedicaoDiploma),m(),f("ngIf",e.livroRegistro==null?null:e.livroRegistro.numeroRegistro),m(),f("ngIf",e.livroRegistro==null?null:e.livroRegistro.numeroFolhaDoDiploma),m(),f("ngIf",e.livroRegistro==null?null:e.livroRegistro.numeroSequenciaDoDiploma),m(),f("ngIf",e.livroRegistro==null?null:e.livroRegistro.dataRegistroDiploma),m(4),f("curso",e.dadosDiploma.dadosCurso)("isValidation",e.isValidation),m(4),f("ies",e.dadosDiploma.iesEmissora),m(4),f("ies",e.diploma.dadosRegistro.iesRegistradora)}}function Fat(t,n){t&1&&(he(0),d(1,"h2",17),h(2,"N\xE3o existem informa\xE7\xF5es p\xFAblicas v\xE1lidas sobre esse documento."),c(),fe())}function Rat(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Hist\xF3rico"),c(),H(3,"app-degree-history-table",33),fe()),t&2){let e=S();m(3),f("history",e.diploma.history)}}var Ive=(()=>{class t{get xmlUrl(){return this.useRecaptcha?this.diploma.xmlTicket?.location:this.degreeService.getXmlUrl(this.verificationCode)}get visualRepresentationUrl(){return this.useRecaptcha?this.diploma.visualRepresentationTicket?.location:this.degreeService.getVisualRepresentationUrl(this.verificationCode)}constructor(e){this.degreeService=e}ngOnInit(){this.diploma.information&&(this.dadosDiploma=this.diploma.information,this.livroRegistro=this.diploma.dadosRegistro?.livroRegistro)}static{this.\u0275fac=function(i){return new(i||t)(E(Jo))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-validate"]],inputs:{diploma:"diploma",verificationCode:"verificationCode",useRecaptcha:"useRecaptcha",isValidation:"isValidation"},decls:20,vars:9,consts:[[1,"row"],[1,"col-md-3","side-validation"],[1,"p-3","d-flex","align-items-center","flex-column","justify-content-between"],[1,"w-100"],["class","d-flex align-items-center justify-content-center mb-3",4,"ngIf"],[1,"text-center"],["target","_blank","button","","mat-stroked-button","","color","primary","class","download-button text-truncate",3,"href","disabled",4,"ngIf"],[1,"mt-3"],["target","_blank","button","","mat-stroked-button","","color","primary",1,"download-button","text-truncate",3,"href","disabled"],[1,"col-md-9"],[1,"p-3"],[4,"ngIf"],[1,"d-flex","align-items-center","justify-content-center","mb-3"],[1,"me-3","text-success"],[1,"mb-0","text-success","title"],[1,"me-3","text-warn"],[1,"mb-0","text-warn","title"],[1,"mb-4"],[1,"small-label-container","text-primary"],[3,"diplomado","dataIngresso","dataConclusao","isValidation"],[1,"row","economic-prop"],["label","Data de Expedi\xE7\xE3o","class","col-md-3",4,"ngIf"],["label","N\xFAmero de Registro","class","col-md-3",4,"ngIf"],["label","N\xFAmero da Folha","class","col-md-3",4,"ngIf"],["label","N\xFAmero de Sequ\xEAncia","class","col-md-3",4,"ngIf"],["label","Data de Registro","class","col-md-3",4,"ngIf"],[3,"curso","isValidation"],[3,"ies"],["label","Data de Expedi\xE7\xE3o",1,"col-md-3"],["label","N\xFAmero de Registro",1,"col-md-3"],["label","N\xFAmero da Folha",1,"col-md-3"],["label","N\xFAmero de Sequ\xEAncia",1,"col-md-3"],["label","Data de Registro",1,"col-md-3"],[3,"history"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),k(4,Sat,5,0,"div",4)(5,wat,5,0,"div",4),d(6,"p",5),h(7),c(),d(8,"div"),k(9,Eat,4,2,"a",6),c(),d(10,"div",7)(11,"a",8)(12,"mat-icon"),h(13,"save_alt"),c(),h(14," Baixar XML assinado "),c()()()()(),d(15,"div",9)(16,"div",10),k(17,Mat,28,13,"ng-container",11)(18,Fat,3,0,"ng-container",11)(19,Rat,4,1,"ng-container",11),c()()()),i&2&&(m(4),f("ngIf",r.diploma.isValid),m(),f("ngIf",!r.diploma.isValid),m(2),ue("C\xF3digo ",r.verificationCode,""),m(2),f("ngIf",r.diploma.hasVisualRepresentation),m(2),ba("href",r.xmlUrl,qo),f("disabled",!r.diploma.isValid||!r.verificationCode),m(6),f("ngIf",r.diploma.isValid),m(),f("ngIf",!r.diploma.isValid&&!r.diploma.history),m(),f("ngIf",r.diploma.history))},dependencies:[Ee,He,ec,wn,bd,uI,Kb,Qb,rn]})}}return t})();var df="/api/academic-transcripts",Qp=(()=>{class t{constructor(e){this.http=e}listPaginatedFilters(e,i){return{listPaginated:r=>{e.q&&(r.searchTerm=e.q);let o=this.http.get(`${df}`,{params:r.getHttpParams().append("batchId",e.batchId==null?"":e.batchId.toString()).append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString()).append("status",e.status==null?"":e.status.toString()).append("isSigned",e.isSigned==null?"":e.isSigned.toString())});return i&&(o=o.pipe(ri(i))),o}}}getTickets(e){return this.http.post(`${df}/tickets`,e)}getBatch(e){return this.http.post(`${df}/batch`,e)}get(e){return this.http.get(`${df}/${e}`)}getAcademicTranscriptTicket(e){return this.http.get(`${df}/${e}/xml-ticket`)}getHistory(e){return this.http.get(`${df}/${e}/history`)}updateStatus(e,i,r){return this.http.post(`${df}/${e}/status`,{status:i,reason:r})}getVisualRepresentationTicket(e){return this.http.get(`${df}/${e}/visual-representation-ticket`)}getXmlUrl(e){return`${df}/${e}/validation/xml`}getVisualRepresentationUrl(e){return`${df}/${e}/validation/visual-representation`}getAvailableAdmissionTypes(){return this.http.get(`${df}/available-admission-types`)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dve=(()=>{class t{transform(e){switch(e){case Ka.Abandono:return"Abandono";case Ka.Desistencia:return"Desist\xEAncia";case Ka.Formado:return"Formado";case Ka.IntercambioInternacional:return"Interc\xE2mbio internacional";case Ka.IntercambioNacional:return"Interc\xE2mbio nacional";case Ka.Jubilado:return"Jubilado";case Ka.Licenca:return"Licen\xE7a";case Ka.MatriculadoEmDisciplina:return"Matriculado em disciplina";case Ka.OutraSituacao:return"Outra situa\xE7\xE3o";case Ka.Trancamento:return"Trancamento";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"studentStatus",type:t,pure:!0})}}return t})();function Oat(t,n){if(t&1&&(d(0,"spa-prop",7),h(1),c()),t&2){let e=S();m(),ue(" ",e.situacaoDiscente.periodoLetivo," ")}}function Lat(t,n){if(t&1&&(he(0),d(1,"spa-prop",8),h(2),ce(3,"date"),c(),d(4,"spa-prop",9),h(5),ce(6,"date"),c(),d(7,"spa-prop",10),h(8),ce(9,"date"),c(),fe()),t&2){let e=S();m(2),ue(" ",Bt(3,3,e.situacaoDiscente.formado.dataConclusaoCurso,e.dateFormat)," "),m(3),ue(" ",Bt(6,6,e.situacaoDiscente.formado.dataColacaoGrau,e.dateFormat)," "),m(3),ue(" ",Bt(9,9,e.situacaoDiscente.formado.dataExpedicaoDiploma,e.dateFormat)," ")}}function Vat(t,n){if(t&1&&(d(0,"spa-prop",14),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.situacaoDiscente.intercambio.instituicao," ")}}function Bat(t,n){if(t&1&&(d(0,"spa-prop",15),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.situacaoDiscente.intercambio.pais," ")}}function jat(t,n){if(t&1&&(d(0,"spa-prop",16),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.situacaoDiscente.intercambio.nomeProgramaIntercambio," ")}}function Hat(t,n){if(t&1&&(he(0),k(1,Vat,2,1,"spa-prop",11)(2,Bat,2,1,"spa-prop",12)(3,jat,2,1,"spa-prop",13),fe()),t&2){let e=S();m(),f("ngIf",e.situacaoDiscente.intercambio.instituicao),m(),f("ngIf",e.situacaoDiscente.intercambio.pais),m(),f("ngIf",e.situacaoDiscente.intercambio.nomeProgramaIntercambio)}}function zat(t,n){if(t&1&&(d(0,"spa-prop",17),h(1),c()),t&2){let e=S();m(),ue(" ",e.situacaoDiscente.outraSituacao," ")}}var PB=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-situacao-discente"]],inputs:{situacaoDiscente:"situacaoDiscente"},decls:10,vars:7,consts:[[1,"row","economic-prop"],["label","Per\xEDodo Letivo","class","col-md-6",4,"ngIf"],["label","Situa\xE7\xE3o",1,"col-md-6"],[1,"col-12"],[1,"row"],[4,"ngIf"],["label","Outra situa\xE7\xE3o","class","col-md-8",4,"ngIf"],["label","Per\xEDodo Letivo",1,"col-md-6"],["label","Data de conclus\xE3o",1,"col-lg-6","col-xl-4"],["label","Data da cola\xE7\xE3o de grau",1,"col-lg-6","col-xl-4"],["label","Data da expedi\xE7\xE3o do diploma",1,"col-lg-6","col-xl-4"],["label","Institui\xE7\xE3o","class","col-md-6",4,"ngIf"],["label","Pa\xEDs","class","col-md-6",4,"ngIf"],["label","Nome do programa de interc\xE2mbio","class","col-md-8",4,"ngIf"],["label","Institui\xE7\xE3o",1,"col-md-6"],["label","Pa\xEDs",1,"col-md-6"],["label","Nome do programa de interc\xE2mbio",1,"col-md-8"],["label","Outra situa\xE7\xE3o",1,"col-md-8"]],template:function(i,r){i&1&&(d(0,"div",0),k(1,Oat,2,1,"spa-prop",1),d(2,"spa-prop",2),h(3),ce(4,"studentStatus"),c(),d(5,"div",3)(6,"div",4),k(7,Lat,10,12,"ng-container",5)(8,Hat,4,3,"ng-container",5)(9,zat,2,1,"spa-prop",6),c()()()),i&2&&(m(),f("ngIf",r.situacaoDiscente.periodoLetivo),m(2),ue(" ",xe(4,5,r.situacaoDiscente.tipo)," "),m(4),f("ngIf",r.situacaoDiscente.formado),m(),f("ngIf",r.situacaoDiscente.intercambio),m(),f("ngIf",r.situacaoDiscente.outraSituacao))},dependencies:[Ee,wn,rn,Dve]})}}return t})();function Uat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",13),h(2,"check_circle"),c(),d(3,"h2",14),h(4,"Hist\xF3rico escolar v\xE1lido"),c()())}function Gat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",15),h(2,"cancel"),c(),d(3,"h2",16),h(4,"Hist\xF3rico escolar inv\xE1lido"),c()())}function $at(t,n){if(t&1&&(d(0,"a",8)(1,"mat-icon"),h(2,"save_alt"),c(),h(3," Baixar representa\xE7\xE3o visual "),c()),t&2){let e=S();ba("href",e.visualRepresentationUrl,qo),f("disabled",!e.academicTranscript.isValid||!e.verificationCode)}}function qat(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Dados do hist\xF3rico escolar"),c(),d(3,"div",18)(4,"small"),h(5,"Aluno"),c()(),H(6,"app-dados-diplomado",19),d(7,"div",18)(8,"small"),h(9,"Situa\xE7\xE3o atual"),c()(),H(10,"app-situacao-discente",20),d(11,"div",18)(12,"small"),h(13,"Dados do Curso"),c()(),H(14,"app-dados-curso",21),d(15,"div",18)(16,"small"),h(17,"Institui\xE7\xE3o de Ensino"),c()(),H(18,"app-dados-ies",22),fe()),t&2){let e=S();m(6),f("diplomado",e.academicTranscript.information.aluno)("formaAcesso",e.ingresso.formaAcesso)("dataIngresso",e.ingresso.data)("isValidation",e.isValidation),m(4),f("situacaoDiscente",e.academicTranscript.information.situacaoAtualDiscente),m(4),f("curso",e.academicTranscript.information.dadosCurso)("isValidation",e.isValidation),m(4),f("ies",e.academicTranscript.information.iesEmissora)}}function Wat(t,n){t&1&&(he(0),d(1,"h2",17),h(2,"N\xE3o existem informa\xE7\xF5es p\xFAblicas v\xE1lidas sobre esse documento."),c(),fe())}function Yat(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Hist\xF3rico"),c(),H(3,"app-degree-history-table",23),fe()),t&2){let e=S();m(3),f("history",e.academicTranscript.history)}}var Ave=(()=>{class t{get xmlUrl(){return this.useRecaptcha?this.academicTranscript.xmlTicket?.location:this.academicTranscriptService.getXmlUrl(this.verificationCode)}get visualRepresentationUrl(){return this.useRecaptcha?this.academicTranscript.visualRepresentationTicket?.location:this.academicTranscriptService.getVisualRepresentationUrl(this.verificationCode)}constructor(e){this.academicTranscriptService=e}ngOnInit(){this.academicTranscript.information&&(this.ingresso=this.academicTranscript.information.ingresso)}static{this.\u0275fac=function(i){return new(i||t)(E(Qp))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-validate"]],inputs:{academicTranscript:"academicTranscript",verificationCode:"verificationCode",useRecaptcha:"useRecaptcha",isValidation:"isValidation"},decls:20,vars:9,consts:[[1,"row"],[1,"col-md-3","side-validation"],[1,"p-3","d-flex","align-items-center","flex-column","justify-content-between"],[1,"w-100"],["class","d-flex align-items-center justify-content-center mb-3",4,"ngIf"],[1,"text-center"],["target","_blank","button","","mat-stroked-button","","color","primary","class","download-button text-truncate",3,"href","disabled",4,"ngIf"],[1,"mt-3"],["target","_blank","button","","mat-stroked-button","","color","primary",1,"download-button","text-truncate",3,"href","disabled"],[1,"col-md-9"],[1,"p-3"],[4,"ngIf"],[1,"d-flex","align-items-center","justify-content-center","mb-3"],[1,"me-3","text-success"],[1,"mb-0","text-success","title"],[1,"me-3","text-warn"],[1,"mb-0","text-warn","title"],[1,"mb-4"],[1,"small-label-container","text-primary"],[3,"diplomado","formaAcesso","dataIngresso","isValidation"],[3,"situacaoDiscente"],[3,"curso","isValidation"],[3,"ies"],[3,"history"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),k(4,Uat,5,0,"div",4)(5,Gat,5,0,"div",4),d(6,"p",5),h(7),c(),d(8,"div"),k(9,$at,4,2,"a",6),c(),d(10,"div",7)(11,"a",8)(12,"mat-icon"),h(13,"save_alt"),c(),h(14," Baixar XML assinado "),c()()()()(),d(15,"div",9)(16,"div",10),k(17,qat,19,8,"ng-container",11)(18,Wat,3,0,"ng-container",11)(19,Yat,4,1,"ng-container",11),c()()()),i&2&&(m(4),f("ngIf",r.academicTranscript.isValid),m(),f("ngIf",!r.academicTranscript.isValid),m(2),ue("C\xF3digo ",r.verificationCode,""),m(2),f("ngIf",r.academicTranscript.hasVisualRepresentation),m(2),ba("href",r.xmlUrl,qo),f("disabled",!r.academicTranscript.isValid||!r.verificationCode),m(6),f("ngIf",r.academicTranscript.isValid),m(),f("ngIf",!r.academicTranscript.isValid&&!r.academicTranscript.history),m(),f("ngIf",r.academicTranscript.history))},dependencies:[Ee,He,ec,bd,uI,Kb,Qb,PB]})}}return t})();var xg="/api/curriculums",Cg=(()=>{class t{constructor(e){this.http=e}listPaginatedFilters(e,i){return{listPaginated:r=>{e.q&&(r.searchTerm=e.q);let o=this.http.get(`${xg}`,{params:r.getHttpParams().append("batchId",e.batchId==null?"":e.batchId.toString()).append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString()).append("status",e.status==null?"":e.status.toString())});return i&&(o=o.pipe(ri(i))),o}}}get(e){return this.http.get(`${xg}/${e}`)}getHistory(e){return this.http.get(`${xg}/${e}/history`)}getCurriculumTicket(e){return this.http.get(`${xg}/${e}/xml-ticket`)}getVisualRepresentationTicket(e){return this.http.get(`${xg}/${e}/visual-representation-ticket`)}cancel(e,i){return this.http.post(`${xg}/${e}/cancellation`,{reason:i})}getTickets(e){return this.http.post(`${xg}/tickets`,e)}getBatch(e){return this.http.post(`${xg}/batch`,e)}getXmlUrl(e){return`${xg}/${e}/validation/xml`}getVisualRepresentationUrl(e){return`${xg}/${e}/validation/visual-representation`}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Xat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",13),h(2,"check_circle"),c(),d(3,"h2",14),h(4,"Curr\xEDculo escolar v\xE1lido"),c()())}function Qat(t,n){t&1&&(d(0,"div",12)(1,"mat-icon",15),h(2,"cancel"),c(),d(3,"h2",16),h(4,"Curr\xEDculo escolar inv\xE1lido"),c()())}function Zat(t,n){if(t&1&&(d(0,"a",8)(1,"mat-icon"),h(2,"save_alt"),c(),h(3," Baixar representa\xE7\xE3o visual "),c()),t&2){let e=S();ba("href",e.visualRepresentationUrl,qo),f("disabled",!e.curriculum.isValid||!e.validationCode)}}function Jat(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Dados do curr\xEDculo escolar"),c(),d(3,"div",18)(4,"small"),h(5,"Curr\xEDculo Escolar"),c()(),d(6,"div",19)(7,"spa-prop",20),h(8),c(),d(9,"spa-prop",21),h(10),ce(11,"date"),c()(),d(12,"div",18)(13,"small"),h(14,"Dados do Curso"),c()(),H(15,"app-dados-curso",22),d(16,"div",18)(17,"small"),h(18,"Institui\xE7\xE3o de Ensino"),c()(),H(19,"app-dados-ies",23),fe()),t&2){let e=S();m(8),U(e.curriculum.information.codigo),m(2),U(Bt(11,5,e.curriculum.information.dataCurriculo,"dd/MM/yyyy")),m(5),f("curso",e.curriculum.information.dadosCurso)("isValidation",e.isValidation),m(4),f("ies",e.curriculum.information.iesEmissora)}}function est(t,n){t&1&&(he(0),d(1,"h2",17),h(2,"N\xE3o existem informa\xE7\xF5es p\xFAblicas v\xE1lidas sobre esse documento."),c(),fe())}function tst(t,n){if(t&1&&(he(0),d(1,"h2",17),h(2,"Hist\xF3rico"),c(),H(3,"app-degree-history-table",24),fe()),t&2){let e=S();m(3),f("history",e.curriculum.history)}}var kve=(()=>{class t{get xmlUrl(){return this.useRecaptcha?this.curriculum.xmlTicket?.location:this.curriculumService.getXmlUrl(this.validationCode)}get visualRepresentationUrl(){return this.useRecaptcha?this.curriculum.visualRepresentationTicket?.location:this.curriculumService.getVisualRepresentationUrl(this.validationCode)}constructor(e){this.curriculumService=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(Cg))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-curriculum-validate"]],inputs:{curriculum:"curriculum",validationCode:"validationCode",useRecaptcha:"useRecaptcha",isValidation:"isValidation"},decls:20,vars:9,consts:[[1,"row"],[1,"col-md-3","side-validation"],[1,"p-3","d-flex","align-items-center","flex-column","justify-content-between"],[1,"w-100"],["class","d-flex align-items-center justify-content-center mb-3",4,"ngIf"],[1,"text-center"],["target","_blank","button","","mat-stroked-button","","color","primary","class","download-button text-truncate",3,"href","disabled",4,"ngIf"],[1,"mt-3"],["target","_blank","button","","mat-stroked-button","","color","primary",1,"download-button","text-truncate",3,"href","disabled"],[1,"col-md-9"],[1,"p-3"],[4,"ngIf"],[1,"d-flex","align-items-center","justify-content-center","mb-3"],[1,"me-3","text-success"],[1,"mb-0","text-success","title"],[1,"me-3","text-warn"],[1,"mb-0","text-warn","title"],[1,"mb-4"],[1,"small-label-container","text-primary"],[1,"row","economic-prop"],["label","C\xF3digo do curr\xEDculo",1,"col-md-3"],["label","Data do curr\xEDculo",1,"col-md-3"],[3,"curso","isValidation"],[3,"ies"],[3,"history"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),k(4,Xat,5,0,"div",4)(5,Qat,5,0,"div",4),d(6,"p",5),h(7),c(),d(8,"div"),k(9,Zat,4,2,"a",6),c(),d(10,"div",7)(11,"a",8)(12,"mat-icon"),h(13,"save_alt"),c(),h(14," Baixar XML assinado "),c()()()()(),d(15,"div",9)(16,"div",10),k(17,Jat,20,8,"ng-container",11)(18,est,3,0,"ng-container",11)(19,tst,4,1,"ng-container",11),c()()()),i&2&&(m(4),f("ngIf",r.curriculum.isValid),m(),f("ngIf",!r.curriculum.isValid),m(2),ue("C\xF3digo ",r.validationCode,""),m(2),f("ngIf",r.curriculum.hasVisualRepresentation),m(2),ba("href",r.xmlUrl,qo),f("disabled",!r.curriculum.isValid||!r.validationCode),m(6),f("ngIf",r.curriculum.isValid),m(),f("ngIf",!r.curriculum.isValid&&!r.curriculum.history),m(),f("ngIf",r.curriculum.history))},dependencies:[Ee,He,ec,wn,bd,Kb,Qb,rn]})}}return t})();var nst=["recaptcha"],rst=t=>({"col-lg-6":t}),ost=t=>({"flex-column":t}),ast=t=>({"text-center":t}),sst=t=>({"justify-content-md-end":t}),lst=()=>({standalone:!0});function cst(t,n){if(t&1&&H(0,"img",15),t&2){let e=S();f("src",e.logoUrl,qo)}}function dst(t,n){t&1&&(d(0,"div",16)(1,"h2"),h(2,"Informe o c\xF3digo de valida\xE7\xE3o do documento abaixo:"),c()())}function ust(t,n){if(t&1){let e=ie();d(0,"re-captcha",17,0),$("resolved",function(r){W(e);let o=S();return Y(o.onCaptchaValidated(r))}),c()}if(t&2){let e=S();f("siteKey",e.siteKey)}}function mst(t,n){if(t&1&&H(0,"app-degree-validate",21),t&2){let e=S(2);f("diploma",e.validation)("verificationCode",e.verificationCode)("useRecaptcha",e.useRecaptcha)("isValidation",!0)}}function pst(t,n){if(t&1&&H(0,"app-academic-transcript-validate",22),t&2){let e=S(2);f("academicTranscript",e.validation)("verificationCode",e.verificationCode)("useRecaptcha",e.useRecaptcha)("isValidation",!0)}}function hst(t,n){if(t&1&&H(0,"app-curriculum-validate",23),t&2){let e=S(2);f("curriculum",e.validation)("validationCode",e.verificationCode)("useRecaptcha",e.useRecaptcha)("isValidation",!0)}}function fst(t,n){if(t&1&&(he(0),k(1,mst,1,4,"app-degree-validate",18)(2,pst,1,4,"app-academic-transcript-validate",19)(3,hst,1,4,"app-curriculum-validate",20),fe()),t&2){let e=S();m(),f("ngIf",e.validationType==e.ValidationTypes.Degree),m(),f("ngIf",e.validationType==e.ValidationTypes.AcademicTranscript),m(),f("ngIf",e.validationType==e.ValidationTypes.Curriculum)}}var qZ=(()=>{class t{constructor(e,i,r,o){this.router=e,this.route=i,this.documentService=o,this.ValidationTypes=zZ,this.$toUnsubscribe=[],this.loading=!0,this.newDocumentVerificationCode="",this.siteKey=r.config.clientConfig.recaptchaSiteKey,this.useRecaptcha=this.siteKey!=null}ngOnInit(){let e=this.route.snapshot.queryParamMap.get("codigo");e?this.navigate(e):this.loading=!1,this.$toUnsubscribe.push(this.route.paramMap.subscribe(i=>{let r=i.get("code");r&&(this.verificationCode=r,this.useRecaptcha?this.loadAndExecuteRecaptcha():this.validate())}))}loadAndExecuteRecaptcha(){this.loading=!0;let e=My(1e3).subscribe(i=>{this.recaptcha&&(e.unsubscribe(),this.recaptcha.execute(),this.loading=!1)})}validate(e){this.loading=!0,this.validation=null,this.documentService.validate(this.verificationCode,e).subscribe(i=>{this.setCustomization(i),this.validationType=i.type,this.validation=i.validation,this.loading=!1},i=>this.loading=!1)}navigate(e){this.router.navigate([`${mM}`,e])}validateNext(){this.newDocumentVerificationCode&&(this.navigate(this.newDocumentVerificationCode.trim()),this.newDocumentVerificationCode="")}onCaptchaValidated(e){e&&(this.recaptcha.reset(),this.validate(e))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}setTheme(e){e&&(document.body.className=e+"-theme")}setFavicon(e){if(!e)return;let i=document.querySelector("link[rel~='icon']");i&&(i.href=e)}setCustomization(e){this.setTheme(e.theme),this.setFavicon(e.faviconUrl),this.logoUrl=e.logoUrl?e.logoUrl:"/theme-assets/dark-logo",e.name&&(document.title=e.name)}static{this.\u0275fac=function(i){return new(i||t)(E(lt),E(Ut),E(zo),E(Ub))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-document-validate"]],viewQuery:function(i,r){if(i&1&&ot(nst,5),i&2){let o;Pe(o=Ne())&&(r.recaptcha=o.first)}},decls:18,vars:20,consts:[["recaptcha",""],[3,"show"],[1,"bg-welcome","p-md-5","p-2"],[1,"container-fluid","validation-box",3,"ngClass"],[1,"validation-nav","py-3","row",3,"ngClass"],[1,"col-12","col-sm-6",3,"ngClass"],[3,"src",4,"ngIf"],["class","col-12 text-center mt-3",4,"ngIf"],[1,"col-12","col-sm-6"],[1,"d-flex","align-items-center","justify-content-center",3,"submit","ngClass"],["appearance","outline","color","primary",1,"mb-0"],["matInput","",3,"ngModelChange","ngModel","ngModelOptions"],["size","invisible",3,"siteKey","resolved",4,"ngIf"],["mat-icon-button","","color","primary","type","submit"],[4,"ngIf"],[3,"src"],[1,"col-12","text-center","mt-3"],["size","invisible",3,"resolved","siteKey"],[3,"diploma","verificationCode","useRecaptcha","isValidation",4,"ngIf"],[3,"academicTranscript","verificationCode","useRecaptcha","isValidation",4,"ngIf"],[3,"curriculum","validationCode","useRecaptcha","isValidation",4,"ngIf"],[3,"diploma","verificationCode","useRecaptcha","isValidation"],[3,"academicTranscript","verificationCode","useRecaptcha","isValidation"],[3,"curriculum","validationCode","useRecaptcha","isValidation"]],template:function(i,r){i&1&&(H(0,"ngx-loading",1),d(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5),k(5,cst,1,1,"img",6),c(),k(6,dst,3,0,"div",7),d(7,"div",8)(8,"form",9),$("submit",function(){return r.validateNext()}),d(9,"mat-form-field",10)(10,"mat-label"),h(11,"Valida\xE7\xE3o por c\xF3digo"),c(),d(12,"input",11),tn("ngModelChange",function(a){return nn(r.newDocumentVerificationCode,a)||(r.newDocumentVerificationCode=a),a}),c()(),k(13,ust,2,1,"re-captcha",12),d(14,"button",13)(15,"mat-icon"),h(16,"find_in_page"),c()()()()(),k(17,fst,4,3,"ng-container",14),c()()),i&2&&(f("show",r.loading),m(2),f("ngClass",Le(11,rst,!r.verificationCode)),m(),f("ngClass",Le(13,ost,!r.verificationCode)),m(),f("ngClass",Le(15,ast,!r.verificationCode)),m(),f("ngIf",r.logoUrl),m(),f("ngIf",!r.verificationCode),m(2),f("ngClass",Le(17,sst,r.verificationCode)),m(4),en("ngModel",r.newDocumentVerificationCode),f("ngModelOptions",Wo(19,lst)),m(),f("ngIf",r.useRecaptcha),m(4),f("ngIf",r.validation))},dependencies:[ji,Ee,zt,Gt,it,pt,Va,kh,He,fi,Wt,bt,jt,li,yve,Ive,Ave,kve],encapsulation:2})}}return t})();var p_="/api/settings",WZ="/signer-api-key",Xa=(()=>{class t{constructor(e){this.http=e,this.NoFolder={id:null,name:""},this.NewFolderId="00000000-0000-0000-0000-000000000000",this.NewFolder=i=>({id:this.NewFolderId,name:i})}get(){return this.http.get(`${p_}`)}getFolders(e){return this.http.get(`${p_}/folders`,{params:e.getHttpParams()})}getSignerApiKey(){return this.http.get(`${p_}${WZ}`)}updateSignerApiKey(e){return this.http.put(`${p_}${WZ}`,e)}deleteSignerApiKey(){return this.http.delete(`${p_}${WZ}`)}updateIntegrations(e){return this.http.put(`${p_}/integrations`,e)}getRegistryData(){return this.http.get(`${p_}/registry-data`)}updateRegistryData(e){return this.http.put(`${p_}/registry-data`,e)}updateGeneralSettings(e){return this.http.post(`${p_}/general`,e)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wi=(()=>{class t{constructor(){this.errors={signerApiKey:{required:"A chave de API do assinador deve ser preenchida"},templateName:{required:"O nome do modelo deve ser preenchido",maxlength:"O nome do modelo excede o limite m\xE1ximo de caracteres"},flowName:{required:"O nome do fluxo deve ser preenchido",maxlength:"O nome do fluxo excede o limite m\xE1ximo de caracteres"},name:{maxlength:"O nome informado excede o limite m\xE1ximo de caracteres",required:"O nome deve ser preenchido"},email:{email:"O endere\xE7o de email n\xE3o \xE9 v\xE1lido",required:"O email deve ser preenchido"},cpf:{cpf:"O CPF n\xE3o \xE9 v\xE1lido",required:"O CPF deve ser preenchido"},reason:{maxlength:"O motivo informado excede o limite m\xE1ximo de caracteres",required:"O motivo deve ser preenchido"},baseUrl:{maxlength:"A URL base informada excede o limite m\xE1ximo de caracteres"},validationPath:{maxlength:"O caminho de valida\xE7\xE3o informado excede o limite m\xE1ximo de caracteres"},url:{required:"A URL deve ser preenchida"},token:{required:"O token deve ser preenchido"},cnpj:{cnpj:"O CNPJ n\xE3o \xE9 v\xE1lido",required:"O CNPJ deve ser preenchido"},streetAddress:{required:"O logradouro deve ser preenchido",minLength:"O logradouro informado n\xE3o possui a quantidade m\xEDnima de caracteres",maxlength:"O logradouro informado excede o limite m\xE1ximo de caracteres"},addressNumber:{maxlength:"O n\xFAmero informado excede o limite m\xE1ximo de caracteres"},cep:{required:"O CEP deve ser preenchido",pattern:"O CEP informado n\xE3o \xE9 v\xE1lido"},"address-info":{maxlength:"O n\xFAmero informado excede o limite m\xE1ximo de caracteres"},neighborhood:{required:"O bairro deve ser preenchido",minLength:"O bairro informado n\xE3o possui a quantidade m\xEDnima de caracteres",maxlength:"O bairro informado excede o limite m\xE1ximo de caracteres"},complemento:{maxlength:"O complemento informado excede o limite m\xE1ximo de caracteres"},cityCode:{required:"O c\xF3digo do munic\xEDpio deve ser preenchido"},city:{required:"O munic\xEDpio deve ser preenchido",maxlength:"O munic\xEDpio informado excede o limite m\xE1ximo de caracteres"},foreignCity:{required:"O munic\xEDpio estrangeiro deve ser preenchido",maxlength:"O munic\xEDpio estrangeiro informado excede o limite m\xE1ximo de caracteres"},processType:{required:"O tipo de processo deve ser preenchido"},processNumber:{min:"O n\xFAmero do processo informado \xE9 inferior ao valor m\xEDnimo",required:"O n\xFAmero do processo deve ser preenchido",pattern:"O n\xFAmero \xE9 inv\xE1lido"},stringDateValidator:{required:"A data deve ser preenchida",mask:"A data informada n\xE3o \xE9 v\xE1lida",minDate:"A data informada \xE9 inferior a data m\xEDnima",maxDate:"A data informada n\xE3o pode ser superior a data de hoje"},stringHourValidator:{required:"A hora deve ser preenchida",mask:"A hora informada n\xE3o \xE9 v\xE1lida",pattern:"A hora informada n\xE3o \xE9 v\xE1lida"},numberAutorization:{pattern:"O n\xFAmero informado n\xE3o \xE9 v\xE1lido"},publicationSection:{min:"A se\xE7\xE3o est\xE1 abaixo do valor m\xEDnimo",pattern:"N\xFAmero inv\xE1lido",required:"A se\xE7\xE3o de publica\xE7\xE3o deve ser preenchida"},publicationPage:{min:"A p\xE1gina est\xE1 abaixo do valor m\xEDnimo",pattern:"N\xFAmero inv\xE1lido",required:"A p\xE1gina de publica\xE7\xE3o deve ser preenchida"},publicationVehicle:{required:"O ve\xEDculo de publica\xE7\xE3o deve ser preenchido",maxlength:"O ve\xEDculo de publica\xE7\xE3o informado excede o limite m\xE1ximo de caracteres"},numeroDOU:{min:"O n\xFAmero DOU informado \xE9 inferior ao valor m\xEDnimo",pattern:"O n\xFAmero DOU informado n\xE3o \xE9 v\xE1lido",required:"O n\xFAmero DOU deve ser preenchido"},notes:{maxlength:"As observa\xE7\xF5es excedem o limite m\xE1ximo de caracteres"},livroRegistro:{required:"O livro de registro deve ser preenchido",maxlength:"O livro de registro excede o limite m\xE1ximo de caracteres"},numeroFolhaDoDiploma:{required:"O n\xFAmero de folha deve ser preenchido",maxlength:"O n\xFAmero de folha excede o limite m\xE1ximo de caracteres"},numeroSequenciaDoDiploma:{required:"O n\xFAmero de sequ\xEAncia deve ser preenchido",maxlength:"O n\xFAmero de sequ\xEAncia excede o limite m\xE1ximo de caracteres"},numeroRegistro:{required:"O n\xFAmero de registro deve ser preenchido",maxlength:"O n\xFAmero de registro excede o limite m\xE1ximo de caracteres"},processoDoDiploma:{required:"O processo deve ser preenchido",maxlength:"O processo excede o limite m\xE1ximo de caracteres"},iDouNumeroMatricula:{required:"O n\xFAmero de matr\xEDcula deve ser preenchido",maxlength:"O n\xFAmero de matr\xEDcula excede o limite m\xE1ximo de caracteres"},templateType:{required:"O tipo do modelo deve ser preenchido"},applicationType:{required:"Um tipo de integra\xE7\xE3o deve ser selecionado"},externalName:{required:"O nome da institui\xE7\xE3o de ensino deve ser preenchido"},id:{required:"O Id deve ser preenchido",minlength:"O Id precisa de no m\xEDnimo 1 caracter"},sexo:{required:"O sexo deve ser selecionado"},nacionalidade:{required:"A nacionalidade deve ser preenchida",maxlength:"A nacionalidade excede o limite m\xE1ximo de caracteres"},codigoMunicipio:{required:"O c\xF3digo do municipio deve ser preenchido",pattern:"O c\xF3digo do municipio informado n\xE3o \xE9 v\xE1lido"},nomeMunicipio:{required:"O nome do munic\xEDpio deve ser preenchido",maxlength:"O nome do munic\xEDpio excede o limite m\xE1ximo de caracteres"},uf:{required:"A UF deve ser preenchida"},nomeMunicipioEstrangeiro:{required:"O nome do municipio estrangeiro deve ser preenchido",maxlength:"O nome do municipio estrangeiro excede o limite m\xE1ximo de caracteres"},rgNumber:{required:"O n\xFAmero deve ser preenchido",pattern:"O n\xFAmero n\xE3o \xE9 v\xE1lido",maxlength:"O n\xFAmero excede o limite m\xE1ximo de caracteres"},documentType:{required:"O tipo de documento deve ser preenchido",maxlength:"O tipo excede o limite m\xE1ximo de caracteres"},orgaoExpedidor:{maxlength:"O \xF3rg\xE3o expedidor excede o limite m\xE1ximo de caracteres"},identifier:{required:"O identificador deve ser preenchido",maxlength:"O identificador excede o limite m\xE1ximo de caracteres"},nomeCurso:{required:"O nome do curso deve ser preenchido",maxlength:"O nome o limite m\xE1ximo de caracteres"},codigoCursoEMEC:{required:"O c\xF3digo MEC deve ser preenchido",pattern:"O c\xF3digo MEC deve ter apenas n\xFAmeros",min:"O c\xF3digo informado \xE9 inferior ao valor m\xEDnimo",max:"O c\xF3digo informado \xE9 superior ao valor m\xE1ximo"},codigoEmec:{required:"O c\xF3digo MEC deve ser preenchido",min:"O c\xF3digo MEC informado \xE9 inferior ao valor m\xEDnimo",pattern:"O c\xF3digo MEC informado n\xE3o \xE9 v\xE1lido",max:"O c\xF3digo MEC informado \xE9 superior ao valor m\xE1ximo"},cargo:{required:"O cargo deve ser preenchido",maxlength:"O cargo excede o limite m\xE1ximo de caracteres"},numberAuthorization:{pattern:"O n\xFAmero informado n\xE3o \xE9 v\xE1lido, use S/N caso n\xE3o tenha n\xFAmero",required:"O n\xFAmero deve ser preenchido"},tipo:{required:"Um tipo deve ser selecionado",maxlength:"O tipo excede o limite m\xE1ximo de caracteres",minlength:"O tipo precisa de no m\xEDnimo 1 caracter"},tipoString:{required:"O tipo deve ser preenchido",maxlength:"O tipo excede o limite m\xE1ximo de caracteres",minlength:"O tipo precisa de no m\xEDnimo 1 caracter"},logradouro:{required:"O logradouro deve ser preenchido",maxlength:"O logradouro excede o limite m\xE1ximo de caracteres",minlength:"O logradouro precisa de no m\xEDnimo 2 caracteres"},bairro:{required:"O bairro deve ser preenchido",minlength:"O bairro informado n\xE3o possui a quantidade m\xEDnima de caracteres",maxlength:"O bairro informado excede o limite m\xE1ximo de caracteres"},modalidade:{required:"Uma modalidade deve ser selecionada"},titulo:{required:"Um titulo deve ser selecionado"},outroTitulo:{required:"O t\xEDtulo deve ser preenchido",maxlength:"O t\xEDtulo excede o limite m\xE1ximo de caracteres"},enfase:{required:"A \xEAnfase deve ser preenchida"},nomeHabilitacao:{required:"O nome da habilita\xE7\xE3o deve ser preenchido",maxlength:"O nome da habilita\xE7\xE3o excede o limite m\xE1ximo de caracteres"},grauConferido:{required:"Um grau conferido deve ser selecionado"},razaoSocial:{required:"A raz\xE3o social deve ser preenchida"},observacoes:{maxlength:"As observa\xE7\xF5es excedem o limite m\xE1ximo de caracteres"},cargaHorariaEmHorasRelogio:{required:"A carga hor\xE1ria deve ser preenchida",pattern:"A carga hor\xE1ria n\xE3o \xE9 v\xE1lida"},nomeFantasia:{maxlength:"O nome fantasia excede o limite m\xE1ximo de caracteres"},lattes:{maxlength:"O lattes excede o limite m\xE1ximo de caracteres",required:"O lattes deve ser preenchido",pattern:"O lattes informado n\xE3o \xE9 v\xE1lido"},titulacao:{required:"Uma titula\xE7\xE3o deve ser selecionada"},situacao:{required:"Uma situa\xE7\xE3o deve ser selecionada",maxlength:"A situa\xE7\xE3o informada excede o limite m\xE1ximo de caracteres"},outraSituacao:{required:"A situa\xE7\xE3o deve ser preenchida",maxlength:"A situa\xE7\xE3o informada excede o limite m\xE1ximo de caracteres"},periodoLetivo:{required:"O per\xEDodo letivo deve ser preenchido",maxlength:"O per\xEDodo letivo informado excede o limite m\xE1ximo de caracteres"},pais:{required:"O pa\xEDs deve ser preenchido",maxlength:"O pa\xEDs informado excede o limite m\xE1ximo de caracteres"},instituicao:{required:"A institui\xE7\xE3o deve ser preenchida",maxlength:"A institui\xE7\xE3o informada excede o limite m\xE1ximo de caracteres"},nomeProgramaIntercambio:{required:"O nome do programa de interc\xE2mbio deve ser preenchido",maxlength:"O nome do programa de interc\xE2mbio informado excede o limite m\xE1ximo de caracteres"},descricao:{required:"A descri\xE7\xE3o deve ser preenchida",maxlength:"A descri\xE7\xE3o informada excede o limite m\xE1ximo de caracteres"},disciplina:{required:"A disciplina deve ser preenchida",maxlength:"A disciplina informada excede o limite m\xE1ximo de caracteres"},periodo:{required:"O per\xEDodo deve ser preenchido",maxlength:"O per\xEDodo informado excede o limite m\xE1ximo de caracteres"},conceitoEspecificoDoCurso:{maxlength:"O conceito excede o limite m\xE1ximo de caracteres"},nota:{max:"A nota deve ser menor ou igual a 10",min:"A nota deve ser maior ou igual a 0",pattern:"A nota deve ser um n\xFAmero positivo com at\xE9 2 casas decimais"},notaAteCem:{max:"A nota deve ser menor ou igual a 100",min:"A nota deve ser maior ou igual a 0",pattern:"A nota deve ser um n\xFAmero positivo com at\xE9 2 casas decimais"},formaAcesso:{required:"Uma forma de acesso deve ser selecionada"},horaAula:{required:"A hora/aula deve ser preenchida",pattern:"Valor inv\xE1lido"},horaRelogio:{required:"A hora/rel\xF3gio deve ser preenchida",pattern:"O n\xFAmero pode ter at\xE9 2 casas decimais"},condicao:{required:"Uma condi\xE7\xE3o deve ser selecionada",maxlength:"A condi\xE7\xE3o informada excede o limite m\xE1ximo de caracteres"},edicao:{required:"A edi\xE7\xE3o deve ser preenchida",mask:"Ano inv\xE1lido",stringDateValidator:"Ano inv\xE1lido"},motivo:{required:"Um motivo deve ser selecionado"},outroMotivo:{required:"O motivo deve ser preenchido",maxlength:"O motivo informado excede o limite m\xE1ximo de caracteres"},numeroProcessoJudicial:{required:"O n\xFAmero do processo judicial deve ser preenchido",pattern:"O n\xFAmero do processo judicial informado n\xE3o \xE9 v\xE1lido",mask:"O n\xFAmero do processo judicial informado n\xE3o \xE9 v\xE1lido"},nomeJuiz:{required:"O nome do juiz deve ser preenchido"},codigo:{required:"O c\xF3digo deve ser preenchido",maxlength:"O c\xF3digo informado excede o limite m\xE1ximo de caracteres",pattern:"O c\xF3digo informado n\xE3o \xE9 v\xE1lido"},etiqueta:{required:"A etiqueta deve ser preenchida",maxlength:"A etiqueta informada excede o limite m\xE1ximo de caracteres"},decisao:{required:"A decis\xE3o deve ser preenchida",maxlength:"A decis\xE3o informada excede o limite m\xE1ximo de caracteres"},outraFormaIntegralizacao:{required:"Outra forma de integraliza\xE7\xE3o deve ser informada"},anoMesProcessoSeletivo:{mask:"A data informada n\xE3o \xE9 v\xE1lida",stringDateValidator:"A data informada n\xE3o \xE9 v\xE1lida"},text:{maxlength:"Este campo excede o limite m\xE1ximo de caracteres"},month:{required:"O m\xEAs deve ser informado"},year:{required:"O ano deve ser informado"}}}get(e,i,r){var o=e.get(i),a=this.getError(o);return a?this.getMessage(r||i,a):null}getError(e){if(e&&e.errors){var i=Object.keys(e.errors);if(i.length>0)return i[0]}}getMessage(e,i){return this.errors[e][i]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var h_="/api/institutes",Sg=(()=>{class t{constructor(e){this.http=e,this.institutes={listPaginated:i=>this.list(i)}}list(e){return this.http.get(`${h_}`,{params:e.getHttpParams()})}create(e){return this.http.post(h_,e)}editInstituteData(e,i){return this.http.put(`${h_}/${e}`,i)}get(e){return this.http.get(`${h_}/${e}`)}getEvents(e){return this.http.get(`${h_}/${e}/events`)}validateInstituteCertificate(e){return this.http.post(`${h_}/certificate-validation`,e)}uploadInstituteCertificate(e,i){return this.http.post(`${h_}/${e}/certificate`,i)}updateIntegrations(e,i){return this.http.post(`${h_}/${e}/integrations`,i)}updateSupportingDocSignatureSetting(e,i){return this.http.post(`${h_}/${e}/supporting-documents/signature-settings`,i)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Mve=(()=>{class t{transform(e){switch(e){case im.NoAuth:return"Sem autentica\xE7\xE3o";case im.Basic:return"Basic";case im.Bearer:return"Bearer";case im.ApiKey:return"X-Api-Key"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"webhookAuthenticationType",type:t,pure:!0})}}return t})();function _st(t,n){t&1&&(d(0,"h2",9),h(1,"Integra\xE7\xE3o"),c())}function vst(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",10),$("change",function(){W(e);let r=S(2);return Y(r.updateForm())}),h(1,"Utilizar a configura\xE7\xE3o de webhook da organiza\xE7\xE3o"),c()}}function bst(t,n){t&1&&(d(0,"mat-slide-toggle",11),h(1,"Habilitar webhooks"),c())}function yst(t,n){if(t&1&&(d(0,"mat-option",21),h(1),ce(2,"webhookAuthenticationType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function xst(t,n){if(t&1&&(d(0,"mat-form-field",14)(1,"mat-label"),h(2,"Token de Autentica\xE7\xE3o"),c(),H(3,"input",22),d(4,"mat-error"),h(5),c()()),t&2){let e=S(3);m(5),U(e.Error.get(e.integrationForm,"token"))}}function Cst(t,n){t&1&&(d(0,"p")(1,"strong"),h(2,"O token j\xE1 deve estar em formato Base64."),c()())}function Sst(t,n){t&1&&(d(0,"p")(1,"strong"),h(2,'O token n\xE3o deve incluir o prefixo "Bearer".'),c()())}function wst(t,n){if(t&1&&(d(0,"div",12)(1,"div",13)(2,"mat-form-field",14)(3,"mat-label"),h(4,"URL"),c(),H(5,"input",15),d(6,"mat-error"),h(7),c()()(),d(8,"div",16)(9,"mat-form-field",17)(10,"mat-label"),h(11,"Tipo de autentica\xE7\xE3o"),c(),d(12,"mat-select",18),k(13,yst,3,4,"mat-option",19),c()(),k(14,xst,6,1,"mat-form-field",20),c(),k(15,Cst,3,0,"p",1)(16,Sst,3,0,"p",1),c()),t&2){let e=S(2);m(7),U(e.Error.get(e.integrationForm,"url")),m(6),f("ngForOf",e.AuthOptions),m(),f("ngIf",e.integrationForm.value.authType!=e.AuthTypes.NoAuth),m(),f("ngIf",e.integrationForm.value.authType==e.AuthTypes.Basic),m(),f("ngIf",e.integrationForm.value.authType==e.AuthTypes.Bearer)}}function Est(t,n){if(t&1){let e=ie();d(0,"button",23),$("click",function(){W(e);let r=S(2);return Y(r.saveIntegration())}),h(1,"Salvar"),c()}if(t&2){let e=S(2);f("disabled",e.integrationForm.pristine)}}function Ist(t,n){if(t&1&&(d(0,"div"),k(1,_st,2,0,"h2",2),d(2,"form",3)(3,"div",4),k(4,vst,2,0,"mat-slide-toggle",5)(5,bst,2,0,"mat-slide-toggle",6),c(),k(6,wst,17,5,"div",7),d(7,"div"),k(8,Est,2,1,"button",8),c()()()),t&2){let e=S();m(),f("ngIf",!e.instituteId),m(),f("formGroup",e.integrationForm),m(2),f("ngIf",e.instituteId),m(),f("ngIf",!e.integrationForm.value.shouldUseSubscriptionWebhookSettings),m(),f("ngIf",!e.integrationForm.value.shouldUseSubscriptionWebhookSettings&&e.integrationForm.value.enabled),m(2),f("ngIf",e.canManage||!e.instituteId)}}var NB=(()=>{class t{get AuthOptions(){return[im.NoAuth,im.Basic,im.Bearer,im.ApiKey]}set settings(e){this._settings=e,this.initForm()}get hasUnsavedChanges(){return this.integrationForm&&this.integrationForm.dirty}constructor(e,i,r,o,a,s){this.Error=e,this.dialogService=i,this.messageService=r,this.settingService=o,this.fb=a,this.instituteService=s,this.AuthTypes=im,this.instituteId=null}ngOnInit(){this.initForm()}initForm(){if(this._settings){if(this.integrationForm=this.fb.group(this._settings),this.instituteId!=null){let e=this.fb.control(this.shouldUseSubscriptionWebhookSettings,[]);this.integrationForm.addControl("shouldUseSubscriptionWebhookSettings",e)}this.integrationForm.controls.url.setValidators([Se.required]),this.integrationForm.controls.token.setValidators([this.tokenConditionalRequiredValidator]),this.integrationForm.controls.authType.valueChanges.subscribe(e=>{e==im.NoAuth&&this.integrationForm.controls.token.setValue(""),this.integrationForm.controls.token.updateValueAndValidity()}),!this.canManage&&this.instituteId&&this.integrationForm.disable()}else this.integrationForm=null}saveIntegration(){!this.integrationForm.valid&&!this.shouldUseSubscriptionWebhookSettings||(this._settings.enabled?this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Tem certeza de que deseja sobrescrever as configura\xE7\xF5es de integra\xE7\xE3o?",confirmButtonText:"Sim",cancelButtonText:"N\xE3o"}).then(e=>{e&&this.sendSaveIntegrationRequest()}):this.sendSaveIntegrationRequest())}updateForm(){this.integrationForm.get("shouldUseSubscriptionWebhookSettings").value?(this.integrationForm.get("url").disable(),this.integrationForm.get("authType").disable(),this.integrationForm.get("token").disable()):(this.integrationForm.get("url").enable(),this.integrationForm.get("authType").enable(),this.integrationForm.get("token").enable()),this.integrationForm.updateValueAndValidity()}sendSaveIntegrationRequest(){let e=Object.assign({},this.integrationForm.value);if(this.isLoading=!0,this.instituteId==null)this.settingService.updateIntegrations({webhook:e}).subscribe(i=>{this.integrationForm.markAsPristine(),this.messageService.showSuccess("Configura\xE7\xF5es atualizadas com sucesso"),this.isLoading=!1},i=>this.isLoading=!1);else{let i={shouldUseSubscriptionWebhookSettings:this.integrationForm.get("shouldUseSubscriptionWebhookSettings").value};!i.shouldUseSubscriptionWebhookSettings&&e.enabled&&(i.webhook=e),this.instituteService.updateIntegrations(this.instituteId,i).subscribe(r=>{this.integrationForm.markAsPristine(),this.messageService.showSuccess("Configura\xE7\xF5es atualizadas com sucesso"),this.isLoading=!1},r=>this.isLoading=!1)}}tokenConditionalRequiredValidator(e){return e.parent&&e.parent.get("authType").value!=im.NoAuth?Se.required(e):null}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Qi),E(Bi),E(Xa),E(Ti),E(Sg))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-webhook-settings"]],inputs:{settings:"settings",canManage:"canManage",instituteId:"instituteId",shouldUseSubscriptionWebhookSettings:"shouldUseSubscriptionWebhookSettings"},decls:2,vars:2,consts:[[3,"show"],[4,"ngIf"],["class","mt-3",4,"ngIf"],[3,"formGroup"],[1,"mb-4","d-flex","flex-column"],["class","mb-2","formControlName","shouldUseSubscriptionWebhookSettings",3,"change",4,"ngIf"],["formControlName","enabled",4,"ngIf"],["class","col-8",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[1,"mt-3"],["formControlName","shouldUseSubscriptionWebhookSettings",1,"mb-2",3,"change"],["formControlName","enabled"],[1,"col-8"],[1,"d-flex"],[1,"field-responsive","input-stretch"],["matInput","","formControlName","url","placeholder","https://example.com"],[1,"d-flex","mt-2","flex-column","flex-sm-row"],[1,"me-4","col-12","col-sm-auto","ps-0","pe-0"],["formControlName","authType"],[3,"value",4,"ngFor","ngForOf"],["class","field-responsive input-stretch",4,"ngIf"],[3,"value"],["formControlName","token","matInput",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),k(1,Ist,9,6,"div",1)),i&2&&(f("show",r.isLoading),m(),f("ngIf",r.integrationForm))},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,Ze,Wt,bt,jt,Si,Mi,li,Fr,Li,Mve]})}}return t})();var Zb="/api/integrations",pI=(()=>{class t{constructor(e,i,r,o){this.http=e,this.messageService=i,this.dialogService=r,this.transloco=o}getRegistry(){return this.http.get(`${Zb}/registry`)}getIssuers(){return this.http.get(`${Zb}/issuers`)}createIssuer(e){return this.http.post(`${Zb}/issuers`,e)}generateRegistryKey(){return this.http.post(`${Zb}/registry/keys`,null)}generateKey(e){return this.http.post(`${Zb}/${e}/keys`,null)}updateRegistry(e){return this.http.put(`${Zb}/registry`,e)}update(e,i){return this.http.put(`${Zb}/`+e,i)}delete(e){return this.http.delete(`${Zb}/`+e)}onKeyCreated(e){this.messageService.showSuccess(this.transloco.translate("components.application-key-create.app-key-created-successfully")),setTimeout(()=>this.dialogService.showValue(e.key,{title:this.transloco.translate("components.application-key-create.key-created"),message:this.transloco.translate("components.application-key-create.copy-key-and-store"),footer:this.transloco.translate("components.application-key-create.you-wont-view-value-again"),disableClose:!0}),1e3)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(Bi),ae(Qi),ae(ur))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Rve=(()=>{class t{transform(e){switch(e){case l_.Default:return"Padr\xE3o";case l_.Lyceum:return"Lyceum";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"integrationAplicationsType",type:t,pure:!0})}}return t})();var Tst=t=>({"flex-wrap":t});function Ast(t,n){if(t&1&&(d(0,"spa-prop",10),h(1),c()),t&2){let e=S(2);m(),U(e.integration.externalName)}}function kst(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S(2);return Y(r.generateKey())}),d(1,"mat-icon",9),h(2,"vpn_key"),c(),h(3," Gerar chave de API"),c()}}function Mst(t,n){if(t&1){let e=ie();d(0,"div"),k(1,Ast,2,1,"spa-prop",3),d(2,"spa-prop",4),h(3),ce(4,"integrationAplicationsType"),c(),d(5,"spa-prop",5),h(6),c(),d(7,"div")(8,"button",6),$("click",function(){W(e);let r=S();return Y(r.startEdit())}),h(9,"Editar"),c(),k(10,kst,4,0,"button",7),d(11,"button",8),$("click",function(){W(e);let r=S();return Y(r.delete())}),d(12,"mat-icon",9),h(13,"delete"),c(),h(14," Excluir"),c()()()}if(t&2){let e=S();m(),f("ngIf",e.isRegistry&&e.integration.externalName),m(2),U(xe(4,4,e.integration.applicationType)),m(3),U(e.integration.url),m(4),f("ngIf",!e.isRegistry)}}function Fst(t,n){if(t&1&&(d(0,"mat-option",28),h(1),ce(2,"integrationAplicationsType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function Rst(t,n){if(t&1){let e=ie();d(0,"mat-form-field",25)(1,"mat-label"),h(2,"Tipo de integra\xE7\xE3o"),c(),d(3,"mat-select",26),$("selectionChange",function(r){W(e);let o=S(2);return Y(o.onSelectApplicationType(r.value))}),k(4,Fst,3,4,"mat-option",27),c(),d(5,"mat-error"),h(6),c()()}if(t&2){let e=S(2);m(4),f("ngForOf",e.integrationApplicationOptions),m(2),U(e.Error.get(e.integrationForm,"applicationType"))}}function Pst(t,n){if(t&1&&(d(0,"mat-form-field",15)(1,"mat-label"),h(2,"Nome da institui\xE7\xE3o de ensino"),c(),H(3,"input",29),d(4,"mat-error"),h(5),c()()),t&2){let e=S(2);m(5),U(e.Error.get(e.integrationForm,"externalName"))}}function Nst(t,n){t&1&&(d(0,"p")(1,"strong"),h(2,"O token deve ser do tipo X-Api-Key."),c()())}function Ost(t,n){t&1&&(d(0,"p")(1,"strong"),h(2,"O token deve ser do tipo Basic e j\xE1 estar no formato Base64."),c()())}function Lst(t,n){if(t&1&&(d(0,"div"),k(1,Nst,3,0,"p",1)(2,Ost,3,0,"p",1),c()),t&2){let e=S(2);m(),f("ngIf",e.integrationForm.value.applicationType==e.ApplicationTypes.Default),m(),f("ngIf",e.integrationForm.value.applicationType==e.ApplicationTypes.Lyceum)}}function Vst(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S(2);return Y(r.cancel())}),h(1,"Cancelar"),c()}}function Bst(t,n){if(t&1){let e=ie();d(0,"button",8),$("click",function(){W(e);let r=S(2);return Y(r.discard())}),d(1,"mat-icon",9),h(2,"close"),c(),h(3,"Descartar"),c()}}function jst(t,n){if(t&1){let e=ie();d(0,"form",12)(1,"div",13)(2,"div",14)(3,"mat-form-field",15)(4,"mat-label"),h(5,"URL"),c(),H(6,"input",16),d(7,"mat-error"),h(8),c()()(),d(9,"div",17)(10,"div",18),k(11,Rst,7,2,"mat-form-field",19)(12,Pst,6,1,"mat-form-field",20),c(),d(13,"mat-form-field",15)(14,"mat-label"),h(15,"Token de autentica\xE7\xE3o"),c(),H(16,"input",21),d(17,"mat-error"),h(18),c()()(),k(19,Lst,3,2,"div",1),c(),d(20,"div",22)(21,"button",23),$("click",function(){W(e);let r=S();return Y(r.save())}),h(22,"Salvar"),c(),k(23,Vst,2,0,"button",7)(24,Bst,4,0,"button",24),c()()}if(t&2){let e=S();f("formGroup",e.integrationForm),m(8),U(e.Error.get(e.integrationForm,"url")),m(),f("ngClass",Le(11,Tst,e.isNonDefaultApplicationType)),m(),f("ngClass",e.isNonDefaultApplicationType?"col-12":"col-auto"),m(),f("ngIf",!e.isRegistry),m(),f("ngIf",e.isNonDefaultApplicationType),m(6),U(e.Error.get(e.integrationForm,"token")),m(),f("ngIf",!e.isRegistry),m(2),f("disabled",e.integrationForm.pristine||e.integrationForm.invalid),m(2),f("ngIf",e.integration),m(),f("ngIf",!e.integration&&!e.isRegistry)}}var OB=(()=>{class t{get isNonDefaultApplicationType(){return this.integrationForm.value.applicationType&&this.integrationForm.value.applicationType!=l_.Default}constructor(e,i,r,o,a){this.Error=e,this.dialogService=i,this.messageService=r,this.integrationService=o,this.fb=a,this.integrationApplicationOptions=Object.keys(l_),this.ApplicationTypes=l_,this.onUpdate=new Ae,this.onDelete=new Ae}ngOnInit(){this.integration||this.startEdit()}startEdit(){let e={url:this.integration?.url,applicationType:this.integration?.applicationType,externalName:this.integration?.externalName,token:this.integration?.token};this.integrationForm=this.fb.group(e),this.integrationForm.controls.url.setValidators([Se.required]),this.integrationForm.controls.token.setValidators([Se.required]),this.integrationForm.controls.externalName.setValidators([Se.required]),this.isRegistry||this.integrationForm.controls.applicationType.setValidators([Se.required]),this.onSelectApplicationType(e.applicationType),this.edit=!0}cancel(){this.integrationForm=null,this.edit=!1}save(){this.integrationForm.valid&&(this.integration?this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Tem certeza de que deseja sobrescrever as configura\xE7\xF5es de integra\xE7\xE3o?",confirmButtonText:"Sobrescrever",cancelButtonText:"Cancelar"}).then(e=>{e&&this.sendSaveIntegrationRequest()}):this.sendSaveIntegrationRequest())}delete(){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Tem certeza de que deseja excluir esta integra\xE7\xE3o?",confirmButtonText:"Excluir",cancelButtonText:"Cancelar"}).then(e=>{e&&(this.isLoading=!0,this.integrationService.delete(this.integration.id).subscribe(i=>{this.messageService.showSuccess("Integra\xE7\xE3o exclu\xEDda com sucesso"),this.isLoading=!1,this.onDelete.emit()},i=>this.isLoading=!1))})}discard(){this.onDelete.emit()}onSelectApplicationType(e){e&&e!=l_.Default?this.integrationForm.get("externalName").enable():this.integrationForm.get("externalName").disable(),this.integrationForm.updateValueAndValidity()}sendSaveIntegrationRequest(){let e=Object.assign({},this.integrationForm.value);this.isLoading=!0;let i;this.isRegistry?i=this.integrationService.updateRegistry(e):this.integration?i=this.integrationService.update(this.integration.id,e):i=this.integrationService.createIssuer(e),i.subscribe(r=>{this.integration=r,this.integrationForm.markAsPristine(),this.messageService.showSuccess("Integra\xE7\xE3o atualizada com sucesso"),this.isLoading=!1,this.onUpdate.emit(this.integration),this.edit=!1},r=>this.isLoading=!1)}generateKey(){this.isLoading=!0,this.integrationService.generateKey(this.integration.id).subscribe(e=>{this.integrationService.onKeyCreated(e),this.isLoading=!1},e=>this.isLoading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Qi),E(Bi),E(pI),E(Ti))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-integration-form"]],inputs:{integration:"integration",isRegistry:"isRegistry"},outputs:{onUpdate:"onUpdate",onDelete:"onDelete"},decls:4,vars:3,consts:[[3,"show"],[4,"ngIf"],[3,"formGroup",4,"ngIf"],["label","Nome",4,"ngIf"],["label","Tipo de integra\xE7\xE3o"],["label","URL"],["mat-raised-button","","color","primary","type","button",3,"click"],["mat-button","","color","primary","type","button",3,"click",4,"ngIf"],["mat-button","","color","warn","type","button",3,"click"],[1,"me-1"],["label","Nome"],["mat-button","","color","primary","type","button",3,"click"],[3,"formGroup"],[1,"col-8"],[1,"d-flex"],[1,"field-responsive","input-stretch"],["matInput","","formControlName","url","placeholder","https://example.com"],[1,"d-flex","mt-2","flex-column","flex-sm-row",3,"ngClass"],[1,"row","d-flex","flex-nowrap",3,"ngClass"],["class","me-4 col-12 col-sm-auto ps-0 pe-0",4,"ngIf"],["class","field-responsive input-stretch",4,"ngIf"],["formControlName","token","matInput",""],[1,"mt-3"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-button","","color","warn","type","button",3,"click",4,"ngIf"],[1,"me-4","col-12","col-sm-auto","ps-0","pe-0"],["formControlName","applicationType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","","formControlName","externalName"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),d(1,"div"),k(2,Mst,15,6,"div",1)(3,jst,25,13,"form",2),c()),i&2&&(f("show",r.isLoading),m(2),f("ngIf",!r.edit&&r.integration),m(),f("ngIf",r.edit))},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,dt,Tt,He,Ze,Wt,bt,jt,Si,Mi,li,wn,Li,Rve]})}}return t})();function Hst(t,n){if(t&1){let e=ie();d(0,"div")(1,"p"),h(2,"Com esta integra\xE7\xE3o voc\xEA pode conectar uma outra inst\xE2ncia para realizar os registros desta organiza\xE7\xE3o."),c(),d(3,"mat-horizontal-stepper")(4,"mat-step",4)(5,"p"),h(6,"O primeiro passo \xE9 gerar uma chave de API e envi\xE1-la \xE0 registradora:"),c(),d(7,"div",5)(8,"button",6),$("click",function(){W(e);let r=S();return Y(r.generateKey())}),d(9,"mat-icon",7),h(10,"vpn_key"),c(),h(11," Gerar chave de api"),c()(),d(12,"button",8),h(13,"J\xE1 enviei para registradora"),c()(),d(14,"mat-step",9)(15,"p"),h(16,"Insira abaixo os dados de integra\xE7\xE3o fornecidos pela registradora:"),c(),d(17,"app-integration-form",10),$("onUpdate",function(r){W(e);let o=S();return Y(o.update(r))}),c()()()()}t&2&&(m(17),f("isRegistry",!0))}function zst(t,n){if(t&1){let e=ie();he(0),d(1,"app-integration-form",11),$("onDelete",function(){W(e);let r=S();return Y(r.remove())}),c(),fe()}if(t&2){let e=S();m(),f("integration",e.registry)("isRegistry",!0)}}var Nve=(()=>{class t{constructor(e){this.integrationService=e,this.isLoading=!0}ngOnInit(){this.integrationService.getRegistry().subscribe(e=>{this.registry=e,this.isLoading=!1},e=>this.isLoading=!1)}generateKey(){this.isLoading=!0,this.integrationService.generateRegistryKey().subscribe(e=>{this.isLoading=!1,this.integrationService.onKeyCreated(e)},e=>this.isLoading=!1)}update(e){this.registry=e}remove(){this.registry=null}static{this.\u0275fac=function(i){return new(i||t)(E(pI))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registry-integration"]],decls:6,vars:3,consts:[[1,"box-light"],[3,"show"],[1,"mt-3"],[4,"ngIf"],["label","Gera\xE7\xE3o da chave de API"],[1,"d-flex","justify-content-center"],["mat-button","","type","button",3,"click"],[1,"me-1"],["mat-raised-button","","color","primary","matStepperNext",""],["label","Configura\xE7\xE3o da registradora"],[3,"onUpdate","isRegistry"],[3,"onDelete","integration","isRegistry"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"h2",2),h(3,"Integra\xE7\xE3o para registro"),c(),k(4,Hst,18,1,"div",3)(5,zst,2,2,"ng-container",3),c()),i&2&&(m(),f("show",r.isLoading),m(3),f("ngIf",!r.registry||!r.registry.url),m(),f("ngIf",r.registry&&r.registry.url))},dependencies:[Ee,He,Ze,li,tp,tm,K_e,OB]})}}return t})();function Gst(t,n){if(t&1){let e=ie();d(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h3",8),h(4),c()()(),d(5,"app-integration-form",9),$("onDelete",function(){let r=W(e).index,o=S();return Y(o.remove(r))}),c()()}if(t&2){let e=n.$implicit;f("expanded",e.opened),m(4),U(e.externalName),m(),f("integration",e)}}function $st(t,n){if(t&1){let e=ie();d(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h3",8),h(4),c()()(),d(5,"app-integration-form",11),$("onUpdate",function(r){let o=W(e).$implicit,a=S();return Y(a.onCreated(r,o))})("onDelete",function(){let r=W(e).index,o=S();return Y(o.removeAdded(r))}),c()()}if(t&2){let e=n.$implicit,i=n.index,r=S();m(4),ue("Emissora ",r.issuers.length+i+1,""),m(),f("integration",e.issuer)}}var Ove=(()=>{class t{constructor(e){this.integrationService=e,this.isLoading=!0,this.addedIssuers=[]}ngOnInit(){this.integrationService.getIssuers().subscribe(e=>{this.issuers=e,this.isLoading=!1},e=>this.isLoading=!1)}add(){this.addedIssuers.push({issuer:null})}onCreated(e,i){this.addedIssuers.splice(i,1),e.opened=!0,this.issuers.push(e)}remove(e){this.issuers.splice(e,1)}removeAdded(e){this.addedIssuers.splice(e,1)}static{this.\u0275fac=function(i){return new(i||t)(E(pI))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-issuer-integration"]],decls:14,vars:3,consts:[[3,"show"],[1,"box-light"],[1,"mt-3"],["mat-raised-button","","color","primary","type","button",3,"click"],[1,"me-1"],["class","mt-3",3,"expanded",4,"ngFor","ngForOf"],["expanded","true","class","mt-3",4,"ngFor","ngForOf"],[1,"mt-3",3,"expanded"],[1,"mb-0"],[3,"onDelete","integration"],["expanded","true",1,"mt-3"],[3,"onUpdate","onDelete","integration"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),d(1,"div",1)(2,"h2",2),h(3,"Integra\xE7\xE3o com emissoras"),c(),d(4,"p"),h(5,"Com esta integra\xE7\xE3o voc\xEA pode conectar emissoras de outras inst\xE2ncias."),c(),d(6,"button",3),$("click",function(){return r.add()}),d(7,"mat-icon",4),h(8,"add"),c(),h(9," Adicionar emissora"),c()(),d(10,"div")(11,"mat-accordion"),k(12,Gst,6,3,"mat-expansion-panel",5)(13,$st,6,2,"mat-expansion-panel",6),c()()),i&2&&(f("show",r.isLoading),m(12),f("ngForOf",r.issuers),m(),f("ngForOf",r.addedIssuers))},dependencies:[Vt,He,Ze,PL,F1,R1,cw,li,OB]})}}return t})();var Jb=gc(yp());var rr=(()=>{class t{static arrayMin(e){return i=>{var r=i;return!r||!r.controls||r.controls.length>=e?null:{arrayMin:!0}}}static requiredBooleanValueEqual(e){return i=>i.value!=e?{required:!0}:null}static requiredSignaturesCount(e){return i=>i.value<1?{signaturesMin:!0}:i.value>e.length?{signaturesMax:!0}:null}static requiredTemplateSelect(){return e=>e.value?.id==null?{required:!0}:null}static stringDateValidator(e="1900-01-01",i=c_.FullDate){return r=>{let o=r.value?r.value.replace(/\/+/g,""):null;if(!o)return null;if(i==c_.FullDate&&o.length==8){let a=(0,Jb.default)(r.value,"DD/MM/YYYY");if(!a.isValid()||a>(0,Jb.default)())return{stringDateValidator:{valid:!1}};let s=(0,Jb.default)(e,"YYYY-MM-DD");if(as.month()&&a.year()>=s.year())return{stringDateValidator:{valid:!1}}}if(i==c_.Year&&o.length==4){let a=(0,Jb.default)(r.value,"YYYY");if(!a.isValid()||a.year()>(0,Jb.default)().year())return{stringDateValidator:{valid:!1}}}return null}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})();var gM=gc(yp());function Wst(t,n){if(t&1&&H(0,"ngx-loading",5),t&2){let e=S();f("show",e.isLoading)}}function Yst(t,n){if(t&1&&(d(0,"div",6),dn(1,2),c()),t&2){let e=S();In(e.actionsClass),m(),f("ngTemplateOutlet",e.actionsTemplate)}}var Uo=(()=>{class t{constructor(){this.bodyClasses=null,this.isLoading=null,this.alignmentAction=fM.Center,this.onCloseButtonClick=new Ae,this.actionsClass=""}ngOnInit(){switch(this.alignmentAction){case fM.Start:this.actionsClass="justify-content-start";break;case fM.Center:this.actionsClass="justify-content-center";break;case fM.End:this.actionsClass="justify-content-end";break;default:break}}close(){this.onCloseButtonClick.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-template"]],inputs:{titleTemplate:"titleTemplate",contentTemplate:"contentTemplate",actionsTemplate:"actionsTemplate",bodyClasses:"bodyClasses",isLoading:"isLoading",alignmentAction:"alignmentAction",disableActions:"disableActions",disableCloseButton:"disableCloseButton"},outputs:{onCloseButtonClick:"onCloseButtonClick"},decls:7,vars:7,consts:[[3,"show",4,"ngIf"],[3,"closeClicked","disableClose"],[3,"ngTemplateOutlet"],["mat-dialog-content",""],["mat-dialog-actions","",3,"class",4,"ngIf"],[3,"show"],["mat-dialog-actions",""]],template:function(i,r){i&1&&(d(0,"div"),k(1,Wst,1,1,"ngx-loading",0),d(2,"spa-dialog-title",1),$("closeClicked",function(){return r.close()}),dn(3,2),c(),d(4,"div",3),dn(5,2),c(),k(6,Yst,2,3,"div",4),c()),i&2&&(In(r.bodyClasses),m(),f("ngIf",r.isLoading),m(),f("disableClose",r.disableCloseButton),m(),f("ngTemplateOutlet",r.titleTemplate),m(2),f("ngTemplateOutlet",r.contentTemplate),m(),f("ngIf",r.actionsTemplate&&!r.disableActions))},dependencies:[Ee,ta,Pm,Ac,li,ru],styles:["[_nghost-%COMP%]{min-height:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%] [mat-dialog-title][_ngcontent-%COMP%], [_nghost-%COMP%] [mat-dialog-actions][_ngcontent-%COMP%]{flex-shrink:0}"]})}}return t})(),fM=function(t){return t.Start="start",t.Center="center",t.End="end",t}(fM||{});function Kst(t,n){t&1&&(d(0,"h2"),h(1,"Preenchimento salvo automaticamente"),c())}function Xst(t,n){t&1&&(d(0,"p"),h(1,"Voc\xEA possui um preenchimento em andamento salvo automaticamente. Deseja mant\xEA-lo salvo para continuar o preenchimento posteriormente?"),c())}function Qst(t,n){if(t&1){let e=ie();d(0,"button",4),$("click",function(){W(e);let r=S();return Y(r.close())}),h(1," Salvar "),c(),d(2,"button",5),$("click",function(){W(e);let r=S();return Y(r.close(!0))}),h(3," Descartar "),c(),d(4,"button",6),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5," Cancelar "),c()}}var Lve=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.localStorageName=e.localStorageName}ngOnInit(){}close(e=!1){if(e){this.dialogRef.close(!1);return}this.dialogRef.close(!0)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-confirm-form-discard"]],decls:7,vars:3,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],["alignmentAction","end",3,"titleTemplate","contentTemplate","actionsTemplate"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","warn",3,"click"],["type","button","mat-button","","color","primary",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,Kst,2,0,"ng-template",null,0,Ii)(3,Xst,2,0,"ng-template",null,1,Ii)(5,Qst,6,0,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)}},dependencies:[Ze,Uo]})}}return t})();var LB=2500,Gn=(()=>{class t{static{this.CompanyInternshipGrantorFieldsName=["razaoSocial","nomeFantasia","cnpj"]}static{this.IndividualInternshipGrantorFieldsName=["nome","cpf"]}constructor(e,i,r,o,a,s){this.fb=e,this.configService=i,this.regulatoryActPipe=r,this.datePipe=o,this.dialog=a,this.dialogService=s,this.regexPatterns={numeroPositivo:/^[1-9][0-9]*$/,numeroPositivo2Casas:/^[0-9]+([.][0-9]{1,2})?$/,hora:/^(([0-1][0-9])|([2][0-3])):([0-5][0-9]):([0-5][0-9])$/,codigoUnidadeCurricular:/^[\w\d\-\.]{1,}$/,lattes:/^http:\/\/lattes\.cnpq\.br\/\d+$/,numeroProcessoJudicial:/^\d{7}\-\d{2}\.\d{4}\.\d\.\d{2}\.\d{4}$/,numeroAto:/^(S\/N)$|^((\d)[-\d\w_/]*)$/}}getRegulatoryActDescription(e){if(e){let i;if(e.informacoesTramitacaoEmec==null)i=`${this.regulatoryActPipe.transform(e.tipo)} n\xBA ${e.numero} de ${this.datePipe.transform(e.data,"dd/MM/yyyy")}`,e.veiculoPublicacao&&(i+=` e publicada no ${e.veiculoPublicacao}`),e.secaoPublicacao&&(i+=`, na se\xE7\xE3o ${e.secaoPublicacao}`),e.paginaPublicacao&&(i+=`, na p\xE1g. ${e.paginaPublicacao}`),e.dataPublicacao&&(i+=`, em ${this.datePipe.transform(e.dataPublicacao,"dd/MM/yyyy")}`);else{let r=e.informacoesTramitacaoEmec;i=`${r.tipoProcesso} n\xBA ${r.numeroProcesso} cadastrado em ${this.datePipe.transform(r.dataCadastro,"dd/MM/yyyy")} e protocolado em ${this.datePipe.transform(r.dataProtocolo,"dd/MM/yyyy")}`}return i}}showConfirmFormDiscard(e){return this.dialog.open(Lve,{width:"720px",disableClose:!0,data:{localStorageName:e}}).afterClosed().toPromise()}showUseFillAutomaticallySaved(){return this.dialogService.confirm({title:"Preenchimento salvo automaticamente",message:"Existem informa\xE7\xF5es de preenchimento de diploma que foram salvas automaticamente. Deseja utilizar estas informa\xE7\xF5es? Caso n\xE3o utilize, estas informa\xE7\xF5es ser\xE3o descartadas.",confirmButtonText:"Utilizar informa\xE7\xF5es",cancelButtonText:"Descartar informa\xE7\xF5es",confirmButtonColor:"primary",disableClose:!0})}removeSavedForm(e){localStorage.removeItem(e)}getIfEnabled(e){return e.enabled?e.value:null}getDegreeFullInformationModel(e,i,r){return{degreeType:i,diploma:{dadosDiploma:this.getDadosDiplomaModel(e.get("diploma.dadosDiploma"),i),dadosRegistro:this.getDadosRegistroModel(e.get("diploma.dadosRegistro"))},documentacaoAcademica:{registro:this.getRegistrationInformationModel(e.get("documentacaoAcademica"),i,r)}}}getEmissionRequestModel(e,i,r){return{degreeType:i,dadosDiploma:this.getDadosDiplomaModel(e.get("dadosDiploma"),i),documentacaoAcademica:{registro:this.getRegistrationInformationModel(e.get("documentacaoAcademica"),i,r)}}}getDadosDiplomaModel(e,i){let r={diplomado:this.getDadosDiplomadoModel(e.get("diplomado")),dadosCurso:this.getDadosCursoModel(e.get("dadosCurso"),i),dataConclusao:this.getDateModel(e.get("dataConclusao").value),iesEmissora:this.getDadosIesEmissora(e.get("iesEmissora"))};return e.get("hasAssinantes").value&&(r.assinantes=this.getAssinanteArrayModel(e.get("assinantes"))),e.get("hasDadosIesOriginalCursoPTA").value&&(r.dadosIesOriginalCursoPTA=this.getOriginalIesDataModel(e.get("dadosIesOriginalCursoPTA"))),i==br.JudicialDecision&&e.get("hasDeclaracoesAcercaProcesso").value&&(r.declaracoesAcercaProcesso=e.get("declaracoesAcercaProcesso").value),r}getDadosRegistroModel(e){let i={livroRegistro:this.getLivroRegistro(e.get("livroRegistro")),iesRegistradora:this.getDadosIesRegistradoraModel(e.get("iesRegistradora")),informacoesAdicionais:e.get("informacoesAdicionais").value};return e.get("hasAssinantes").value&&(i.assinantes=this.getAssinanteArrayModel(e.get("assinantes"))),i}getRegistrationInformationModel(e,i,r){let o={isSegundaVia:r,dadosPrivadosDiplomado:this.getDadosPrivadosDiplomadoModel(e.get("dadosPrivadosDiplomado"),i)};return e.get("hasTermoResponsabilidade").value&&(o.termoResponsabilidade=this.getTermoResponsabilidadeModel(e.get("termoResponsabilidade"))),e.get("hasDocumentacaoComprobatoria").value&&(o.documentacaoComprobatoria=this.getDocumentacoesComprobatoria(e.get("documentacaoComprobatoria"))),o}getDadosPrivadosDiplomadoModel(e,i){let r={};return e.get("hasFiliacao").value&&(r.filiacao=this.getFiliacoes(e.get("filiacao"))),e.get("hasHistorico").value&&(r.historico=this.getHistoricoEscolarModel(e.get("historico")),r.historico!=null&&(r.historico.elementosHistorico=this.getElementosHistorico(e.get("elementosHistorico")))),i==br.JudicialDecision&&(r.informacoesProcessoJudicial=this.getInformacoesProcessoJudicialModel(e.get("informacoesProcessoJudicial"))),r}getElementosHistorico(e){let i=[];for(let r of e.controls){let o={tipo:r.get("tipo").value};switch(o.tipo){case vo.AtividadeComplementar:o.atividadeComplementar=this.getAtividadeComplementarModel(r.get("atividadeComplementar"));break;case vo.Disciplina:o.disciplina=this.getDisciplinaModel(r.get("disciplina"));break;case vo.Estagio:o.estagio=this.getEstagioModel(r.get("estagio"));break;case vo.SituacaoDiscente:o.situacaoDiscente=this.getSituacaoDiscenteModel(r.get("situacaoDiscente"));break;default:break}i.push(o)}return i}getAtividadeComplementarModel(e){return e==null?null:{codigo:e.get("codigo").value,tipo:e.get("tipo").value,descricao:e.get("descricao").value,dataInicio:this.getDateModel(e.get("dataInicio").value),dataFim:this.getDateModel(e.get("dataFim").value),dataRegistro:this.getDateModel(e.get("dataRegistro").value),cargaHorariaEmHoraRelogioComEtiqueta:this.getHorasRelogio(e.get("cargaHorariaEmHoraRelogioComEtiqueta")),docentes:this.getDocentes(e.get("docentes"))}}getDisciplinaModel(e){if(e==null)return null;let i={codigoDisciplina:e.get("codigoDisciplina").value,tipoAvaliacao:e.get("tipoAvaliacao").value,disciplina:e.get("disciplina").value,periodo:e.get("periodo").value,cargaHorariaComEtiqueta:this.getCargasHorariaComEtiqueta(e.get("cargaHorariaComEtiqueta")),situacao:e.get("situacao").value};switch(i.tipoAvaliacao){case ls.Nota:i.nota=e.get("nota").value;break;case ls.NotaAteCem:i.notaAteCem=e.get("notaAteCem").value;break;case ls.Conceito:i.conceito=e.get("conceito").value;break;case ls.ConceitoRM:i.conceitoRM=e.get("conceitoRM").value;break;case ls.ConceitoEspecificoDoCurso:i.conceitoEspecificoDoCurso=e.get("conceitoEspecificoDoCurso").value;break;default:break}if(i.situacao==$x.Aprovado){i.aprovacao={};let r=e.get("aprovacao.formaIntegralizacao").value;r!=Wx.Outro?i.aprovacao.formaIntegralizacao=r:i.aprovacao.outraFormaIntegralizacao=e.get("aprovacao.outraFormaIntegralizacao").value}return e.get("hasDocentes").value&&(i.docentes=this.getDocentes(e.get("docentes"))),i}getEstagioModel(e){if(e==null)return null;let i={codigo:e.get("codigo").value,descricao:e.get("descricao").value,dataInicio:this.getDateModel(e.get("dataInicio").value),dataFim:this.getDateModel(e.get("dataFim").value),cargaHorariaEmHoraRelogioComEtiqueta:this.getHorasRelogio(e.get("cargaHorariaEmHoraRelogioComEtiqueta")),docentes:this.getDocentes(e.get("docentes"))};return e.get("hasConcedente").value&&(i.concedente={tipo:e.get("concedente.tipo").value,razaoSocial:e.get("concedente.razaoSocial").value,nomeFantasia:e.get("concedente.nomeFantasia").value,cnpj:e.get("concedente.cnpj").value,nome:e.get("concedente.nome").value,cpf:e.get("concedente.cpf").value}),i}getDocentes(e){return e==null||e.length<1?null:e.controls.map(i=>this.getDocenteModel(i))}getDocenteModel(e){return{nome:e.get("nome").value,titulacao:e.get("titulacao").value,lattes:e.get("lattes").value,cpf:e.get("cpf").value}}getHistoricoEscolarModel(e){if(e==null)return null;let i={codigoCurriculo:e.get("codigoCurriculo").value,nomeParaAreas:e.get("nomeParaAreas").value,areas:this.getAreas(e.get("areas")),cargaHorariaCurso:this.getCargaHoraria(e.get("cargaHorariaCurso"),!1),cargaHorariaCursoIntegralizadaV2:this.getCargaHoraria(e.get("cargaHorariaCursoIntegralizada"),!1),situacaoAtualDiscente:this.getSituacaoDiscenteModel(e.get("situacaoAtualDiscente"))},r=e.get("horaEmissaoHistorico").value;r!=null&&r.length>0&&(i.horaEmissaoHistorico=r);let o=e.get("dataEmissaoHistorico").value;return o!=null&&o.length>0&&(i.dataEmissaoHistorico=this.getDateModel(o)),e.get("hasIngresso").value&&(i.ingresso=this.getIngressoCursoModel(e.get("ingresso"))),e.get("hasParticipacoesEnade").value&&(i.participacoesEnade=this.getParticipacoesEnade(e.get("participacoesEnade"))),i}getIngressoCursoModel(e){let i={data:this.getDateModel(e.get("data").value),formasAcesso:e.get("formasAcesso").value},r=e.get("anoMesProcessoSeletivo").value;return r!=null&&r.length>0&&(i.anoMesProcessoSeletivo=(0,gM.default)(r,"MM/YYYY").format("YYYY-MM")),i}getParticipacoesEnade(e){if(e==null||e.length<1)return null;let i=[];for(let r of e.controls){let o={situacao:r.get("situacao").value},a=r.get("edicao").value,s=r.get("condicao").value;switch(o.situacao){case ip.Habilitado:case ip.Irregular:o.informacoes={edicao:a,condicao:s};break;case ip.NaoHabilitado:o.naoHabilitado={edicao:a,condicao:s};let l=r.get("motivo").value;l!=Lb.Outro?o.naoHabilitado.motivo=l:o.naoHabilitado.outroMotivo=r.get("outroMotivo").value;break;default:break}i.push(o)}return i}getSituacaoDiscenteModel(e){if(e==null)return null;let i={tipo:e.get("tipo").value,periodoLetivo:e.get("periodoLetivo").value};switch(i.tipo){case Ka.Formado:i.formado={dataColacaoGrau:this.getDateModel(e.get("formado.dataColacaoGrau").value),dataConclusaoCurso:this.getDateModel(e.get("formado.dataConclusaoCurso").value),dataExpedicaoDiploma:this.getDateModel(e.get("formado.dataExpedicaoDiploma").value)};break;case Ka.IntercambioNacional:case Ka.IntercambioInternacional:i.intercambio={pais:e.get("intercambio.pais").value,instituicao:e.get("intercambio.instituicao").value,nomeProgramaIntercambio:e.get("intercambio.nomeProgramaIntercambio").value};break;case Ka.OutraSituacao:i.outraSituacao=e.get("outraSituacao").value;break;default:break}return i}getCargasHorariaComEtiqueta(e){return e==null||e.length<1?null:e.controls.map(i=>this.getCargaHoraria(i,!0))}getCargaHoraria(e,i){return i?{tipo:e.get("tipo").value,horaAula:e.get("horaAula").value,horaRelogio:e.get("horaRelogio").value,etiqueta:e.get("etiqueta").value}:{tipo:e.get("tipo").value,horaAula:e.get("horaAula").value,horaRelogio:e.get("horaRelogio").value}}getHorasRelogio(e){return e==null||e.length<1?null:e.controls.map(i=>this.getHoraRelogio(i))}getHoraRelogio(e){return{horaRelogio:e.get("horaRelogio").value,horaReloetiquetagio:e.get("etiqueta").value}}getAreas(e){return e==null||e.length<1?null:e.controls.map(i=>({codigo:i.get("codigo").value,nome:i.get("nome").value}))}getFiliacoes(e){return e==null||e.length<1?null:e.controls.map(i=>({nome:i.get("nome").value,nomeSocial:i.get("nomeSocial").value,sexo:i.get("sexo").value}))}getInformacoesProcessoJudicialModel(e){return{numeroProcessoJudicial:e.get("numeroProcessoJudicial").value,nomeJuiz:e.get("nomeJuiz").value,decisao:e.get("decisao").value}}getTermoResponsabilidadeModel(e){return{nome:e.get("nome").value,cpf:e.get("cpf").value,cargo:e.get("cargo").value,atoDesignacaoFile:e.get("atoDesignacaoFile").value}}getDocumentacoesComprobatoria(e){return e==null||e.length<1?null:e.controls.map(i=>({tipo:i.get("tipo").value,observacoes:i.get("observacoes").value,file:{id:i.get("id").value,name:i.get("name").value,contentType:i.get("contentType").value,location:i.get("location").value}}))}getLivroRegistro(e){return{livroRegistro:e.get("livroRegistro").value,numeroRegistro:e.get("numeroRegistro").value,numeroFolhaDoDiploma:e.get("numeroFolhaDoDiploma").value,numeroSequenciaDoDiploma:e.get("numeroSequenciaDoDiploma").value,processoDoDiploma:e.get("processoDoDiploma").value,dataColacaoGrau:this.getDateModel(e.get("dataColacaoGrau").value),dataExpedicaoDiploma:this.getDateModel(e.get("dataExpedicaoDiploma").value),dataRegistroDiploma:this.getDateModel(e.get("dataRegistroDiploma").value),responsavelRegistro:{nome:e.get("responsavelRegistro.nome").value,cpf:e.get("responsavelRegistro.cpf").value,iDouNumeroMatricula:e.get("responsavelRegistro.iDouNumeroMatricula").value}}}getDadosIesEmissora(e){let i={nome:e.get("nome").value,codigoMEC:e.get("codigoMEC").value,cnpj:e.get("cnpj").value,endereco:this.getAddressModel(e.get("endereco")),credenciamento:this.getAtoRegulatorioModel(e.get("credenciamento"))};return e.get("hasMantenedora").value&&(i.mantenedora=this.getMantenedoraModel(e.get("mantenedora"))),e.get("hasRecredenciamento").value&&(i.recredenciamento=this.getAtoRegulatorioModel(e.get("recredenciamento"))),e.get("hasRenovacaoDeRecredenciamento").value&&(i.renovacaoDeRecredenciamento=this.getAtoRegulatorioModel(e.get("renovacaoDeRecredenciamento"))),i}getMantenedoraModel(e){return{razaoSocial:e.get("razaoSocial").value,cnpj:e.get("cnpj").value,endereco:this.getAddressModel(e.get("endereco"))}}getAssinanteArrayModel(e){let i=[];if(e?.controls?.length>0)for(let r of e.controls){let o={cpf:r.get("cpf").value},a=r.get("cargo").value;a!=Vb.Outro?o.cargo=a:o.outroCargo=r.get("outroCargo").value,i.push(o)}return i}getOriginalIesDataModel(e){let i={nome:e.get("nome").value,cnpj:e.get("cnpj").value,descredenciamento:this.getAtoRegulatorioBaseModel(e.get("descredenciamento"))},r=e.get("codigoMEC").value;return r!=null&&r.length>0&&(i.codigoMEC=r),e.get("hasEndereco").value&&(i.endereco=this.getAddressModel(e.get("endereco"))),i}getDadosCursoModel(e,i){let r={nomeCurso:e.get("nomeCurso").value,grauConferido:e.get("grauConferido").value,tituloConferido:this.getTituloConferido(e.get("tituloConferido"))},o=e.get("modalidade").value;switch(i==br.Default?r.modalidade=o:r.modalidadeNSF=o,e.get("codeAvailabilityType").value){case Fs.HasInformation:r.codigoCursoEMEC=e.get("codigoCursoEMEC").value;break;case Fs.InProgress:r.informacoesTramitacaoEmec=this.getInformacoesTramitacaoEmecModel(e.get("informacoesTramitacaoEmec"));break;case Fs.Unavailable:default:r.codigoCursoEMEC=null,r.informacoesTramitacaoEmec=null;break}let s=e.get("enfases");s?.length>0&&(r.enfases=s.value);let l=e.get("habilitacoes");return l?.length>0&&(r.habilitacoes=l.controls.map(u=>({nomeHabilitacao:u.get("nomeHabilitacao").value,dataHabilitacao:this.getDateModel(u.get("dataHabilitacao").value)}))),e.get("hasEndereco").value&&(r.enderecoCurso=this.getAddressModel(e.get("enderecoCurso"))),e.get("hasPolo").value&&(r.polo=this.getPoloModel(e.get("polo"))),e.get("hasAutorizacao").value&&(r.autorizacao=this.getAtoRegulatorioModel(e.get("autorizacao"))),e.get("hasReconhecimento").value&&(r.reconhecimento=this.getAtoRegulatorioModel(e.get("reconhecimento"))),e.get("hasRenovacaoReconhecimento").value&&(r.renovacaoReconhecimento=this.getAtoRegulatorioModel(e.get("renovacaoReconhecimento"))),r}getTituloConferido(e){return e.get("titulo").value==qx.Outro?{outroTitulo:e.get("outroTitulo").value}:{titulo:e.get("titulo").value}}getPoloModel(e){let i={nome:e.get("nome").value,endereco:this.getAddressModel(e.get("endereco"))};switch(e.get("codeAvailabilityType").value){case Fs.HasInformation:i.codigoEMEC=e.get("codigoEmec").value;break;case Fs.InProgress:i.informacoesTramitacaoEmec=this.getInformacoesTramitacaoEmecModel(e.get("informacoesTramitacaoEmec"));break;default:break}return i}getInformacoesTramitacaoEmecModel(e){return e==null?null:{numeroProcesso:e.get("numeroProcesso").value,tipoProcesso:e.get("tipoProcesso").value,dataCadastro:this.getDateModel(e.get("dataCadastro").value),dataProtocolo:this.getDateModel(e.get("dataProtocolo").value)}}getDadosDiplomadoModel(e){let i={id:this.getIfEnabled(e.get("id")),nome:e.get("nome").value,nomeSocial:e.get("nomeSocial").value,sexo:this.getIfEnabled(e.get("sexo")),nacionalidade:this.getIfEnabled(e.get("nacionalidade")),naturalidade:e.get("hasNaturalidade").value?this.getNaturalidadeModel(e.get("naturalidade")):null,cpf:e.get("cpf").value},r=this.getIfEnabled(e.get("dataNascimento"));if(r!=null&&(i.dataNascimento=this.getDateModel(r)),e.get("hasOtherIdDocument").value){let o=e.get("outroDocumentoIdentificacao");i.outroDocumentoIdentificacao={tipoDocumento:o.get("tipoDocumento").value,identificador:o.get("identificador").value}}else{let o=e.get("rg");i.rg={numero:o.get("numero").value,uf:o.get("uf").value,orgaoExpedidor:o.get("orgaoExpedidor").value}}return i}getDateModel(e){return e?(0,gM.default)(e,"DDMMYYYY").format("YYYY-MM-DD"):null}getNaturalidadeModel(e){return e.get("hasForeignCity").value?{nomeMunicipioEstrangeiro:e.get("nomeMunicipioEstrangeiro").value}:{codigoMunicipio:e.get("codigoMunicipio").value,nomeMunicipio:e.get("nomeMunicipio").value,uf:e.get("uf").value}}getAddressModel(e){let i=e.get("hasForeignCity").value,r={logradouro:e.get("logradouro").value,numero:e.get("numero").value,complemento:e.get("complemento").value,bairro:e.get("bairro").value,cep:e.get("cep").value};return i?r.nomeMunicipioEstrangeiro=e.get("nomeMunicipioEstrangeiro").value:(r.codigoMunicipio=e.get("codigoMunicipio").value,r.nomeMunicipio=e.get("nomeMunicipio").value,r.uf=e.get("uf").value),r}getAtoRegulatorioModel(e){let i,r=e.get("hasEmecProcessInformation").value;return r?i={hasEmecProcessInformation:r,informacoesTramitacaoEmec:{numeroProcesso:e.get("informacoesTramitacaoEmec.numeroProcesso").value,tipoProcesso:e.get("informacoesTramitacaoEmec.tipoProcesso").value,dataCadastro:this.getDateModel(e.get("informacoesTramitacaoEmec.dataCadastro").value),dataProtocolo:this.getDateModel(e.get("informacoesTramitacaoEmec.dataProtocolo").value)}}:(i=this.getAtoRegulatorioBaseModel(e.get("informacoesAtoRegulatorio")),i.tipo=e.get("informacoesAtoRegulatorio.tipo").value),i}getAtoRegulatorioBaseModel(e){return{tipo:e.get("tipo").value,numero:e.get("numero").value,data:this.getDateModel(e.get("data").value),veiculoPublicacao:e.get("veiculoPublicacao").value,dataPublicacao:this.getDateModel(e.get("dataPublicacao").value),secaoPublicacao:e.get("secaoPublicacao").value,paginaPublicacao:e.get("paginaPublicacao").value,numeroDOU:e.get("numeroDOU").value}}getDadosIesRegistradoraModel(e){let i={nome:e.get("nome").value,codigoMEC:e.get("codigoMEC").value,cnpj:e.get("cnpj").value,endereco:this.getAddressModel(e.get("endereco")),mantenedora:{razaoSocial:e.get("mantenedora.razaoSocial").value,cnpj:e.get("mantenedora.cnpj").value,endereco:this.getAddressModel(e.get("mantenedora.endereco"))},credenciamento:this.getAtoRegulatorioModel(e.get("credenciamento")),recredenciamento:null,renovacaoDeRecredenciamento:null,autorizacaoRegistro:null};return e.get("hasRecredenciamento").value&&(i.recredenciamento=this.getAtoRegulatorioModel(e.get("recredenciamento"))),e.get("hasRenovacaoDeRecredenciamento").value&&(i.renovacaoDeRecredenciamento=this.getAtoRegulatorioModel(e.get("renovacaoDeRecredenciamento"))),e.get("hasAutorizacaoRegistro").value&&(i.autorizacaoRegistro=this.getAtoRegulatorioBaseModel(e.get("autorizacaoRegistro"))),i}getDegreeFullForm(e,i,r){return this.fb.group({diploma:this.getDegreeForm(e,r?.diploma),documentacaoAcademica:this.getAcademicDocumentationForm(e,i,r?.documentacaoAcademica)})}getEmissionRequestForm(e,i,r){return this.fb.group({dadosDiploma:this.getDegreeDataForm(e,r?.dadosDiploma),documentacaoAcademica:this.getAcademicDocumentationForm(e,i,r?.documentacaoAcademica)})}getDegreeForm(e,i){return this.fb.group({dadosDiploma:this.getDegreeDataForm(e,i?.dadosDiploma),dadosRegistro:this.getRegistryDataForm(e,i?.dadosRegistro)})}getDegreeDataForm(e,i){let r=i?.assinantes?.map(a=>this.getSignerInfoForm(a))??[this.getSignerInfoForm()],o=this.fb.group({diplomado:this.getStudentDataForm(e,i?.diplomado),dadosCurso:this.getCourseDataForm(e,i?.dadosCurso),dataConclusao:[this.getDateString(i?.dataConclusao),[rr.stringDateValidator()]],hasAssinantes:[i?.assinantes?.length>0],assinantes:this.fb.array(r,rr.arrayMin(1)),iesEmissora:this.getIssuerIesDataForm(i?.iesEmissora),hasDadosIesOriginalCursoPTA:[i?.dadosIesOriginalCursoPTA!=null],dadosIesOriginalCursoPTA:this.getOriginalIesDataForm(i?.dadosIesOriginalCursoPTA)});return e==br.JudicialDecision&&(o.setControl("hasDeclaracoesAcercaProcesso",this.fb.control(i?.declaracoesAcercaProcesso!=null)),o.setControl("declaracoesAcercaProcesso",this.fb.array(i?.declaracoesAcercaProcesso??[],[rr.arrayMin(1)]))),o}getAcademicDocumentationForm(e,i,r){let o=r?.registro,a=o?.documentacaoComprobatoria?.map(s=>this.fb.group({tipo:s.tipo,observacoes:s.observacoes,id:s.file?.id,name:s.file?.name,contentType:s.file?.contentType,location:s.file?.location}));return this.fb.group({dadosPrivadosDiplomado:this.getStudentPrivateDataForm(e,i,o?.dadosPrivadosDiplomado),hasTermoResponsabilidade:[o?.termoResponsabilidade],termoResponsabilidade:this.getResponsibilityTermForm(o?.termoResponsabilidade),hasDocumentacaoComprobatoria:[o?.documentacaoComprobatoria?.length>0],documentacaoComprobatoria:this.fb.array(a??[],[rr.arrayMin(1)])})}getAcademicTranscriptForm(e,i){let r=i?.areas?.map(s=>this.getAreaWithNameForm(s))??[],o=i?.participacoesEnade?.map(s=>this.getEnadeParticipationForm(s))??[],a=this.fb.group({codigoCurriculo:[i?.codigoCurriculo,this.getStringValidators(!e)],nomeParaAreas:[i?.nomeParaAreas,this.getStringValidators(!1)],areas:this.fb.array(r),dataEmissaoHistorico:[this.getDateString(i?.dataEmissaoHistorico),[rr.stringDateValidator()]],horaEmissaoHistorico:[i?.horaEmissaoHistorico,this.getCustomPatternValidators(this.regexPatterns.hora,!1)],cargaHorariaCursoIntegralizada:this.getWorkloadForm(i?.cargaHorariaCursoIntegralizadaV2),cargaHorariaCurso:this.getWorkloadForm(i?.cargaHorariaCurso),situacaoAtualDiscente:this.getStudentStatusForm(i?.situacaoAtualDiscente),hasIngresso:[!e],ingresso:this.getAdmissionForm(i?.ingresso),hasParticipacoesEnade:[!e],participacoesEnade:this.fb.array(o)});return i!=null&&(a.get("hasIngresso").setValue(i?.ingresso!=null||!e),a.get("hasParticipacoesEnade").setValue(i?.participacoesEnade!=null||!e)),a}getFormGroup(e,i){return e.get(i)}getFiliationForm(e){return this.fb.group({nome:[e?.nome,this.getStringValidators()],nomeSocial:[e?.nomeSocial,this.getStringValidators(!1)],sexo:[e?.sexo,Se.required]})}getAcademicTranscriptElementForm(e,i){let r=this.fb.group({tipo:[e?.tipo]});switch(e?.tipo){case vo.AtividadeComplementar:let o=this.getComplementaryActivityForm(e?.atividadeComplementar);r.setControl("atividadeComplementar",o);break;case vo.Disciplina:let a=this.getDisciplineForm(i,e.disciplina);r.setControl("disciplina",a);break;case vo.Estagio:let s=this.getInternshipForm(e?.estagio);r.setControl("estagio",s);break;case vo.SituacaoDiscente:let l=this.getStudentStatusForm(e.situacaoDiscente,!0);r.setControl("situacaoDiscente",l);break;default:break}return r}getDisciplineForm(e,i){let r=i?.cargaHorariaComEtiqueta?.map(s=>this.getWorkloadForm(s,!0))??[this.getWorkloadForm(null,!0)],o=i?.docentes?.map(s=>this.getProfessorForm(s))??[this.getProfessorForm()],a=this.fb.group({tipoAvaliacao:[i?.tipoAvaliacao],codigoDisciplina:[i?.codigoDisciplina,this.getCustomPatternValidators(this.regexPatterns.codigoUnidadeCurricular,!e)],disciplina:[i?.disciplina,this.getStringValidators()],periodo:[i?.periodo,this.getStringValidators()],cargaHorariaComEtiqueta:this.fb.array(r,[Se.required,Se.minLength(1)]),nota:[i?.nota,this.getDecimalNumberValidators(0,10,!1)],notaAteCem:[i?.notaAteCem,this.getDecimalNumberValidators(0,100,!1)],conceito:[i?.conceito],conceitoRM:[i?.conceitoRM],conceitoEspecificoDoCurso:[i?.conceitoEspecificoDoCurso,this.getStringValidators(!1)],situacao:[i?.situacao],hasDocentes:[!e],docentes:this.fb.array(o,[Se.minLength(1)])});return i!=null&&e&&a.get("hasDocentes").setValue(i.docentes?.length>0||!e),i?.situacao==$x.Aprovado&&a.addControl("aprovacao",this.getApprovalForm(i?.aprovacao)),a}getApprovalForm(e){return this.fb.group({formaIntegralizacao:[e?.outraFormaIntegralizacao?.length>0?Wx.Outro:e?.formaIntegralizacao,[Se.required]],outraFormaIntegralizacao:[{value:e?.outraFormaIntegralizacao,disabled:e?.outraFormaIntegralizacao==null},this.getStringValidators()]})}convertClockHourToWorkload(e){return{tipo:Kp.HoraRelogio,horaRelogio:e?.horaRelogio,etiqueta:e?.etiqueta}}getComplementaryActivityForm(e){let i=e?.cargaHorariaEmHoraRelogioComEtiqueta?.map(o=>{let a=this.convertClockHourToWorkload(o);return this.getWorkloadForm(a,!0,!0)})??[this.getWorkloadForm(null,!0,!0)],r=e?.docentes?.map(o=>this.getProfessorForm(o))??[this.getProfessorForm()];return this.fb.group({codigo:[e?.codigo,this.getCustomPatternValidators(this.regexPatterns.codigoUnidadeCurricular,!1)],dataInicio:[this.getDateString(e?.dataInicio),[Se.required,rr.stringDateValidator()]],dataFim:[this.getDateString(e?.dataFim),[Se.required,rr.stringDateValidator()]],dataRegistro:[this.getDateString(e?.dataRegistro),[rr.stringDateValidator()]],tipo:[e?.tipo,this.getStringValidators()],descricao:[e?.descricao,this.getStringValidators(!1)],cargaHorariaEmHoraRelogioComEtiqueta:this.fb.array(i,[Se.required,Se.minLength(1)]),hasDocentes:[!0],docentes:this.fb.array(r,[Se.required,Se.minLength(1)])})}getInternshipForm(e){let i=e?.docentes?.map(a=>this.getProfessorForm(a))??[this.getProfessorForm()],r=e?.cargaHorariaEmHoraRelogioComEtiqueta?.map(a=>{let s=this.convertClockHourToWorkload(a);return this.getWorkloadForm(s,!0,!0)})??[this.getWorkloadForm(null,!0,!0)],o=this.getInternshipGrantorForm(e?.concedente);return this.fb.group({codigo:[e?.codigo,this.getCustomPatternValidators(this.regexPatterns.codigoUnidadeCurricular)],dataInicio:[this.getDateString(e?.dataInicio),[Se.required,rr.stringDateValidator()]],dataFim:[this.getDateString(e?.dataFim),[Se.required,rr.stringDateValidator()]],cargaHorariaEmHoraRelogioComEtiqueta:this.fb.array(r,[Se.required,Se.minLength(1)]),hasConcedente:[e!=null?e?.concedente!=null:null],concedente:o,descricao:[e?.descricao,this.getStringValidators(!1)],hasDocentes:[!0],docentes:this.fb.array(i,[Se.required,Se.minLength(1)])})}getStudentStatusForm(e,i=!1){let r=this.fb.group({periodoLetivo:[e?.periodoLetivo,this.getStringValidators(i)],tipo:[e?.tipo],intercambio:this.getExchangeForm(e?.intercambio),formado:this.getGraduatedForm(e?.formado),outraSituacao:[e?.outraSituacao,this.getStringValidators()]});return this.setStudentStatusFormConditions(r,e?.tipo),r}setStudentStatusFormConditions(e,i){switch(i){case Ka.OutraSituacao:e.get("outraSituacao").enable(),e.get("intercambio").disable(),e.get("formado").disable();break;case Ka.Formado:e.get("formado").enable(),e.get("outraSituacao").disable(),e.get("intercambio").disable();break;case Ka.IntercambioNacional:case Ka.IntercambioInternacional:e.get("intercambio").enable(),e.get("outraSituacao").disable(),e.get("formado").disable();break;default:e.get("outraSituacao").disable(),e.get("intercambio").disable(),e.get("formado").disable();break}}getEnadeParticipationForm(e){let i=null,r=null,o=null,a=null;switch(e?.situacao){case ip.Habilitado:case ip.Irregular:e?.informacoes!=null&&(i=e.informacoes.edicao,r=e.informacoes.condicao);break;case ip.NaoHabilitado:e?.naoHabilitado!=null&&(i=e.naoHabilitado.edicao,r=e.naoHabilitado.condicao,o=e.naoHabilitado.motivo,a=e.naoHabilitado.outroMotivo);break;default:break}return this.fb.group({situacao:[e?.situacao,[Se.required]],edicao:[i,[rr.stringDateValidator(null,c_.Year),Se.required]],condicao:[r,Se.required],motivo:[a?.length>0?Lb.Outro:o,Se.required],outroMotivo:[a,this.getStringValidators()]})}getWorkloadForm(e,i=!1,r=!1){let o=this.fb.group({tipo:[e?.tipo],horaAula:[{value:e?.horaAula,disabled:e?.tipo!=Kp.HoraAula},this.getPositiveNumberValidators()],horaRelogio:[{value:e?.horaRelogio,disabled:e?.tipo!=Kp.HoraRelogio},this.getDecimalNumberValidators()]});if(i&&o.setControl("etiqueta",this.fb.control(e?.etiqueta,this.getStringValidators(!1))),r){let a=o.get("tipo");a.setValue(Kp.HoraRelogio),a.disable(),o.get("horaAula").disable()}return o}getProfessorForm(e){return this.fb.group({nome:[e?.nome,this.getStringValidators()],titulacao:[e?.titulacao,[Se.required]],lattes:[e?.lattes,this.getCustomPatternValidators(this.regexPatterns.lattes,!1)],cpf:[e?.cpf,this.getCpfValidators(!1)]})}getAreaWithNameForm(e){return this.fb.group({codigo:[e?.codigo,this.getStringValidators()],nome:[e?.nome,this.getStringValidators()]})}getSignerInfoForm(e){return this.fb.group({cpf:[e?.cpf,this.getCpfValidators()],cargo:[e?.outroCargo==null?e?.cargo:Vb.Outro,this.getStringValidators()],outroCargo:[{value:e?.outroCargo,disabled:e?.outroCargo==null},this.getStringValidators()]})}getHabilitacaoForm(e){return this.fb.group({nomeHabilitacao:[e?.nomeHabilitacao,this.getStringValidators()],dataHabilitacao:[this.getDateString(e?.dataHabilitacao),[rr.stringDateValidator()]]})}getStringForm(e=!0){return this.fb.control(null,this.getStringValidators(e))}getResponsibilityTermForm(e){return this.fb.group({nome:[e?.nome,this.getStringValidators()],cpf:[e?.cpf,this.getCpfValidators()],cargo:[e?.cargo,this.getStringValidators()],atoDesignacaoFile:[e?.atoDesignacaoFile]})}getAdmissionForm(e){let i=e?.formasAcesso?.map(r=>this.fb.control(r,[Se.required]))??[this.fb.control(null,[Se.required])];return this.fb.group({data:[this.getDateString(e?.data),[Se.required,rr.stringDateValidator()]],formasAcesso:this.fb.array(i,[Se.required,Se.minLength(1)]),anoMesProcessoSeletivo:[e?.anoMesProcessoSeletivo!=null?(0,gM.default)(e.anoMesProcessoSeletivo,"YYYY-MM").format("MM/YYYY"):null,[rr.stringDateValidator(null,c_.MonthAndYear)]]})}getInternshipGrantorForm(e){let i=this.fb.group({nome:[e?.nome,this.getStringValidators()],cpf:[e?.cpf,this.getCpfValidators()],razaoSocial:[e?.razaoSocial,this.getStringValidators()],nomeFantasia:[e?.nomeFantasia,this.getStringValidators(!1)],cnpj:[e?.cnpj,this.getCnpjValidators()]});for(let r in i.controls)i.controls[r].disable();switch(i.addControl("tipo",this.fb.control(e?.tipo)),e?.tipo){case Yp.PessoaFisica:t.IndividualInternshipGrantorFieldsName.forEach(r=>i.get(r).enable());break;case Yp.PessoaJuridica:t.CompanyInternshipGrantorFieldsName.forEach(r=>i.get(r).enable());break;default:break}return i}getJudicialProcessForm(e){return this.fb.group({numeroProcessoJudicial:[e?.numeroProcessoJudicial,this.getCustomPatternValidators(this.regexPatterns.numeroProcessoJudicial)],nomeJuiz:[e?.nomeJuiz,this.getStringValidators()],decisao:[e?.decisao,this.getStringValidators(!1)]})}getRegistryBookForm(e=br.Default,i){let r=this.fb.group({nome:[i?.responsavelRegistro.nome,this.getStringValidators(!0,450)],cpf:[i?.responsavelRegistro.cpf,this.getCpfValidators()],iDouNumeroMatricula:[i?.responsavelRegistro.iDouNumeroMatricula,this.getIdValidators(!1,200)]}),o=this.fb.group({livroRegistro:[i?.livroRegistro,this.getIdValidators(e==br.Default)],numeroRegistro:[i?.numeroRegistro],numeroFolhaDoDiploma:[i?.numeroFolhaDoDiploma],numeroSequenciaDoDiploma:[i?.numeroSequenciaDoDiploma],processoDoDiploma:[i?.processoDoDiploma,this.getIdValidators(!1)],dataColacaoGrau:[this.getDateString(i?.dataColacaoGrau),[Se.required,rr.stringDateValidator()]],dataExpedicaoDiploma:[this.getDateString(i?.dataExpedicaoDiploma),[Se.required,rr.stringDateValidator(this.configService.config.clientConfig.versionStartDate)]],dataRegistroDiploma:[this.getDateString(i?.dataRegistroDiploma),[Se.required,rr.stringDateValidator()]],responsavelRegistro:r});return o.setValidators(this.registrationBookRequiredFields(e)),o}registrationBookRequiredFields(e){return i=>{let r=i.get("numeroRegistro"),o=i.get("numeroFolhaDoDiploma"),a=i.get("numeroSequenciaDoDiploma");return r.setValidators(this.getIdValidators(!1)),o.setValidators(this.getIdValidators(!r.value||e==br.Nsf&&a.value)),a.setValidators(this.getIdValidators(!r.value||e==br.Nsf&&o.value)),null}}getOriginalIesDataForm(e){return this.fb.group({nome:[e?.nome,this.getStringValidators()],codigoMEC:[e?.codigoMEC,[Se.min(0),Se.pattern("[0-9]+")]],cnpj:[e?.cnpj,this.getCnpjValidators(!1)],hasEndereco:[e?.endereco!=null],endereco:this.getAddressForm(e?.endereco),descredenciamento:this.getBaseRegulatoryActForm(e?.descredenciamento)})}getIssuerIesDataForm(e){let i=this.getIesDataForm(e);return i.setControl("hasMantenedora",this.fb.control(e?.mantenedora!=null)),i}getRegistryIesDataForm(e){let i=this.getIesDataForm(e);return i.setControl("hasAutorizacaoRegistro",this.fb.control(e?.autorizacaoRegistro!=null)),i.setControl("autorizacaoRegistro",this.getBaseRegulatoryActForm(e?.autorizacaoRegistro)),i.updateValueAndValidity(),i}getRegulatoryActForm(e){let i=e?.informacoesTramitacaoEmec,r=this.fb.group({hasEmecProcessInformation:[i!=null]}),o=this.getRegulatoryActInformationsForm(e),a=this.getEmecProcessInformationForm(i);return r.setControl("informacoesAtoRegulatorio",o),r.setControl("informacoesTramitacaoEmec",a),r}getRegulatoryActInformationsForm(e){return this.fb.group({tipo:[e?.tipo,[Se.required]],numero:[e?.numero,[Se.required,Se.pattern(this.regexPatterns.numeroAto)]],data:[this.getDateString(e?.data),[Se.required,rr.stringDateValidator()]],veiculoPublicacao:[e?.veiculoPublicacao],dataPublicacao:[this.getDateString(e?.dataPublicacao),[rr.stringDateValidator()]],secaoPublicacao:[e?.secaoPublicacao,[Se.min(0),Se.pattern(this.regexPatterns.numeroPositivo)]],paginaPublicacao:[e?.paginaPublicacao,[Se.min(0),Se.pattern(this.regexPatterns.numeroPositivo)]],numeroDOU:[e?.numeroDOU,[Se.min(0),Se.pattern(this.regexPatterns.numeroPositivo)]]})}getStudentPrivateDataForm(e,i,r){let o=e==br.JudicialDecision,a=o||i,s=r?.filiacao?.map(p=>this.getFiliationForm(p))??[this.getFiliationForm()],l=r?.historico?.elementosHistorico?.map(p=>this.getAcademicTranscriptElementForm(p,a))??[],u=this.fb.group({hasFiliacao:[!o],filiacao:this.fb.array(s,[rr.arrayMin(1)]),hasHistorico:[!a],historico:this.getAcademicTranscriptForm(a,r?.historico),elementosHistorico:this.fb.array(l,[Se.required,Se.minLength(1)])});return r!=null&&(u.get("hasFiliacao").setValue(r?.filiacao!=null||!a),u.get("hasHistorico").setValue(r?.historico!=null||!a),r?.informacoesProcessoJudicial!=null&&u.setControl("informacoesProcessoJudicial",this.getJudicialProcessForm(r?.informacoesProcessoJudicial))),u}getExchangeForm(e){return this.fb.group({pais:[e?.pais,this.getStringValidators(!1)],instituicao:[e?.instituicao,this.getStringValidators(!1)],nomeProgramaIntercambio:[e?.nomeProgramaIntercambio,this.getStringValidators(!1)]})}getGraduatedForm(e){return this.fb.group({dataConclusaoCurso:[this.getDateString(e?.dataConclusaoCurso),[rr.stringDateValidator(),Se.required]],dataColacaoGrau:[this.getDateString(e?.dataColacaoGrau),[rr.stringDateValidator(),Se.required]],dataExpedicaoDiploma:[this.getDateString(e?.dataExpedicaoDiploma),[rr.stringDateValidator(this.configService.config.clientConfig.versionStartDate),Se.required]]})}getRegistryDataForm(e,i){let r=i?.assinantes?.map(a=>this.getSignerInfoForm(a));return this.fb.group({iesRegistradora:this.getRegistryIesDataForm(i?.iesRegistradora),livroRegistro:this.getRegistryBookForm(e,i?.livroRegistro),informacoesAdicionais:[i?.informacoesAdicionais,this.getStringValidators(!1)],hasAssinantes:[i?.assinantes?.length>0],assinantes:this.fb.array(r??[this.getSignerInfoForm()],rr.arrayMin(1))})}getIesDataForm(e){let i=this.fb.group({nome:[e?.nome,[Se.required,Se.maxLength(255)]],codigoMEC:[e?.codigoMEC,[Se.required,Se.min(1)]],cnpj:[e?.cnpj,[Se.required,bg.cnpj]],endereco:this.getAddressForm(e?.endereco),mantenedora:this.getMaintainerDataForm(e?.mantenedora),credenciamento:this.getRegulatoryActForm(e?.credenciamento),hasRecredenciamento:[e?.recredenciamento!=null],recredenciamento:this.getRegulatoryActForm(e?.recredenciamento),hasRenovacaoDeRecredenciamento:[e?.renovacaoDeRecredenciamento!=null],renovacaoDeRecredenciamento:this.getRegulatoryActForm(e?.renovacaoDeRecredenciamento)});return i.get("endereco").setValidators([Se.required]),i.get("credenciamento").setValidators([Se.required]),i.get("mantenedora.endereco").setValidators([Se.required]),i}getBaseRegulatoryActForm(e){return this.fb.group({tipo:[e?.tipo,[Se.required]],numero:[e?.numero,[Se.required,Se.pattern(this.regexPatterns.numeroAto)]],data:[this.getDateString(e?.data),[Se.required,rr.stringDateValidator()]],veiculoPublicacao:[e?.veiculoPublicacao],dataPublicacao:[this.getDateString(e?.dataPublicacao),[rr.stringDateValidator()]],secaoPublicacao:[e?.secaoPublicacao,[Se.min(1),Se.pattern(this.regexPatterns.numeroPositivo)]],paginaPublicacao:[e?.paginaPublicacao,[Se.min(1),Se.pattern(this.regexPatterns.numeroPositivo)]],numeroDOU:[e?.numeroDOU,[Se.min(1),Se.pattern(this.regexPatterns.numeroPositivo)]]})}getMaintainerDataForm(e){return this.fb.group({razaoSocial:[e?.razaoSocial,this.getStringValidators()],cnpj:[e?.cnpj,this.getCnpjValidators()],endereco:this.getAddressForm(e?.endereco)})}getInformationAvailabilityTypeValue(e,i,r){return e?i!=null?Fs.HasInformation:r!=null?Fs.InProgress:Fs.Unavailable:null}getCourseDataForm(e,i){let r=this.getInformationAvailabilityTypeValue(i!=null,i?.codigoCursoEMEC,i?.informacoesTramitacaoEmec),o=i?.habilitacoes?.map(l=>this.getHabilitacaoForm(l)),a=e!=br.Default,s=this.fb.group({nomeCurso:[i?.nomeCurso,this.getStringValidators()],codeAvailabilityType:[r,[Se.required]],codigoCursoEMEC:[i?.codigoCursoEMEC,[Se.required,Se.min(0),Se.pattern("[0-9]+")]],informacoesTramitacaoEmec:this.getEmecProcessInformationForm(i?.informacoesTramitacaoEmec),habilitacoes:this.fb.array(o??[]),modalidade:[i?.modalidade??i?.modalidadeNSF],tituloConferido:this.getTitleConferredForm(i?.tituloConferido),grauConferido:[i?.grauConferido,this.getStringValidators()],enfases:this.fb.array(i?.enfases??[]),hasEndereco:[!0],enderecoCurso:this.getAddressForm(i?.enderecoCurso),hasPolo:[i?.polo!=null],polo:this.getPoloForm(i?.polo),hasAutorizacao:[!a,Se.required],autorizacao:this.getRegulatoryActForm(i?.autorizacao),hasReconhecimento:[!a,Se.required],reconhecimento:this.getRegulatoryActForm(i?.reconhecimento),hasRenovacaoReconhecimento:[i?.renovacaoReconhecimento!=null,Se.required],renovacaoReconhecimento:this.getRegulatoryActForm(i?.renovacaoReconhecimento)});return i!=null&&(s.get("hasEndereco").setValue(i.enderecoCurso||!a),s.get("hasAutorizacao").setValue(i.autorizacao||!a),s.get("hasReconhecimento").setValue(i.reconhecimento||!a),e==br.JudicialDecision&&s.get("hasEndereco").setValue(i.enderecoCurso!=null)),r==Fs.Unavailable&&(s.get("codigoCursoEMEC").disable(),s.get("informacoesTramitacaoEmec").disable()),s}getEmecProcessInformationForm(e){return this.fb.group({numeroProcesso:[e?.numeroProcesso,this.getPositiveNumberValidators()],tipoProcesso:[e?.tipoProcesso,this.getStringValidators()],dataCadastro:[this.getDateString(e?.dataCadastro),[Se.required,rr.stringDateValidator()]],dataProtocolo:[this.getDateString(e?.dataProtocolo),[Se.required,rr.stringDateValidator()]]})}getDateString(e){return e?(0,gM.default)(e,"YYYY-MM-DD").format("DD/MM/YYYY"):null}getPoloForm(e){let i=this.getInformationAvailabilityTypeValue(e!=null,e?.codigoEMEC,e?.informacoesTramitacaoEmec);return this.fb.group({nome:[e?.nome,this.getStringValidators()],endereco:this.getAddressForm(e?.endereco),codeAvailabilityType:[i,[Se.required]],codigoEmec:[e?.codigoEMEC,[Se.required,Se.min(0),Se.pattern("[0-9]+")]],informacoesTramitacaoEmec:this.getEmecProcessInformationForm(e?.informacoesTramitacaoEmec)})}getAddressForm(e){let i=this.fb.group({hasForeignCity:[null,[Se.required]],logradouro:[e?.logradouro,[Se.required,Se.minLength(2),Se.maxLength(150)]],numero:[e?.numero,[Se.minLength(1),Se.maxLength(60)]],complemento:[e?.complemento,[Se.minLength(1),Se.maxLength(60)]],bairro:[e?.bairro,[Se.required,Se.minLength(2),Se.maxLength(60)]],codigoMunicipio:[e?.codigoMunicipio,[Se.required,Se.pattern("^[0-9]{7}$")]],nomeMunicipio:[e?.nomeMunicipio,[Se.required,Se.maxLength(255)]],uf:[e?.uf,[Se.required]],nomeMunicipioEstrangeiro:[e?.nomeMunicipioEstrangeiro,[Se.required]],cep:[e?.cep,[Se.required,Se.maxLength(255),Se.pattern("^[0-9]{8}$")]]}),r=e?.codigoMunicipio||e?.nomeMunicipio||e?.uf;return e!=null&&(r||e?.nomeMunicipioEstrangeiro)&&i.get("hasForeignCity").setValue(e?.nomeMunicipioEstrangeiro?.length>0||!r),i}getTitleConferredForm(e){return this.fb.group({titulo:[e?.titulo,[Se.required]],outroTitulo:[{value:e?.outroTitulo,disabled:e?.outroTitulo==null},this.getStringValidators()]})}getStudentDataForm(e,i){let r=this.fb.group({id:[i?.id,this.getIdValidators()],nome:[i?.nome,this.getStringValidators()],nomeSocial:[i?.nomeSocial,this.getStringValidators(!1)],sexo:[i?.sexo,Se.required],nacionalidade:[i?.nacionalidade,this.getStringValidators()],hasNaturalidade:[!0],naturalidade:this.getNaturalityForm(i?.naturalidade),cpf:[i?.cpf,this.getCpfValidators()],hasOtherIdDocument:[null,Se.required],rg:this.getRgForm(i?.rg),outroDocumentoIdentificacao:this.getOtherIdDocument(i?.outroDocumentoIdentificacao),dataNascimento:[this.getDateString(i?.dataNascimento),[Se.required,rr.stringDateValidator()]]});return i!=null&&(r.get("hasOtherIdDocument").setValue(i.outroDocumentoIdentificacao!=null),e==br.JudicialDecision&&(i.id==null&&r.get("id").disable(),i.sexo==null&&r.get("sexo").disable(),i.nacionalidade==null&&r.get("nacionalidade").disable(),i.dataNascimento==null&&r.get("dataNascimento").disable(),r.get("hasNaturalidade").setValue(i.naturalidade!=null))),r}getNaturalityForm(e){let i=this.fb.group({hasForeignCity:[null,Se.required],codigoMunicipio:[e?.codigoMunicipio,[Se.required,Se.pattern("^[0-9]{7}$")]],nomeMunicipio:[e?.nomeMunicipio,this.getStringValidators()],uf:[e?.uf,[Se.required]],nomeMunicipioEstrangeiro:[{value:e?.nomeMunicipioEstrangeiro,disabled:e?.nomeMunicipioEstrangeiro==null},this.getStringValidators()]}),r=e?.codigoMunicipio||e?.nomeMunicipio||e?.uf;return e!=null&&(r||e?.nomeMunicipioEstrangeiro)&&i.get("hasForeignCity").setValue(e?.nomeMunicipioEstrangeiro?.length>0||!r),i}getRgForm(e){return this.fb.group({numero:this.fb.control(e?.numero,[Se.required,Se.maxLength(15),Se.pattern("^[a-zA-Z0-9]{4,15}$")]),uf:[e?.uf,Se.required],orgaoExpedidor:[e?.orgaoExpedidor,this.getStringValidators(!1)]})}getOtherIdDocument(e){let i=this.fb.group({tipoDocumento:[e?.tipoDocumento,this.getStringValidators()],identificador:[e?.identificador,this.getStringValidators()]});return i.disable(),i}getRequiredValidator(e,i){i&&e.push(Se.required)}getCustomPatternValidators(e,i=!0){let r=[Se.pattern(e)];return this.getRequiredValidator(r,i),r}getDecimalNumberValidators(e,i,r=!0){let o=[Se.pattern(this.regexPatterns.numeroPositivo2Casas)];return e&&o.push(Se.min(e)),i&&o.push(Se.max(i)),this.getRequiredValidator(o,r),o}getPositiveNumberValidators(e=!0){let i=[Se.min(0),Se.pattern(this.regexPatterns.numeroPositivo)];return this.getRequiredValidator(i,e),i}getStringValidators(e=!0,i=255){let r=[Se.minLength(1),Se.maxLength(i)];return this.getRequiredValidator(r,e),r}getIdValidators(e=!0,i=50){let r=[Se.minLength(1),Se.maxLength(i)];return this.getRequiredValidator(r,e),r}getCpfValidators(e=!0){let i=[bg.cpf];return this.getRequiredValidator(i,e),i}getCnpjValidators(e=!0){let i=[bg.cnpj];return this.getRequiredValidator(i,e),i}static{this.\u0275fac=function(i){return new(i||t)(ae(Ti),ae(zo),ae(yg),ae(rn),ae(Dn),ae(Qi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Vve=(()=>{class t{constructor(e){this.httpClient=e}getAddressByZipCode(e){return this.httpClient.get(`https://viacep.com.br/ws/${e}/json/`)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Jst(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function elt(t,n){if(t&1&&(d(0,"div",4)(1,"div",16)(2,"mat-form-field",6)(3,"mat-label"),h(4,"Munic\xEDpio"),c(),H(5,"input",17),d(6,"mat-error"),h(7),c()()(),d(8,"div",18)(9,"mat-form-field",6)(10,"mat-label"),h(11,"C\xF3digo do munic\xEDpio"),c(),H(12,"input",19),d(13,"mat-error"),h(14),c()()(),d(15,"div",18)(16,"mat-form-field",6)(17,"mat-label"),h(18,"UF"),c(),d(19,"mat-select",20),k(20,Jst,2,2,"mat-option",21),c()()()()),t&2){let e=S();m(7),U(e.Error.get(e.form,"nomeMunicipio","city")),m(7),U(e.Error.get(e.form,"codigoMunicipio","cityCode")),m(6),f("ngForOf",e.Uf)}}function tlt(t,n){if(t&1&&(d(0,"div",4)(1,"div",16)(2,"mat-form-field",6)(3,"mat-label"),h(4,"Nome do munic\xEDpio estrangeiro"),c(),H(5,"input",22),d(6,"mat-error"),h(7),c()()()()),t&2){let e=S();m(7),U(e.Error.get(e.form,"nomeMunicipioEstrangeiro","foreignCity"))}}var VB=(()=>{class t{constructor(e,i){this.Error=e,this.zipCodeService=i,this.Uf=Object.keys(uM)}ngOnInit(){this.hasForeignCity=this.form.get("hasForeignCity").value,this.setConditionalGroup(),this.hasForeignCitySubscription=this.form.get("hasForeignCity").valueChanges.subscribe(e=>{this.hasForeignCity=e})}searchZipCode(){let e=this.form.get("cep").value;e&&(this.isLoading=!0,this.zipCodeService.getAddressByZipCode(e).subscribe(i=>{let r=i.ibge;i.complemento&&this.form.patchValue({complemento:i.complemento}),this.form.patchValue({uf:i.uf,logradouro:i.logradouro,bairro:i.bairro,nomeMunicipio:r?i.localidade:null,codigoMunicipio:r||null}),this.isLoading=!1},i=>this.isLoading=!1))}setConditionalGroup(){this.hasForeignCity?(this.form.get("nomeMunicipio").disable(),this.form.get("codigoMunicipio").disable(),this.form.get("uf").disable(),this.form.get("nomeMunicipioEstrangeiro").enable()):(this.form.get("nomeMunicipio").enable(),this.form.get("codigoMunicipio").enable(),this.form.get("uf").enable(),this.form.get("nomeMunicipioEstrangeiro").disable()),this.form.updateValueAndValidity()}ngOnDestroy(){this.hasForeignCitySubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Vve))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-address-form"]],inputs:{form:"form"},decls:53,vars:12,consts:[[3,"formGroup"],[1,"d-flex"],["required","","matInput","","formControlName","cep","mask","00000-000",3,"dropSpecialCharacters","showMaskTyped"],["mat-icon-button","","type","button","color","primary",3,"click"],[1,"row"],[1,"col-12","col-lg-8"],[1,"input-stretch"],["required","","matInput","","formControlName","logradouro"],[1,"col-12","col-lg-4"],["matInput","","formControlName","numero"],[1,"col-6"],["matInput","","formControlName","complemento"],["required","","matInput","","formControlName","bairro"],["required","","formControlName","hasForeignCity",3,"selectionChange"],[3,"value"],["class","row",4,"ngIf"],[1,"col-12"],["required","","matInput","","formControlName","nomeMunicipio"],[1,"col-6","col-md-6","col-lg-4"],["required","","matInput","","mask","0000000","formControlName","codigoMunicipio"],["required","","formControlName","uf"],[3,"value",4,"ngFor","ngForOf"],["required","","matInput","","formControlName","nomeMunicipioEstrangeiro"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field")(3,"mat-label"),h(4,"CEP"),c(),H(5,"input",2),d(6,"mat-error"),h(7),c()(),d(8,"button",3),$("click",function(){return r.searchZipCode()}),d(9,"mat-icon"),h(10,"search"),c()()(),d(11,"div",4)(12,"div",5)(13,"mat-form-field",6)(14,"mat-label"),h(15,"Logradouro"),c(),H(16,"input",7),d(17,"mat-error"),h(18),c()()(),d(19,"div",8)(20,"mat-form-field",6)(21,"mat-label"),h(22,"N\xFAmero"),c(),H(23,"input",9),d(24,"mat-error"),h(25),c()()()(),d(26,"div",4)(27,"div",10)(28,"mat-form-field",6)(29,"mat-label"),h(30,"Complemento"),c(),H(31,"input",11),d(32,"mat-error"),h(33),c()()(),d(34,"div",10)(35,"mat-form-field",6)(36,"mat-label"),h(37,"Bairro"),c(),H(38,"input",12),d(39,"mat-error"),h(40),c()()()(),d(41,"div",4)(42,"div",10)(43,"mat-form-field",6)(44,"mat-label"),h(45,"Tipo de munic\xEDpio"),c(),d(46,"mat-select",13),$("selectionChange",function(){return r.setConditionalGroup()}),d(47,"mat-option",14),h(48,"Nacional"),c(),d(49,"mat-option",14),h(50,"Estrangeiro"),c()()()()(),k(51,elt,21,3,"div",15)(52,tlt,8,1,"div",15),c()),i&2&&(f("formGroup",r.form),m(5),f("dropSpecialCharacters",!0)("showMaskTyped",!1),m(2),U(r.Error.get(r.form,"cep")),m(11),U(r.Error.get(r.form,"logradouro","streetAddress")),m(7),U(r.Error.get(r.form,"numero","addressNumber")),m(8),U(r.Error.get(r.form,"complemento","address-info")),m(7),U(r.Error.get(r.form,"bairro","neighborhood")),m(7),f("value",!1),m(2),f("value",!0),m(2),f("ngIf",r.hasForeignCity==!1),m(),f("ngIf",r.hasForeignCity))},dependencies:[Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,He,fi,Wt,bt,jt,Si,Mi,Fo,Li]})}}return t})();var BB=(()=>{class t{constructor(e){this.Error=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-emec-process-form"]],inputs:{form:"form"},decls:31,vars:7,consts:[[3,"formGroup"],[1,"row"],[1,"col-6"],[1,"input-stretch"],["required","","matInput","","formControlName","numeroProcesso"],["required","","matInput","","formControlName","tipoProcesso"],["required","","matInput","","formControlName","dataCadastro","mask","00/00/0000",3,"showMaskTyped"],["required","","matInput","","formControlName","dataProtocolo","mask","00/00/0000",3,"showMaskTyped"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),h(5,"N\xFAmero do processo"),c(),H(6,"input",4),d(7,"mat-error"),h(8),c()()(),d(9,"div",2)(10,"mat-form-field",3)(11,"mat-label"),h(12,"Tipo do processo"),c(),H(13,"input",5),d(14,"mat-error"),h(15),c()()()(),d(16,"div",1)(17,"div",2)(18,"mat-form-field",3)(19,"mat-label"),h(20,"Data de cadastro"),c(),H(21,"input",6),d(22,"mat-error"),h(23),c()()(),d(24,"div",2)(25,"mat-form-field",3)(26,"mat-label"),h(27,"Data do protocolo"),c(),H(28,"input",7),d(29,"mat-error"),h(30),c()()()()()),i&2&&(f("formGroup",r.form),m(8),U(r.Error.get(r.form,"numeroProcesso","processNumber")),m(7),U(r.Error.get(r.form,"tipoProcesso","processType")),m(6),f("showMaskTyped",!0),m(2),U(r.Error.get(r.form,"dataCadastro","stringDateValidator")),m(5),f("showMaskTyped",!0),m(2),U(r.Error.get(r.form,"dataProtocolo","stringDateValidator")))},dependencies:[Gt,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,Fo]})}}return t})();function ilt(t,n){if(t&1&&(d(0,"mat-option",17),h(1),ce(2,"regulatoryAct"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function nlt(t,n){if(t&1&&(d(0,"div",1)(1,"div",4)(2,"mat-form-field",5)(3,"mat-label"),h(4,"Tipo de ato regulat\xF3rio"),c(),d(5,"mat-select",6),k(6,ilt,3,4,"mat-option",7),c()()(),d(7,"div",4)(8,"div",8)(9,"mat-form-field",9)(10,"mat-label"),h(11,"N\xFAmero"),c(),H(12,"input",10),d(13,"mat-error"),h(14),c()()(),d(15,"div",8)(16,"mat-form-field",9)(17,"mat-label"),h(18,"Data"),c(),H(19,"input",11),d(20,"mat-error"),h(21),c()()()(),d(22,"div",4)(23,"div",8)(24,"mat-form-field",9)(25,"mat-label"),h(26,"Ve\xEDculo de publica\xE7\xE3o"),c(),H(27,"input",12),d(28,"mat-error"),h(29),c()()(),d(30,"div",8)(31,"mat-form-field",9)(32,"mat-label"),h(33,"Data de publica\xE7\xE3o"),c(),H(34,"input",13),d(35,"mat-error"),h(36),c()()()(),d(37,"div",4)(38,"div",8)(39,"mat-form-field",9)(40,"mat-label"),h(41,"Se\xE7\xE3o de publica\xE7\xE3o"),c(),H(42,"input",14),d(43,"mat-error"),h(44),c()()(),d(45,"div",8)(46,"mat-form-field",9)(47,"mat-label"),h(48,"P\xE1gina de publica\xE7\xE3o"),c(),H(49,"input",15),d(50,"mat-error"),h(51),c()()(),d(52,"div",8)(53,"mat-form-field",9)(54,"mat-label"),h(55,"N\xFAmero D.O.U."),c(),H(56,"input",16),d(57,"mat-error"),h(58),c()()()()()),t&2){let e=S(2);f("formGroup",e.informacoesAtoRegulatorio),m(6),f("ngForOf",e.TipoAto),m(8),U(e.Error.get(e.informacoesAtoRegulatorio,"numero","numberAutorization")),m(5),f("showMaskTyped",!0),m(2),U(e.Error.get(e.informacoesAtoRegulatorio,"data","stringDateValidator")),m(8),U(e.Error.get(e.informacoesAtoRegulatorio,"veiculoPublicacao")),m(5),f("showMaskTyped",!0),m(2),U(e.Error.get(e.informacoesAtoRegulatorio,"dataPublicacao","stringDateValidator")),m(8),U(e.Error.get(e.informacoesAtoRegulatorio,"secaoPublicacao","publicationSection")),m(7),U(e.Error.get(e.informacoesAtoRegulatorio,"paginaPublicacao","publicationPage")),m(7),U(e.Error.get(e.informacoesAtoRegulatorio,"numeroDOU"))}}function rlt(t,n){if(t&1&&H(0,"app-emec-process-form",18),t&2){let e=S(2);f("form",e.form.get("informacoesTramitacaoEmec"))}}function olt(t,n){if(t&1){let e=ie();d(0,"div",1)(1,"mat-slide-toggle",2),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroup())}),h(2,"Ato regulat\xF3rio em tramita\xE7\xE3o no MEC?"),c(),k(3,nlt,59,11,"div",0)(4,rlt,1,1,"app-emec-process-form",3),c()}if(t&2){let e=S();f("formGroup",e.form),m(3),f("ngIf",!e.hasInformacoesTramitacaoEmec),m(),f("ngIf",e.hasInformacoesTramitacaoEmec)}}var jB=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i,this.TipoAto=Object.values(nm)}ngOnInit(){this.hasInformacoesTramitacaoEmec=this.form.get("hasEmecProcessInformation").value,this.informacoesAtoRegulatorio=this.form.get("informacoesAtoRegulatorio")??this.degreeFormService.getRegulatoryActInformationsForm(),this.informacoesTramitacaoEmec=this.form.get("informacoesTramitacaoEmec")??this.degreeFormService.getEmecProcessInformationForm(),this.setConditionalGroup(),this.hasEmecProcessInformationSubscription=this.form.get("hasEmecProcessInformation").valueChanges.subscribe(e=>{this.hasInformacoesTramitacaoEmec=e})}setConditionalGroup(){let e="informacoesAtoRegulatorio",i="informacoesTramitacaoEmec";this.hasInformacoesTramitacaoEmec?(this.form.removeControl(e),this.form.setControl(i,this.informacoesTramitacaoEmec)):(this.form.setControl(e,this.informacoesAtoRegulatorio),this.form.removeControl(i)),this.form.updateValueAndValidity()}ngOnDestroy(){this.hasEmecProcessInformationSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-regulatory-act-form"]],inputs:{form:"form"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["formControlName","hasEmecProcessInformation",3,"change"],[3,"form",4,"ngIf"],[1,"row"],[1,"col-12","col-lg-8"],["required","","formControlName","tipo"],[3,"value",4,"ngFor","ngForOf"],[1,"col-6","col-xl-4"],[1,"input-stretch"],["required","","matInput","","placeholder","","formControlName","numero"],["required","","matInput","","formControlName","data","mask","00/00/0000",3,"showMaskTyped"],["matInput","","formControlName","veiculoPublicacao"],["matInput","","formControlName","dataPublicacao","mask","00/00/0000",3,"showMaskTyped"],["matInput","","formControlName","secaoPublicacao"],["matInput","","formControlName","paginaPublicacao"],["matInput","","formControlName","numeroDOU"],[3,"value"],[3,"form"]],template:function(i,r){i&1&&k(0,olt,5,3,"div",0),i&2&&f("ngIf",r.form)},dependencies:[Vt,Ee,Gt,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,Mi,Fo,Fr,Li,BB,yg]})}}return t})();var _M=t=>({"text-muted":t}),zve=t=>({regulatoryAct:t});function alt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",14),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function slt(t,n){if(t&1&&H(0,"app-address-form",15),t&2){let e=S();f("form",e.form.get("endereco"))}}function llt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",18),$("change",function(){W(e);let r=S(2);return Y(r.setConditionalGroups())}),c()}}function clt(t,n){if(t&1&&(d(0,"div",19)(1,"div",20)(2,"mat-form-field",21)(3,"mat-label"),h(4,"Raz\xE3o social"),c(),H(5,"input",22),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",23)(9,"mat-label"),h(10,"CNPJ"),c(),H(11,"input",24),d(12,"mat-error"),h(13),c()()(),d(14,"div",25)(15,"h4")(16,"strong"),h(17,"Endere\xE7o"),c()(),H(18,"app-address-form",15),c()()),t&2){let e=S(2);m(7),U(e.Error.get(e.form,"mantenedora.razaoSocial","razaoSocial")),m(4),f("dropSpecialCharacters",!0),m(2),U(e.Error.get(e.form,"mantenedora.cnpj","cnpj")),m(5),f("form",e.form.get("mantenedora.endereco"))}}function dlt(t,n){if(t&1&&(d(0,"div")(1,"div",9)(2,"h3",10)(3,"strong"),h(4,"Mantenedora"),c()(),k(5,llt,1,0,"mat-slide-toggle",16),c(),k(6,clt,19,4,"div",17),c()),t&2){let e=S();m(2),f("ngClass",Le(3,_M,!e.hasMantenedora&&e.iesType==e.IesTypes.Issuer)),m(3),f("ngIf",e.iesType==e.IesTypes.Issuer),m(),f("ngIf",e.hasMantenedora||e.iesType==e.IesTypes.Registry)}}function ult(t,n){if(t&1&&dn(0,28),t&2){let e=S(2),i=je(33);f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(2,zve,e.form.get("autorizacaoRegistro")))}}function mlt(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",9)(2,"h3",10)(3,"strong"),h(4,"Autoriza\xE7\xE3o de registro"),c()(),d(5,"mat-slide-toggle",26),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()(),k(6,ult,1,4,"ng-container",27),c()}if(t&2){let e=S();m(2),f("ngClass",Le(2,_M,!e.hasAutorizacaoRegistro)),m(4),f("ngIf",e.hasAutorizacaoRegistro)}}function plt(t,n){if(t&1&&H(0,"app-regulatory-act-form",15),t&2){let e=S(2);f("form",e.recredenciamentoForm)}}function hlt(t,n){if(t&1&&H(0,"app-regulatory-act-form",15),t&2){let e=S(2);f("form",e.renovacaoDeRecredenciamentoForm)}}function flt(t,n){if(t&1){let e=ie();d(0,"div")(1,"h3",29)(2,"strong"),h(3,"Credenciamento"),c()(),H(4,"app-regulatory-act-form",15),d(5,"div",9)(6,"h3",10)(7,"strong"),h(8,"Recredenciamento"),c()(),d(9,"mat-slide-toggle",30),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()(),k(10,plt,1,1,"app-regulatory-act-form",12),d(11,"div",9)(12,"h3",10)(13,"strong"),h(14,"Renova\xE7\xE3o de recredenciamento"),c()(),d(15,"mat-slide-toggle",31),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()(),k(16,hlt,1,1,"app-regulatory-act-form",12),c()}if(t&2){let e=S();m(4),f("form",e.form.get("credenciamento")),m(2),f("ngClass",Le(5,_M,!e.hasRecredenciamento)),m(4),f("ngIf",e.hasRecredenciamento),m(2),f("ngClass",Le(7,_M,!e.hasRenovacaoDeRecredenciamento)),m(4),f("ngIf",e.hasRenovacaoDeRecredenciamento)}}function glt(t,n){if(t&1&&(d(0,"div")(1,"h3",29)(2,"strong"),h(3,"Descredenciamento"),c()(),dn(4,28),c()),t&2){let e=S(),i=je(33);m(4),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(2,zve,e.form.get("descredenciamento")))}}function _lt(t,n){if(t&1&&(d(0,"mat-option",46),h(1),ce(2,"regulatoryAct"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function vlt(t,n){if(t&1&&(d(0,"div",32)(1,"div",20)(2,"mat-form-field",33)(3,"mat-label"),h(4,"Tipo de ato regulat\xF3rio"),c(),d(5,"mat-select",34),k(6,_lt,3,4,"mat-option",35),c()()(),d(7,"div",20)(8,"div",36)(9,"mat-form-field",37)(10,"mat-label"),h(11,"N\xFAmero"),c(),H(12,"input",38),d(13,"mat-error"),h(14),c()()(),d(15,"div",36)(16,"mat-form-field",37)(17,"mat-label"),h(18,"Data"),c(),H(19,"input",39),d(20,"mat-error"),h(21),c()()()(),d(22,"div",20)(23,"div",40)(24,"mat-form-field",37)(25,"mat-label"),h(26,"Ve\xEDculo de publica\xE7\xE3o"),c(),H(27,"input",41),d(28,"mat-error"),h(29),c()()(),d(30,"div",40)(31,"mat-form-field",37)(32,"mat-label"),h(33,"Data de publica\xE7\xE3o"),c(),H(34,"input",42),d(35,"mat-error"),h(36),c()()(),d(37,"div",40)(38,"mat-form-field",37)(39,"mat-label"),h(40,"Se\xE7\xE3o de publica\xE7\xE3o"),c(),H(41,"input",43),d(42,"mat-error"),h(43),c()()()(),d(44,"div",20)(45,"div",40)(46,"mat-form-field",37)(47,"mat-label"),h(48,"P\xE1gina de publica\xE7\xE3o"),c(),H(49,"input",44),d(50,"mat-error"),h(51),c()()(),d(52,"div",40)(53,"mat-form-field",37)(54,"mat-label"),h(55,"N\xFAmero D.O.U."),c(),H(56,"input",45),d(57,"mat-error"),h(58),c()()()()()),t&2){let e=n.regulatoryAct,i=S();f("formGroup",e),m(6),f("ngForOf",i.TipoAtoBase),m(8),U(i.Error.get(e,"numero","numberAutorization")),m(5),f("showMaskTyped",!0),m(2),U(i.Error.get(e,"data","stringDateValidator")),m(8),U(i.Error.get(e,"veiculoPublicacao")),m(5),f("showMaskTyped",!0),m(2),U(i.Error.get(e,"dataPublicacao","stringDateValidator")),m(7),U(i.Error.get(e,"secaoPublicacao","publicationSection")),m(8),U(i.Error.get(e,"paginaPublicacao","publicationPage")),m(7),U(i.Error.get(e,"numeroDOU"))}}var ey=(()=>{class t{get hasEndereco(){return this.form&&this.form.get("hasEndereco")?.value}get hasMantenedora(){return this.form&&this.form.get("hasMantenedora")?.value}get hasRecredenciamento(){return this.form&&this.form.get("hasRecredenciamento")?.value}get hasRenovacaoDeRecredenciamento(){return this.form&&this.form.get("hasRenovacaoDeRecredenciamento")?.value}get hasAutorizacaoRegistro(){return this.form&&this.form.get("hasAutorizacaoRegistro")?.value}constructor(e){this.Error=e,this.TipoAtoBase=Object.keys(aI),this.IesTypes=gd,this.recredenciamentoControlName="recredenciamento",this.renovacaoDeRecredenciamentoControlName="renovacaoDeRecredenciamento",this.autorizacaoRegistroControlName="autorizacaoRegistro",this.enderecoControlName="endereco",this.mantenedoraControlName="mantenedora"}ngOnInit(){switch(this.recredenciamentoForm=this.form.get("recredenciamento"),this.renovacaoDeRecredenciamentoForm=this.form.get("renovacaoDeRecredenciamento"),this.autorizacaoRegistroForm=this.form.get("autorizacaoRegistro"),this.iesType){case gd.Issuer:this.mantenedoraForm=this.form.get(this.mantenedoraControlName);break;case gd.Original:this.enderecoForm=this.form.get(this.enderecoControlName);break;default:break}this.setConditionalGroups()}setConditionalGroups(){this.iesType==gd.Original&&(this.hasEndereco?this.form.setControl(this.enderecoControlName,this.enderecoForm):this.form.removeControl(this.enderecoControlName)),this.iesType==gd.Issuer&&(this.hasMantenedora?this.form.setControl(this.mantenedoraControlName,this.mantenedoraForm):this.form.removeControl(this.mantenedoraControlName)),this.hasRecredenciamento?this.form.setControl(this.recredenciamentoControlName,this.recredenciamentoForm):this.form.removeControl(this.recredenciamentoControlName),this.hasRenovacaoDeRecredenciamento?this.form.setControl(this.renovacaoDeRecredenciamentoControlName,this.renovacaoDeRecredenciamentoForm):this.form.removeControl(this.renovacaoDeRecredenciamentoControlName),this.hasAutorizacaoRegistro?this.form.setControl(this.autorizacaoRegistroControlName,this.autorizacaoRegistroForm):this.form.removeControl(this.autorizacaoRegistroControlName),this.form.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-ies-form"]],inputs:{form:"form",iesType:"iesType"},decls:34,vars:16,consts:[["regulatoryActBase",""],[1,"row",3,"formGroup"],[1,"col-12","col-md-6"],[1,"row","mt-3"],[1,"col-12","col-md-8","col-lg-6"],["required","","matInput","","formControlName","nome"],[1,"col-6"],["matInput","","mask","09999999","formControlName","codigoMEC",3,"required"],["matInput","","formControlName","cnpj","mask","00.000.000/0000-00",3,"required","dropSpecialCharacters"],[1,"d-flex","mt-3"],[1,"mb-0",3,"ngClass"],["color","primary","class","ms-auto","formControlName","hasEndereco",3,"change",4,"ngIf"],[3,"form",4,"ngIf"],[4,"ngIf"],["color","primary","formControlName","hasEndereco",1,"ms-auto",3,"change"],[3,"form"],["color","primary","class","ms-auto","formControlName","hasMantenedora",3,"change",4,"ngIf"],["formGroupName","mantenedora",4,"ngIf"],["color","primary","formControlName","hasMantenedora",1,"ms-auto",3,"change"],["formGroupName","mantenedora"],[1,"row"],[1,"col-12","col-md-6","col-lg-6"],["required","","matInput","","formControlName","razaoSocial"],[1,"col-6","col-md-4","col-lg-3"],["required","","matInput","","formControlName","cnpj","mask","00.000.000/0000-00",3,"dropSpecialCharacters"],[1,"mt-1"],["color","primary","formControlName","hasAutorizacaoRegistro",1,"ms-auto",3,"change"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mt-3","mb-0"],["color","primary","formControlName","hasRecredenciamento",1,"ms-auto",3,"change"],["color","primary","formControlName","hasRenovacaoDeRecredenciamento",1,"ms-auto",3,"change"],[3,"formGroup"],[1,"col-6","col-md-8","col-lg-4"],["required","","formControlName","tipo"],[3,"value",4,"ngFor","ngForOf"],[1,"col-4","col-md-8","col-lg-4"],[1,"input-stretch"],["required","","matInput","","formControlName","numero"],["required","","matInput","","formControlName","data","mask","00/00/0000",3,"showMaskTyped"],[1,"col-4","col-md-6","col-lg-4"],["matInput","","formControlName","veiculoPublicacao"],["matInput","","formControlName","dataPublicacao","mask","00/00/0000",3,"showMaskTyped"],["matInput","","formControlName","secaoPublicacao"],["matInput","","formControlName","paginaPublicacao"],["matInput","","formControlName","numeroDOU"],[3,"value"]],template:function(i,r){i&1&&(d(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),h(5,"Nome"),c(),H(6,"input",5),d(7,"mat-error"),h(8),c()(),d(9,"mat-form-field",6)(10,"mat-label"),h(11,"C\xF3digo MEC"),c(),H(12,"input",7),d(13,"mat-error"),h(14),c()(),d(15,"mat-form-field",6)(16,"mat-label"),h(17,"CNPJ"),c(),H(18,"input",8),d(19,"mat-error"),h(20),c()()(),d(21,"div",9)(22,"h3",10)(23,"strong"),h(24,"Endere\xE7o"),c()(),k(25,alt,1,0,"mat-slide-toggle",11),c(),k(26,slt,1,1,"app-address-form",12)(27,dlt,7,5,"div",13)(28,mlt,7,4,"div",13),c(),d(29,"div",2),k(30,flt,17,9,"div",13)(31,glt,5,4,"div",13),c()(),k(32,vlt,59,11,"ng-template",null,0,Ii)),i&2&&(f("formGroup",r.form),m(8),U(r.Error.get(r.form,"nome","name")),m(4),f("required",r.iesType!=r.IesTypes.Original),m(2),U(r.Error.get(r.form,"codigoMEC","codigoEmec")),m(4),f("required",r.iesType!=r.IesTypes.Original)("dropSpecialCharacters",!0),m(2),U(r.Error.get(r.form,"cnpj","cnpj")),m(2),f("ngClass",Le(14,_M,!r.hasEndereco&&r.iesType==r.IesTypes.Original)),m(3),f("ngIf",r.iesType==r.IesTypes.Original),m(),f("ngIf",r.hasEndereco||r.iesType!=r.IesTypes.Original),m(),f("ngIf",r.iesType!=r.IesTypes.Original),m(),f("ngIf",r.iesType==r.IesTypes.Registry),m(2),f("ngIf",r.iesType!=r.IesTypes.Original),m(),f("ngIf",r.iesType==r.IesTypes.Original))},dependencies:[ji,Vt,Ee,ta,Gt,it,pt,Jn,dt,Tt,xs,Wt,bt,jt,Si,Mi,Fo,Fr,Li,VB,jB,yg]})}}return t})();function blt(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.startEdit())}),d(1,"mat-icon"),h(2,"edit"),c()()}}function ylt(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"CnpjPipe"),c()),t&2){let e=S(2);m(),U(xe(2,1,e.data==null?null:e.data.cnpj))}}function xlt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2);m(),Ih(" ",e.data==null?null:e.data.endereco.logradouro,", ",e.data==null?null:e.data.endereco.bairro," - ",e.data==null?null:e.data.endereco.nomeMunicipio,", ",e.data==null?null:e.data.endereco.uf," ")}}function Clt(t,n){if(t&1&&(d(0,"div",9)(1,"spa-prop",17),h(2),c()()),t&2){let e=S(2);m(2),U(e.getRegulatoryActDescription(e.data==null?null:e.data.recredenciamento))}}function Slt(t,n){if(t&1&&(d(0,"div",9)(1,"spa-prop",18),h(2),c()()),t&2){let e=S(2);m(2),ue(" ",e.getRegulatoryActDescription(e.data==null?null:e.data.renovacaoDeRecredenciamento)," ")}}function wlt(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"CnpjPipe"),c()),t&2){let e=S(2);m(),Do("",e.data.mantenedora.razaoSocial," (",xe(2,2,e.data.mantenedora.cnpj),")")}}function Elt(t,n){if(t&1&&(d(0,"div",8)(1,"div",9)(2,"spa-prop",10),h(3),c()(),d(4,"div",9)(5,"spa-prop",11),h(6),c()(),d(7,"div",9)(8,"spa-prop",12),k(9,ylt,3,3,"span",6),c()(),d(10,"div",9)(11,"spa-prop",13),k(12,xlt,2,4,"span",6),c()(),d(13,"div",9)(14,"spa-prop",14),h(15),c()(),k(16,Clt,3,1,"div",15)(17,Slt,3,1,"div",15),d(18,"div",9)(19,"spa-prop",16),k(20,wlt,3,4,"span",6),c()()()),t&2){let e=S();m(3),U(e.data==null?null:e.data.nome),m(3),U(e.data==null?null:e.data.codigoMEC),m(3),f("ngIf",e.data==null?null:e.data.cnpj),m(3),f("ngIf",e.data),m(3),U(e.getRegulatoryActDescription(e.data==null?null:e.data.credenciamento)),m(),f("ngIf",e.data==null?null:e.data.recredenciamento),m(),f("ngIf",e.data==null?null:e.data.renovacaoDeRecredenciamento),m(3),f("ngIf",e.data&&e.data.mantenedora)}}function Ilt(t,n){if(t&1){let e=ie();d(0,"div"),H(1,"app-ies-form",19),d(2,"div",20)(3,"button",21),$("click",function(){W(e);let r=S();return Y(r.save())}),h(4,"Salvar"),c(),d(5,"button",22),$("click",function(){W(e);let r=S();return Y(r.cancelEdit())}),h(6,"Cancelar"),c()()()}if(t&2){let e=S();m(),f("form",e.form)("iesType",e.iesType),m(2),f("disabled",e.form.invalid||e.form.pristine)}}var zB=(()=>{class t{constructor(e,i,r,o){this.messageService=e,this.Error=i,this.settingService=r,this.degreeFormService=o,this.iesType=gd.Registry,this.loading=!1,this.onLoaded=new Ae}ngOnInit(){this.loading=!0,this.settingService.getRegistryData().subscribe(e=>{this.loading=!1,this.data=e,this.onLoaded.emit(e),this.buildForm()},e=>this.loading=!1)}getRegulatoryActDescription(e){return this.degreeFormService.getRegulatoryActDescription(e)}buildForm(){this.form=this.degreeFormService.getRegistryIesDataForm(this.data)}startEdit(){this.formBeforeEdit=this.form,this.buildForm(),this.edit=!0}cancelEdit(){this.form=this.formBeforeEdit,this.edit=!1}save(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=this.degreeFormService.getDadosIesRegistradoraModel(this.form);this.loading=!0,this.settingService.updateRegistryData(e).subscribe(i=>{this.loading=!1,this.edit=!1,this.data=e,this.messageService.showSuccess("Dados atualizados com sucesso"),this.onLoaded.emit(e)},i=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Bi),E(wi),E(Xa),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registry-data"]],inputs:{readonly:"readonly"},outputs:{onLoaded:"onLoaded"},decls:8,vars:4,consts:[[1,"box-light"],[3,"show"],[1,"d-flex","align-items-center"],[1,"mb-0"],["mat-icon-button","","class","ms-auto","matTooltip","Editar dados",3,"click",4,"ngIf"],["class","row p-3 flex-wrap",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","matTooltip","Editar dados",1,"ms-auto",3,"click"],[1,"row","p-3","flex-wrap"],[1,"col-md-3"],["label","Nome"],["label","C\xF3digo MEC"],["label","CNPJ"],["label","Endere\xE7o"],["label","Credenciamento"],["class","col-md-3",4,"ngIf"],["label","Mantenedora"],["label","Recredenciamento"],["label","Renova\xE7\xE3o de recredenciamento"],[3,"form","iesType"],[1,"d-flex","justify-content-center","mt-3"],["type","submit","mat-raised-button","","color","accent",3,"click","disabled"],["type","button","mat-button","","color","primary",3,"click"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"div",2)(3,"h2",3),h(4,"Dados da Registradora"),c(),k(5,blt,3,0,"button",4),c(),k(6,Elt,21,8,"div",5)(7,Ilt,7,3,"div",6),c()),i&2&&(m(),f("show",r.loading),m(4),f("ngIf",!r.edit&&!r.readonly),m(),f("ngIf",!r.edit),m(),f("ngIf",r.edit))},dependencies:[Ee,He,Ze,fi,li,wn,yi,ey,Xb]})}}return t})();function Dlt(t,n){t&1&&(d(0,"div")(1,"mat-slide-toggle",9),h(2,"Institui\xE7\xE3o fora do sistema federal de ensino"),c(),d(3,"mat-icon",10),h(4,"info"),c()())}function Tlt(t,n){if(t&1){let e=ie();d(0,"div",2)(1,"h2",3),h(2,"Configura\xE7\xF5es Gerais"),c(),d(3,"form",4)(4,"div")(5,"mat-slide-toggle",5),h(6,"Gerar XMLs em UTF-8 sem BOM"),c(),k(7,Dlt,5,0,"div",6),c(),d(8,"div",7)(9,"button",8),$("click",function(){W(e);let r=S();return Y(r.saveSettings())}),h(10,"Salvar"),c()()()()}if(t&2){let e=S();m(3),f("formGroup",e.generalSettingForm),m(4),f("ngIf",e.showIsNsfSetting),m(2),f("disabled",e.generalSettingForm.pristine)}}var Gve=(()=>{class t{set generalSettings(e){this._generalSettings=e,this.initForm()}constructor(e,i,r,o){this.fb=e,this.settingService=i,this.messageService=r,this.spaControl=o}ngOnInit(){this.spaControl.selectedSubscription.subscribe(e=>{this.showIsNsfSetting=e.subscription.type!=Zr.Issuer}),this.initForm()}initForm(){this._generalSettings?this.generalSettingForm=this.fb.group(this._generalSettings):this.generalSettingForm=null}saveSettings(){if(!this.generalSettingForm.valid)return;let e=Object.assign({},this.generalSettingForm.value);this.isLoading=!0,this.settingService.updateGeneralSettings(e).subscribe(i=>{this.generalSettingForm.markAsPristine(),this.messageService.showSuccess("Configura\xE7\xF5es atualizadas com sucesso"),this.isLoading=!1},i=>this.isLoading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Xa),E(Bi),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-general-settings"]],inputs:{generalSettings:"generalSettings"},decls:2,vars:2,consts:[[3,"show"],["class","box-light",4,"ngIf"],[1,"box-light"],[1,"mt-3"],[3,"formGroup"],["formControlName","removeBomFromXml"],[4,"ngIf"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"],["matTooltip","Quando habilitado, algumas valida\xE7\xF5es ser\xE3o modificadas.","formControlName","isNsf"],["matTooltip","Est\xE3o no sistema federal todas as institui\xE7\xF5es particulares e p\xFAblicas federais. Podem utilizar esta configura\xE7\xE3o intitui\xE7\xF5es que n\xE3o se encaixem nestes dois tipos citados.",1,"ms-2","mt-2"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),k(1,Tlt,11,3,"div",1)),i&2&&(f("show",r.isLoading),m(),f("ngIf",r.generalSettingForm))},dependencies:[Ee,zt,it,pt,dt,Tt,He,Ze,li,yi,Fr]})}}return t})();function klt(t,n){if(t&1&&(d(0,"a",8)(1,"mat-icon"),h(2,"launch"),c()()),t&2){let e=S();f("href",e.signerUrl,qo)}}function Mlt(t,n){if(t&1&&(d(0,"div")(1,"mat-icon",14),h(2),c()()),t&2){let e=S(2);In(e.hasSignerApiKey?"text-success":"text-glow"),m(),f("matTooltip",e.hasSignerApiKey?"Chave configurada":"A chave de API ainda n\xE3o foi configurada"),m(),U(e.hasSignerApiKey?"done":"warning")}}function Flt(t,n){if(t&1){let e=ie();he(0),d(1,"span"),h(2),c(),d(3,"button",16),$("click",function(){W(e);let r=S(3);return Y(r.toggleApiKey())}),d(4,"mat-icon"),h(5),c()(),fe()}if(t&2){let e=S(3);m(2),ue(" ",e.apiKey?e.apiKey:"*****************",""),m(),f("matTooltip",e.apiKey?"Esconder chave":"Exibir chave"),m(2),U(e.apiKey?"visibility_off":"visibility")}}function Rlt(t,n){if(t&1){let e=ie();d(0,"div",4),k(1,Flt,6,3,"ng-container",7),d(2,"button",15),$("click",function(){W(e);let r=S(2);return Y(r.editApiKey())}),d(3,"mat-icon"),h(4,"edit"),c()()()}if(t&2){let e=S(2);m(),f("ngIf",e.hasSignerApiKey||e.apiKey)}}function Plt(t,n){if(t&1){let e=ie();d(0,"button",25),$("click",function(){W(e);let r=S(3);return Y(r.deleteApiKey())}),d(1,"mat-icon",26),h(2,"delete"),c()()}}function Nlt(t,n){if(t&1){let e=ie();d(0,"form",17),$("ngSubmit",function(){W(e);let r=S(2);return Y(r.saveEdit())}),d(1,"mat-form-field",18)(2,"mat-label"),h(3,"Chave"),c(),d(4,"input",19),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.editedApiKey,r)||(o.editedApiKey=r),Y(r)}),c(),d(5,"mat-error"),h(6),c()(),d(7,"button",20)(8,"mat-icon",21),h(9,"check"),c()(),d(10,"button",22),$("click",function(){W(e);let r=S(2);return Y(r.cancelEdit())}),d(11,"mat-icon",23),h(12,"close"),c()(),k(13,Plt,3,0,"button",24),c()}if(t&2){let e=S(2);m(4),en("ngModel",e.editedApiKey),m(2),U(e.Error.getMessage("signerApiKey","required")),m(7),f("ngIf",e.hasSignerApiKey)}}function Olt(t,n){if(t&1&&(d(0,"div",2)(1,"div",9)(2,"span",10),h(3,"Chave de API do Assinador"),c(),k(4,Mlt,3,4,"div",11),c(),k(5,Rlt,5,1,"div",12)(6,Nlt,14,3,"form",13),c()),t&2){let e=S();m(4),f("ngIf",!e.loading),m(),f("ngIf",!e.showApiKeyField),m(),f("ngIf",e.showApiKeyField)}}function Llt(t,n){t&1&&(he(0),H(1,"app-registry-integration"),fe())}function Vlt(t,n){t&1&&(he(0),H(1,"app-registry-data")(2,"app-issuer-integration"),fe())}function Blt(t,n){if(t&1&&(he(0),H(1,"app-general-settings",27),d(2,"div",0),H(3,"app-webhook-settings",28),c(),k(4,Llt,2,0,"ng-container",7)(5,Vlt,3,0,"ng-container",7),fe()),t&2){let e=S();m(),f("generalSettings",e.generalSettings),m(2),f("settings",e.webhookSettings),m(),f("ngIf",e.subscription.type==e.SubscriptionTypes.Issuer),m(),f("ngIf",e.subscription.type!=e.SubscriptionTypes.Issuer)}}var $ve=(()=>{class t{constructor(e,i,r,o,a,s){this.configurationService=e,this.settingService=i,this.Error=r,this.dialogService=o,this.messageService=a,this.spaControl=s,this.SubscriptionTypes=Zr,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1}ngOnInit(){this.signerUrl=this.configurationService.config.clientConfig.signerUrl,this.loadSettings(),this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter,this.subscription=e.subscription}))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}loadSettings(){this.loading=!0,this.settingService.get().subscribe(e=>{this.loading=!1,this.hasSignerApiKey=e.hasSignerApiKey,this.webhookSettings=e.webhook,this.generalSettings=e.generalSettings},e=>this.loading=!1)}toggleApiKey(){this.apiKey="",this.showApiKey=!this.showApiKey,this.showApiKey&&(this.loading=!0,this.settingService.getSignerApiKey().subscribe(e=>{this.loading=!1,this.apiKey=e.value},e=>this.loading=!1))}editApiKey(){this.apiKey&&(this.editedApiKey=this.apiKey),this.showApiKeyField=!0}saveEdit(){this.editedApiKey&&(this.loading=!0,this.settingService.updateSignerApiKey({value:this.editedApiKey}).subscribe(e=>{this.loading=!1,this.apiKey=this.editedApiKey,this.showApiKey=!0,this.messageService.showSuccess("Chave atualizada com sucesso"),this.loadSettings(),this.cancelEdit()},e=>this.loading=!1))}cancelEdit(){this.editedApiKey="",this.showApiKeyField=!1}deleteApiKey(){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Deseja mesmo excluir a chave de API? Esse valor n\xE3o poder\xE1 ser recuperado.",confirmButtonText:"Excluir",cancelButtonText:"Cancelar",confirmButtonColor:"warn"}).then(e=>{e&&(this.loading=!0,this.settingService.deleteSignerApiKey().subscribe(i=>{this.loading=!1,this.messageService.showSuccess("Chave exclu\xEDda com sucesso"),this.cancelEdit(),this.showApiKey=!1,this.apiKey="",this.loadSettings()},i=>this.loading=!1))})}static{this.\u0275fac=function(i){return new(i||t)(E(zo),E(Xa),E(wi),E(Qi),E(Bi),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-settings"]],decls:10,vars:4,consts:[[1,"box-light"],[1,"row"],[1,"col-sm-6"],["label","URL do Assinador"],[1,"d-flex","align-items-center"],["target","_blank","class","ms-2","mat-icon-button","",3,"href",4,"ngIf"],["class","col-sm-6",4,"ngIf"],[4,"ngIf"],["target","_blank","mat-icon-button","",1,"ms-2",3,"href"],[1,"prop-label","d-flex","align-items-center"],[1,"me-2"],[3,"class",4,"ngIf"],["class","d-flex align-items-center",4,"ngIf"],["class","d-flex align-items-center",3,"ngSubmit",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","aria-label","Editar chave","matTooltip","Editar chave",3,"click"],["mat-icon-button","","aria-label","Exibir/esconder chave",1,"ms-2",3,"click","matTooltip"],[1,"d-flex","align-items-center",3,"ngSubmit"],[1,"col-6","ps-0"],["name","signerApiKey","matInput","","required","",3,"ngModelChange","ngModel"],["color","primary","mat-icon-button","","matTooltip","Atualizar",1,"text-success"],["aria-label","Confirm"],["type","button","mat-icon-button","","matTooltip","Cancelar",3,"click"],["aria-label","Cancel"],["type","button","class","ms-3","mat-icon-button","","aria-label","Excluir chave","matTooltip","Excluir chave",3,"click",4,"ngIf"],["type","button","mat-icon-button","","aria-label","Excluir chave","matTooltip","Excluir chave",1,"ms-3",3,"click"],["color","warn"],[3,"generalSettings"],[3,"settings"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"spa-prop",3)(4,"div",4)(5,"span"),h(6),c(),k(7,klt,3,1,"a",5),c()()(),k(8,Olt,7,3,"div",6),c()(),k(9,Blt,6,4,"ng-container",7)),i&2&&(m(6),U(r.signerUrl),m(),f("ngIf",r.signerUrl),m(),f("ngIf",r.hasSubscriptionSelected),m(),f("ngIf",r.hasSubscriptionSelected))},dependencies:[Ee,zt,Gt,it,pt,Jn,Va,kh,He,Ev,fi,Wt,bt,jt,Si,wn,yi,NB,Nve,Ove,zB,Gve]})}}return t})();var hI=(()=>{class t{transform(e){switch(e){case Jr.Degree:return"Diploma";case Jr.AcademicTranscript:return"Hist\xF3rico escolar";case Jr.Curriculum:return"Curr\xEDculo escolar";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"templateType",type:t,pure:!0})}}return t})();var jlt=["templatesTable"];function Hlt(t,n){t&1&&(d(0,"button",20)(1,"mat-icon",21),h(2,"add_circle"),c(),h(3," Novo"),c())}function zlt(t,n){t&1&&(d(0,"mat-header-cell",22),h(1,"Nome"),c())}function Ult(t,n){if(t&1){let e=ie();d(0,"mat-cell",23)(1,"spa-link-button",24),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigate(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.name)}}function Glt(t,n){t&1&&(d(0,"mat-header-cell",25),h(1,"Tipo"),c())}function $lt(t,n){if(t&1&&(d(0,"mat-cell",26),h(1),ce(2,"templateType"),c()),t&2){let e=n.$implicit;m(),U(xe(2,1,e.type))}}function qlt(t,n){t&1&&(d(0,"mat-header-cell",27),h(1,"Data de cria\xE7\xE3o"),c())}function Wlt(t,n){if(t&1&&(d(0,"mat-cell",28),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function Ylt(t,n){t&1&&H(0,"mat-header-cell",29)}function Klt(t,n){if(t&1){let e=ie();d(0,"mat-cell",29)(1,"button",30),$("click",function(){let r=W(e).$implicit,o=S();return Y(o.delete(r))}),d(2,"mat-icon",31),h(3,"delete"),c()()()}}var qve=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.dialogService=i,this.router=r,this.route=o,this.templateService=a,this.routeHelper=s,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1}ngOnInit(){this.dataSource=this.templateService.templates,this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}onRouteChange(e){if(this.templatesTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="TemplateList")try{this.templatesTable.refresh()}catch{}}}navigate(e){this.router.navigate([e],{relativeTo:this.route})}delete(e){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:`Tem certeza que deseja excluir o modelo "${e.name}"?`,confirmButtonText:"Excluir",cancelButtonText:"Cancelar",confirmButtonColor:"warn"}).then(i=>{i&&(this.loading=!0,this.templateService.delete(e.id).subscribe(()=>this.templatesTable.refresh()).add(()=>this.loading=!1))})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Qi),E(lt),E(Ut),E(vd),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-template-list"]],viewQuery:function(i,r){if(i&1&&ot(jlt,5),i&2){let o;Pe(o=Ne())&&(r.templatesTable=o.first)}},decls:24,vars:4,consts:[["templatesTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","primary","routerLink","new",4,"ngIf"],["matSort","","matSortActive","creationDate","matSortDirection","desc","showRefresh","",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","name"],["mat-sort-header","","fxFlex","65",4,"matHeaderCellDef"],["fxFlex","65",4,"matCellDef"],["matColumnDef","type"],["mat-sort-header","","fxFlex","40",4,"matHeaderCellDef"],["fxFlex","40",4,"matCellDef"],["matColumnDef","creationDate"],["mat-sort-header","","fxFlex","20",4,"matHeaderCellDef"],["fxFlex","20",4,"matCellDef"],["matColumnDef","delete"],["fxFlex","15",4,"matHeaderCellDef"],["fxFlex","15",4,"matCellDef"],["mat-flat-button","","color","primary","routerLink","new"],[1,"me-1"],["mat-sort-header","","fxFlex","65"],["fxFlex","65"],[3,"trigger"],["mat-sort-header","","fxFlex","40"],["fxFlex","40"],["mat-sort-header","","fxFlex","20"],["fxFlex","20"],["fxFlex","15"],["mat-flat-button","",3,"click"],["color","warn"]],template:function(i,r){i&1&&(d(0,"spa-box",1),H(1,"ngx-loading",2),d(2,"span",3),h(3,"Modelos"),c(),k(4,Hlt,4,0,"button",4),d(5,"lac-table",5,0)(7,"div",6)(8,"div",7)(9,"h3"),h(10,"Nenhum modelo cadastrado."),c()()(),he(11,8),k(12,zlt,2,0,"mat-header-cell",9)(13,Ult,3,1,"mat-cell",10),fe(),he(14,11),k(15,Glt,2,0,"mat-header-cell",12)(16,$lt,3,3,"mat-cell",13),fe(),he(17,14),k(18,qlt,2,0,"mat-header-cell",15)(19,Wlt,3,4,"mat-cell",16),fe(),he(20,17),k(21,Ylt,1,0,"mat-header-cell",18)(22,Klt,4,0,"mat-cell",19),fe(),c()(),H(23,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected),m(),f("dataSource",r.dataSource))},dependencies:[Ee,He,Ze,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,As,_n,gn,rn,hI]})}}return t})();var Wve=t=>[t];function Xlt(t,n){if(t&1&&(d(0,"mat-option",17),h(1),ce(2,"templateType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function Qlt(t,n){t&1&&(d(0,"div")(1,"p"),h(2," Se os diplomas criados \xE0 partir deste modelo ser\xE3o validados fora deste sistema, use os campos abaixo para definir a URL de valida\xE7\xE3o do diploma que ser\xE1 adicionada na representa\xE7\xE3o visual do diploma. "),c(),d(3,"p"),h(4," Use a vari\xE1vel "),d(5,"code",21),h(6),c(),h(7," para representar o c\xF3digo de valida\xE7\xE3o. "),c(),d(8,"p"),h(9," Exemplo: se a URL base for "),d(10,"code"),h(11,"https://meudiploma.com"),c(),h(12," e o caminho de valida\xE7\xE3o "),d(13,"code",21),h(14),c(),h(15,", a URL final adicionada ao diploma ser\xE1 "),d(16,"code",21),h(17),c()()()),t&2&&(m(6),U("{code}"),m(8),ue('"',"/diploma/{code}",'"'),m(3),U("https://meudiploma.com/diploma/{code}"))}function Zlt(t,n){t&1&&(d(0,"div")(1,"p"),h(2," Se os hist\xF3ricos escolares criados \xE0 partir deste modelo ser\xE3o validados fora deste sistema, use os campos abaixo para definir a URL de valida\xE7\xE3o do hist\xF3rico escolar que ser\xE1 adicionada na representa\xE7\xE3o visual do hist\xF3rico escolar. "),c(),d(3,"p"),h(4," Use a vari\xE1vel "),d(5,"code",21),h(6),c(),h(7," para representar o c\xF3digo de valida\xE7\xE3o. "),c(),d(8,"p"),h(9," Exemplo: se a URL base for "),d(10,"code"),h(11,"https://meuhistorico.com"),c(),h(12," e o caminho de valida\xE7\xE3o "),d(13,"code",21),h(14),c(),h(15,", a URL final adicionada ao hist\xF3rico escolar ser\xE1 "),d(16,"code",21),h(17),c()()()),t&2&&(m(6),U("{code}"),m(8),ue('"',"/historico-escolar/{code}",'"'),m(3),U("https://meuhistorico.com/historico-escolar/{code}"))}function Jlt(t,n){t&1&&(d(0,"div")(1,"p"),h(2," Se os curr\xEDculos escolares criados \xE0 partir deste modelo ser\xE3o validados fora deste sistema, use os campos abaixo para definir a URL de valida\xE7\xE3o do curr\xEDculo escolar que ser\xE1 adicionada na representa\xE7\xE3o visual do curr\xEDculo escolar. "),c(),d(3,"p"),h(4," Use a vari\xE1vel "),d(5,"code",21),h(6),c(),h(7," para representar o c\xF3digo de valida\xE7\xE3o. "),c(),d(8,"p"),h(9," Exemplo: se a URL base for "),d(10,"code"),h(11,"https://meucurriculo.com"),c(),h(12," e o caminho de valida\xE7\xE3o "),d(13,"code",21),h(14),c(),h(15,", a URL final adicionada ao hist\xF3rico escolar ser\xE1 "),d(16,"code",21),h(17),c()()()),t&2&&(m(6),U("{code}"),m(8),ue('"',"/curriculo-escolar/{code}",'"'),m(3),U("https://meucurriculo.com/curriculo-escolar/{code}"))}function ect(t,n){t&1&&(d(0,"p"),h(1,"Envie um arquivo formul\xE1rio PDF (PDF form) que ser\xE1 utilizado para gerar a representa\xE7\xE3o visual do diploma."),c())}function tct(t,n){t&1&&(d(0,"p"),h(1,"Envie um arquivo PDF que ser\xE1 utilizado para gerar a representa\xE7\xE3o visual do hist\xF3rico escolar."),c())}function ict(t,n){t&1&&(d(0,"p"),h(1,"Envie um arquivo PDF que ser\xE1 utilizado para gerar a representa\xE7\xE3o visual do curr\xEDculo escolar."),c())}function nct(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",29)(2,"mat-icon",7),h(3,"description"),c(),d(4,"h2",24),h(5,"Representa\xE7\xE3o visual em papel timbrado (opcional)"),c()(),d(6,"p"),h(7,"Envie um arquivo formul\xE1rio PDF (PDF form) que ser\xE1 utilizado para gerar a representa\xE7\xE3o visual do diploma para impress\xE3o em papel timbrado."),c(),d(8,"div",25)(9,"spa-files",26),$("filesLoading",function(r){W(e);let o=S(4);return Y(o.onFilesLoadingLetterhead(r))}),c()(),d(10,"div",27)(11,"a",30)(12,"mat-icon",7),h(13,"get_app"),c(),h(14," Baixar modelo de exemplo "),c()()()}if(t&2){let e=S(4);m(9),f("filesToAdd",e.filesToAddLetterhead)("acceptedTypes",Le(3,Wve,e.AcceptedTypes))("single",!0)}}function rct(t,n){if(t&1){let e=ie();d(0,"div",22)(1,"div",23)(2,"mat-icon",7),h(3,"description"),c(),d(4,"h2",24),h(5,"Representa\xE7\xE3o visual"),c()(),k(6,ect,2,0,"p",15)(7,tct,2,0,"p",15)(8,ict,2,0,"p",15),d(9,"div",25)(10,"spa-files",26),$("filesLoading",function(r){W(e);let o=S(3);return Y(o.onFilesLoading(r))}),c()(),d(11,"div",27)(12,"a",28)(13,"mat-icon",7),h(14,"get_app"),c(),h(15," Baixar modelo de exemplo "),c()(),k(16,nct,15,5,"div",15),c()}if(t&2){let e=S(3);m(6),f("ngIf",e.form.get("type").value==e.TemplateTypes.Degree),m(),f("ngIf",e.form.get("type").value==e.TemplateTypes.AcademicTranscript),m(),f("ngIf",e.form.get("type").value==e.TemplateTypes.Curriculum),m(2),f("filesToAdd",e.filesToAdd)("acceptedTypes",Le(8,Wve,e.AcceptedTypes))("single",!0),m(2),f("href",e.exampleTemplatePath,qo),m(4),f("ngIf",e.form.get("type").value==e.TemplateTypes.Degree)}}function oct(t,n){if(t&1){let e=ie();d(0,"mat-list-item",39)(1,"mat-icon",40),h(2),c(),h(3),d(4,"small",41),h(5),c(),d(6,"button",42),$("click",function(){let r=W(e).$implicit,o=S(4);return Y(o.copyField(r))}),d(7,"mat-icon"),h(8,"content_copy"),c()()()}if(t&2){let e=n.$implicit;m(),f("matTooltip",e.namespace),m(),U(e.class),m(),ue(" ",e.name,": "),m(2),U(e.description)}}function act(t,n){if(t&1&&(d(0,"div",22)(1,"div",31)(2,"div",23)(3,"mat-icon",7),h(4,"format_list_bulleted"),c(),d(5,"h2",24),h(6,"Informa\xE7\xF5es"),c()(),d(7,"div",32)(8,"p",33),h(9,"No template voc\xEA pode usar qualquer uma das informa\xE7\xF5es especificadas pela portaria do MEC, usando o c\xF3digo correspondente como abaixo:"),c(),d(10,"div",34)(11,"pre",21),h(12),c()(),d(13,"p"),h(14,"Veja abaixo as informa\xE7\xF5es mais utilizadas:"),c(),d(15,"div",35)(16,"ng-scrollbar",36)(17,"mat-list",37),k(18,oct,9,4,"mat-list-item",38),c()()()()()()),t&2){let e=S(3);m(12),U("{codigo.da.informacao}"),m(6),f("ngForOf",e.availableFields)}}function sct(t,n){if(t&1){let e=ie();d(0,"div",22)(1,"div",31)(2,"div",43)(3,"h2",24)(4,"mat-icon",7),h(5,"margin"),c(),h(6,"Margens"),c(),d(7,"button",44),$("click",function(){W(e);let r=S(3);return Y(r.onRefreshPreview())}),d(8,"mat-icon",45),h(9,"restart_alt"),c()()(),d(10,"div",32)(11,"p"),h(12,"Voc\xEA pode definir as medidas das margens para melhor personaliza\xE7\xE3o do modelo."),c(),d(13,"p"),h(14,"A margem superior deve corresponder ao espa\xE7o j\xE1 utilizado no modelo, \xE0 partir do qual o sistema pode iniciar a escrita das informa\xE7\xF5es do documento."),c(),d(15,"p"),h(16,"As medidas devem seguir as seguintes regras:"),c(),d(17,"ul")(18,"li"),h(19,"A soma da "),d(20,"strong"),h(21,"margem superior"),c(),h(22," com a "),d(23,"strong"),h(24,"margem inferior"),c(),h(25," n\xE3o deve ultrapassar "),d(26,"strong"),h(27,"27,5 cm"),c(),h(28,";"),c(),d(29,"li"),h(30,"A soma da "),d(31,"strong"),h(32,"margem \xE0 esquerdo"),c(),h(33," com a "),d(34,"strong"),h(35,"margem \xE0 direita"),c(),h(36," n\xE3o deve ultrapassar "),d(37,"strong"),h(38,"20,5 cm"),c(),h(39,"."),c()(),d(40,"div",46)(41,"mat-form-field",47)(42,"mat-label"),h(43,"Margem superior (cm)"),c(),H(44,"input",48),d(45,"mat-error"),h(46),c()(),d(47,"mat-form-field",49)(48,"mat-label"),h(49,"Margem inferior (cm)"),c(),H(50,"input",50),d(51,"mat-error"),h(52),c()()(),d(53,"div",46)(54,"mat-form-field",47)(55,"mat-label"),h(56,"Margem \xE0 esquerda (cm)"),c(),H(57,"input",51),d(58,"mat-error"),h(59),c()(),d(60,"mat-form-field",49)(61,"mat-label"),h(62,"Margem \xE0 direita (cm)"),c(),H(63,"input",52),d(64,"mat-error"),h(65),c()()()()()()}if(t&2){let e=S(3);m(7),f("disabled",!e.templateId&&e.filesToAdd.length<1),m(37),f("options",e.customCurrencyMaskConfig),m(2),U(e.Error.get(e.form,"marginTop")),m(4),f("options",e.customCurrencyMaskConfig),m(2),U(e.Error.get(e.form,"marginBottom")),m(5),f("options",e.customCurrencyMaskConfig),m(2),U(e.Error.get(e.form,"marginLeft")),m(4),f("options",e.customCurrencyMaskConfig),m(2),U(e.Error.get(e.form,"marginRight"))}}function lct(t,n){if(t&1&&(d(0,"div")(1,"h3"),h(2,"Valida\xE7\xE3o externa"),c(),k(3,Qlt,18,3,"div",15)(4,Zlt,18,3,"div",15)(5,Jlt,18,3,"div",15),d(6,"div",10)(7,"mat-form-field",11)(8,"mat-label"),h(9,"URL Base"),c(),H(10,"input",18),d(11,"mat-error"),h(12),c()()(),d(13,"div",10)(14,"mat-form-field",11)(15,"mat-label"),h(16,"Caminho de valida\xE7\xE3o"),c(),H(17,"input",19),d(18,"mat-error"),h(19),c()()(),d(20,"div",10),k(21,rct,17,10,"div",20)(22,act,19,2,"div",20)(23,sct,66,9,"div",20),c()()),t&2){let e=S(2);m(3),f("ngIf",e.form.get("type").value==e.TemplateTypes.Degree),m(),f("ngIf",e.form.get("type").value==e.TemplateTypes.AcademicTranscript),m(),f("ngIf",e.form.get("type").value==e.TemplateTypes.Curriculum),m(7),U(e.Error.get(e.form,"baseUrl")),m(7),U(e.Error.get(e.form,"validationPath")),m(2),f("ngIf",!e.templateId),m(),f("ngIf",e.form.get("type").value==e.TemplateTypes.Degree&&!e.templateId),m(),f("ngIf",e.form.get("type").value!=e.TemplateTypes.Degree)}}function cct(t,n){if(t&1){let e=ie();d(0,"div",53)(1,"div",43)(2,"h2",24)(3,"mat-icon",7),h(4,"settings"),c(),h(5,"Configura\xE7\xF5es"),c(),d(6,"button",44),$("click",function(){W(e);let r=S(2);return Y(r.onRefreshPreview())}),d(7,"mat-icon",45),h(8,"restart_alt"),c()()(),d(9,"mat-slide-toggle",54),h(10,"Mostrar Reconhecimento do curso junto com a Renova\xE7\xE3o do Reconhecimento, quando preenchida"),c(),d(11,"mat-slide-toggle",55),h(12,"Ocultar documento de identifica\xE7\xE3o quando o aluno for "),d(13,"b"),h(14,"brasileiro"),c()(),d(15,"h3")(16,"mat-icon",56),h(17,"table_chart"),c(),h(18,"T\xEDtulos das tabelas"),c(),d(19,"mat-form-field",57)(20,"mat-label"),h(21,"Informa\xE7\xF5es do aluno"),c(),H(22,"input",58),d(23,"mat-error"),h(24),c()(),d(25,"mat-form-field",57)(26,"mat-label"),h(27,"Informa\xE7\xF5es do curso"),c(),H(28,"input",59),d(29,"mat-error"),h(30),c()(),d(31,"mat-form-field",57)(32,"mat-label"),h(33,"Informa\xE7\xF5es das disciplinas"),c(),H(34,"input",60),d(35,"mat-error"),h(36),c()(),d(37,"mat-form-field",57)(38,"mat-label"),h(39,"Informa\xE7\xF5es das atividades complementares e est\xE1gio"),c(),H(40,"input",61),d(41,"mat-error"),h(42),c()()()}if(t&2){let e=S(2);f("formGroup",e.academicTranscriptSettingsForm),m(6),f("disabled",!e.templateId&&e.filesToAdd.length<1),m(18),U(e.Error.get(e.academicTranscriptSettingsForm,"studentDataTableTitle","text")),m(6),U(e.Error.get(e.academicTranscriptSettingsForm,"courseDataTableTitle","text")),m(6),U(e.Error.get(e.academicTranscriptSettingsForm,"disciplineDataTableTitle","text")),m(6),U(e.Error.get(e.academicTranscriptSettingsForm,"compActivityAndInternshipDataTableTitle","text"))}}function dct(t,n){if(t&1){let e=ie();d(0,"form",8)(1,"div",9)(2,"h2"),h(3,"Novo modelo"),c(),d(4,"div",10)(5,"mat-form-field",11)(6,"mat-label"),h(7,"Nome do modelo"),c(),H(8,"input",12),d(9,"mat-error"),h(10),c()()(),d(11,"div",10)(12,"mat-form-field",11)(13,"mat-label"),h(14,"Tipo do modelo"),c(),d(15,"mat-select",13),$("selectionChange",function(r){W(e);let o=S();return Y(o.setAcademicTranscriptSettingFields(r.value))}),k(16,Xlt,3,4,"mat-option",14),c(),d(17,"mat-error"),h(18),c()()(),k(19,lct,24,8,"div",15),c(),k(20,cct,43,6,"div",16),c()}if(t&2){let e,i=S();f("formGroup",i.form),m(10),U(i.Error.get(i.form,"name","templateName")),m(6),f("ngForOf",i.templateTypes),m(2),U(i.Error.get(i.form,"type","templateType")),m(),f("ngIf",((e=i.form.get("type"))==null?null:e.value)!=null),m(),f("ngIf",i.form.get("type").value==i.TemplateTypes.AcademicTranscript)}}function uct(t,n){if(t&1&&(d(0,"mat-expansion-panel",62)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",23)(4,"mat-icon",7),h(5,"find_in_page"),c(),d(6,"h2",24),h(7,"Pr\xE9-Visualiza\xE7\xE3o"),c()()()(),d(8,"p"),h(9,"Veja como ficar\xE1 o modelo quando preenchido:"),c(),d(10,"div",63),H(11,"iframe",64),c()()),t&2){let e=S();m(11),f("src",e.previewUrl,tv)}}function mct(t,n){if(t&1&&(d(0,"mat-expansion-panel",65)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",23)(4,"mat-icon",7),h(5,"find_in_page"),c(),d(6,"h2",24),h(7,"Pr\xE9-Visualiza\xE7\xE3o modelo timbrado"),c()()()(),d(8,"p"),h(9,"Veja como ficar\xE1 o modelo quando preenchido:"),c(),d(10,"div",63),H(11,"iframe",64),c()()),t&2){let e=S();m(11),f("src",e.letterheadPreviewUrl,tv)}}var XZ=(()=>{class t{get exampleTemplatePath(){switch(this.form?.get("type").value){case Jr.AcademicTranscript:return"/theme-assets/academic_transcript_template.pdf";case Jr.Curriculum:return"/theme-assets/curriculum_template.pdf";case Jr.Degree:default:return"../../../assets/files/template_v2.pdf"}}constructor(e,i,r,o,a,s,l,u,p){this.logger=e,this.fb=i,this.route=r,this.router=o,this.templateService=a,this.messageService=s,this.sanitizer=l,this.Error=u,this.configService=p,this.TemplateTypes=Jr,this.templateTypes=Object.keys(Jr),this.AcceptedTypes="application/pdf",this.loading=!1,this.templateId=null,this.customCurrencyMaskConfig={align:"left",allowNegative:!1,allowZero:!0,decimal:",",precision:1,prefix:"",suffix:"",thousands:"",nullable:!1},this.availableFields=[{namespace:"Diplomado",name:"Nome",class:"person",code:"{Diploma.Diplomado.Nome}",description:"Nome do diplomado"},{namespace:"Diplomado",name:"CPF",class:"person",code:"{Diploma.Diplomado.CPF}",description:"CPF do diplomado"},{namespace:"Diplomado",name:"Data de Nascimento",class:"person",code:"{Diploma.Diplomado.DataNascimento}",description:"Data de nascimento do diplomado"},{namespace:"Diplomado",name:"Nacionalidade",class:"person",code:"{Diploma.Diplomado.Nacionalidade}",description:"Nacionalidade do diplomado"},{namespace:"Diplomado",name:"UF da Naturalidade",class:"person",code:"{Diploma.Diplomado.Naturalidade.UF}",description:"UF da Naturalidade do diplomado"},{namespace:"Diplomado",name:"N\xFAmero RG",class:"person",code:"{Diploma.Diplomado.RG.Numero}",description:"N\xFAmero do RG do diplomado"},{namespace:"Diplomado",name:"UF RG",class:"person",code:"{Diploma.Diplomado.RG.UF}",description:"UF do RG do diplomado"},{namespace:"Curso",name:"Curso",class:"science",code:"{Diploma.Curso.Nome}",description:"Nome do curso"},{namespace:"Curso",name:"T\xEDtulo",class:"science",code:"{Diploma.Curso.TituloConferido}",description:"T\xEDtulo conferido ao diplomado"},{namespace:"Curso",name:"Tipo Curso",class:"science",code:"{Diploma.Curso.Reconhecimento.Tipo}",description:"Tipo de reconhecimento do curso"},{namespace:"Curso",name:"N\xFAmero Curso",class:"science",code:"{Diploma.Curso.Reconhecimento.Numero}",description:"N\xFAmero do reconhecimento do curso"},{namespace:"Curso",name:"Data Curso",class:"science",code:"{Diploma.Curso.Reconhecimento.Tipo}",description:"Data do reconhecimento do curso"},{namespace:"IES Emissora",name:"Emissora",class:"school",code:"{Diploma.IesEmissora.Nome}",description:"Nome da IES emissora"},{namespace:"IES Emissora",name:"Munic\xEDpio Emissora",class:"school",code:"{Diploma.IesEmissora.Endereco.Municipio.Nome}",description:"Munic\xEDpio da IES emissora"},{namespace:"IES Emissora",name:"Tipo Recredenciamento",class:"school",code:"{Diploma.IesEmissora.Recredenciamento.Tipo}",description:"Tipo do recredenciamento da IES emissora"},{namespace:"IES Emissora",name:"N\xFAmero Recredenciamento",class:"school",code:"{Diploma.IesEmissora.Recredenciamento.Numero}",description:"N\xFAmero do recredenciamento da IES emissora"},{namespace:"IES Registradora",name:"Registradora",class:"domain",code:"{Registro.IesRegistradora.Nome}",description:"Nome da IES registradora"},{namespace:"Livro de Registro",name:"Data de expedi\xE7\xE3o",class:"menu_book",code:"{Registro.LivroRegistro.DataExpedicao}",description:"Data de expedi\xE7\xE3o no livro de registro"}]}ngOnInit(){this.logger.logTrace("TemplateCreateComponent ngOnInit"),this.templateId=this.route.snapshot.params.id,this.templateId!=null?(this.submitButtonText="Atualizar modelo",this.loading=!0,this.templateService.get(this.templateId).subscribe(e=>{this.loading=!1,this.createForm(e);let i={id:this.templateId,contentType:this.AcceptedTypes};this.loadPreview(this.loading,[i])},e=>this.loading=!1)):(this.submitButtonText="Criar modelo",this.createForm())}onFilesLoading(e){this.loadPreview(e,this.form.value.filesToAdd)}onFilesLoadingLetterhead(e){this.loadPreview(e,this.form.value.filesToAddLetterhead,!0)}setTemplateDimensions(e,i){e!=Jr.Degree&&(i.marginTopInCentimeters=this.form.get("marginTop").value,i.marginBottomInCentimeters=this.form.get("marginBottom").value,i.marginLeftInCentimeters=this.form.get("marginLeft").value,i.marginRightInCentimeters=this.form.get("marginRight").value)}buildSettingsModel(e){return e==Jr.AcademicTranscript?{academicTranscript:{showCourseRecognitionAlongWithFilledRenewal:this.academicTranscriptSettingsForm.get("showCourseRecognitionAlongWithFilledRenewal").value,hideIdentificationDocumentForBrazilianStudents:this.academicTranscriptSettingsForm.get("hideIdentificationDocumentForBrazilianStudents").value,studentDataTableTitle:this.academicTranscriptSettingsForm.get("studentDataTableTitle").value,courseDataTableTitle:this.academicTranscriptSettingsForm.get("courseDataTableTitle").value,disciplineDataTableTitle:this.academicTranscriptSettingsForm.get("disciplineDataTableTitle").value,compActivityAndInternshipDataTableTitle:this.academicTranscriptSettingsForm.get("compActivityAndInternshipDataTableTitle").value}}:null}loadPreview(e,i,r){if(!e){let o=i[0],a=this.form.get("type").value,s={id:o.id,contentType:o.contentType,name:o.name,type:a,baseUrl:this.form.value.baseUrl,validationPath:this.form.value.validationPath,settings:this.buildSettingsModel(a),isEdit:this.templateId!=null};this.setTemplateDimensions(s.type,s),this.loading=!0,this.templateService.previewTicket(s).subscribe(l=>{this.loading=!1;let u=this.sanitizer.bypassSecurityTrustResourceUrl(l.location);r?this.letterheadPreviewUrl=u:this.previewUrl=u},l=>{this.loading=!1,r?this.letterheadPreviewUrl=null:this.previewUrl=null})}}submit(){if(!this.form.valid)return;this.loading=!0;let e=Gi(Ve({},this.form.value),{type:this.form.get("type").value}),i={name:e.name,baseUrl:e.baseUrl,validationPath:e.validationPath,settings:this.buildSettingsModel(e.type)};this.setTemplateDimensions(e.type,i);let r;if(this.templateId==null){let o=Gi(Ve({},i),{type:e.type,upload:e.filesToAdd[0],letterheadUpload:e.filesToAddLetterhead[0]});r=this.templateService.create(o)}else r=this.templateService.update(this.templateId,i);r.subscribe(o=>this.router.navigate(["../"],{relativeTo:this.route}),o=>this.loading=!1)}setAcademicTranscriptSettingFields(e){let i="academicTranscript";e==Jr.AcademicTranscript?this.form.setControl(i,this.academicTranscriptSettingsForm):this.form.removeControl(i)}createForm(e){this.academicTranscriptSettingsForm=this.fb.group({showCourseRecognitionAlongWithFilledRenewal:[e?.settings?.academicTranscript?.showCourseRecognitionAlongWithFilledRenewal==!0],hideIdentificationDocumentForBrazilianStudents:[e?.settings?.academicTranscript?.hideIdentificationDocumentForBrazilianStudents==!0],studentDataTableTitle:[e?.settings?.academicTranscript?.studentDataTableTitle??lI.StudentDataTableTitle,[Se.maxLength(200)]],courseDataTableTitle:[e?.settings?.academicTranscript?.courseDataTableTitle??lI.CourseDataTableTitle,[Se.maxLength(200)]],disciplineDataTableTitle:[e?.settings?.academicTranscript?.disciplineDataTableTitle??lI.DisciplineDataTableTitle,[Se.maxLength(200)]],compActivityAndInternshipDataTableTitle:[e?.settings?.academicTranscript?.compActivityAndInternshipDataTableTitle??lI.CompActivityAndInternshipDataTableTitle,[Se.maxLength(200)]]}),this.form=this.fb.group({name:[e?.name,[Se.required,Se.maxLength(200)]],type:[{value:e?.type,disabled:this.templateId},this.templateId?[]:[Se.required]],baseUrl:[e?.baseUrl,[Se.maxLength(200)]],validationPath:[e?.validationPath,[Se.maxLength(200)]],marginTop:[e?.marginTopInCentimeters??this.configService.config.visualRepresentationConfig.marginTopInCentimeters],marginBottom:[e?.marginBottomInCentimeters??this.configService.config.visualRepresentationConfig.marginBottomInCentimeters],marginLeft:[e?.marginLeftInCentimeters??this.configService.config.visualRepresentationConfig.marginLeftInCentimeters],marginRight:[e?.marginRightInCentimeters??this.configService.config.visualRepresentationConfig.marginRightInCentimeters]}),this.setAcademicTranscriptSettingFields(e?.type),this.templateId||(this.filesToAdd=this.fb.array([],[Se.required]),this.filesToAddLetterhead=this.fb.array([]),this.form.addControl("filesToAdd",this.filesToAdd),this.form.addControl("filesToAddLetterhead",this.filesToAddLetterhead))}copyField(e){let i=document.createElement("textarea");i.style.position="fixed",i.style.left="0",i.style.top="0",i.style.opacity="0",i.value=e.code,document.body.appendChild(i),i.focus(),i.select(),document.execCommand("copy"),document.body.removeChild(i),this.messageService.showSuccess("C\xF3digo copiado com sucesso")}onRefreshPreview(){let e=this.templateId?[{id:this.templateId,contentType:this.AcceptedTypes}]:this.form.value.filesToAdd;e.length>0&&this.loadPreview(this.loading,e)}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(Ti),E(Ut),E(lt),E(vd),E(Bi),E(Kl),E(wi),E(zo))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-template-create"]],decls:11,vars:7,consts:[[1,"loader-container",3,"hidden"],[3,"show"],[3,"formGroup",4,"ngIf"],["expanded","true",4,"ngIf"],["expanded","true","class","mt-3",4,"ngIf"],[1,"d-flex","justify-content-center","mt-3"],["mat-flat-button","","color","accent",3,"click","disabled"],[1,"me-1"],[3,"formGroup"],[1,"box-light"],[1,"row"],[1,"col-12","col-md-6","col-lg-4"],["matInput","","formControlName","name"],["formControlName","type",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["class","box-light",3,"formGroup",4,"ngIf"],[3,"value"],["matInput","","formControlName","baseUrl"],["matInput","","formControlName","validationPath"],["class","col-12 col-md-6 mt-3",4,"ngIf"],["ng-non-bindable",""],[1,"col-12","col-md-6","mt-3"],[1,"d-flex","align-items-center"],[1,"text-primary","mb-0"],[2,"height","200px"],[3,"filesLoading","filesToAdd","acceptedTypes","single"],[1,"d-flex","justify-content-center","my-3"],["target","_blank",1,"my-2","normal-wrap-button","mat-button","mat-primary","d-flex","align-items-center",3,"href"],[1,"d-flex","align-items-center","pt-3"],["href","../../../assets/files/template_letterhead.pdf","target","_blank",1,"my-2","normal-wrap-button","mat-button","mat-primary","d-flex","align-items-center"],[1,"loader-container"],[1,"mt-3"],[1,"mb-0"],[1,"text-center"],[1,"mb-2"],["visibility","hover",2,"min-height","180px","max-height","180px"],["role","list",1,"pt-0"],["role","listitem","class","d-flex align-items-center",4,"ngFor","ngForOf"],["role","listitem",1,"d-flex","align-items-center"],[1,"me-2",3,"matTooltip"],[1,"ms-2","text-muted"],["mat-icon-button","","matTooltip","Copiar c\xF3digo",3,"click"],[1,"ms-auto","d-flex","align-items-center"],["mat-icon-button","","matTooltip","Atualizar a pr\xE9-visualiza\xE7\xE3o da representa\xE7\xE3o visual",1,"ms-auto",3,"click","disabled"],["aria-label","Refresh preview"],[1,"d-flex"],[1,"input-stretch"],["matInput","","formControlName","marginTop","currencyMask","",3,"options"],[1,"ms-2","input-stretch"],["matInput","","formControlName","marginBottom","currencyMask","",3,"options"],["matInput","","formControlName","marginLeft","currencyMask","",3,"options"],["matInput","","formControlName","marginRight","currencyMask","",3,"options"],[1,"box-light",3,"formGroup"],["formControlName","showCourseRecognitionAlongWithFilledRenewal",1,"col-12"],["formControlName","hideIdentificationDocumentForBrazilianStudents",1,"col-12"],[1,"me-1","mt-2"],[1,"col-12","col-md-6","col-lg-3"],["matInput","","formControlName","studentDataTableTitle"],["matInput","","formControlName","courseDataTableTitle"],["matInput","","formControlName","disciplineDataTableTitle"],["matInput","","formControlName","compActivityAndInternshipDataTableTitle"],["expanded","true"],[1,"frame-container"],[1,"frame-responsive",3,"src"],["expanded","true",1,"mt-3"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),k(2,dct,21,6,"form",2),he(3),k(4,uct,12,1,"mat-expansion-panel",3)(5,mct,12,1,"mat-expansion-panel",4),fe(),d(6,"div",5)(7,"button",6),$("click",function(){return r.submit()}),d(8,"mat-icon",7),h(9,"check"),c(),h(10),c()()()),i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(),f("ngIf",r.form),m(2),f("ngIf",r.previewUrl),m(),f("ngIf",r.letterheadPreviewUrl),m(2),f("disabled",(r.form==null?null:r.form.valid)!=!0||!r.previewUrl),m(3),U(r.submitButtonText))},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,He,Ze,fi,Wt,bt,jt,Si,N1,E0,F1,R1,cw,Mi,li,cc,yi,Fr,Li,Ju,hI]})}}return t})();function pct(t,n){if(t&1&&(d(0,"spa-prop",19),h(1),c()),t&2){let e=S(2);m(),U(e.model.baseUrl)}}function hct(t,n){if(t&1&&(d(0,"spa-prop",20),h(1),c()),t&2){let e=S(2);m(),U(e.model.validationPath)}}function fct(t,n){if(t&1){let e=ie();d(0,"button",12),$("click",function(){W(e);let r=S(2);return Y(r.openFile(!0))}),d(1,"mat-icon",13),h(2,"description"),c(),h(3," Visualizar modelo timbrado"),c()}}function gct(t,n){if(t&1&&(d(0,"div",5)(1,"spa-prop",21),h(2),c(),d(3,"spa-prop",22),h(4),c(),d(5,"spa-prop",23),h(6),c(),d(7,"spa-prop",24),h(8),c()()),t&2){let e=S(2);m(2),U(e.model.marginTopInCentimeters),m(2),U(e.model.marginBottomInCentimeters),m(2),U(e.model.marginLeftInCentimeters),m(2),U(e.model.marginRightInCentimeters)}}function _ct(t,n){if(t&1){let e=ie();d(0,"div",4)(1,"div",5)(2,"spa-prop",6),h(3),c(),d(4,"spa-prop",7),h(5),ce(6,"templateType"),c(),k(7,pct,2,1,"spa-prop",8)(8,hct,2,1,"spa-prop",9),d(9,"spa-prop",10),h(10),ce(11,"sub"),ce(12,"async"),c(),d(13,"spa-prop",11),h(14),ce(15,"date"),c(),d(16,"button",12),$("click",function(){W(e);let r=S();return Y(r.openFile())}),d(17,"mat-icon",13),h(18,"description"),c(),h(19," Visualizar modelo"),c(),k(20,fct,4,0,"button",14),c(),k(21,gct,9,4,"div",15),d(22,"div",16)(23,"div")(24,"button",17),$("click",function(){W(e);let r=S();return Y(r.generate())}),d(25,"mat-icon",13),h(26,"add"),c(),h(27),c()(),d(28,"div")(29,"button",18)(30,"mat-icon",13),h(31,"edit"),c(),h(32,"Editar modelo"),c()()()()}if(t&2){let e=S();m(3),U(e.model.name),m(2),U(xe(6,9,e.model.type)),m(2),f("ngIf",e.model.baseUrl),m(),f("ngIf",e.model.validationPath),m(2),U(xe(12,13,xe(11,11,e.model.subscriptionId))),m(4),U(Bt(15,15,e.model.creationDate,"short")),m(6),f("ngIf",e.model.letterheadFile!=null),m(),f("ngIf",e.model.type!=e.TemplateTypes.Degree),m(6),U(e.generateButtonText)}}function vct(t,n){if(t&1&&(d(0,"div",25)(1,"h2",26)(2,"mat-icon",13),h(3,"settings"),c(),h(4,"Configura\xE7\xF5es"),c(),d(5,"div",4)(6,"spa-prop",27),h(7),c(),d(8,"spa-prop",28),h(9),c()(),d(10,"div",4)(11,"div",29)(12,"spa-prop",30),h(13),c()(),d(14,"div",29)(15,"spa-prop",31),h(16),c()(),d(17,"div",29)(18,"spa-prop",32),h(19),c()(),d(20,"div",29)(21,"spa-prop",33),h(22),c()()()()),t&2){let e=S();m(7),U(e.settings.academicTranscript.showCourseRecognitionAlongWithFilledRenewal?"Sim":"N\xE3o"),m(2),U(e.settings.academicTranscript.hideIdentificationDocumentForBrazilianStudents?"Sim":"N\xE3o"),m(4),U(e.settings.academicTranscript.studentDataTableTitle),m(3),U(e.settings.academicTranscript.courseDataTableTitle),m(3),U(e.settings.academicTranscript.disciplineDataTableTitle),m(3),U(e.settings.academicTranscript.compActivityAndInternshipDataTableTitle)}}var Yve=(()=>{class t{constructor(e,i,r,o,a){this.dialog=e,this.dialogService=i,this.route=r,this.router=o,this.templateService=a,this.TemplateTypes=Jr,this.$toUnsubscribe=[],this.loading=!1}ngOnInit(){this.$toUnsubscribe.push(this.route.paramMap.pipe(ri(e=>this.loading=!0),st(e=>e.get("id")),Wi(e=>this.templateService.get(e))).subscribe(e=>{switch(this.model=e,this.settings=this.model.settings,this.model.type){case Jr.Degree:this.generateButtonText="Gerar diplomas";break;case Jr.AcademicTranscript:this.generateButtonText="Gerar hist\xF3ricos escolares";break;case Jr.Curriculum:this.generateButtonText="Gerar curr\xEDculos escolares";break;default:break}this.loading=!1},e=>{this.loading=!1}))}openFile(e=!1){if(!this.model)return;let i=e?this.model.letterheadFile:this.model.file;this.dialogService.openFile([i],0)}generate(){let e={templateId:this.model.id},i;switch(this.model.type){case Jr.Degree:i=["generate"];break;case Jr.AcademicTranscript:i=["academic-transcripts","new"];break;case Jr.Curriculum:i=["curriculums","new"];break;default:break}this.router.navigate(["../..",...i],{relativeTo:this.route,queryParams:e})}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(Dn),E(Qi),E(Ut),E(lt),E(vd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-template-detail"]],decls:7,vars:3,consts:[[3,"show"],["box-title",""],["class","row",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"row"],[1,"col-md-4"],["label","Nome"],["label","Tipo"],["label","URL Base",4,"ngIf"],["label","Caminho de Valida\xE7\xE3o",4,"ngIf"],["label","Organiza\xE7\xE3o"],["label","Criado em"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],["color","primary","mat-stroked-button","",3,"click",4,"ngIf"],["class","col-md-4",4,"ngIf"],[1,"col-md-4","d-flex","flex-column","align-items-center","justify-content-center"],["color","accent","mat-flat-button","",3,"click"],["mat-stroked-button","","color","primary","routerLink","edit"],["label","URL Base"],["label","Caminho de Valida\xE7\xE3o"],["label","Margem superior (cm)"],["label","Margem inferior (cm)"],["label","Margem \xE0 esquerda (cm)"],["label","Margem \xE0 direita (cm)"],[1,"mt-1"],[1,"text-primary","mb-0"],["label","Mostrar Reconhecimento do curso junto a Renova\xE7\xE3o do Reconhecimento",1,"col"],["label","Ocultar documento de identifica\xE7\xE3o quando o aluno for brasileiro",1,"col"],[1,"col"],["label","Informa\xE7\xF5es do aluno"],["label","Informa\xE7\xF5es do curso"],["label","Informa\xE7\xF5es das disciplinas"],["label","Informa\xE7\xF5es das atividades complementares e est\xE1gio"]],template:function(i,r){i&1&&(d(0,"spa-box"),H(1,"ngx-loading",0),d(2,"span",1),h(3,"Detalhes do modelo"),c(),k(4,_ct,33,18,"div",2)(5,vct,23,6,"div",3),c(),H(6,"router-outlet")),i&2&&(m(),f("show",r.loading),m(3),f("ngIf",r.model),m(),f("ngIf",r.model.type==r.TemplateTypes.AcademicTranscript&&(r.settings==null?null:r.settings.academicTranscript)!=null))},dependencies:[Ee,He,Ze,li,un,wn,_n,gn,Ea,rn,sf,hI]})}}return t})();function bct(t,n){t&1&&(he(0),h(1,"Dados necess\xE1rios para gera\xE7\xE3o de diplomas"),fe())}function yct(t,n){t&1&&(he(0),h(1,"Dados necess\xE1rios para emiss\xE3o de diplomas"),fe())}function xct(t,n){t&1&&(he(0),h(1,"Dados necess\xE1rios para registro de diplomas"),fe())}function Cct(t,n){t&1&&(he(0),h(1,"Dados necess\xE1rios para emiss\xE3o de hist\xF3rico escolar"),fe())}function Sct(t,n){t&1&&(he(0),h(1,"Dados necess\xE1rios para emiss\xE3o de curr\xEDculo escolar"),fe())}function wct(t,n){if(t&1&&(d(0,"h2"),k(1,bct,2,0,"ng-container",5)(2,yct,2,0,"ng-container",5)(3,xct,2,0,"ng-container",5)(4,Cct,2,0,"ng-container",5)(5,Sct,2,0,"ng-container",5),c()),t&2){let e=S();m(),f("ngIf",e.type==e.Types.Degree),m(),f("ngIf",e.type==e.Types.Emission),m(),f("ngIf",e.type==e.Types.Registration),m(),f("ngIf",e.type==e.Types.AcademicTranscript),m(),f("ngIf",e.type==e.Types.Curriculum)}}function Ect(t,n){t&1&&(he(0),d(1,"li"),h(2,"Filia\xE7\xE3o"),d(3,"sup"),h(4,"3"),c(),h(5,": nome e sexo de pelo menos um genitor"),c(),fe())}function Ict(t,n){t&1&&(he(0),d(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title",7),h(4," Dados da IES registradora "),c()(),d(5,"ul")(6,"li"),h(7,"Nome"),c(),d(8,"li"),h(9,"C\xF3digo MEC"),c(),d(10,"li"),h(11,"CNPJ"),c(),d(12,"li"),h(13,"Endere\xE7o: logradouro, bairro, munic\xEDpio, UF e CEP"),c(),d(14,"li"),h(15,"Ato regulat\xF3rio de credenciamento: tipo, n\xFAmero e data do documento "),d(16,"b"),h(17,"ou"),c(),h(18," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(19,"li"),h(20,"Mantenedora: raz\xE3o social, CNPJ e endere\xE7o"),c(),d(21,"li"),h(22,"Ato regulat\xF3rio de recredenciamento (opcional): tipo, n\xFAmero e data do documento "),d(23,"b"),h(24,"ou"),c(),h(25," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(26,"li"),h(27,"Ato regulat\xF3rio de renova\xE7\xE3o de recredenciamento (opcional): tipo, n\xFAmero e data do documento "),d(28,"b"),h(29,"ou"),c(),h(30," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(31,"li"),h(32,"Ato regulat\xF3rio de autoriza\xE7\xE3o de registro (opcional): tipo, n\xFAmero e data do documento "),d(33,"b"),h(34,"ou"),c(),h(35," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c()()(),d(36,"mat-expansion-panel")(37,"mat-expansion-panel-header")(38,"mat-panel-title",7),h(39," Dados de registro "),c()(),d(40,"ul")(41,"li"),h(42,"C\xF3digo do livro de registro"),d(43,"sup"),h(44,"1"),c()(),d(45,"li"),h(46,"N\xFAmero de registro "),d(47,"b"),h(48,"ou"),c(),h(49," n\xFAmero de folha e sequ\xEAncia do diploma"),c(),d(50,"li"),h(51,"Data de cola\xE7\xE3o de grau"),c(),d(52,"li"),h(53,"Data de expedi\xE7\xE3o"),c(),d(54,"li"),h(55,"Data de registro"),c(),d(56,"li"),h(57,"Respons\xE1vel pelo registro: nome, CPF, e, opcionalmente, matr\xEDcula ou identificador"),c(),d(58,"li"),h(59,"Tipo c\xF3digo do processo do diploma (opcional)"),c(),d(60,"li"),h(61,"Informa\xE7\xF5es adicionais (opcional)"),c(),d(62,"li"),h(63,"CPF e cargo dos assinantes (opcional)"),c()()(),fe())}function Dct(t,n){t&1&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title",7),h(3," Documenta\xE7\xE3o comprobat\xF3ria "),c()(),d(4,"p"),h(5,"Anexar PDF"),d(6,"sup"),h(7,"3"),c(),h(8," dos documentos"),c()())}function Tct(t,n){if(t&1&&(he(0),d(1,"p"),h(2,"A portaria MEC n\xBA 554/2019 exige que sejam informados os seguintes dados:"),c(),d(3,"p",6)(4,"small")(5,"sup"),h(6,"1"),c(),h(7,"opcional para diploma de universidade fora do sistema federal de ensino (NSF)"),c()(),d(8,"p",6)(9,"small")(10,"sup"),h(11,"2"),c(),h(12,"opcional para diploma digital como segunda via de diploma f\xEDsico"),c()(),d(13,"p")(14,"small")(15,"sup"),h(16,"3"),c(),h(17,"informa\xE7\xE3o pode estar indispon\xEDvel em caso de diploma digital emitido por decis\xE3o judicial"),c()(),d(18,"mat-accordion")(19,"mat-expansion-panel")(20,"mat-expansion-panel-header")(21,"mat-panel-title",7),h(22," Dados de emiss\xE3o do diploma "),c()(),d(23,"ul")(24,"li"),h(25,"Data de conclus\xE3o (opcional)"),c(),d(26,"li"),h(27,"CPF e cargo dos assinantes (opcional)"),c(),d(28,"li"),h(29,"Em caso de diploma digital emitido por decis\xE3o judicial, \xE9 poss\xEDvel incluir declara\xE7\xF5es acerca do processo"),c()()(),d(30,"mat-expansion-panel")(31,"mat-expansion-panel-header")(32,"mat-panel-title",7),h(33," Dados do diplomado "),c()(),d(34,"ul")(35,"li"),h(36,"Identificador"),d(37,"sup"),h(38,"3"),c()(),d(39,"li"),h(40,"Nome"),c(),d(41,"li"),h(42,"Nome social (opcional)"),c(),d(43,"li"),h(44,"Nacionalidade"),d(45,"sup"),h(46,"3"),c()(),d(47,"li"),h(48,"Naturalidade"),d(49,"sup"),h(50,"3"),c(),h(51,": nome e c\xF3digo do munic\xEDpio "),d(52,"b"),h(53,"ou"),c(),h(54," apenas nome em caso de munic\xEDpio estrangeiro"),c(),d(55,"li"),h(56,"CPF"),c(),d(57,"li"),h(58,"Sexo"),d(59,"sup"),h(60,"3"),c()(),d(61,"li"),h(62,"Data de nascimento"),d(63,"sup"),h(64,"3"),c()(),d(65,"li"),h(66,"N\xFAmero e UF do RG "),d(67,"b"),h(68,"ou"),c(),h(69," o tipo e n\xFAmero do outro documento de identifica\xE7\xE3o"),c(),k(70,Ect,6,0,"ng-container",5),c()(),dn(71,8)(72,8),d(73,"mat-expansion-panel")(74,"mat-expansion-panel-header")(75,"mat-panel-title",7),h(76," Dados da IES de origem "),c()(),h(77," Em caso da emiss\xE3o de segunda via de Diploma ocorrer a partir de acervo de outra institui\xE7\xE3o absorvida pela IES Emissora por meio de Processo de Transfer\xEAncia Assistida, deve-se incluir a informa\xE7\xE3o da IES de origem. "),d(78,"ul")(79,"li"),h(80,"Nome"),c(),d(81,"li"),h(82,"C\xF3digo MEC (pode estar indispon\xEDvel)"),c(),d(83,"li"),h(84,"CNPJ (opcional)"),c(),d(85,"li"),h(86,"Endere\xE7o (opcional): logradouro, bairro, munic\xEDpio, UF e CEP"),c(),d(87,"li"),h(88,"Ato regulat\xF3rio de Descredenciamento: tipo, n\xFAmero e data do documento "),d(89,"b"),h(90,"ou"),c(),h(91," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c()()(),k(92,Ict,64,0,"ng-container",5),d(93,"mat-expansion-panel")(94,"mat-expansion-panel-header")(95,"mat-panel-title",7),h(96," Hist\xF3rico escolar"),d(97,"sup"),h(98,"3"),c()()(),d(99,"ul")(100,"li"),h(101,"Data e hora de emiss\xE3o do hist\xF3rico"),c(),d(102,"li"),h(103,"Ingresso ao curso"),d(104,"sup"),h(105,"23"),c(),h(106,": forma e data"),c(),d(107,"li"),h(108,"Situa\xE7\xE3o atual do discente"),c(),d(109,"li"),h(110,"Carga hor\xE1ria do curso e carga hor\xE1ria integralizada"),c(),d(111,"li"),h(112,"Participa\xE7\xF5es ENADE"),d(113,"sup"),h(114,"23"),c()(),d(115,"li"),h(116,"C\xF3digo do curr\xEDculo usado internamente pela IES para referenci\xE1-lo."),d(117,"sup"),h(118,"23"),c()(),d(119,"li"),h(120,"Lista de elementos do hist\xF3rico: disciplinas, atividades complementares, est\xE1gios e situa\xE7\xF5es do discente"),c(),d(121,"li"),h(122,"Para cada disciplina: c\xF3digo, nome, per\xEDodo letivo, carga hor\xE1ria, e docentes"),c(),d(123,"li"),h(124,"Para cada atividade complementar: c\xF3digo da atividade, data de in\xEDcio e fim, tipo, carga hor\xE1ria e docentes respons\xE1veis pela valida\xE7\xE3o"),c(),d(125,"li"),h(126,"Para cada est\xE1gio: c\xF3digo da unidade curricular, data de in\xEDcio e fim, carga hor\xE1ria, e docentes orientadores"),c(),d(127,"li"),h(128,"\xC1reas/\xEAnfases/linhas de forma\xE7\xE3o integralizadas pelo aluno (opcional)"),c()()(),k(129,Dct,9,0,"mat-expansion-panel",5),c(),fe()),t&2){S();let e=je(4),i=je(6),r=S();m(70),f("ngIf",r.type!=r.Types.AcademicTranscript),m(),f("ngTemplateOutlet",e),m(),f("ngTemplateOutlet",i),m(20),f("ngIf",r.type==r.Types.Degree),m(37),f("ngIf",r.type!=r.Types.AcademicTranscript)}}function Act(t,n){t&1&&(he(0),d(1,"p"),h(2," Voc\xEA deve enviar os arquivos de documenta\xE7\xE3o acad\xEAmica assinados pela emissora. Os dados ser\xE3o revisados e, uma vez aprovados, ser\xE3o utilizados para gerar o XML de dados p\xFAblicos do diploma. "),c(),fe())}function kct(t,n){if(t&1&&(he(0),d(1,"p"),h(2,"A Instru\xE7\xE3o Normativa SESU n\xBA 2 e vers\xF5es posteriores exigem que sejam informados os seguintes dados:"),c(),d(3,"p")(4,"small")(5,"sup"),h(6,"1"),c(),h(7,"opcional para curr\xEDculo de universidade fora do sistema federal de ensino (NSF)"),c()(),d(8,"mat-accordion")(9,"mat-expansion-panel")(10,"mat-expansion-panel-header")(11,"mat-panel-title",7),h(12," Dados do curr\xEDculo"),c()(),d(13,"ul")(14,"li"),h(15,"C\xF3digo"),c(),d(16,"li"),h(17,"Data"),c(),d(18,"li"),h(19,"Minutos-Rel\xF3gio tem uma Hora Aula neste curr\xEDculo"),c(),d(20,"li"),h(21,"Nome usado pelo Curso para se referir \xE0s \xC1reas de Concentra\xE7\xE3o, Compet\xEAncias, Linhas de Forma\xE7\xE3o, ou equivalentes. Caso omitido, assume-se que o termo '\xC1reas de Concentra\xE7\xE3o' (Opcional)"),c(),d(22,"li"),h(23,"Informa\xE7\xF5es adicionais (Opcional)"),c()()(),dn(24,8)(25,8),d(26,"mat-expansion-panel")(27,"mat-expansion-panel-header")(28,"mat-panel-title",7),h(29," Informa\xE7\xF5es de etiquetas"),c()(),d(30,"ul")(31,"li"),h(32,"C\xF3digo"),c(),d(33,"li"),h(34,"Nome"),c()()(),d(35,"mat-expansion-panel")(36,"mat-expansion-panel-header")(37,"mat-panel-title",7),h(38," Informa\xE7\xF5es de \xE1reas (Opcional)"),c()(),d(39,"ul")(40,"li"),h(41,"C\xF3digo"),c(),d(42,"li"),h(43,"Nome"),c()()(),d(44,"mat-expansion-panel")(45,"mat-expansion-panel-header")(46,"mat-panel-title",7),h(47," Informa\xE7\xF5es sobre estrutura curricular"),c()(),d(48,"ul")(49,"li"),h(50,"Tipo de unidade curricular"),c(),d(51,"li"),h(52,"C\xF3digo da unidade curricular"),c(),d(53,"li"),h(54,"Nome"),c(),d(55,"li"),h(56,"Carga hor\xE1ria em Hora-Aula (Opcional)"),c(),d(57,"li"),h(58,"Carga hor\xE1ria em Hora-Rel\xF3gio"),c(),d(59,"li"),h(60,"Ementa (Opcional)"),c(),d(61,"li"),h(62,"Fase (Opcional)"),c(),d(63,"li"),h(64,"Equival\xEAncias (Opcional)"),c(),d(65,"li"),h(66,"Pr\xE9-requisitos (Opcional)"),c(),d(67,"li"),h(68,"Etiquetas (Opcional)"),c(),d(69,"li"),h(70,"\xC1reas (Opcional)"),c()()(),d(71,"mat-expansion-panel")(72,"mat-expansion-panel-header")(73,"mat-panel-title",7),h(74," Informa\xE7\xF5es sobre estrutura de atividades complementares (Opcional)"),c()(),d(75,"ul")(76,"li"),h(77,"C\xF3digo da categoria de atividades complementares"),c(),d(78,"li"),h(79,"Nome da categoria de atividades complementares"),c(),d(80,"li"),h(81,"Limite de carga hor\xE1ria em hora rel\xF3gio"),c(),d(82,"li"),h(83,"Lista de atividades complementares, contendo:"),c(),d(84,"ul")(85,"li"),h(86,"C\xF3digo"),c(),d(87,"li"),h(88,"Nome"),c(),d(89,"li"),h(90,"Descri\xE7\xE3o (Opcional)"),c(),d(91,"li"),h(92,"Limite de carga hor\xE1ria em hora rel\xF3gio"),c()()()(),d(93,"mat-expansion-panel")(94,"mat-expansion-panel-header")(95,"mat-panel-title",7),h(96," Informa\xE7\xF5es sobre crit\xE9rios de integraliza\xE7\xE3o"),c()(),d(97,"ul")(98,"li"),h(99,"Lista de crit\xE9rios de integraliza\xE7\xE3o: r\xF3tulos ou express\xE3o"),c(),d(100,"li"),h(101,"Para cada R\xF3tulo:"),c(),d(102,"ul")(103,"li"),h(104,"C\xF3digo"),c(),d(105,"li"),h(106,"Tipo de unidade curricular (Opcional)"),c(),d(107,"li"),h(108,"Etiqueta (Opcional)"),c(),d(109,"li"),h(110,"Carga hor\xE1ria m\xE1xima"),c(),d(111,"li"),h(112,"Carga hor\xE1ria m\xEDnima"),c(),d(113,"li"),h(114,"Carga hor\xE1ria total (Opcional)"),c()(),d(115,"li"),h(116,"Para cada Express\xE3o:"),c(),d(117,"ul")(118,"li"),h(119,"C\xF3digo"),c(),d(120,"li"),h(121,"Express\xE3o a ser utilizada para calcular se as cargas hor\xE1rias atingem a Carga Hor\xE1ria M\xEDnima, limitada a Carga Hor\xE1ria M\xE1xima"),c(),d(122,"li"),h(123,"Carga hor\xE1ria m\xE1xima"),c(),d(124,"li"),h(125,"Carga hor\xE1ria m\xEDnima"),c(),d(126,"li"),h(127,"Carga hor\xE1ria total (Opcional)"),c()()()()(),fe()),t&2){S();let e=je(4),i=je(6);m(24),f("ngTemplateOutlet",e),m(),f("ngTemplateOutlet",i)}}function Mct(t,n){t&1&&(d(0,"sup"),h(1,"3"),c())}function Fct(t,n){t&1&&(d(0,"sup"),h(1,"3"),c())}function Rct(t,n){t&1&&(d(0,"sup"),h(1,"3"),c())}function Pct(t,n){if(t&1&&(he(0),d(1,"li"),h(2,"Modalidade"),c(),d(3,"li"),h(4,"T\xEDtulo conferido"),c(),d(5,"li"),h(6,"Grau conferido"),c(),d(7,"li"),h(8,"Endere\xE7o"),k(9,Rct,2,0,"sup",5),h(10,": logradouro, bairro, munic\xEDpio, UF e CEP"),c(),fe()),t&2){let e=S(3);m(9),f("ngIf",!e.isCurriculum)}}function Nct(t,n){t&1&&(d(0,"span"),h(1,"3"),c())}function Oct(t,n){t&1&&(d(0,"span"),h(1,"3"),c())}function Lct(t,n){if(t&1&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title",7),h(3," Dados do curso "),c()(),d(4,"ul")(5,"li"),h(6,"Nome"),c(),d(7,"li"),h(8,"C\xF3digo EMEC"),k(9,Mct,2,0,"sup",5),d(10,"b"),h(11," ou"),c(),h(12," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),k(13,Fct,2,0,"sup",5),c(),k(14,Pct,11,1,"ng-container",5),d(15,"li"),h(16,"Ato regulat\xF3rio de autoriza\xE7\xE3o"),d(17,"sup"),h(18,"1"),k(19,Nct,2,0,"span",5),c(),h(20,": tipo, n\xFAmero e data do documento "),d(21,"b"),h(22,"ou"),c(),h(23," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(24,"li"),h(25,"Ato regulat\xF3rio de reconhecimento"),d(26,"sup"),h(27,"1"),k(28,Oct,2,0,"span",5),c(),h(29,": tipo, n\xFAmero e data do documento "),d(30,"b"),h(31,"ou"),c(),h(32," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(33,"li"),h(34,"Ato regulat\xF3rio de renova\xE7\xE3o de reconhecimento (opcional): tipo, n\xFAmero e data do documento "),d(35,"b"),h(36,"ou"),c(),h(37," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(38,"li"),h(39,"Polo do curso (opcional): endere\xE7o, nome, e c\xF3digo EMEC ou informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(40,"li"),h(41,"Lista de habilita\xE7\xF5es do curso com nome e data (opcional)"),c(),d(42,"li"),h(43,"Lista de \xEAnfases do curso (apenas para diplomas do tipo padr\xE3o)"),c()()()),t&2){let e=S(2);m(9),f("ngIf",!e.isCurriculum),m(4),f("ngIf",!e.isCurriculum),m(),f("ngIf",e.type!=e.Types.AcademicTranscript&&!e.isCurriculum),m(5),f("ngIf",!e.isCurriculum),m(9),f("ngIf",!e.isCurriculum)}}function Vct(t,n){t&1&&(d(0,"span"),h(1,"\xA0emissora"),c())}function Bct(t,n){if(t&1&&(d(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title",7),h(3," Dados da IES "),k(4,Vct,2,0,"span",5),c()(),d(5,"ul")(6,"li"),h(7,"Nome"),c(),d(8,"li"),h(9,"C\xF3digo MEC"),c(),d(10,"li"),h(11,"CNPJ"),c(),d(12,"li"),h(13,"Endere\xE7o: logradouro, bairro, munic\xEDpio, UF e CEP"),c(),d(14,"li"),h(15,"Ato regulat\xF3rio de credenciamento: tipo, n\xFAmero e data do documento "),d(16,"b"),h(17,"ou"),c(),h(18," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(19,"li"),h(20,"Ato regulat\xF3rio de recredenciamento (opcional): tipo, n\xFAmero e data do documento "),d(21,"b"),h(22,"ou"),c(),h(23," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(24,"li"),h(25,"Ato regulat\xF3rio de renova\xE7\xE3o de recredenciamento (opcional): tipo, n\xFAmero e data do documento "),d(26,"b"),h(27,"ou"),c(),h(28," informa\xE7\xF5es de tramita\xE7\xE3o do processo EMEC"),c(),d(29,"li"),h(30,"Mantenedora (opcional): raz\xE3o social, CNPJ e endere\xE7o"),c()()()),t&2){let e=S(2);m(4),f("ngIf",!e.isCurriculum)}}function jct(t,n){if(t&1&&k(0,Tct,130,5,"ng-container",5)(1,Act,3,0,"ng-container",5)(2,kct,128,2,"ng-container",5)(3,Lct,44,5,"ng-template",null,2,Ii)(5,Bct,31,1,"ng-template",null,3,Ii),t&2){let e=S();f("ngIf",e.type!=e.Types.Registration&&!e.isCurriculum),m(),f("ngIf",e.type==e.Types.Registration),m(),f("ngIf",e.type==e.Types.Curriculum)}}var wg=(()=>{class t{constructor(e,i){this.data=e,this.dialogRef=i,this.Types=Pt,this.type=Pt.Degree,e.type&&(this.type=e.type,this.isCurriculum=this.type==Pt.Curriculum)}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-required-information"]],decls:5,vars:2,consts:[["titleTemplate",""],["contentTemplate",""],["dadosCurso",""],["dadosIes",""],[3,"titleTemplate","contentTemplate"],[4,"ngIf"],[1,"mb-0"],[1,"font-medium"],[3,"ngTemplateOutlet"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",4),k(1,wct,6,5,"ng-template",null,0,Ii)(3,jct,7,3,"ng-template",null,1,Ii)),i&2){let o=je(2),a=je(4);f("titleTemplate",o)("contentTemplate",a)}},dependencies:[Ee,ta,PL,F1,R1,cw,Uo]})}}return t})();var Ro=function(t){return t.EmissionRegistration="EmissionRegistration",t.Emission="Emission",t.Registration="Registration",t.AcademicTranscript="AcademicTranscript",t.Curriculum="Curriculum",t}(Ro||{});var Yx="/api/flows",ds="signatureFlow",oa=(()=>{class t{constructor(e,i,r){this.http=e,this.fb=i,this.logger=r,this.flows={listPaginated:o=>this.list(o)}}get(e){return this.http.get(`${Yx}/${e}`)}list(e){return this.http.get(`${Yx}`,{params:e.getHttpParams()})}getRecent(e){let i=new Ud().withLimit(20).withOrder("","Desc");return this.http.get(`${Yx}`,{params:i.getHttpParams().append("type",e)})}create(e){return this.http.post(Yx,e)}update(e,i){return this.http.put(`${Yx}/${e}`,i)}delete(e){return this.http.delete(`${Yx}/${e}`)}validate(e){return this.http.post(`${Yx}/validate`,e)}getFormData(e){return{issuingFlow:e.get("fluxoEmissao").disabled?null:this.getSignRuleModelArray(e.get("fluxoEmissao")),registrationFlow:e.get("fluxoRegistro").disabled?null:this.getSignRuleModelArray(e.get("fluxoRegistro")),storageFlow:e.get("fluxoArmazenamento").disabled?null:this.getSignRuleModelArray(e.get("fluxoArmazenamento")),academicTranscriptFlow:e.get("fluxoHistorico").disabled?null:this.getSignRuleModelArray(e.get("fluxoHistorico")),curriculumFlow:e.get("fluxoCurriculo").disabled?null:this.getSignRuleModelArray(e.get("fluxoCurriculo"))}}getFormRequest(e){let i=this.getFormData(e.get(ds));return{name:e.get("name").value,type:e.get("type").value,issuingFlow:i.issuingFlow,registrationFlow:i.registrationFlow,storageFlow:i.storageFlow,academicTranscriptFlow:i.academicTranscriptFlow,curriculumFlow:i.curriculumFlow}}getSignatureFlowForm(e,i){let r=i!=null?i.issuingFlow:null,o=i!=null?i.registrationFlow:null,a=i!=null?i.storageFlow:null,s=i!=null?i.academicTranscriptFlow:null,l=i!=null?i.curriculumFlow:null,u=this.fb.group({fluxoEmissao:this.getDefaultSignRuleArray(r),fluxoRegistro:this.getDefaultSignRuleArray(o),fluxoArmazenamento:this.getDefaultSignRuleArray(a),fluxoHistorico:this.getDefaultSignRuleArray(s),fluxoCurriculo:this.getDefaultSignRuleArray(l)});return this.changeSignatureFlowFormValidation(u,e),u}changeSignatureFlowFormValidation(e,i){for(let r in e.controls)e.get(r).disable();i==Ro.Emission?(e.get("fluxoEmissao").enable(),e.get("fluxoHistorico").enable()):i==Ro.AcademicTranscript?e.get("fluxoHistorico").enable():i==Ro.Curriculum?e.get("fluxoCurriculo").enable():(e.get("fluxoRegistro").enable(),e.get("fluxoArmazenamento").enable(),i==Ro.EmissionRegistration&&(e.get("fluxoEmissao").enable(),e.get("fluxoHistorico").enable()))}getSignerForm(e){return this.fb.group({name:[e?e.name:"",[Se.required,Se.maxLength(200)]],email:[e?e.email:"",[Se.maxLength(200),bg.requiredEmail]],cpf:[e?e.cpf:"",[Se.required,bg.cpf]]})}getSignRuleForm(e,i=!1){let r=e?e.signers.map(l=>this.getSignerForm(l)):[this.getSignerForm()],o=this.fb.array(r,Se.minLength(1)),a=e?e.requiredSignatures:1,s=new Oo(a,[Se.required,rr.requiredSignaturesCount(o)]);return this.fb.group({ruleName:[!e||!e.ruleName?"":e.ruleName,Se.maxLength(200)],requiredSignatures:s,order:[e?e.order:1,Se.required],signers:o,isCompany:new Oo(e?e.isCompany:i),companyIdentifier:new Oo(e?e.companyIdentifier:"",[bg.cnpj])})}getDefaultSignRuleArray(e){let i=e?e.map(r=>this.getSignRuleForm(r)):[this.getSignRuleForm()];return this.fb.array(i,Se.minLength(1))}getSignerModel(e){return{cpf:e.get("cpf").value,email:e.get("email").value,name:e.get("name").value}}getSignRuleModel(e,i=1){this.logger.logDebug("GetSignRuleModel",e,i);let o=e.get("signers").controls.map(a=>this.getSignerModel(a));return{order:i,requiredSignatures:e.get("requiredSignatures").value,signers:o,ruleName:"",isCompany:e.get("isCompany").value,companyIdentifier:e.get("companyIdentifier").value}}getSignRuleModelArray(e){return e.controls.map((r,o)=>this.getSignRuleModel(r,o+1))}static{this.\u0275fac=function(i){return new(i||t)(ae(sn),ae(Ti),ae($t))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hct(t,n){t&1&&(d(0,"h2"),h(1,"Eventos da gera\xE7\xE3o do documento"),c())}function zct(t,n){if(t&1&&(d(0,"p",4),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function Uct(t,n){if(t&1&&k(0,zct,2,1,"p",3),t&2){let e=S();f("ngForOf",e.errors)}}var UB=(()=>{class t{constructor(e,i){if(this.data=e,this.dialogRef=i,e.errors){let r=e.errors;this.errors=r.split(`\r `)}}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-degree-generation-errors"]],decls:5,vars:2,consts:[["titleTemplate",""],["contentTemplate",""],[3,"titleTemplate","contentTemplate"],["class","mb-0",4,"ngFor","ngForOf"],[1,"mb-0"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",2),k(1,Hct,2,0,"ng-template",null,0,Ii)(3,Uct,1,1,"ng-template",null,1,Ii)),i&2){let o=je(2),a=je(4);f("titleTemplate",o)("contentTemplate",a)}},dependencies:[Vt,Uo]})}}return t})();var f_="/api/batches",dc=(()=>{class t{constructor(e){this.http=e,this.batches={listPaginated:i=>this.list(i)}}get(e){return this.http.get(`${f_}/${e}`)}generateLogTicket(e){return this.http.get(`${f_}/${e}/log-ticket`)}list(e){return this.http.get(`${f_}`,{params:e.getHttpParams()})}getDegrees(e){return{listPaginated:i=>this.listDegrees(e,i)}}listDegrees(e,i){return this.http.get(`${f_}/${e}/degrees`,{params:i.getHttpParams()})}create(e){return this.http.post(`${f_}`,e)}validateDegreesFile(e){return this.http.post(`${f_}/degrees-file`,e)}validateEmissionsFile(e){return this.http.post(`${f_}/emissions-file`,e)}validateAcademictranscriptsFile(e){return this.http.post(`${f_}/academic-transcripts-file`,e)}validateCurriculumsFile(e){return this.http.post(`${f_}/curriculums-file`,e)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gct=["button"],$ct=["*"];function qct(t,n){if(t&1&&H(0,"mat-pseudo-checkbox",3),t&2){let e=S();f("disabled",e.disabled)}}function Wct(t,n){if(t&1&&H(0,"mat-pseudo-checkbox",3),t&2){let e=S();f("disabled",e.disabled)}}var Kve=new ke("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Yct});function Yct(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1}}var Xve=new ke("MatButtonToggleGroup"),Kct={provide:ys,useExisting:fr(()=>vM),multi:!0},Qve=0,GB=class{constructor(n,e){this.source=n,this.value=e}},vM=(()=>{class t{get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}constructor(e,i){this._changeDetector=e,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name=`mat-button-toggle-group-${Qve++}`,this.valueChange=new Ae,this.change=new Ae,this.appearance=i&&i.appearance?i.appearance:"standard",this.hideSingleSelectionIndicator=i?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=i?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new id(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){let i=new GB(e,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>e.value!=null&&i===e.value):e.value===this._rawValue}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(i=>this._selectValue(i))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){let i=this._buttonToggles.find(r=>r.value!=null&&r.value===e);i&&(i.checked=!0,this._selectionModel.select(i))}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(Kve,8))}}static{this.\u0275dir=ze({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,r,o){if(i&1&&bi(o,fI,5),i&2){let a;Pe(a=Ne())&&(r._buttonToggles=a)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(i,r){i&2&&(xt("aria-disabled",r.disabled),yt("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard",r.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[ve.HasDecoratorInputTransform,"vertical","vertical",at],value:"value",multiple:[ve.HasDecoratorInputTransform,"multiple","multiple",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],hideSingleSelectionIndicator:[ve.HasDecoratorInputTransform,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",at],hideMultipleSelectionIndicator:[ve.HasDecoratorInputTransform,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",at]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],standalone:!0,features:[Zt([Kct,{provide:Xve,useExisting:t}]),Ei]})}}return t})(),fI=(()=>{class t{get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}constructor(e,i,r,o,a,s){this._changeDetectorRef=i,this._elementRef=r,this._focusMonitor=o,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new Ae;let l=Number(a);this.tabIndex=l||l===0?l:null,this.buttonToggleGroup=e,this.appearance=s&&s.appearance?s.appearance:"standard"}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||`mat-button-toggle-${Qve++}`,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){let e=this._isSingleSelector()?!0:!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new GB(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static{this.\u0275fac=function(i){return new(i||t)(E(Xve,8),E(Di),E(Xe),E(ua),Sa("tabindex"),E(Kve,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(i,r){if(i&1&&ot(Gct,5),i&2){let o;Pe(o=Ne())&&(r._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(i,r){i&1&&$("focus",function(){return r.focus()}),i&2&&(xt("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),yt("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-appearance-standard",r.appearance==="standard"))},inputs:{ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],appearance:"appearance",checked:[ve.HasDecoratorInputTransform,"checked","checked",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},outputs:{change:"change"},exportAs:["matButtonToggle"],standalone:!0,features:[Ei,Dt],ngContentSelectors:$ct,decls:8,vars:11,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-label-content"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"button",1,0),$("click",function(){return W(o),Y(r._onButtonClick())}),d(2,"span",2),k(3,qct,1,1,"mat-pseudo-checkbox",3)(4,Wct,1,1,"mat-pseudo-checkbox",3),ct(5),c()(),H(6,"span",4)(7,"span",5)}if(i&2){let o=je(1);f("id",r.buttonId)("disabled",r.disabled||null),xt("tabindex",r.disabled?-1:r.tabIndex)("aria-pressed",r.checked)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby),m(3),Xt(3,r.buttonToggleGroup&&r.checked&&!r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideSingleSelectionIndicator?3:-1),m(),Xt(4,r.buttonToggleGroup&&r.checked&&r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideMultipleSelectionIndicator?4:-1),m(3),f("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[Jl,Iq],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0);border-radius:var(--mat-legacy-button-toggle-shape)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-standard-button-toggle-shape);border:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-standard-button-toggle-selected-state-text-color )}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-legacy-button-toggle-text-color);font-family:var(--mat-legacy-button-toggle-label-text-font);font-size:var(--mat-legacy-button-toggle-label-text-size);line-height:var(--mat-legacy-button-toggle-label-text-line-height);font-weight:var(--mat-legacy-button-toggle-label-text-weight);letter-spacing:var(--mat-legacy-button-toggle-label-text-tracking);--mat-minimal-pseudo-checkbox-selected-checkmark-color: var( --mat-legacy-button-toggle-selected-state-text-color )}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-legacy-button-toggle-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle .mat-pseudo-checkbox{margin-right:12px}[dir=rtl] .mat-button-toggle .mat-pseudo-checkbox{margin-right:0;margin-left:12px}.mat-button-toggle-checked{color:var(--mat-legacy-button-toggle-selected-state-text-color);background-color:var(--mat-legacy-button-toggle-selected-state-background-color)}.mat-button-toggle-disabled{color:var(--mat-legacy-button-toggle-disabled-state-text-color);background-color:var(--mat-legacy-button-toggle-disabled-state-background-color);--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-legacy-button-toggle-disabled-state-text-color )}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-legacy-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard{color:var(--mat-standard-button-toggle-text-color);background-color:var(--mat-standard-button-toggle-background-color);font-family:var(--mat-standard-button-toggle-label-text-font);font-size:var(--mat-standard-button-toggle-label-text-size);line-height:var(--mat-standard-button-toggle-label-text-line-height);font-weight:var(--mat-standard-button-toggle-label-text-weight);letter-spacing:var(--mat-standard-button-toggle-label-text-tracking)}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-standard-button-toggle-divider-color)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-standard-button-toggle-divider-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-selected-state-text-color);background-color:var(--mat-standard-button-toggle-selected-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-standard-button-toggle-disabled-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-state-background-color)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color: var( --mat-standard-button-toggle-disabled-selected-state-text-color )}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-standard-button-toggle-disabled-selected-state-text-color);background-color:var(--mat-standard-button-toggle-disabled-selected-state-background-color)}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-standard-button-toggle-state-layer-color)}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-hover-state-layer-opacity)}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:var(--mat-standard-button-toggle-focus-state-layer-opacity)}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-legacy-button-toggle-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-standard-button-toggle-height)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-legacy-button-toggle-state-layer-color)}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-standard-button-toggle-shape);border-bottom-right-radius:var(--mat-standard-button-toggle-shape)}.mat-button-toggle-group-appearance-standard .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-standard-button-toggle-shape);border-bottom-left-radius:var(--mat-standard-button-toggle-shape)}"],encapsulation:2,changeDetection:0})}}return t})(),Zve=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,jd,fI,ki]})}}return t})();var Xct=t=>({disabled:t}),ebe=(()=>{class t{constructor(e,i){this.logger=e,this.Error=i}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-individual-signer-form"]],inputs:{signerForm:"signerForm",readonly:"readonly"},decls:13,vars:11,consts:[[1,"row","mt-3",3,"formGroup","ngClass"],["appearance","outline",1,"col-md-8"],["matInput","","placeholder","Nome","formControlName","name",3,"readonly"],["appearance","outline",1,"col-md-4"],["matInput","","placeholder","CPF","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped","readonly"],["appearance","outline",1,"col-12"],["matInput","","placeholder","Email","formControlName","email",3,"readonly"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"mat-form-field",1),H(2,"input",2),d(3,"mat-error"),h(4),c()(),d(5,"mat-form-field",3),H(6,"input",4),d(7,"mat-error"),h(8),c()(),d(9,"mat-form-field",5),H(10,"input",6),d(11,"mat-error"),h(12),c()()()),i&2&&(f("formGroup",r.signerForm)("ngClass",Le(9,Xct,r.readonly)),m(2),f("readonly",r.readonly),m(2),U(r.Error.get(r.signerForm,"name")),m(2),f("showMaskTyped",!1)("readonly",r.readonly),m(2),U(r.Error.get(r.signerForm,"cpf")),m(2),f("readonly",r.readonly),m(2),U(r.Error.get(r.signerForm,"email")))},dependencies:[ji,Gt,it,pt,dt,Tt,Wt,bt,Si,Fo]})}}return t})();var tbe=t=>({disabled:t});function Zct(t,n){if(t&1){let e=ie();d(0,"button",19),$("click",function(){W(e);let r=S();return Y(r.removeSelf())}),d(1,"mat-icon"),h(2,"delete"),c()()}if(t&2){let e=S();f("disabled",e.readonly)}}function Jct(t,n){if(t&1&&(d(0,"div",20)(1,"mat-form-field",21),H(2,"input",22),d(3,"mat-error"),h(4),c()(),d(5,"mat-icon",23),h(6,"info"),c()()),t&2){let e=S();f("ngClass",Le(5,tbe,e.readonly)),m(2),f("showMaskTyped",!1)("readonly",e.readonly)("disabled",e.readonly),m(2),U(e.Error.get(e.form,"companyIdentifier","cnpj"))}}function edt(t,n){if(t&1&&(d(0,"div",24),h(1," Devem assinar "),d(2,"mat-form-field",25),H(3,"input",26),d(4,"mat-error"),h(5),c()(),h(6," dos signat\xE1rios abaixo: "),c()),t&2){let e=S();f("ngClass",Le(5,tbe,e.readonly)),m(3),f("max",e.maxSignatures!=null?e.maxSignatures:e.signers.length)("readonly",e.readonly||e.requiredSignaturesReadonly)("disabled",e.readonly),m(2),U(e.getErrorMessage("requiredSignatures"))}}function tdt(t,n){t&1&&(d(0,"div",32)(1,"small"),h(2,"Signat\xE1rio"),c()())}function idt(t,n){t&1&&H(0,"mat-divider")}function ndt(t,n){if(t&1){let e=ie();d(0,"button",33),$("click",function(){W(e);let r=S().index,o=S();return Y(o.removeChild(r))}),d(1,"mat-icon"),h(2,"delete"),c()()}if(t&2){let e=S(2);f("disabled",e.readonly)}}function rdt(t,n){if(t&1&&(he(0),k(1,tdt,3,0,"div",27)(2,idt,1,0,"mat-divider",28),d(3,"div",29),H(4,"app-individual-signer-form",30),k(5,ndt,3,1,"button",31),c(),fe()),t&2){let e=n.$implicit,i=S();m(),f("ngIf",i.signers.length>1),m(),f("ngIf",i.signers.length>1),m(2),f("signerForm",e)("readonly",i.readonly),m(),f("ngIf",i.signers.length>1)}}var gI=(()=>{class t{get signers(){return this.form.get("signers")}get canRemoveSigner(){return this.signers.length>1}get requiredSignatures(){return this.form.get("requiredSignatures").value}set requiredSignatures(e){this.form.patchValue({requiredSignatures:e})}get isCompany(){return this.form.get("isCompany").value}constructor(e,i,r){this.logger=e,this.documentFlowService=i,this.Error=r,this.maxSignatures=null,this.removed=new Ae}ngOnInit(){this.logger.logTrace("SignRuleFormComponent ngOnInit")}removeSelf(){this.canDelete&&this.removed.emit()}removeChild(e){if(this.canRemoveSigner){this.signers.removeAt(e);let i=this.maxSignatures=this.signers.length-1&&(this.requiredSignatures=this.maxSignaturesr?r:e}static{this.\u0275fac=function(i){return new(i||t)(E($t),E(oa),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-sign-rule-form"]],inputs:{form:"form",canDelete:"canDelete",readonly:"readonly",requiredSignaturesReadonly:"requiredSignaturesReadonly",maxSignatures:"maxSignatures",onlyCompanySignatures:"onlyCompanySignatures"},outputs:{removed:"removed"},decls:27,vars:11,consts:[[1,"flow-box","py-2","px-3","my-2"],[1,"d-flex","align-items-center","justify-content-between"],[1,"mb-2"],["mat-icon-button","","color","warn","class","me-2",3,"disabled","click",4,"ngIf"],[3,"formGroup"],[1,"mt-2"],[1,"prop-label"],[1,"row"],[1,"col-xl-7","text-truncate"],["aria-label","Select an option","color","primary","formControlName","isCompany",1,"d-flex","mt-2",3,"disabled"],[1,"col-lg-6"],[1,"me-3",3,"value","checked"],[1,"col-lg-6","mt-3","mt-lg-0"],[3,"value","checked"],["class","col-xl-5 mt-2 mt-xl-0 d-flex",3,"ngClass",4,"ngIf"],["class","d-flex align-items-center economic-form-field mb-3",3,"ngClass",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],["mat-button","","color","primary",3,"click","disabled"],["mat-icon-button","","color","warn",1,"me-2",3,"click","disabled"],[1,"col-xl-5","mt-2","mt-xl-0","d-flex",3,"ngClass"],["appearance","outline",2,"min-width","0"],["matInput","","placeholder","CNPJ (opcional)","formControlName","companyIdentifier","mask","00.000.000/0000-00",3,"showMaskTyped","readonly","disabled"],["matTooltip","Caso informado, todos signat\xE1rios desta regra dever\xE3o assinar com um certificado e-CNPJ com esse CNPJ",1,"ms-2","mt-2"],[1,"d-flex","align-items-center","economic-form-field","mb-3",3,"ngClass"],["appearance","outline",1,"mx-2"],["matInput","","type","number","formControlName","requiredSignatures","min","1",3,"max","readonly","disabled"],["class","small-label-container text-primary",4,"ngIf"],[4,"ngIf"],[1,"d-flex","align-items-start"],[3,"signerForm","readonly"],["mat-icon-button","","color","warn","class","me-2 mt-3",3,"disabled","click",4,"ngIf"],[1,"small-label-container","text-primary"],["mat-icon-button","","color","warn",1,"me-2","mt-3",3,"click","disabled"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"h3",2),h(3,"Regra de assinatura"),c(),k(4,Zct,3,1,"button",3),c(),d(5,"div",4)(6,"div",5)(7,"div")(8,"span",6),h(9,"Tipo de assinatura"),c()(),d(10,"div",7)(11,"div",8)(12,"mat-radio-group",9)(13,"div",7)(14,"div",10)(15,"mat-radio-button",11),h(16,"Pessoa F\xEDsica"),c()(),d(17,"div",12)(18,"mat-radio-button",13),h(19,"Pessoa Jur\xEDdica"),c()()()()(),k(20,Jct,7,7,"div",14),c()(),k(21,edt,7,7,"div",15),he(22),k(23,rdt,6,5,"ng-container",16),d(24,"div",17)(25,"button",18),$("click",function(){return r.addSigner()}),h(26,"Adicionar signat\xE1rio"),c()(),fe(),c()()),i&2&&(m(4),f("ngIf",r.canDelete),m(),f("formGroup",r.form),m(7),f("disabled",r.onlyCompanySignatures||r.readonly),m(3),f("value",!1)("checked",!r.isCompany),m(3),f("value",!0)("checked",r.isCompany),m(2),f("ngIf",r.isCompany),m(),f("ngIf",r.signers.length>1),m(2),f("ngForOf",r.signers.controls),m(2),f("disabled",r.readonly))},dependencies:[ji,Vt,Ee,Gt,gT,it,pt,QU,XU,dt,Tt,He,Ze,fi,Wt,bt,Si,kc,Fo,yi,ep,em,ebe],encapsulation:2})}}return t})();function odt(t,n){if(t&1){let e=ie();d(0,"app-sign-rule-form",16),$("removed",function(){let r=W(e).index,o=S(4);return Y(o.removeRule(o.stages[0].formArrayName,r))}),c()}if(t&2){let e=n.$implicit,i=S(4);f("form",e)("canDelete",i.canDelete(i.stages[0].formArrayName))("readonly",i.readonly)}}function adt(t,n){if(t&1){let e=ie();d(0,"div",6),H(1,"mat-card",7),d(2,"div",8)(3,"div",9)(4,"button",10),h(5,"1"),c(),d(6,"h3",11),h(7),c()(),d(8,"div",12),k(9,odt,1,3,"app-sign-rule-form",13),c(),d(10,"div",14)(11,"button",15),$("click",function(){W(e);let r=S(3);return Y(r.addRule(r.stages[0].formArrayName))}),d(12,"mat-icon"),h(13,"add"),c()()()()()}if(t&2){let e=S(3);m(),f("hidden",!0),m(6),U(e.stages[0].label),m(),f("formArrayName",e.stages[0].formArrayName),m(),f("ngForOf",e.getFormArray(e.stages[0].formArrayName).controls),m(2),f("disabled",e.readonly)}}function sdt(t,n){if(t&1){let e=ie();d(0,"app-sign-rule-form",16),$("removed",function(){let r=W(e).index,o=S(4);return Y(o.removeRule(o.stages[1].formArrayName,r))}),c()}if(t&2){let e=n.$implicit,i=S(4);f("form",e)("canDelete",i.canDelete(i.stages[1].formArrayName))("readonly",i.readonly)}}function ldt(t,n){if(t&1){let e=ie();d(0,"div",6)(1,"div",8)(2,"div",9)(3,"button",10),h(4),c(),d(5,"h3",11),h(6),c()(),d(7,"div",12),k(8,sdt,1,3,"app-sign-rule-form",13),c(),d(9,"div",14)(10,"button",15),$("click",function(){W(e);let r=S(3);return Y(r.addRule(r.stages[1].formArrayName))}),d(11,"mat-icon"),h(12,"add"),c()()()()()}if(t&2){let e=S(3);m(4),ue(" ",e.type==e.FlowTypes.Registration?1:2," "),m(2),U(e.stages[1].label),m(),f("formArrayName",e.stages[1].formArrayName),m(),f("ngForOf",e.getFormArray(e.stages[1].formArrayName).controls),m(2),f("disabled",e.readonly)}}function cdt(t,n){if(t&1){let e=ie();d(0,"app-sign-rule-form",16),$("removed",function(){let r=W(e).index,o=S(4);return Y(o.removeRule(o.stages[2].formArrayName,r))}),c()}if(t&2){let e=n.$implicit,i=S(4);f("form",e)("canDelete",i.canDelete(i.stages[2].formArrayName))("readonly",i.readonly)}}function ddt(t,n){if(t&1){let e=ie();d(0,"div",6)(1,"div",8)(2,"div",9)(3,"button",10),h(4),c(),d(5,"h3",11),h(6),c()(),d(7,"div",12),k(8,cdt,1,3,"app-sign-rule-form",13),c(),d(9,"div",14)(10,"button",15),$("click",function(){W(e);let r=S(3);return Y(r.addRule(r.stages[2].formArrayName))}),d(11,"mat-icon"),h(12,"add"),c()()()()()}if(t&2){let e=S(3);m(4),U(e.type==e.FlowTypes.Registration?2:3),m(2),U(e.stages[2].label),m(),f("formArrayName",e.stages[2].formArrayName),m(),f("ngForOf",e.getFormArray(e.stages[2].formArrayName).controls),m(2),f("disabled",e.readonly)}}function udt(t,n){if(t&1){let e=ie();d(0,"app-sign-rule-form",16),$("removed",function(){let r=W(e).index,o=S(4);return Y(o.removeRule(o.stages[3].formArrayName,r))}),c()}if(t&2){let e=n.$implicit,i=S(4);f("form",e)("canDelete",i.canDelete(i.stages[3].formArrayName))("readonly",i.readonly)}}function mdt(t,n){if(t&1){let e=ie();d(0,"div",6)(1,"div",8)(2,"div",9)(3,"button",10),h(4),c(),d(5,"h3",11),h(6),c()(),d(7,"div",12),k(8,udt,1,3,"app-sign-rule-form",13),c(),d(9,"div",14)(10,"button",15),$("click",function(){W(e);let r=S(3);return Y(r.addRule(r.stages[3].formArrayName))}),d(11,"mat-icon"),h(12,"add"),c()()()()()}if(t&2){let e=S(3);m(4),ue(" ",e.type==e.FlowTypes.AcademicTranscript?1:e.type==e.FlowTypes.Emission?2:4," "),m(2),ue(" ",e.stages[3].label," "),m(),f("formArrayName",e.stages[3].formArrayName),m(),f("ngForOf",e.getFormArray(e.stages[3].formArrayName).controls),m(2),f("disabled",e.readonly)}}function pdt(t,n){if(t&1&&(d(0,"div",4),k(1,adt,14,5,"div",5)(2,ldt,13,5,"div",5)(3,ddt,13,5,"div",5)(4,mdt,13,5,"div",5),c()),t&2){let e=S(2);m(),f("ngIf",e.type!=e.FlowTypes.Registration&&e.type!=e.FlowTypes.AcademicTranscript),m(),f("ngIf",e.type!=e.FlowTypes.Emission&&e.type!=e.FlowTypes.AcademicTranscript),m(),f("ngIf",e.type!=e.FlowTypes.Emission&&e.type!=e.FlowTypes.AcademicTranscript),m(),f("ngIf",e.type!=e.FlowTypes.Registration)}}function hdt(t,n){if(t&1){let e=ie();d(0,"app-sign-rule-form",16),$("removed",function(){let r=W(e).index,o=S(3);return Y(o.removeRule(o.stages[4].formArrayName,r))}),c()}if(t&2){let e=n.$implicit,i=S(3);f("form",e)("canDelete",i.canDelete(i.stages[4].formArrayName))("readonly",i.readonly)}}function fdt(t,n){if(t&1){let e=ie();d(0,"div",17)(1,"div",9)(2,"button",18),h(3," 1 "),c(),d(4,"h3",11),h(5),c()(),d(6,"div",12),k(7,hdt,1,3,"app-sign-rule-form",13),c(),d(8,"div",14)(9,"button",15),$("click",function(){W(e);let r=S(2);return Y(r.addRule(r.stages[4].formArrayName))}),d(10,"mat-icon"),h(11,"add"),c()()()()}if(t&2){let e=S(2);m(5),ue(" ",e.stages[4].label," "),m(),f("formArrayName",e.stages[4].formArrayName),m(),f("ngForOf",e.getFormArray(e.stages[4].formArrayName).controls),m(2),f("disabled",e.readonly)}}function gdt(t,n){if(t&1&&(d(0,"form",1),k(1,pdt,5,4,"div",2)(2,fdt,12,4,"div",3),c()),t&2){let e=S();f("formGroup",e.form),m(),f("ngIf",e.type&&e.type!=e.FlowTypes.Curriculum),m(),f("ngIf",e.type&&e.type==e.FlowTypes.Curriculum)}}var uc=(()=>{class t{constructor(e){this.documentFlowService=e,this.FlowTypes=Ro,this.stages=[{label:"Emiss\xE3o",formArrayName:"fluxoEmissao"},{label:"Registro",formArrayName:"fluxoRegistro"},{label:"Armazenamento",formArrayName:"fluxoArmazenamento"},{label:"Hist\xF3rico Escolar",formArrayName:"fluxoHistorico"},{label:"Curr\xEDculo Escolar",formArrayName:"fluxoCurriculo"}]}ngOnInit(){}getFormArray(e){return this.form.get(e)}addRule(e){this.getFormArray(e).push(this.documentFlowService.getSignRuleForm())}removeRule(e,i){this.getFormArray(e).removeAt(i)}canDelete(e){return this.getFormArray(e).length>1}static{this.\u0275fac=function(i){return new(i||t)(E(oa))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-signature-flow-form"]],inputs:{form:"form",readonly:"readonly",type:"type"},decls:1,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],["class","row",4,"ngIf"],["class","box-light col-12 col-md-6",4,"ngIf"],[1,"row"],["class","col-12 col-md-6",4,"ngIf"],[1,"col-12","col-md-6"],["appearance","outlined",3,"hidden"],[1,"box-light"],[1,"d-flex","justify-content-start"],["mat-fab","","mat-card-avatar","",1,"me-2","mat-elevation-z0","bg-primary","text-white"],[1,"align-self-end","ms-2","font-medium"],[3,"formArrayName"],[3,"form","canDelete","readonly","removed",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],["mat-mini-fab","","color","primary",3,"click","disabled"],[3,"removed","form","canDelete","readonly"],[1,"box-light","col-12","col-md-6"],["mat-fab","","mat-card-avatar","",1,"me-2","bg-primary","text-white"]],template:function(i,r){i&1&&k(0,gdt,3,3,"form",0),i&2&&f("ngIf",r.form)},dependencies:[Vt,Ee,zt,pt,dt,Au,He,ma,QS,ws,ML,gI]})}}return t})();var _dt=t=>({"text-error":t});function vdt(t,n){t&1&&(d(0,"span",8),h(1,"(Nova Pasta)"),c())}function bdt(t,n){if(t&1&&(he(0),h(1),k(2,vdt,2,0,"span",7),fe()),t&2){let e=S();m(),ue(" ",e.selectedItem.id==e.SettingService.NoFolder.id?"Sem pasta":e.selectedItem.name," "),m(),f("ngIf",e.selectedItem.id==e.SettingService.NewFolderId)}}function ydt(t,n){t&1&&(d(0,"span",8),h(1," (Nova Pasta)"),c())}function xdt(t,n){if(t&1&&(d(0,"mat-option",9)(1,"mat-icon",10),h(2),c(),h(3),k(4,ydt,2,0,"span",7),c()),t&2){let e=n.$implicit,i=S();f("value",e),m(2),U(i.getIcon(e,!0)),m(),ue("",e.id==i.SettingService.NoFolder.id?"Sem pasta":e.name," "),m(),f("ngIf",e.id==i.SettingService.NewFolderId)}}function Cdt(t,n){t&1&&(d(0,"mat-error"),h(1,"\xC9 necess\xE1rio selecionar uma pasta"),c())}var am=(()=>{class t{set setSelectedItem(e){this.selectedItem!=e&&(this.selectedItemForm.setValue(e),this.selectedItem=e,this.resetFilteredItems())}set disabled(e){e?this.selectedItemForm.disable():this.selectedItemForm.enable()}set setRequired(e){this.required=e,this.selectedItemForm.setValidators(this.required?[Se.required]:[])}get isInvalid(){return this.required&&this.selectedItem==null}constructor(e){this.SettingService=e,this._onDestroy=new qe,this.idCompareFn=(i,r)=>i&&r&&i.id===r.id?i.id==this.SettingService.NewFolderId?i.name==r.name:!0:!1,this.selectedItemChange=new Ae,this.filterCtrl=new Oo,this.loadingItems=!1,this.selectedItemForm=new Oo("")}ngOnInit(){this.selectedItemForm.setValue(this.selectedItem),this.selectedItemForm.markAsTouched(),this.resetFilteredItems()}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}getIcon(e=null,i=!1){return e||(e=this.selectedItem),e&&e.id==this.SettingService.NoFolder.id?"cancel_presentation":e&&e.id==this.SettingService.NewFolderId?"create_new_folder":i?"":"folder"}resetFilteredItems(){this.filteredItems=this.filterCtrl.valueChanges.pipe(kn(this.searchTerm||""),Ft(this._onDestroy),$o(300),ri(e=>{this.loadingItems=!0,this.searchTerm=e}),Wi(e=>this.getItems(e)),kn([]),st(e=>this.addExtraItems(e)),ri(()=>this.loadingItems=!1))}addExtraItems(e){let i=this.getExtraOptions();return e.unshift(...i),this.selectedItem&&!e.some(r=>r.id==this.selectedItem.id)&&(!this.searchTerm||this.selectedItem.name.toLocaleLowerCase().includes(this.searchTerm.toLowerCase()))&&e.push(this.selectedItem),e}getExtraOptions(){let e=this.searchTerm?this.searchTerm.toLowerCase():"";var i=[];return this.searchTerm&&i.push(this.SettingService.NewFolder(this.searchTerm)),this.SettingService.NoFolder.name.toLowerCase().includes(e)&&i.push(this.SettingService.NoFolder),i}getItems(e){let i=new Ud().withSearchTerm(e||"").withLimit(10);return this.SettingService.getFolders(i).pipe(st(r=>r.items))}onselectionChange(e){this.selectedItem=e.value,this.selectedItemChange.emit(this.selectedItem)}static{this.\u0275fac=function(i){return new(i||t)(E(Xa))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-folder-selector"]],inputs:{setSelectedItem:[ve.None,"selectedItem","setSelectedItem"],disabled:"disabled",setRequired:[ve.None,"required","setRequired"]},outputs:{selectedItemChange:"selectedItemChange"},decls:14,vars:14,consts:[[1,"d-flex",2,"margin-bottom","1em"],[1,"middle","align-self-center","me-2",3,"ngClass"],[1,"container-truncate","mb-0","w-100","input-sm"],[3,"selectionChange","compareWith","formControl"],[4,"ngIf"],["noEntriesFoundLabel","N\xE3o foi encontrada nenhuma pasta","placeholderLabel","Pesquisar",3,"formControl","searching","clearSearchInput"],[3,"value",4,"ngFor","ngForOf"],["class","text-primary",4,"ngIf"],[1,"text-primary"],[3,"value"],[1,"icon-sm"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"mat-icon",1),h(2),c(),d(3,"mat-form-field",2)(4,"mat-label"),h(5,"Pasta"),c(),d(6,"mat-select",3),$("selectionChange",function(a){return r.onselectionChange(a)}),d(7,"mat-select-trigger"),k(8,bdt,3,2,"ng-container",4),c(),d(9,"mat-option"),H(10,"ngx-mat-select-search",5),c(),k(11,xdt,5,4,"mat-option",6),ce(12,"async"),c(),k(13,Cdt,2,0,"mat-error",4),c()()),i&2&&(m(),f("ngClass",Le(12,_dt,r.isInvalid)),m(),U(r.getIcon()),m(4),f("compareWith",r.idCompareFn)("formControl",r.selectedItemForm),m(2),f("ngIf",r.selectedItem),m(2),f("formControl",r.filterCtrl)("searching",r.loadingItems)("clearSearchInput",!1),m(),f("ngForOf",xe(12,10,r.filteredItems)),m(2),f("ngIf",r.selectedItemForm.invalid))},dependencies:[ji,Vt,Ee,it,Od,He,bt,jt,Si,Mi,MZ,Li,Vde,Ea]})}}return t})();var ibe=(()=>{class t{transform(e){switch(e){case ks.TermoResponsabilidade:return"Termo de responsabilidade";case ks.DocumentoIdentidadeDoAluno:return"RG";case ks.ProvaConclusaoEnsinoMedio:return"Comprovante de conclus\xE3o do ensino m\xE9dio";case ks.HistoricoEscolar:return"Hist\xF3rico escolar";case ks.ProvaColacao:return"Comprova\xE7\xE3o de cola\xE7\xE3o";case ks.ComprovacaoEstagioCurricular:return"Comprova\xE7\xE3o de est\xE1gio curricular";case ks.CertidaoNascimento:return"Certid\xE3o de nascimento";case ks.CertidaoCasamento:return"Certid\xE3o de casamento";case ks.TituloEleitor:return"T\xEDtulo de eleitor";case ks.AtoNaturalizacao:return"Ato de naturaliza\xE7\xE3o";case ks.AtoDesignacao:return"Ato de designa\xE7\xE3o";case ks.Outros:return"Outros";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"documentationType",type:t,pure:!0})}}return t})();var wdt=["fileInp"],Edt=t=>({pointer:t}),Idt=t=>({invalid:t}),Ddt=()=>({display:"flex"}),Tdt=t=>({"dnd-drag-over":t});function Adt(t,n){t&1&&(he(0),h(1,"o arquivo"),fe())}function kdt(t,n){t&1&&(he(0),h(1,"os arquivos"),fe())}function Mdt(t,n){if(t&1&&(d(0,"div",13)(1,"strong"),h(2," Clique aqui ou arraste e solte "),k(3,Adt,2,0,"ng-container",8)(4,kdt,2,0,"ng-container",8),c()()),t&2){let e=S(2);m(3),f("ngIf",e.singleFile),m(),f("ngIf",!e.singleFile)}}function Fdt(t,n){t&1&&(d(0,"div",14),h(1,"Nenhum arquivo adicionado..."),c())}function Rdt(t,n){if(t&1){let e=ie();d(0,"div",10),$("click",function(){W(e);let r=S();return Y(r.fileButtonClick())}),k(1,Mdt,5,2,"div",11)(2,Fdt,2,0,"div",12),c()}if(t&2){let e=S();m(),f("ngIf",!e.readOnly),m(),f("ngIf",e.readOnly)}}function Pdt(t,n){if(t&1){let e=ie();d(0,"button",32),$("click",function(){W(e);let r=S().index,o=S(2);return Y(o.deleteFile(r))}),d(1,"mat-icon",33),h(2,"delete"),c()()}}function Ndt(t,n){if(t&1&&H(0,"mat-progress-bar",34),t&2){let e=S().$implicit;ba("value",e.get("percentDone").value)}}function Odt(t,n){t&1&&H(0,"mat-progress-bar",35)}function Ldt(t,n){if(t&1&&(d(0,"mat-option",36),h(1),ce(2,"documentationType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function Vdt(t,n){if(t&1&&(d(0,"mat-form-field",37)(1,"mat-label"),h(2,"Descri\xE7\xE3o"),c(),H(3,"input",38,0),d(5,"mat-hint",39),h(6),c(),d(7,"mat-error"),h(8),c()()),t&2){let e=je(4),i=S().$implicit,r=S(2);m(3),f("readonly",r.readOnly),m(3),ue("",(e.value==null?null:e.value.length)||0,"/255"),m(2),U(r.Error.get(i))}}function Bdt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"div",17)(2,"div",18)(3,"div",19)(4,"button",20),$("click",function(){let r=W(e).index,o=S(2);return Y(o.viewFile(r))}),d(5,"mat-icon"),h(6," find_in_page "),c()(),d(7,"div",21)(8,"div",22)(9,"h3",23)(10,"strong"),h(11),c()(),k(12,Pdt,3,0,"button",24),c(),d(13,"div"),k(14,Ndt,1,1,"mat-progress-bar",25)(15,Odt,1,0,"mat-progress-bar",26),c(),d(16,"mat-form-field",27)(17,"mat-label"),h(18,"Tipo"),c(),d(19,"mat-select",28),k(20,Ldt,3,4,"mat-option",29),c()()()()(),d(21,"div",18)(22,"div",30),k(23,Vdt,9,3,"mat-form-field",31),c()()()()}if(t&2){let e=n.$implicit,i=S(2);f("formGroup",e),m(4),f("disabled",!e.get("id").value),m(7),U(e.get("name").value),m(),f("ngIf",!i.readOnly),m(2),f("ngIf",!e.get("location").value&&e.get("percentDone").value&&e.get("percentDone").value!=100),m(),f("ngIf",!e.get("location").value&&e.get("percentDone").value&&e.get("percentDone").value==100),m(4),f("disabled",i.readOnly),m(),f("ngForOf",i.documentationTypes),m(3),f("ngIf",e.get("tipo").value!=i.DocumentationTypes.AtoDesignacao)}}function jdt(t,n){if(t&1&&(d(0,"div"),k(1,Bdt,24,9,"div",15),c()),t&2){let e=S();m(),f("ngForOf",e.filesToAdd.controls)}}function Hdt(t,n){if(t&1){let e=ie();d(0,"div",43)(1,"button",44),$("click",function(){W(e);let r=S(2);return Y(r.addEmptyFile())}),d(2,"mat-icon",45),h(3,"note_add"),c()()()}}function zdt(t,n){if(t&1){let e=ie();d(0,"div")(1,"button",46),$("click",function(){W(e);let r=S(2);return Y(r.fileButtonClick())}),d(2,"mat-icon",47),h(3,"add"),c()()()}}function Udt(t,n){if(t&1){let e=ie();d(0,"div",40)(1,"input",41,1),$("change",function(r){W(e);let o=S();return Y(o.transferDataSuccess(r))})("click",function(){W(e);let r=je(2);return Y(r.value=null)}),c(),k(3,Hdt,4,0,"div",42)(4,zdt,4,0,"div",8),c()}if(t&2){let e=S();m(),f("multiple",!e.singleFile),m(2),f("ngIf",!(e.singleFile&&e.filesToAdd.length>=1)&&e.isJudicialDecision),m(),f("ngIf",!(e.singleFile&&e.filesToAdd.length>=1))}}var $B=(()=>{class t{get readOnly(){return this._readOnly}set readOnly(e){this._readOnly=Sn(e)}get loadingFiles(){return this._loadingFiles}constructor(e,i,r,o,a,s,l){this.Error=e,this.logger=i,this.fileSizePipe=r,this.dialog=o,this.uploadService=a,this.fb=s,this.dialogService=l,this.DocumentationTypes=ks,this._readOnly=!1,this.fileDeleted=new Ae,this.filesLoading=new Ae,this.numberOfFilesLoading=0,this._loadingFiles=!1,this.fileOver=new Tr(!1),this.$toUnsubscribe=[]}ngOnInit(){if(this.filesToAdd==null&&!this.readOnly)throw"A FormArray representing the files to be added need to be passed to FilesComponent, but none was received.";this.filesToAdd!=null&&this.readOnly&&this.logger.logWarning("FilesComponent -- a filesToAdd array was passed to this component unnecessarily, since it is in read only mode"),this.documentationTypes=Object.values(ks).filter(e=>!(e==ks.TermoResponsabilidade||e==ks.HistoricoEscolar||this.hideDesignationAct&&e==ks.AtoDesignacao)).sort((e,i)=>e>i?1:-1),this.$toUnsubscribe.push(this.fileOver.pipe(tH(e=>e?vt({}):gs(250)),Ls()).subscribe(e=>this.highlightContainer=e))}ngOnDestroy(){this.$toUnsubscribe.forEach(e=>e.unsubscribe())}onDragEnter(){this.highlightContainer=!0}onDragLeave(){this.highlightContainer=!1}transferDataSuccess(e){return Mt(this,null,function*(){if(this.highlightContainer=!1,(e.target&&e.target.files||e.srcElement&&e.srcElement.files||e.mouseEvent&&e.mouseEvent.dataTransfer&&e.mouseEvent.dataTransfer.files)&&!this.readOnly){let i=[];e.mouseEvent!=null?i=e.mouseEvent.dataTransfer.files:e.target?i=e.target.files:i=e.srcElement.files;let r=[],o;try{this.loading=!0,o=yield this.uploadService.validate(this.convertFilesToInspectionModel(i)).toPromise(),this.loading=!1}catch(a){throw this.loading=!1,a}for(let a=0;a=1)return;let s=i[a],l=o[a];if(s.size==0){r.push({file:`${s.name} (${this.fileSizePipe.transform(s.size)})`,type:Ll.ZeroByteFile});continue}if(s.size>Ye.maxFileSize){r.push({file:`${s.name} (${this.fileSizePipe.transform(s.size)})`,type:Ll.MaxSize});continue}if(this.acceptedTypes&&!this.acceptedTypes.some(u=>u==s.type)){r.push({file:`${s.name} (${this.fileSizePipe.transform(s.size)})`,type:Ll.Type});continue}else if(!l.isContentTypeValid||!l.isExtensionValid){l.isContentTypeValid||r.push({file:`${s.name} (${this.fileSizePipe.transform(s.size)})`,type:Ll.InvalidContentType}),l.isExtensionValid||r.push({file:`${s.name} (${s.type})`,type:Ll.InvalidExtensionForType});continue}this.uploadFile(s)}r&&r.length>0&&this.openErrorDetailsDialog(r)}})}convertFilesToInspectionModel(e){let i=[];if(e)for(let r=0;r{r.type==="Progress"?i.controls.percentDone.setValue(r.progress):r.type==="Completed"&&(i.controls.id.setValue(r.model.id),i.controls.name.setValue(r.model.name),i.controls.contentType.setValue(r.model.contentType),i.controls.location.setValue(r.model.location),this.fileFinishedLoading())},()=>{this.fileFinishedLoading()}),i.controls.name.setValue(e.name)}static removeFileExtension(e){var i=e.lastIndexOf(".");return i>-1?e.substring(0,i):e}fileModelToFormGroup(e){let i=this.fb.group({id:[e.id],name:[e.name],tipo:[e.tipo,Se.required],observacoes:[e.observacoes],contentType:[e.contentType],location:[e.location],percentDone:[""]});return this.isJudicialDecision||(i.get("id").setValidators(Se.required),i.get("name").setValidators(Se.required),i.get("contentType").setValidators([Se.required,Se.maxLength(255)])),i}addFile(e){let i=this.fileModelToFormGroup(e);return this.filesToAdd.push(i),i}addEmptyFile(){let e={id:"",name:"",tipo:null,observacoes:"",contentType:"",location:""};return this.addFile(e)}fileStartedLoading(){this.numberOfFilesLoading==0&&(this.filesLoading.emit(!0),this._loadingFiles=!0,this.logger.logTrace("FilesComponent -- file(s) started loading")),this.numberOfFilesLoading++}fileFinishedLoading(){this.numberOfFilesLoading>0&&this.numberOfFilesLoading--,this.numberOfFilesLoading==0&&(this.filesLoading.emit(!1),this._loadingFiles=!1,this.logger.logTrace("FilesComponent -- file(s) finished loading"))}openErrorDetailsDialog(e,i=null){return this.dialog.open(bZ,{width:"720px",data:{errors:e,title:i,acceptedTypes:this.acceptedTypes,maxFileSize:Ye.maxFileSize}}).afterClosed().toPromise()}deleteFile(e){if(!this.readOnly&&e>-1){let i=this.filesToAdd.value[e];this.filesToAdd.removeAt(e),this.fileDeleted.emit(i)}}fileButtonClick(){this.touched=!0,!this.readOnly&&(this.singleFile&&this.filesToAdd.length>=1||this.fileButton.nativeElement.click())}viewFile(e){var i=[...this.filesToAdd.value];this.dialogService.openFile(i,e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E($t),E(oB),E(Dn),E(yZ),E(Ti),E(Qi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-files"]],viewQuery:function(i,r){if(i&1&&ot(wdt,5),i&2){let o;Pe(o=Ne())&&(r.fileButton=o.first)}},hostBindings:function(i,r){i&1&&$("dragover",function(a){return r.onDragEnter(a)})("dragleave",function(a){return r.onDragLeave(a)})},inputs:{filesToAdd:"filesToAdd",acceptedTypes:"acceptedTypes",singleFile:"singleFile",isJudicialDecision:"isJudicialDecision",hideDesignationAct:"hideDesignationAct",readOnly:"readOnly"},outputs:{fileDeleted:"fileDeleted",filesLoading:"filesLoading"},decls:8,vars:15,consts:[["input",""],["fileInp",""],["spaDnd","",1,"stretch","top-container",3,"filesOver","filesDropped","ngClass"],[3,"show"],[1,"dnd-container",3,"ngClass","ngStyle"],[1,"stretch","pb-4",3,"ngClass"],[1,"dropzone","stretch",2,"overflow","auto"],["class","d-flex flex-column align-items-center justify-content-center stretch",3,"click",4,"ngIf"],[4,"ngIf"],["class","button-container",4,"ngIf"],[1,"d-flex","flex-column","align-items-center","justify-content-center","stretch",3,"click"],["class","centered text-center",4,"ngIf"],["class","centered",4,"ngIf"],[1,"centered","text-center"],[1,"centered"],[3,"formGroup",4,"ngFor","ngForOf"],[3,"formGroup"],[1,"py-2","ps-2","file-row"],[1,"row"],[1,"d-flex","col-12"],["mat-icon-button","","color","primary","aria-label","View file","matTooltip","Visualizar arquivo",1,"icon-lg-2",3,"click","disabled"],[1,"file-data","ms-1"],[1,"d-flex","align-items-center"],[1,"mb-0","text-truncate"],["class","icon-md ms-auto","mat-icon-button","","color","warn",3,"click",4,"ngIf"],["mode","determinate",3,"value",4,"ngIf"],["mode","indeterminate",4,"ngIf"],[1,"col","mt-0","px-0"],["formControlName","tipo",3,"disabled"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","ms-3","col-12",2,"margin-top","-5px"],["class","w-100 mb-1",4,"ngIf"],["mat-icon-button","","color","warn",1,"icon-md","ms-auto",3,"click"],["aria-label","Delete"],["mode","determinate",3,"value"],["mode","indeterminate"],[3,"value"],[1,"w-100","mb-1"],["matInput","","maxlength","255","formControlName","observacoes",3,"readonly"],["align","end"],[1,"button-container"],["type","file","id","file-input","hidden","",3,"change","click","multiple"],["class","d-none d-md-inline-block",4,"ngIf"],[1,"d-none","d-md-inline-block"],["type","button","mat-mini-fab","","color","accent",1,"mat-elevation-z6",3,"click"],["aria-label","Add unavailable file"],["type","button","mat-mini-fab","","color","primary",1,"mat-elevation-z6",3,"click"],["aria-label","Add file"]],template:function(i,r){i&1&&(d(0,"div",2),$("filesOver",function(a){return r.fileOver.next(a)})("filesDropped",function(a){return r.transferDataSuccess(a)}),H(1,"ngx-loading",3),d(2,"ng-scrollbar",4)(3,"div",5)(4,"div",6),k(5,Rdt,3,2,"div",7)(6,jdt,2,1,"div",8),c()()(),k(7,Udt,5,3,"div",9),c()),i&2&&(f("ngClass",Le(8,Edt,!r.readOnly)),m(),f("show",r.loading),m(),f("ngClass",Le(10,Idt,!r.filesToAdd.valid&&!r.loadingFiles&&r.touched))("ngStyle",Wo(12,Ddt)),m(),f("ngClass",Le(13,Tdt,r.highlightContainer)),m(2),f("ngIf",!(r.filesToAdd.length>0)),m(),f("ngIf",r.filesToAdd.length>0),m(),f("ngIf",!r.readOnly))},dependencies:[ji,Vt,Ee,av,Gt,it,pt,wc,dt,Tt,He,fi,ma,Wt,bt,jt,pL,Si,Mi,li,xZ,yi,Li,mw,Ju,ibe],styles:[".dnd-container[_ngcontent-%COMP%]{background-color:#f1f1f1;border:2px dashed #a9a9a9;border-radius:5px;height:100%;overflow:auto}.dnd-container.dnd-container-read-only[_ngcontent-%COMP%]{border-style:solid}.dnd-container.invalid[_ngcontent-%COMP%]{border:2px dashed #e9093f}.top-container[_ngcontent-%COMP%]{position:relative}.stretch[_ngcontent-%COMP%]{height:100%}.button-container[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:15px;z-index:999}.file-row[_ngcontent-%COMP%]{padding-right:50px}.file-row[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.file-data[_ngcontent-%COMP%]{width:70%}.dropzone[_ngcontent-%COMP%]{display:grid;grid-auto-rows:1fr;grid-template-columns:1fr}"]})}}return t})();function Gdt(t,n){t&1&&(d(0,"h2"),h(1,"Envio de documenta\xE7\xE3o"),c())}function $dt(t,n){if(t&1&&(d(0,"div",7)(1,"div",8)(2,"spa-prop",9),h(3),c()(),d(4,"div",8)(5,"spa-prop",10),h(6),c()(),d(7,"div",8)(8,"spa-prop",11),h(9),ce(10,"cpf"),c()(),d(11,"div",8)(12,"spa-prop",12),h(13),c()()(),d(14,"div",13),H(15,"app-files",14),c()),t&2){let e=S();m(3),U(e.emissionInfos.entryNumber),m(3),U(e.emissionInfos.nome),m(3),U(xe(10,8,e.emissionInfos.cpf)),m(4),U(e.emissionInfos.curso),m(2),f("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedTypes)("readOnly",e.readOnly)("isJudicialDecision",e.isJudicialDecision)}}function qdt(t,n){if(t&1){let e=ie();d(0,"button",15),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"mat-icon"),h(2,"file_upload"),c(),h(3," Enviar "),c(),d(4,"button",16),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5," Cancelar "),c()}if(t&2){let e=S();f("disabled",e.filesToAdd.invalid)}}var rbe=(()=>{class t{constructor(e,i,r,o,a){this.data=e,this.dialogRef=i,this.configurationService=r,this.fb=o,this.messageService=a,this.acceptedTypes=["application/pdf"],this.emissionInfos=e.emissionInfos,this.readOnly=e.readOnly}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.isJudicialDecision=this.emissionInfos.degreeType==br.JudicialDecision;let e=[];if(this.emissionInfos.documents?.documentacaoComprobatoria.length>0&&(e=this.emissionInfos.documents.documentacaoComprobatoria.map(r=>this.fileModelToFormGroup(r))),this.emissionInfos.documents?.atoDesignacao){let r=this.fileModelToFormGroup(this.emissionInfos.documents.atoDesignacao);e.push(r)}let i=e.length>0?[]:Se.required;this.filesToAdd=this.fb.array(e,i)}fileModelToFormGroup(e){let i=this.fb.group({id:[e.id],name:[e.name],contentType:[e.contentType],tipo:[e.tipo,Se.required],observacoes:[e.observacoes],location:[e.location],percentDone:[""]});return this.isJudicialDecision||(i.get("id").setValidators(Se.required),i.get("name").setValidators(Se.required),i.get("contentType").setValidators([Se.required,Se.maxLength(255)])),i}submit(){let e={index:this.emissionInfos.entryNumber-1,degreeType:this.emissionInfos.degreeType,documentacaoComprobatoria:[]},i=!1;for(let r of this.filesToAdd.controls){let o=r.value;if(o.tipo==ks.AtoDesignacao)if(e.atoDesignacao=o,!i)i=!0;else{this.messageService.showError("N\xE3o \xE9 poss\xEDvel enviar mais de um ato de designa\xE7\xE3o");return}else e.documentacaoComprobatoria.push(o)}this.dialogRef.close(e)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr),E(zo),E(Ti),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-upload-documentation"]],decls:12,vars:3,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],["disableCloseButton","true",3,"titleTemplate","contentTemplate","actionsTemplate"],["mat-dialog-title","",1,"mb-2"],["mat-icon-button","","mat-dialog-close","","aria-label","Close","tabindex","-1",1,"dialog-close"],[1,"material-icons"],[1,"row"],[1,"col"],["label","# Registro"],["label","Nome"],["label","CPF"],["label","Curso"],[1,"files-container","stretch"],[3,"filesToAdd","acceptedTypes","readOnly","isJudicialDecision"],["type","submit","mat-raised-button","","color","accent",3,"click","disabled"],["type","button","mat-button","","color","primary",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,Gdt,2,0,"ng-template",null,0,Ii)(3,$dt,16,10,"ng-template",null,1,Ii)(5,qdt,6,1,"ng-template",null,2,Ii),d(7,"h2",4),h(8," Envio de documenta\xE7\xE3o "),d(9,"button",5)(10,"i",6),h(11,"close"),c()()()),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)}},dependencies:[He,Lu,RL,Ze,fi,wn,$B,Uo,Zo]})}}return t})();var tJ=["*"];function Wdt(t,n){t&1&&ct(0)}var Ydt=["tabListContainer"],Kdt=["tabList"],Xdt=["tabListInner"],Qdt=["nextPaginator"],Zdt=["previousPaginator"],Jdt=t=>({animationDuration:t}),eut=(t,n)=>({value:t,params:n});function tut(t,n){}var iut=["tabBodyWrapper"],nut=["tabHeader"];function rut(t,n){}function out(t,n){if(t&1&&k(0,rut,0,0,"ng-template",12),t&2){let e=S().$implicit;f("cdkPortalOutlet",e.templateLabel)}}function aut(t,n){if(t&1&&h(0),t&2){let e=S().$implicit;U(e.textLabel)}}function sut(t,n){if(t&1){let e=ie();d(0,"div",7,2),$("click",function(){let r=W(e),o=r.$implicit,a=r.$index,s=S(),l=je(1);return Y(s._handleClick(o,l,a))})("cdkFocusChange",function(r){let o=W(e).$index,a=S();return Y(a._tabFocusChanged(r,o))}),H(2,"span",8)(3,"div",9),d(4,"span",10)(5,"span",11),k(6,out,1,1,null,12)(7,aut,1,1),c()()()}if(t&2){let e=n.$implicit,i=n.$index,r=je(1),o=S();In(e.labelClass),yt("mdc-tab--active",o.selectedIndex===i),f("id",o._getTabLabelId(i))("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),xt("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),m(3),f("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),m(3),Xt(6,e.templateLabel?6:7)}}function lut(t,n){t&1&&ct(0)}function cut(t,n){if(t&1){let e=ie();d(0,"mat-tab-body",13),$("_onCentered",function(){W(e);let r=S();return Y(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){W(e);let o=S();return Y(o._setTabBodyWrapperHeight(r))}),c()}if(t&2){let e=n.$implicit,i=n.$index,r=S();In(e.bodyClass),yt("mat-mdc-tab-body-active",r.selectedIndex===i),f("id",r._getTabContentId(i))("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),xt("tabindex",r.contentTabIndex!=null&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}var dut=new ke("MatTabContent"),uut=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(E(Mn))}}static{this.\u0275dir=ze({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[Zt([{provide:dut,useExisting:t}])]})}}return t})(),mut=new ke("MatTabLabel"),sbe=new ke("MAT_TAB"),bM=(()=>{class t extends Ide{constructor(e,i,r){super(e,i),this._closestTab=r}static{this.\u0275fac=function(i){return new(i||t)(E(Mn),E(Er),E(sbe,8))}}static{this.\u0275dir=ze({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[Zt([{provide:mut,useExisting:t}]),qt]})}}return t})(),lbe=new ke("MAT_TAB_GROUP"),Hl=(()=>{class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new qe,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new $s(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static{this.\u0275fac=function(i){return new(i||t)(E(Er),E(lbe,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(i&1&&(bi(o,bM,5),bi(o,uut,7,Mn)),i&2){let a;Pe(a=Ne())&&(r.templateLabel=a.first),Pe(a=Ne())&&(r._explicitContent=a.first)}},viewQuery:function(i,r){if(i&1&&ot(Mn,7),i&2){let o;Pe(o=Ne())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],textLabel:[ve.None,"label","textLabel"],ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaLabelledby:[ve.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[Zt([{provide:sbe,useExisting:t}]),Ei,Oi,Dt],ngContentSelectors:tJ,decls:1,vars:0,template:function(i,r){i&1&&(hi(),k(0,Wdt,1,0,"ng-template"))},encapsulation:2})}}return t})(),ZZ="mdc-tab-indicator--active",obe="mdc-tab-indicator--no-transition",JZ=class{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){let e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){let r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}},put=(()=>{class t{constructor(){this._elementRef=Me(Xe),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement){i.classList.add(ZZ);return}let r=i.getBoundingClientRect(),o=e.width/r.width,a=e.left-r.left;i.classList.add(obe),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(obe),i.classList.add(ZZ),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ZZ)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=ze({type:t,inputs:{fitInkBarToContent:[ve.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",at]},features:[Ei]})}}return t})();var cbe=(()=>{class t extends put{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static{this.\u0275fac=function(i){return new(i||t)(E(Xe))}}static{this.\u0275dir=ze({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){i&2&&(xt("aria-disabled",!!r.disabled),yt("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at]},standalone:!0,features:[Ei,qt]})}}return t})(),abe=Ql({passive:!0}),hut=650,fut=100,gut=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,a,s,l){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=a,this._platform=s,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new qe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new qe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Ae,this.indexFocused=new Ae,a.runOutsideAngular(()=>{xn(e.nativeElement,"mouseleave").pipe(Ft(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){xn(this._previousPaginator.nativeElement,"touchstart",abe).pipe(Ft(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),xn(this._nextPaginator.nativeElement,"touchstart",abe).pipe(Ft(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){let e=this._dir?this._dir.change:vt("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ep(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(cn(1)).subscribe(r),Cn(e,i,this._items.changes,this._itemsResized()).pipe(Ft(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?ka:this._items.changes.pipe(kn(this._items),Wi(e=>new mn(i=>this._ngZone.runOutsideAngular(()=>{let r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Fy(1),vi(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!ho(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let i=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?i.scrollLeft=0:i.scrollLeft=i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,i=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let i=this._tabListContainer.nativeElement.offsetWidth,r=(e=="before"?-1:1)*i/3;return this._scrollTo(this._scrollDistance+r)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let i=this._items?this._items.toArray()[e]:null;if(!i)return;let r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:a}=i.elementRef.nativeElement,s,l;this._getLayoutDirection()=="ltr"?(s=o,l=s+a):(l=this._tabListInner.nativeElement.offsetWidth-o,s=l-a);let u=this.scrollDistance,p=this.scrollDistance+r;sp&&(this.scrollDistance+=Math.min(l-p,s-u))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,i=this._tabListContainer.nativeElement.offsetWidth;return e-i||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&i.button!=null&&i.button!==0||(this._stopInterval(),gs(hut,fut).pipe(Ft(Cn(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(o===0||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(Dc),E(Kr,8),E(ht),E(ln),E(Zn,8))}}static{this.\u0275dir=ze({type:t,inputs:{disablePagination:[ve.HasDecoratorInputTransform,"disablePagination","disablePagination",at],selectedIndex:[ve.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Gr]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Ei]})}}return t})(),_ut=(()=>{class t extends gut{constructor(e,i,r,o,a,s,l){super(e,i,r,o,a,s,l),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new JZ(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(Dc),E(Kr,8),E(ht),E(ln),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(i&1&&bi(o,cbe,4),i&2){let a;Pe(a=Ne())&&(r._items=a)}},viewQuery:function(i,r){if(i&1&&(ot(Ydt,7),ot(Kdt,7),ot(Xdt,7),ot(Qdt,5),ot(Zdt,5)),i&2){let o;Pe(o=Ne())&&(r._tabListContainer=o.first),Pe(o=Ne())&&(r._tabList=o.first),Pe(o=Ne())&&(r._tabListInner=o.first),Pe(o=Ne())&&(r._nextPaginator=o.first),Pe(o=Ne())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){i&2&&yt("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl",r._getLayoutDirection()=="rtl")},inputs:{disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at]},standalone:!0,features:[Ei,qt,Dt],ngContentSelectors:tJ,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"button",5,0),$("click",function(){return W(o),Y(r._handlePaginatorClick("before"))})("mousedown",function(s){return W(o),Y(r._handlePaginatorPress("before",s))})("touchend",function(){return W(o),Y(r._stopInterval())}),H(2,"div",6),c(),d(3,"div",7,1),$("keydown",function(s){return W(o),Y(r._handleKeydown(s))}),d(5,"div",8,2),$("cdkObserveContent",function(){return W(o),Y(r._onContentChanges())}),d(7,"div",9,3),ct(9),c()()(),d(10,"button",10,4),$("mousedown",function(s){return W(o),Y(r._handlePaginatorPress("after",s))})("click",function(){return W(o),Y(r._handlePaginatorClick("after"))})("touchend",function(){return W(o),Y(r._stopInterval())}),H(12,"div",6),c()}i&2&&(yt("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),f("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),m(3),yt("_mat-animation-noopable",r._animationMode==="NoopAnimations"),m(7),yt("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),f("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[Jl,YO],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}}return t})(),vut=new ke("MAT_TABS_CONFIG"),but={translateTab:Bo("translateTab",[cr("center, void, left-origin-center, right-origin-center",$i({transform:"none"})),cr("left",$i({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),cr("right",$i({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),gr("* => left, * => right, left => center, right => center",xr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),gr("void => left-origin-center",[$i({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),xr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),gr("void => right-origin-center",[$i({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),xr("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},yut=(()=>{class t extends Tl{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=Ji.EMPTY,this._leavingSub=Ji.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(kn(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(xm),E(Er),E(fr(()=>dbe)),E(ni))}}static{this.\u0275dir=ze({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[qt]})}}return t})(),dbe=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Ji.EMPTY,this._translateTabComplete=new qe,this._onCentering=new Ae,this._beforeCentering=new Ae,this._afterLeavingCenter=new Ae,this._onCentered=new Ae(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Ls((o,a)=>o.fromState===a.fromState&&o.toState===a.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){this._position=="center"&&this.origin!=null&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){let i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(e){return e=="center"||e=="left-origin-center"||e=="right-origin-center"}_computePositionAnimationState(e=this._getLayoutDirection()){this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center"}_computePositionFromOrigin(e){let i=this._getLayoutDirection();return i=="ltr"&&e<=0||i=="rtl"&&e>0?"left-origin-center":"right-origin-center"}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Kr,8),E(Di))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(i&1&&ot(Tl,5),i&2){let o;Pe(o=Ne())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[ve.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[Dt],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1,0),$("@translateTab.start",function(s){return W(o),Y(r._onTranslateTabStarted(s))})("@translateTab.done",function(s){return W(o),Y(r._translateTabComplete.next(s))}),k(2,tut,0,0,"ng-template",2),c()}i&2&&f("@translateTab",so(3,eut,r._position,Le(1,Jdt,r.animationDuration)))},dependencies:[yut,S0],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[but.translateTab]}})}}return t})(),xut=0,Cut=!0,mc=(()=>{class t{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){let i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){if(!Cut)throw new Error("mat-tab-group background color must be set through the Sass theming API");let i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new js,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ji.EMPTY,this._tabLabelSubscription=Ji.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new Ae,this.focusChange=new Ae,this.animationDone=new Ae,this.selectedTabChange=new Ae(!0),this._isServer=!Me(ln).isBrowser,this._groupId=xut++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=r&&r.disablePagination!=null?r.disablePagination:!1,this.dynamicHeight=r&&r.dynamicHeight!=null?r.dynamicHeight:!1,r?.contentTabIndex!=null&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=r&&r.fitInkBarToContent!=null?r.fitInkBarToContent:!1,this.stretchTabs=r&&r.stretchTabs!=null?r.stretchTabs:!0}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let i=this._selectedIndex==null;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));let r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,this._selectedIndex!=null&&i.position==0&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let i=this._tabs.toArray(),r;for(let o=0;o{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(kn(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let i=new eJ;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Cn(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;let i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){let i=this._lastFocusedTabIndex??this.selectedIndex;return e===i?0:-1}_tabFocusChanged(e,i){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=i)}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(vut,8),E(Zn,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(i&1&&bi(o,Hl,5),i&2){let a;Pe(a=Ne())&&(r._allTabs=a)}},viewQuery:function(i,r){if(i&1&&(ot(iut,5),ot(nut,5)),i&2){let o;Pe(o=Ne())&&(r._tabBodyWrapper=o.first),Pe(o=Ne())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){i&2&&(In("mat-"+(r.color||"primary")),Vo("--mat-tab-animation-duration",r.animationDuration),yt("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header",r.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[ve.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",at],stretchTabs:[ve.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",at],dynamicHeight:[ve.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",at],selectedIndex:[ve.HasDecoratorInputTransform,"selectedIndex","selectedIndex",Gr],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[ve.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",Gr],disablePagination:[ve.HasDecoratorInputTransform,"disablePagination","disablePagination",at],disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],preserveContent:[ve.HasDecoratorInputTransform,"preserveContent","preserveContent",at],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[Zt([{provide:lbe,useExisting:t}]),Ei,Dt],ngContentSelectors:tJ,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","class","content","position","origin","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(i&1){let o=ie();hi(),d(0,"mat-tab-header",3,0),$("indexFocused",function(s){return W(o),Y(r._focusChanged(s))})("selectFocusedIndex",function(s){return W(o),Y(r.selectedIndex=s)}),Md(2,sut,8,17,"div",4,kd),c(),k(4,lut,1,0),d(5,"div",5,1),Md(7,cut,1,13,"mat-tab-body",6,kd),c()}i&2&&(f("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),m(2),Fd(r._tabs),m(2),Xt(4,r._isServer?4:-1),m(),yt("_mat-animation-noopable",r._animationMode==="NoopAnimations"),m(2),Fd(r._tabs))},dependencies:[_ut,cbe,iL,Jl,Tl,dbe],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}}return t})(),eJ=class{};var ube=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[ki,ki]})}}return t})();var Sut=(t,n)=>({"text-success":t,"text-warn":n}),us=t=>({invalid:t}),wut=(t,n)=>({"text-warn":t,invalid:n}),iJ=t=>({errors:t});function Eut(t,n){if(t&1&&(d(0,"div")(1,"h3"),h(2),c()()),t&2){let e=S(2);m(2),U(e.fileValidationResult.generalError.message)}}function Iut(t,n){if(t&1&&(d(0,"div",8)(1,"div",9)(2,"div",10)(3,"h2",11),h(4),c(),d(5,"h3"),h(6),c()()(),d(7,"div",9)(8,"div",10)(9,"h2",12),h(10),c(),d(11,"h3"),h(12,"Erros"),c()()()()),t&2){let e=S(2);m(4),U(e.fileValidationResult.result.length),m(2),U(e.getTitle()),m(4),U(e.fileValidationResult.totalErrors)}}function Dut(t,n){if(t&1&&(d(0,"li"),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function Tut(t,n){if(t&1&&(he(0),d(1,"span")(2,"strong"),h(3),c()(),d(4,"ul",15),k(5,Dut,2,1,"li",14),c(),fe()),t&2){let e=S().$implicit;m(3),ue("Registro #",e.entryNumber,""),m(2),f("ngForOf",e.errors)}}function Aut(t,n){if(t&1&&(d(0,"div"),k(1,Tut,6,2,"ng-container",2),c()),t&2){let e=n.$implicit;m(),f("ngIf",e.errors&&e.errors.length>0)}}function kut(t,n){if(t&1&&(d(0,"div",3),k(1,Aut,2,1,"div",14),c()),t&2){let e=S(3);m(),f("ngForOf",e.fileValidationResult.result)}}function Mut(t,n){t&1&&H(0,"mat-header-cell")}function Fut(t,n){if(t&1){let e=ie();d(0,"button",42),$("click",function(){W(e);let r=S().$implicit,o=S(5);return Y(o.openVisualRepresentationPreviewDialog(r.information))}),d(1,"mat-icon"),h(2,"visibility"),c()()}if(t&2){let e=S().$implicit,i=S(5);f("disabled",!e.isValid||!i.templateId)("matTooltip",i.getVisualRepresentationPreviewButtonTooltip(e.isValid))}}function Rut(t,n){if(t&1&&(d(0,"button",43)(1,"mat-icon"),h(2,"visibility"),c()()),t&2){let e=S().$implicit,i=je(4),r=S(5);f("disabled",!e.isValid||!r.templateId&&!r.academicTranscriptTemplateId)("matMenuTriggerFor",i)("matTooltip",r.getVisualRepresentationPreviewButtonTooltip(e.isValid))}}function Put(t,n){if(t&1){let e=ie();d(0,"button",44),$("click",function(){W(e);let r=S().$implicit,o=S(5);return Y(o.openVisualRepresentationPreviewDialog(r.information))}),h(1," Diploma "),c()}}function Nut(t,n){if(t&1){let e=ie();d(0,"button",44),$("click",function(){W(e);let r=S().$implicit,o=S(5);return Y(o.openVisualRepresentationPreviewDialog(r.information,!0))}),h(1," Hist\xF3rico Escolar "),c()}}function Out(t,n){if(t&1&&(d(0,"mat-cell",38),k(1,Fut,3,2,"button",39)(2,Rut,3,3,"button",40),d(3,"mat-menu",null,1),k(5,Put,2,0,"button",41)(6,Nut,2,0,"button",41),c()()),t&2){let e=n.$implicit,i=S(5);f("ngClass",Le(5,us,!e.isValid)),m(),f("ngIf",!i.isDegreeOrEmission&&i.operationType!=i.OperationTypes.Registration),m(),f("ngIf",i.isDegreeOrEmission),m(3),f("ngIf",i.templateId),m(),f("ngIf",i.academicTranscriptTemplateId)}}function Lut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"#"),c())}function Vut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.entryNumber," ")}}function But(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Nome"),c())}function jut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.nome," ")}}function Hut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function zut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.cpf," ")}}function Uut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Sexo"),c())}function Gut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit,i=S(5);f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",i.getText(e.sexo,e.degreeType)," ")}}function $ut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Nascimento"),c())}function qut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),ce(2,"date"),c()}if(t&2){let e=n.$implicit,i=S(5);f("ngClass",Le(5,us,!e.isValid)),m(),ue(" ",i.getText(Bt(2,2,e.dataNascimento,"shortDate"),e.degreeType)," ")}}function Wut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function Yut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.curso," ")}}function Kut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Modalidade"),c())}function Xut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(6);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.modalidade," ")}}function Qut(t,n){t&1&&(he(0,46),k(1,Kut,2,0,"mat-header-cell",25)(2,Xut,2,4,"mat-cell",28),fe())}function Zut(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo"),c())}function Jut(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit,i=S(5);f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",i.getText(e.codigoCurso,e.degreeType)," ")}}function emt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Documentos"),c())}function tmt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S().$implicit,i=S(6);m(),U(i.numberOfDocuments(e))}}function imt(t,n){if(t&1){let e=ie();d(0,"spa-link-button",49),$("trigger",function(){W(e);let r=S().$implicit,o=S(6);return Y(o.openUploadDocumentationDialog(r,!0))}),h(1),c()}if(t&2){let e=S().$implicit,i=S(6);m(),U(i.numberOfDocuments(e))}}function nmt(t,n){if(t&1&&(d(0,"mat-cell",38),k(1,tmt,2,1,"span",2)(2,imt,2,1,"spa-link-button",48),c()),t&2){let e=n.$implicit,i=S(6);f("ngClass",so(3,wut,i.numberOfDocuments(e)==0,!e.isValid)),m(),f("ngIf",!e.documents),m(),f("ngIf",e.documents)}}function rmt(t,n){t&1&&(he(0,47),k(1,emt,2,0,"mat-header-cell",25)(2,nmt,3,6,"mat-cell",26),fe())}function omt(t,n){t&1&&H(0,"mat-header-cell")}function amt(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"button",52),$("click",function(){let r=W(e).$implicit,o=S(6);return Y(o.openUploadDocumentationDialog(r))}),d(2,"mat-icon"),h(3,"file_upload"),c()()()}}function smt(t,n){t&1&&(he(0,50),k(1,omt,1,0,"mat-header-cell",25)(2,amt,4,0,"mat-cell",51),fe())}function lmt(t,n){if(t&1&&(d(0,"mat-tab",20)(1,"lac-table",21)(2,"div",22)(3,"div",23)(4,"h3"),h(5,"Nenhum dado encontrado."),c()()(),he(6,24),k(7,Mut,1,0,"mat-header-cell",25)(8,Out,7,7,"mat-cell",26),fe(),he(9,27),k(10,Lut,2,0,"mat-header-cell",25)(11,Vut,2,4,"mat-cell",28),fe(),he(12,29),k(13,But,2,0,"mat-header-cell",25)(14,jut,2,4,"mat-cell",28),fe(),he(15,30),k(16,Hut,2,0,"mat-header-cell",25)(17,zut,2,4,"mat-cell",28),fe(),he(18,31),k(19,Uut,2,0,"mat-header-cell",25)(20,Gut,2,4,"mat-cell",28),fe(),he(21,32),k(22,$ut,2,0,"mat-header-cell",25)(23,qut,3,7,"mat-cell",28),fe(),he(24,33),k(25,Wut,2,0,"mat-header-cell",25)(26,Yut,2,4,"mat-cell",28),fe(),k(27,Qut,3,0,"ng-container",34),he(28,35),k(29,Zut,2,0,"mat-header-cell",25)(30,Jut,2,4,"mat-cell",28),fe(),k(31,rmt,3,0,"ng-container",36)(32,smt,3,0,"ng-container",37),c()()),t&2){let e=S(4);f("label",e.isAcademicTranscript?"Dados do Hist\xF3rico Escolar":"Dados do Diploma"),m(),f("dataSource",e.degreeDataSource)("disableSearch",!0),m(26),f("ngIf",!e.isAcademicTranscript),m(4),f("ngIf",e.isEmission),m(),f("ngIf",e.isEmission)}}function cmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"#"),c())}function dmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.entryNumber," ")}}function umt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"IES Registradora"),c())}function mmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.nomeRegistradora," ")}}function pmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CNPJ"),c())}function hmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.cnpj," ")}}function fmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo MEC"),c())}function gmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.codigoMec," ")}}function _mt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Livro Registro"),c())}function vmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.livroRegistro," ")}}function bmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"# Folha do Diploma"),c())}function ymt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.numeroFolhaDoDiploma," ")}}function xmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"# Seq. do Diploma"),c())}function Cmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.numeroSequenciaDoDiploma," ")}}function Smt(t,n){if(t&1&&(d(0,"mat-tab",53)(1,"lac-table",21)(2,"div",22)(3,"div",23)(4,"h3"),h(5,"Nenhum dado encontrado."),c()()(),he(6,27),k(7,cmt,2,0,"mat-header-cell",25)(8,dmt,2,4,"mat-cell",28),fe(),he(9,54),k(10,umt,2,0,"mat-header-cell",25)(11,mmt,2,4,"mat-cell",28),fe(),he(12,55),k(13,pmt,2,0,"mat-header-cell",25)(14,hmt,2,4,"mat-cell",28),fe(),he(15,56),k(16,fmt,2,0,"mat-header-cell",25)(17,gmt,2,4,"mat-cell",28),fe(),he(18,57),k(19,_mt,2,0,"mat-header-cell",25)(20,vmt,2,4,"mat-cell",28),fe(),he(21,58),k(22,bmt,2,0,"mat-header-cell",25)(23,ymt,2,4,"mat-cell",28),fe(),he(24,59),k(25,xmt,2,0,"mat-header-cell",25)(26,Cmt,2,4,"mat-cell",28),fe(),c()()),t&2){let e=S(4);m(),f("dataSource",e.registrationDataSource)("disableSearch",!0)}}function wmt(t,n){t&1&&H(0,"mat-header-cell")}function Emt(t,n){if(t&1){let e=ie();d(0,"mat-cell",65)(1,"button",42),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.openVisualRepresentationPreviewDialog(r.information))}),d(2,"mat-icon"),h(3,"visibility"),c()()()}if(t&2){let e=n.$implicit,i=S(5);f("ngClass",Le(3,us,!e.isValid)),m(),f("disabled",!e.isValid||!i.templateId)("matTooltip",i.getVisualRepresentationPreviewButtonTooltip(e.isValid))}}function Imt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"#"),c())}function Dmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.entryNumber," ")}}function Tmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo"),c())}function Amt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.codigo," ")}}function kmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function Mmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.curso," ")}}function Fmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo do Curso"),c())}function Rmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.codigoCurso," ")}}function Pmt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"IES"),c())}function Nmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.ies," ")}}function Omt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo da IES"),c())}function Lmt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45),$("click",function(){let r=W(e).$implicit,o=S(5);return Y(o.showErrors(r))}),h(1),c()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,us,!e.isValid)),m(),ue(" ",e.codigoIes," ")}}function Vmt(t,n){if(t&1&&(d(0,"mat-tab",60)(1,"lac-table",21)(2,"div",22)(3,"div",23)(4,"h3"),h(5,"Nenhum dado encontrado."),c()()(),he(6,24),k(7,wmt,1,0,"mat-header-cell",25)(8,Emt,4,5,"mat-cell",61),fe(),he(9,27),k(10,Imt,2,0,"mat-header-cell",25)(11,Dmt,2,4,"mat-cell",28),fe(),he(12,62),k(13,Tmt,2,0,"mat-header-cell",25)(14,Amt,2,4,"mat-cell",28),fe(),he(15,33),k(16,kmt,2,0,"mat-header-cell",25)(17,Mmt,2,4,"mat-cell",28),fe(),he(18,35),k(19,Fmt,2,0,"mat-header-cell",25)(20,Rmt,2,4,"mat-cell",28),fe(),he(21,63),k(22,Pmt,2,0,"mat-header-cell",25)(23,Nmt,2,4,"mat-cell",28),fe(),he(24,64),k(25,Omt,2,0,"mat-header-cell",25)(26,Lmt,2,4,"mat-cell",28),fe(),c()()),t&2){let e=S(4);m(),f("dataSource",e.curriculumDataSource)("disableSearch",!0)}}function Bmt(t,n){if(t&1&&(d(0,"span",72),h(1,"Resumo"),c()),t&2){let e=S(5);f("matBadge",e.selectedResult.errors.length)}}function jmt(t,n){if(t&1&&(d(0,"span",72),h(1,"Estrutura"),c()),t&2){let e=S(6);f("matBadge",e.selectedResult.structureErrors.length)}}function Hmt(t,n){if(t&1&&(d(0,"mat-tab"),k(1,jmt,2,1,"ng-template",70),dn(2,71),c()),t&2){let e=S(5),i=je(2);m(2),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(2,iJ,e.selectedResult.structureErrors))}}function zmt(t,n){if(t&1&&(d(0,"span",72),h(1,"Assinatura"),c()),t&2){let e=S(6);f("matBadge",e.selectedResult.signatureErrors.length)}}function Umt(t,n){if(t&1&&(d(0,"mat-tab"),k(1,zmt,2,1,"ng-template",70),dn(2,71),c()),t&2){let e=S(5),i=je(2);m(2),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(2,iJ,e.selectedResult.signatureErrors))}}function Gmt(t,n){if(t&1){let e=ie();he(0),H(1,"mat-divider",66),d(2,"div",67)(3,"h2",11),h(4),c(),d(5,"button",68),$("click",function(){W(e);let r=S(4);return Y(r.selectedResult=null)}),d(6,"mat-icon"),h(7,"close"),c()()(),d(8,"mat-tab-group",69)(9,"mat-tab"),k(10,Bmt,2,1,"ng-template",70),dn(11,71),c(),k(12,Hmt,3,4,"mat-tab",2)(13,Umt,3,4,"mat-tab",2),c(),fe()}if(t&2){let e=S(4),i=je(2);m(4),ue("Erros da entrada #",e.selectedResult.entryNumber,""),m(7),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(5,iJ,e.selectedResult.errors)),m(),f("ngIf",(e.selectedResult.structureErrors==null?null:e.selectedResult.structureErrors.length)>0),m(),f("ngIf",(e.selectedResult.signatureErrors==null?null:e.selectedResult.signatureErrors.length)>0)}}function $mt(t,n){if(t&1&&(d(0,"div",3)(1,"h2"),h(2," Pr\xE9-visualiza\xE7\xE3o dos dados "),c(),d(3,"mat-tab-group",16),k(4,lmt,33,6,"mat-tab",17)(5,Smt,27,2,"mat-tab",18)(6,Vmt,27,2,"mat-tab",19),c(),k(7,Gmt,14,7,"ng-container",2),c()),t&2){let e=S(3);m(4),f("ngIf",e.degreeDataSource),m(),f("ngIf",e.registrationDataSource),m(),f("ngIf",e.curriculumDataSource),m(),f("ngIf",e.selectedResult)}}function qmt(t,n){if(t&1&&(he(0),k(1,kut,2,1,"div",13)(2,$mt,8,4,"div",13),fe()),t&2){let e=S(2);m(),f("ngIf",e.fileValidationResult.result.length>0&&!e.degreeDataSource&&!e.curriculumDataSource),m(),f("ngIf",e.degreeDataSource||e.curriculumDataSource)}}function Wmt(t,n){if(t&1&&(he(0),d(1,"div",3)(2,"h2"),h(3,"Resultado da Valida\xE7\xE3o"),c(),d(4,"div",4)(5,"div",5)(6,"mat-icon",6),h(7),c(),d(8,"h2"),h(9),c(),k(10,Eut,3,1,"div",2),c()(),k(11,Iut,13,3,"div",7),c(),k(12,qmt,3,2,"ng-container",2),fe()),t&2){let e=S();m(5),f("ngClass",so(6,Sut,e.fileValidationResult.isValid,!e.fileValidationResult.isValid)),m(2),ue("",e.fileValidationResult.isValid?"check_circle":"cancel"," "),m(2),U(e.fileValidationResult.isValid?"Arquivo com dados v\xE1lidos":"Existem erros no arquivo"),m(),f("ngIf",e.fileValidationResult.generalError),m(),f("ngIf",!e.fileValidationResult.generalError),m(),f("ngIf",!e.fileValidationResult.generalError)}}function Ymt(t,n){if(t&1&&(d(0,"li"),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function Kmt(t,n){if(t&1&&(d(0,"ng-scrollbar",73)(1,"ul"),k(2,Ymt,2,1,"li",14),c()()),t&2){let e=n.errors;m(2),f("ngForOf",e)}}var Eg=(()=>{class t{get isAcademicTranscript(){return this.operationType==Pt.AcademicTranscript}get isEmission(){return this.operationType==Pt.Emission}constructor(e,i,r){this.dialog=e,this.dialogService=i,this.templateService=r,this.OperationTypes=Pt,this.operationType=null,this.documentationChanged=new Ae,this.loadingChange=new Ae}ngOnInit(){this.isDegreeOrEmission=this.operationType==Pt.Degree||this.operationType==Pt.Emission}openUploadDocumentationDialog(e,i=!1){if(!e.documents&&e.preAddedDocumentsCount>0&&!i){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Este registro j\xE1 possui documentos adicionados. Deseja sobrescrever os arquivos?",confirmButtonText:"Sobrescrever arquivos",cancelButtonText:"Cancelar",confirmButtonColor:"warn"}).then(r=>{r&&this.openUpload(e)});return}this.openUpload(e,i)}openUpload(e,i=!1){this.dialog.open(rbe,{width:"800px",height:"500px",data:{emissionInfos:e,readOnly:i},panelClass:"no-overflow"}).afterClosed().toPromise().then(o=>{o&&(e.documents=o,this.documentationChanged.emit(e.documents))})}showErrors(e){e.isValid||(this.selectedResult=e)}numberOfDocuments(e){let i=0;if(e.documents!=null)e.documents.documentacaoComprobatoria!=null&&(i+=e.documents.documentacaoComprobatoria.length),e.documents.atoDesignacao!=null&&i++;else if(e.preAddedDocumentsCount!=null)return e.preAddedDocumentsCount;return i}getText(e,i){return!e&&i==br.JudicialDecision?"Indispon\xEDvel":e}getTitle(){switch(this.operationType){case Pt.AcademicTranscript:return"Hist\xF3ricos escolares";case Pt.Curriculum:return"Curr\xEDculos escolares";default:return"Diplomas"}}getVisualRepresentationPreviewButtonTooltip(e){return e?this.templateId?"Visualizar representa\xE7\xE3o visual":"\xC9 necess\xE1rio selecionar um modelo de representa\xE7\xE3o visual":"Este documento possui dados inv\xE1lidos"}openVisualRepresentationPreviewDialog(e,i=!1){let r={};switch(this.operationType){case Pt.Emission:r.emission=e;break;case Pt.AcademicTranscript:r.academicTranscript=e;break;case Pt.Curriculum:r.curriculum=e;break;case Pt.Degree:default:r.degree=e;break}this.loadingChange.emit(!0),this.templateService.getDocumentVisualRepresentationPreviewTicket(i?this.academicTranscriptTemplateId:this.templateId,r).subscribe(o=>{this.loadingChange.emit(!1);let a={location:o.location};this.dialogService.openFile([a],0)},o=>this.loadingChange.emit(!1))}static{this.\u0275fac=function(i){return new(i||t)(E(Dn),E(Qi),E(vd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-file-validation-boxes"]],inputs:{operationType:"operationType",fileValidationResult:"fileValidationResult",selectedResult:"selectedResult",degreeDataSource:"degreeDataSource",registrationDataSource:"registrationDataSource",curriculumDataSource:"curriculumDataSource",templateId:"templateId",academicTranscriptTemplateId:"academicTranscriptTemplateId"},outputs:{documentationChanged:"documentationChanged",loadingChange:"loadingChange"},decls:3,vars:1,consts:[["errorsTabContent",""],["optionsMenu","matMenu"],[4,"ngIf"],[1,"box-light","generate-box"],[1,"d-flex","justify-content-center"],[1,"d-flex","flex-column","align-items-center",3,"ngClass"],[1,"icon-md-2"],["class","row",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"d-flex","flex-column","align-items-center"],[1,"mb-0"],[1,"text-warn","mb-0"],["class","box-light generate-box",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"mb-2"],["mat-stretch-tabs","false","animationDuration","0ms"],[3,"label",4,"ngIf"],["label","Dados do Registro",4,"ngIf"],["label","Dados do Curr\xEDculo Escolar",4,"ngIf"],[3,"label"],["matSort","","matSortActive","entryNumber","matSortDirection","asc",1,"validation-table","centered-cells",3,"dataSource","disableSearch"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","visualRepresentationPreview"],[4,"matHeaderCellDef"],[3,"ngClass",4,"matCellDef"],["matColumnDef","entryNumber"],[3,"ngClass","click",4,"matCellDef"],["matColumnDef","nome"],["matColumnDef","cpf"],["matColumnDef","sexo"],["matColumnDef","dataNascimento"],["matColumnDef","curso"],["matColumnDef","modalidade",4,"ngIf"],["matColumnDef","codigoCurso"],["matColumnDef","documents",4,"ngIf"],["matColumnDef","uploadDocuments",4,"ngIf"],[3,"ngClass"],["mat-icon-button","","type","button",3,"disabled","matTooltip","click",4,"ngIf"],["mat-icon-button","","tabindex","0","type","button",3,"disabled","matMenuTriggerFor","matTooltip",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","","type","button",3,"click","disabled","matTooltip"],["mat-icon-button","","tabindex","0","type","button",3,"disabled","matMenuTriggerFor","matTooltip"],["mat-menu-item","",3,"click"],[3,"click","ngClass"],["matColumnDef","modalidade"],["matColumnDef","documents"],["matTooltip","Visualizar documentos enviados",3,"trigger",4,"ngIf"],["matTooltip","Visualizar documentos enviados",3,"trigger"],["matColumnDef","uploadDocuments"],[4,"matCellDef"],["mat-icon-button","","type","button","matTooltip","Enviar documenta\xE7\xE3o",3,"click"],["label","Dados do Registro"],["matColumnDef","nomeRegistradora"],["matColumnDef","cnpj"],["matColumnDef","codigoMec"],["matColumnDef","livroRegistro"],["matColumnDef","numeroFolhaDoDiploma"],["matColumnDef","numeroSequenciaDoDiploma"],["label","Dados do Curr\xEDculo Escolar"],["style","padding-start: 0px !important;",3,"ngClass",4,"matCellDef"],["matColumnDef","codigo"],["matColumnDef","ies"],["matColumnDef","codigoIes"],[2,"padding-start","0px !important",3,"ngClass"],[1,"my-3"],[1,"d-flex","align-items-center"],["mat-icon-button","",1,"ms-auto",3,"click"],["animationDuration","0ms"],["mat-tab-label",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matBadgeOverlap","false",1,"pe-2",3,"matBadge"],["visibility","hover",1,"pt-2",2,"min-height","50px","max-height","180px"]],template:function(i,r){i&1&&k(0,Wmt,13,9,"ng-container",2)(1,Kmt,3,1,"ng-template",null,0,Ii),i&2&&f("ngIf",r.fileValidationResult)},dependencies:[ji,Vt,Ee,ta,Ia,Gd,Es,He,fi,kc,zn,Vn,Hn,tr,ir,Kn,dr,Xr,As,yi,bM,Hl,mc,vB,Ju,rn],styles:[".mat-column-documents[_ngcontent-%COMP%]{flex:0 0 80px!important}.mat-column-uploadDocuments[_ngcontent-%COMP%], .mat-column-visualRepresentationPreview[_ngcontent-%COMP%], .mat-column-sexo[_ngcontent-%COMP%]{flex:0 0 48px!important}.mat-column-modalidade[_ngcontent-%COMP%]{flex:0 0 150px!important}.mat-column-entryNumber[_ngcontent-%COMP%]{flex:0 0 75px!important}"]})}}return t})();var Xmt=()=>({standalone:!0});function Qmt(t,n){t&1&&(d(0,"div")(1,"p"),h(2,"A assinatura de diplomas se d\xE1 em "),d(3,"b"),h(4,"3 etapas"),c(),h(5,": Emiss\xE3o, Registro e Armazenamento."),c()())}function Zmt(t,n){if(t&1&&(d(0,"mat-option",10),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e.name," ")}}function Jmt(t,n){if(t&1&&(he(0),k(1,Zmt,2,2,"mat-option",9),fe()),t&2){let e=S();m(),f("ngForOf",e.flows)}}var sm=(()=>{class t{constructor(e){this.documentFlowService=e,this.Types=Ro,this.loadingChange=new Ae}ngOnInit(){this.documentFlowService.getRecent(this.type).subscribe(e=>{this.flows=e.items})}onFlowSelected(){this.selectedFlow&&(this.loadingChange.emit(!0),this.documentFlowService.get(this.selectedFlow.id).subscribe(e=>{this.loadingChange.emit(!1),this.form.removeControl(ds),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type,e)),this.form.markAsDirty()},e=>this.loadingChange.emit(!1)))}static{this.\u0275fac=function(i){return new(i||t)(E(oa))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-signature-flow-selector"]],inputs:{form:"form",type:"type"},outputs:{loadingChange:"loadingChange"},decls:22,vars:5,consts:[[1,"box-light","generate-box"],[1,"row"],[1,"col-md-5"],[1,"font-medium"],[4,"ngIf"],[1,"col-md-2","d-flex","flex-column","justify-content-center","align-items-center"],[1,"mt-3"],[1,"col"],[3,"selectionChange","ngModelChange","ngModel","ngModelOptions"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),h(4,"Assinatura"),c(),k(5,Qmt,6,0,"div",4),d(6,"p"),h(7,"Especifique abaixo quem deve assinar em cada etapa:"),c()(),d(8,"div",5)(9,"strong"),h(10,"OU"),c()(),d(11,"div",2)(12,"p",6),h(13,"Escolha um fluxo previamente cadastrado:"),c(),d(14,"div",1)(15,"mat-form-field",7)(16,"mat-label"),h(17,"Fluxo"),c(),d(18,"mat-select",8),$("selectionChange",function(){return r.onFlowSelected()}),tn("ngModelChange",function(a){return nn(r.selectedFlow,a)||(r.selectedFlow=a),a}),d(19,"mat-option"),h(20,"Escolha um fluxo..."),c(),k(21,Jmt,2,1,"ng-container",4),c()()()()()()),i&2&&(m(5),f("ngIf",r.type==r.Types.EmissionRegistration),m(13),en("ngModel",r.selectedFlow),f("ngModelOptions",Wo(4,Xmt)),m(3),f("ngIf",r.flows))},dependencies:[Vt,Ee,it,Va,bt,jt,Mi,Li]})}}return t})();var ept=t=>({id:t});function tpt(t,n){if(t&1&&(d(0,"mat-option",6),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e.name," ")}}function ipt(t,n){if(t&1&&(d(0,"mat-option",6),h(1," N\xE3o gerar "),c()),t&2){let e=S();f("value",Le(1,ept,e.NoTemplate))}}var Ig=(()=>{class t{constructor(e){this.templateService=e,this.NoTemplate=cI}ngOnInit(){switch(this.type){case Jr.Degree:this.label="Modelo do diploma";break;case Jr.AcademicTranscript:this.label="Modelo do hist\xF3rico escolar";break;case Jr.Curriculum:this.label="Modelo do curr\xEDculo escolar";break;default:break}this.templates=this.templateControl.valueChanges.pipe(kn(""),$o(300),Wi(e=>this.templateService.autocomplete(this.type,e)))}displayFn(e){return e?.id==null?"":e.id==cI?"N\xE3o gerar":e.name}templateSelected(e){let i=e.option.value;this.templateIdControl.setValue(i.id),this.templateIdControl.markAsDirty()}static{this.\u0275fac=function(i){return new(i||t)(E(vd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-template-autocomplete-selector"]],inputs:{templateControl:"templateControl",templateIdControl:"templateIdControl",includeNotGenerateOption:"includeNotGenerateOption",type:"type"},decls:9,vars:8,consts:[["templateAutoComplete","matAutocomplete"],[1,"col","w-100","px-0"],["type","text","matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value",4,"ngIf"],[3,"value"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-form-field",1)(1,"mat-label"),h(2),c(),H(3,"input",2),c(),d(4,"mat-autocomplete",3,0),$("optionSelected",function(s){return W(o),Y(r.templateSelected(s))}),k(6,tpt,2,2,"mat-option",4),ce(7,"async"),k(8,ipt,2,3,"mat-option",5),c()}if(i&2){let o=je(5);m(2),U(r.label),m(),f("formControl",r.templateControl)("matAutocomplete",o),m(),f("displayWith",r.displayFn),m(2),f("ngForOf",xe(7,6,r.templates)),m(2),f("ngIf",r.includeNotGenerateOption)}},dependencies:[Vt,Ee,Gt,it,Od,Wt,bt,jt,AL,Mi,$2,Ea]})}}return t})();var mbe=gc(yp());var xd=(()=>{class t{constructor(e){this.Error=e,this.isRequired=!1}ngOnInit(){}setDateValue(e){this.formGroup.get(this.controlName).setValue((0,mbe.default)(e.value).format("DD/MM/YYYY"))}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-form-date-picker"]],inputs:{formGroup:"formGroup",controlName:"controlName",placeholder:"placeholder",isRequired:"isRequired"},decls:12,vars:9,consts:[["picker",""],[1,"d-flex",3,"formGroup"],[3,"for"],[1,"w-100"],[1,"d-none",3,"dateChange","matDatepicker"],["matInput","","mask","00/00/0000",3,"required","formControl","dropSpecialCharacters","showMaskTyped"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1)(1,"div"),H(2,"mat-datepicker",null,0)(4,"mat-datepicker-toggle",2),c(),d(5,"mat-form-field",3)(6,"mat-label"),h(7),c(),d(8,"input",4),$("dateChange",function(s){return W(o),Y(r.setDateValue(s))}),c(),H(9,"input",5),d(10,"mat-error"),h(11),c()()()}if(i&2){let o=je(3);f("formGroup",r.formGroup),m(4),f("for",o),m(3),U(r.placeholder),m(),f("matDatepicker",o),m(),f("required",r.isRequired)("formControl",r.formGroup.controls[r.controlName])("dropSpecialCharacters",!1)("showMaskTyped",!0),m(2),U(r.Error.get(r.formGroup,r.controlName,"stringDateValidator"))}},dependencies:[Gt,it,pt,Jn,Od,dt,Wt,bt,jt,Si,Fo,Rb,vg,Lx]})}}return t})();var pbe=(()=>{class t{transform(e){switch(e){case Fs.HasInformation:return"Possui";case Fs.InProgress:return"Em tramita\xE7\xE3o";case Fs.Unavailable:return"Indispon\xEDvel";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"informationAvailabilityTypes",type:t,pure:!0})}}return t})();var nJ=t=>({"text-muted":t});function rpt(t,n){if(t&1&&(d(0,"mat-option",28),h(1),ce(2,"informationAvailabilityTypes"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function opt(t,n){if(t&1&&(d(0,"mat-form-field",10)(1,"mat-label"),h(2,"C\xF3digo MEC do curso"),c(),H(3,"input",29),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.courseDataForm,"codigoCursoEMEC"))}}function apt(t,n){if(t&1&&H(0,"app-emec-process-form",30),t&2){let e=S();f("form",e.courseDataForm.get("informacoesTramitacaoEmec"))}}function spt(t,n){if(t&1&&(d(0,"mat-option",28),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function lpt(t,n){if(t&1&&(d(0,"mat-option",28),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function cpt(t,n){if(t&1&&(d(0,"mat-form-field",10)(1,"mat-label"),h(2,"Outro t\xEDtulo"),c(),H(3,"input",31),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.conferredTitleForm,"outroTitulo"))}}function dpt(t,n){if(t&1&&(d(0,"mat-option",28),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function upt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",32),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function mpt(t,n){if(t&1&&H(0,"app-address-form",30),t&2){let e=S();f("form",e.enderecoCursoForm)}}function ppt(t,n){if(t&1&&(d(0,"mat-option",28),h(1),ce(2,"informationAvailabilityTypes"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function hpt(t,n){if(t&1&&(d(0,"mat-form-field",10)(1,"mat-label"),h(2,"C\xF3digo MEC do polo"),c(),H(3,"input",35),d(4,"mat-error"),h(5),c()()),t&2){let e=S(2);m(5),U(e.Error.get(e.poloDataForm,"codigoEmec"))}}function fpt(t,n){if(t&1&&H(0,"app-emec-process-form",30),t&2){let e=S(2);f("form",e.poloDataForm.get("informacoesTramitacaoEmec"))}}function gpt(t,n){if(t&1){let e=ie();d(0,"div",33)(1,"mat-form-field",3)(2,"mat-label"),h(3,"Nome do polo"),c(),H(4,"input",34),d(5,"mat-error"),h(6),c()(),d(7,"div",1)(8,"mat-form-field",10)(9,"mat-label"),h(10,"Possui informa\xE7\xF5es sobre o c\xF3digo MEC do polo?"),c(),d(11,"mat-select",6),$("selectionChange",function(){W(e);let r=S();return Y(r.setEmecCodeConditionalGroups())}),k(12,ppt,3,4,"mat-option",7),c()(),k(13,hpt,6,1,"mat-form-field",8),c(),k(14,fpt,1,1,"app-emec-process-form",9),H(15,"app-address-form",30),c()}if(t&2){let e,i,r=S();m(6),U(r.Error.get(r.poloDataForm,"nome","name")),m(6),f("ngForOf",r.informationAvailabilityTypes),m(),f("ngIf",((e=r.poloDataForm.get("codeAvailabilityType"))==null?null:e.value)==r.InformationAvailabilityTypes.HasInformation),m(),f("ngIf",((i=r.poloDataForm.get("codeAvailabilityType"))==null?null:i.value)==r.InformationAvailabilityTypes.InProgress),m(),f("form",r.poloDataForm.get("endereco"))}}function _pt(t,n){if(t&1){let e=ie();d(0,"div",36)(1,"div",37)(2,"mat-form-field",38)(3,"mat-label"),h(4,"Nome"),c(),H(5,"input",39),d(6,"mat-error"),h(7),c()(),H(8,"app-form-date-picker",40),d(9,"button",41),$("click",function(){let r=W(e).index,o=S();return Y(o.removeHabilitacao(r))}),d(10,"mat-icon"),h(11,"delete"),c()()(),H(12,"hr"),c()}if(t&2){let e=n.$implicit,i=n.index,r=S();m(),f("formGroupName",i),m(6),U(r.Error.get(e,"nomeHabilitacao")),m(),f("isRequired",!0)("formGroup",e)}}function vpt(t,n){if(t&1){let e=ie();d(0,"div",44)(1,"div",1)(2,"mat-form-field",5)(3,"mat-label"),h(4,"\xCAnfase"),c(),H(5,"input",45),d(6,"mat-error"),h(7),c()(),d(8,"button",46),$("click",function(){let r=W(e).index,o=S(2);return Y(o.removeEnfase(r))}),d(9,"mat-icon"),h(10,"delete"),c()()()()}if(t&2){let e=n.$implicit,i=S(2);m(5),f("formControl",e),m(2),U(i.Error.get(e,"enfase")),m(),f("disabled",i.readonly)}}function bpt(t,n){if(t&1){let e=ie();d(0,"div")(1,"h3",16),h(2,"\xCAnfases"),c(),k(3,vpt,11,3,"div",42),d(4,"button",43),$("click",function(){W(e);let r=S();return Y(r.addEnfase())}),d(5,"mat-icon"),h(6,"add"),c()()()}if(t&2){let e=S();m(3),f("ngForOf",e.enfasesForm.controls)}}function ypt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",47),$("change",function(){W(e);let r=S();return Y(r.setRegulatoryActConditionalGroups())}),c()}}function xpt(t,n){if(t&1&&H(0,"app-regulatory-act-form",30),t&2){let e=S();f("form",e.autorizacaoForm)}}function Cpt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",48),$("change",function(){W(e);let r=S();return Y(r.setRegulatoryActConditionalGroups())}),c()}}function Spt(t,n){if(t&1&&H(0,"app-regulatory-act-form",30),t&2){let e=S();f("form",e.reconhecimentoForm)}}function wpt(t,n){if(t&1&&H(0,"app-regulatory-act-form",30),t&2){let e=S();f("form",e.renovacaoReconhecimentoForm)}}var hbe=(()=>{class t{get hasEndereco(){return this.courseDataForm&&this.courseDataForm.get("hasEndereco").value}get conferredTitleForm(){return this.courseDataForm&&this.courseDataForm.get("tituloConferido")}get hasPolo(){return this.courseDataForm&&this.courseDataForm.get("hasPolo").value}get hasAutorizacao(){return this.courseDataForm&&this.courseDataForm.get("hasAutorizacao").value}get hasReconhecimento(){return this.courseDataForm&&this.courseDataForm.get("hasReconhecimento").value}get hasRenovacaoReconhecimento(){return this.courseDataForm&&this.courseDataForm.get("hasRenovacaoReconhecimento").value}constructor(e,i){this.Error=e,this.degreeFormService=i,this.InformationAvailabilityTypes=Fs,this.TituloConferido=qx,this.DegreeTypes=br,this.titles=Object.values(qx),this.conferredDegrees=Object.values(LZ),this.modalities=Object.values(bB),this.informationAvailabilityTypes=Object.values(Fs)}ngOnInit(){this.enderecoCursoForm=this.courseDataForm.get("enderecoCurso"),this.poloDataForm=this.courseDataForm.get("polo"),this.habilitacoesForm=this.courseDataForm.get("habilitacoes"),this.isJudicialDecision||(this.informationAvailabilityTypes=this.informationAvailabilityTypes.filter(e=>e!==Fs.Unavailable)),this.autorizacaoForm=this.courseDataForm.get("autorizacao"),this.reconhecimentoForm=this.courseDataForm.get("reconhecimento"),this.renovacaoReconhecimentoForm=this.courseDataForm.get("renovacaoReconhecimento"),this.degreeType===br.Nsf||this.degreeType===br.JudicialDecision?this.courseDataForm.removeControl("enfases"):(this.modalities=this.modalities.filter(e=>e!==bB.Semipresencial),this.enfasesForm=this.courseDataForm.get("enfases")),this.setEmecCodeConditionalGroups(),this.setRegulatoryActConditionalGroups(),this.setConditionalGroups()}setEmecCodeConditionalGroup(e,i,r){switch(r){case Fs.HasInformation:i.disable(),e.enable();break;case Fs.InProgress:i.enable(),e.disable();break;case Fs.Unavailable:default:i.disable(),e.disable();break}}setEmecCodeConditionalGroups(){let e="codeAvailabilityType",i="informacoesTramitacaoEmec",r=this.courseDataForm.get(e).value;this.setEmecCodeConditionalGroup(this.courseDataForm.get("codigoCursoEMEC"),this.courseDataForm.get(i),r);let o=this.poloDataForm.get(e).value;this.setEmecCodeConditionalGroup(this.poloDataForm.get("codigoEmec"),this.poloDataForm.get(i),o),this.courseDataForm.updateValueAndValidity()}setRegulatoryActConditionalGroups(){let e="autorizacao";this.hasAutorizacao?this.courseDataForm.setControl(e,this.autorizacaoForm):this.courseDataForm.removeControl(e);let i="reconhecimento";this.hasReconhecimento?this.courseDataForm.setControl(i,this.reconhecimentoForm):this.courseDataForm.removeControl(i);let r="renovacaoReconhecimento";this.hasRenovacaoReconhecimento?this.courseDataForm.setControl(r,this.renovacaoReconhecimentoForm):this.courseDataForm.removeControl(r),this.courseDataForm.updateValueAndValidity()}setConditionalGroups(){this.conferredTitleForm.get("titulo").value!=qx.Outro?this.conferredTitleForm.get("outroTitulo").disable():this.conferredTitleForm.get("outroTitulo").enable();let e="enderecoCurso";this.hasEndereco?this.courseDataForm.setControl(e,this.enderecoCursoForm):this.courseDataForm.removeControl(e);let i="polo";this.hasPolo?this.courseDataForm.setControl(i,this.poloDataForm):this.courseDataForm.removeControl(i),this.courseDataForm.updateValueAndValidity()}removeHabilitacao(e){this.habilitacoesForm.removeAt(e)}addHabilitacao(){let e=this.degreeFormService.getHabilitacaoForm();this.habilitacoesForm.push(e)}addEnfase(){let e=this.degreeFormService.getStringForm();this.enfasesForm.push(e)}removeEnfase(e){this.enfasesForm.removeAt(e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-course-data-form"]],inputs:{degreeType:"degreeType",courseDataForm:"courseDataForm",isJudicialDecision:"isJudicialDecision"},decls:79,vars:32,consts:[[3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],[1,"input-stretch"],["required","","matInput","","formControlName","nomeCurso"],[1,"col"],["required","","placeholder","","formControlName","codeAvailabilityType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","col-6",4,"ngIf"],[3,"form",4,"ngIf"],[1,"col-6"],["required","","formControlName","modalidade"],[1,"row",3,"formGroup"],["required","","formControlName","titulo",3,"selectionChange"],["required","","formControlName","grauConferido"],[1,"d-flex","align-items-center","justify-content-between"],[1,"font-medium","mb-0"],["color","primary","formControlName","hasEndereco",3,"change",4,"ngIf"],["color","primary","formControlName","hasPolo",3,"change"],["formGroupName","polo",4,"ngIf"],["formArrayName","habilitacoes","class","px-2",4,"ngFor","ngForOf"],["mat-mini-fab","","matTooltip","Adicionar nova habilita\xE7\xE3o","color","primary",3,"click"],[4,"ngIf"],[1,"d-flex","mt-3"],[1,"mb-0",3,"ngClass"],["color","primary","class","ms-auto","formControlName","hasAutorizacao",3,"change",4,"ngIf"],["color","primary","class","ms-auto","formControlName","hasReconhecimento",3,"change",4,"ngIf"],["color","primary","formControlName","hasRenovacaoReconhecimento",1,"ms-auto",3,"change"],[3,"value"],["required","","matInput","","formControlName","codigoCursoEMEC"],[3,"form"],["required","","matInput","","formControlName","outroTitulo"],["color","primary","formControlName","hasEndereco",3,"change"],["formGroupName","polo"],["required","","matInput","","formControlName","nome"],["required","","matInput","","formControlName","codigoEmec"],["formArrayName","habilitacoes",1,"px-2"],[1,"row",3,"formGroupName"],[1,"col-lg"],["required","","matInput","","formControlName","nomeHabilitacao"],["controlName","dataHabilitacao","placeholder","Data",1,"col-lg-5","col-10",3,"isRequired","formGroup"],["mat-icon-button","","color","warn",1,"col-1","align-self-center",3,"click"],["formArrayName","enfases","class","px-2",4,"ngFor","ngForOf"],["mat-mini-fab","","matTooltip","Adicionar nova \xEAnfase","color","primary",3,"click"],["formArrayName","enfases",1,"px-2"],["required","","matInput","",3,"formControl"],["mat-icon-button","","color","warn",1,"col-1","align-self-center",3,"click","disabled"],["color","primary","formControlName","hasAutorizacao",1,"ms-auto",3,"change"],["color","primary","formControlName","hasReconhecimento",1,"ms-auto",3,"change"]],template:function(i,r){if(i&1&&(d(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),h(5,"Nome do curso"),c(),H(6,"input",4),d(7,"mat-error"),h(8),c()(),d(9,"div",1)(10,"mat-form-field",5)(11,"mat-label"),h(12,"Possui informa\xE7\xF5es sobre o c\xF3digo do curso?"),c(),d(13,"mat-select",6),$("selectionChange",function(){return r.setEmecCodeConditionalGroups()}),k(14,rpt,3,4,"mat-option",7),c()(),k(15,opt,6,1,"mat-form-field",8),c(),k(16,apt,1,1,"app-emec-process-form",9),d(17,"div",1)(18,"mat-form-field",10)(19,"mat-label"),h(20,"Modalidade"),c(),d(21,"mat-select",11),k(22,spt,2,2,"mat-option",7),c(),d(23,"mat-error"),h(24),c()()(),d(25,"div",12)(26,"mat-form-field",10)(27,"mat-label"),h(28,"T\xEDtulo conferido"),c(),d(29,"mat-select",13),$("selectionChange",function(){return r.setConditionalGroups()}),k(30,lpt,2,2,"mat-option",7),c(),d(31,"mat-error"),h(32),c()(),k(33,cpt,6,1,"mat-form-field",8),c(),d(34,"div",1)(35,"mat-form-field",10)(36,"mat-label"),h(37,"Grau conferido"),c(),d(38,"mat-select",14),k(39,dpt,2,2,"mat-option",7),c(),d(40,"mat-error"),h(41),c()()(),d(42,"div",15)(43,"h3",16),h(44,"Endere\xE7o do curso"),c(),k(45,upt,1,0,"mat-slide-toggle",17),c(),k(46,mpt,1,1,"app-address-form",9),d(47,"div",15)(48,"h3",16),h(49,"Dados do polo"),c(),d(50,"mat-slide-toggle",18),$("change",function(){return r.setConditionalGroups()}),c()(),k(51,gpt,16,5,"div",19),c(),d(52,"div",2)(53,"div")(54,"h3",16),h(55,"Habilita\xE7\xF5es"),c(),k(56,_pt,13,4,"div",20),d(57,"button",21),$("click",function(){return r.addHabilitacao()}),d(58,"mat-icon"),h(59,"add"),c()()(),k(60,bpt,7,1,"div",22),d(61,"div",23)(62,"h3",24)(63,"strong"),h(64,"Autoriza\xE7\xE3o"),c()(),k(65,ypt,1,0,"mat-slide-toggle",25),c(),k(66,xpt,1,1,"app-regulatory-act-form",9),d(67,"div",23)(68,"h3",24)(69,"strong"),h(70,"Reconhecimento"),c()(),k(71,Cpt,1,0,"mat-slide-toggle",26),c(),k(72,Spt,1,1,"app-regulatory-act-form",9),d(73,"div",23)(74,"h3",24)(75,"strong"),h(76,"Renova\xE7\xE3o de reconhecimento"),c()(),d(77,"mat-slide-toggle",27),$("change",function(){return r.setRegulatoryActConditionalGroups()}),c()(),k(78,wpt,1,1,"app-regulatory-act-form",9),c()()()),i&2){let o,a;f("formGroup",r.courseDataForm),m(8),U(r.Error.get(r.courseDataForm,"nomeCurso")),m(6),f("ngForOf",r.informationAvailabilityTypes),m(),f("ngIf",((o=r.courseDataForm.get("codeAvailabilityType"))==null?null:o.value)==r.InformationAvailabilityTypes.HasInformation),m(),f("ngIf",((a=r.courseDataForm.get("codeAvailabilityType"))==null?null:a.value)==r.InformationAvailabilityTypes.InProgress),m(6),f("ngForOf",r.modalities),m(2),U(r.Error.get(r.courseDataForm,"modalidade")),m(),f("formGroup",r.conferredTitleForm),m(5),f("ngForOf",r.titles),m(2),U(r.Error.get(r.conferredTitleForm,"titulo")),m(),f("ngIf",r.conferredTitleForm.get("titulo").value==r.TituloConferido.Outro),m(6),f("ngForOf",r.conferredDegrees),m(2),U(r.Error.get(r.courseDataForm,"grauConferido")),m(4),f("ngIf",r.isJudicialDecision),m(),f("ngIf",r.hasEndereco),m(5),f("ngIf",r.hasPolo),m(5),f("ngForOf",r.habilitacoesForm.controls),m(4),f("ngIf",r.degreeType==r.DegreeTypes.Default),m(2),f("ngClass",Le(26,nJ,!r.hasAutorizacao)),m(3),f("ngIf",r.degreeType!=r.DegreeTypes.Default),m(),f("ngIf",r.hasAutorizacao),m(2),f("ngClass",Le(28,nJ,!r.hasReconhecimento)),m(3),f("ngIf",r.degreeType!=r.DegreeTypes.Default),m(),f("ngIf",r.hasReconhecimento),m(2),f("ngClass",Le(30,nJ,!r.hasRenovacaoReconhecimento)),m(4),f("ngIf",r.hasRenovacaoReconhecimento)}},dependencies:[ji,Vt,Ee,Gt,it,pt,Jn,Od,dt,Tt,xs,Au,He,fi,ma,Wt,bt,jt,Si,Mi,yi,Fr,Li,VB,jB,xd,BB,pbe]})}}return t})();function Ipt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",27),$("change",function(r){W(e);let o=S();return Y(o.toggleFormControl("id",r.checked))}),h(1," Indispon\xEDvel "),c()}if(t&2){let e=S();f("checked",e.studentDataForm.get("id").disabled)}}function Dpt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",27),$("change",function(r){W(e);let o=S();return Y(o.toggleFormControl("nacionalidade",r.checked))}),h(1," Indispon\xEDvel "),c()}if(t&2){let e=S();f("checked",e.studentDataForm.get("nacionalidade").disabled)}}function Tpt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",27),$("change",function(r){W(e);let o=S();return Y(o.toggleFormControl("sexo",r.checked))}),h(1," Indispon\xEDvel "),c()}if(t&2){let e=S();f("checked",e.studentDataForm.get("sexo").disabled)}}function Apt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",27),$("change",function(r){W(e);let o=S();return Y(o.toggleFormControl("dataNascimento",r.checked))}),h(1," Indispon\xEDvel "),c()}if(t&2){let e=S();f("checked",e.studentDataForm.get("dataNascimento").disabled)}}function kpt(t,n){if(t&1&&(d(0,"mat-option",20),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Mpt(t,n){if(t&1&&(d(0,"div",28)(1,"div",1)(2,"mat-form-field",29)(3,"mat-label"),h(4,"N\xFAmero"),c(),H(5,"input",30),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",31)(9,"mat-label"),h(10,"UF"),c(),d(11,"mat-select",32)(12,"mat-option"),h(13,"Selecione o estado"),c(),k(14,kpt,2,2,"mat-option",33),c(),d(15,"mat-error"),h(16),c()()(),d(17,"div",1)(18,"mat-form-field",3)(19,"mat-label"),h(20,"\xD3rg\xE3o expedidor"),c(),H(21,"input",34),d(22,"mat-error"),h(23),c()()()()),t&2){let e=S();m(7),U(e.Error.get(e.studentDataForm.get("rg"),"numero","rgNumber")),m(7),f("ngForOf",e.states),m(2),U(e.Error.get(e.studentDataForm.get("rg"),"uf")),m(7),U(e.Error.get(e.studentDataForm.get("rg"),"orgaoExpedidor"))}}function Fpt(t,n){if(t&1&&(d(0,"div",35)(1,"mat-form-field",36)(2,"mat-label"),h(3,"Identificador"),c(),H(4,"input",37),d(5,"mat-error"),h(6),c()(),d(7,"mat-form-field",36)(8,"mat-label"),h(9,"Tipo de documento"),c(),H(10,"input",38),d(11,"mat-error"),h(12),c()()()),t&2){let e=S();m(6),ue(" ",e.Error.get(e.studentDataForm.get("outroDocumentoIdentificacao"),"identificador","identifier")," "),m(6),ue(" ",e.Error.get(e.studentDataForm.get("outroDocumentoIdentificacao"),"tipoDocumento","documentType")," ")}}function Rpt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",39),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function Ppt(t,n){if(t&1&&(d(0,"mat-option",20),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Npt(t,n){if(t&1&&(d(0,"div",1)(1,"mat-form-field",29)(2,"mat-label"),h(3,"Nome do municipio"),c(),H(4,"input",43),d(5,"mat-error"),h(6),c()(),d(7,"mat-form-field",31)(8,"mat-label"),h(9,"UF"),c(),d(10,"mat-select",32)(11,"mat-option"),h(12,"Selecione o estado"),c(),k(13,Ppt,2,2,"mat-option",33),c(),d(14,"mat-error"),h(15),c()(),d(16,"mat-form-field",3)(17,"mat-label"),h(18,"C\xF3digo do municipio"),c(),H(19,"input",44),d(20,"mat-error"),h(21),c()()()),t&2){let e=S(2);m(6),ue(" ",e.Error.get(e.studentDataForm.get("naturalidade"),"nomeMunicipio")," "),m(7),f("ngForOf",e.states),m(2),U(e.Error.get(e.studentDataForm.get("naturalidade"),"uf")),m(6),ue(" ",e.Error.get(e.studentDataForm.get("naturalidade"),"codigoMunicipio")," ")}}function Opt(t,n){if(t&1&&(d(0,"div",1)(1,"mat-form-field",3)(2,"mat-label"),h(3,"Nome do municipio estrangeiro"),c(),H(4,"input",45),d(5,"mat-error"),h(6),c()()()),t&2){let e=S(2);m(6),ue(" ",e.Error.get(e.studentDataForm.get("naturalidade"),"nomeMunicipioEstrangeiro")," ")}}function Lpt(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",40)(2,"mat-form-field",18)(3,"mat-label"),h(4,"Tipo de munic\xEDpio"),c(),d(5,"mat-select",41),$("selectionChange",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),d(6,"mat-option",20),h(7,"Nacional"),c(),d(8,"mat-option",20),h(9,"Estrangeiro"),c()()(),k(10,Npt,22,4,"div",42)(11,Opt,7,1,"div",42),c()()}if(t&2){let e=S();m(6),f("value",!1),m(2),f("value",!0),m(2),f("ngIf",e.hasForeignCity==!1),m(),f("ngIf",e.hasForeignCity)}}var fbe=(()=>{class t{get hasNaturalidade(){return this.studentDataForm&&this.studentDataForm.get("hasNaturalidade").value}get hasOtherIdDocument(){return this.studentDataForm&&this.studentDataForm.get("hasOtherIdDocument").value}get hasForeignCity(){return this.studentDataForm&&this.studentDataForm.get("naturalidade.hasForeignCity").value}constructor(e){this.Error=e,this.naturalidadeControlName="naturalidade",this.states=Object.keys(uM)}ngOnInit(){this.naturalidadeForm=this.studentDataForm.get(this.naturalidadeControlName),this.setConditionalGroups()}toggleFormControl(e,i=!1){i?this.studentDataForm.get(e).disable():this.studentDataForm.get(e).enable(),this.studentDataForm.updateValueAndValidity()}setConditionalGroups(){if(this.hasNaturalidade){this.studentDataForm.setControl(this.naturalidadeControlName,this.naturalidadeForm);let e=this.studentDataForm.get(this.naturalidadeControlName);e.get("hasForeignCity").value?(e.get("codigoMunicipio").disable(),e.get("nomeMunicipio").disable(),e.get("uf").disable(),e.get("nomeMunicipioEstrangeiro").enable()):(e.get("codigoMunicipio").enable(),e.get("nomeMunicipio").enable(),e.get("uf").enable(),e.get("nomeMunicipioEstrangeiro").disable())}else this.studentDataForm.removeControl(this.naturalidadeControlName);this.hasOtherIdDocument?(this.studentDataForm.controls.rg.disable(),this.studentDataForm.controls.outroDocumentoIdentificacao.enable()):(this.studentDataForm.controls.rg.enable(),this.studentDataForm.controls.outroDocumentoIdentificacao.disable()),this.studentDataForm.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-student-data-form"]],inputs:{degreeDataForm:"degreeDataForm",studentDataForm:"studentDataForm",isJudicialDecision:"isJudicialDecision"},decls:78,vars:21,consts:[[3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],[1,"col-12"],["required","","matInput","","formControlName","nome"],["matInput","","formControlName","nomeSocial"],["required","","matInput","","placeholder","000.000.000-00","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],[1,"row","d-flex","flex-wrap"],[1,"col-auto","flex-grow-1"],["required","","matInput","","formControlName","id"],["class","col-auto pe-3","color","primary",3,"checked","change",4,"ngIf"],["required","","matInput","","formControlName","nacionalidade"],["required","","formControlName","sexo"],["value","F"],["value","M"],["controlName","dataNascimento","placeholder","Data de nascimento",3,"isRequired","formGroup"],["controlName","dataConclusao","placeholder","Data de conclus\xE3o do curso",3,"formGroup"],[1,"mt-3","mb-0"],[1,"input-stretch"],["required","","formControlName","hasOtherIdDocument",3,"selectionChange"],[3,"value"],["formGroupName","rg",4,"ngIf"],["class","row","formGroupName","outroDocumentoIdentificacao",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between"],[1,"font-medium","mb-0"],["color","primary","formControlName","hasNaturalidade",3,"change",4,"ngIf"],[4,"ngIf"],["color","primary",1,"col-auto","pe-3",3,"change","checked"],["formGroupName","rg"],[1,"col-8"],["required","","matInput","","formControlName","numero"],[1,"col-4"],["required","","formControlName","uf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","orgaoExpedidor"],["formGroupName","outroDocumentoIdentificacao",1,"row"],[1,"col-6"],["required","","matInput","","formControlName","identificador"],["required","","matInput","","formControlName","tipoDocumento"],["color","primary","formControlName","hasNaturalidade",3,"change"],["formGroupName","naturalidade"],["required","","formControlName","hasForeignCity",3,"selectionChange"],["class","row",4,"ngIf"],["required","","matInput","","formControlName","nomeMunicipio"],["required","","matInput","","mask","0000000","placeholder","","formControlName","codigoMunicipio"],["required","","matInput","","placeholder","","formControlName","nomeMunicipioEstrangeiro"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",1)(4,"mat-form-field",3)(5,"mat-label"),h(6,"Nome"),c(),H(7,"input",4),d(8,"mat-error"),h(9),c()()(),d(10,"div",1)(11,"mat-form-field",3)(12,"mat-label"),h(13,"Nome social"),c(),H(14,"input",5),d(15,"mat-error"),h(16),c()()(),d(17,"div",1)(18,"mat-form-field",3)(19,"mat-label"),h(20,"CPF"),c(),H(21,"input",6),d(22,"mat-error"),h(23),c()()(),d(24,"div",7)(25,"mat-form-field",8)(26,"mat-label"),h(27,"Id"),c(),H(28,"input",9),d(29,"mat-error"),h(30),c()(),k(31,Ipt,2,1,"mat-checkbox",10),c(),d(32,"div",7)(33,"mat-form-field",8)(34,"mat-label"),h(35,"Nacionalidade"),c(),H(36,"input",11),d(37,"mat-error"),h(38),c()(),k(39,Dpt,2,1,"mat-checkbox",10),c(),d(40,"div",7)(41,"mat-form-field",8)(42,"mat-label"),h(43,"Sexo"),c(),d(44,"mat-select",12)(45,"mat-option",13),h(46,"Feminino"),c(),d(47,"mat-option",14),h(48,"Masculino"),c()(),d(49,"mat-error"),h(50),c()(),k(51,Tpt,2,1,"mat-checkbox",10),c(),d(52,"div",7)(53,"div",8),H(54,"app-form-date-picker",15),c(),k(55,Apt,2,1,"mat-checkbox",10),c(),d(56,"div",1)(57,"div",3),H(58,"app-form-date-picker",16),c()()(),d(59,"div",2)(60,"h3",17)(61,"strong"),h(62,"Documento de identifica\xE7\xE3o"),c()(),d(63,"mat-form-field",18)(64,"mat-label"),h(65,"Tipo do documento de identifica\xE7\xE3o"),c(),d(66,"mat-select",19),$("selectionChange",function(){return r.setConditionalGroups()}),d(67,"mat-option",20),h(68,"RG"),c(),d(69,"mat-option",20),h(70,"Outro"),c()()(),k(71,Mpt,24,4,"div",21)(72,Fpt,13,2,"div",22),d(73,"div",23)(74,"h3",24),h(75,"Naturalidade"),c(),k(76,Rpt,1,0,"mat-slide-toggle",25),c(),k(77,Lpt,12,4,"div",26),c()()()),i&2&&(f("formGroup",r.studentDataForm),m(9),ue(" ",r.Error.get(r.studentDataForm,"nome","name")," "),m(7),ue(" ",r.Error.get(r.studentDataForm,"nomeSocial","name")," "),m(5),f("showMaskTyped",!1),m(2),U(r.Error.get(r.studentDataForm,"cpf")),m(7),U(r.Error.get(r.studentDataForm,"id")),m(),f("ngIf",r.isJudicialDecision),m(7),ue(" ",r.Error.get(r.studentDataForm,"nacionalidade")," "),m(),f("ngIf",r.isJudicialDecision),m(11),U(r.Error.get(r.studentDataForm,"sexo")),m(),f("ngIf",r.isJudicialDecision),m(3),f("isRequired",!0)("formGroup",r.studentDataForm),m(),f("ngIf",r.isJudicialDecision),m(3),f("formGroup",r.degreeDataForm),m(9),f("value",!1),m(2),f("value",!0),m(2),f("ngIf",r.hasOtherIdDocument==!1),m(),f("ngIf",r.hasOtherIdDocument),m(4),f("ngIf",r.isJudicialDecision),m(),f("ngIf",r.hasNaturalidade))},dependencies:[Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,xs,Wt,bt,jt,Si,Mi,Co,Fo,Fr,Li,xd]})}}return t})();var Bpt=t=>({"text-muted":t});function jpt(t,n){if(t&1&&(d(0,"mat-option",18),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function Hpt(t,n){if(t&1&&(d(0,"mat-form-field",19)(1,"mat-label"),h(2,"Outro cargo"),c(),H(3,"input",20),d(4,"mat-error"),h(5),c()()),t&2){let e=S().$implicit,i=S(2);m(5),U(i.Error.get(e,"outroCargo","cargo"))}}function zpt(t,n){if(t&1){let e=ie();d(0,"div",21)(1,"button",22),$("click",function(){W(e);let r=S().index,o=S(2);return Y(o.removeSigner(r))}),d(2,"mat-icon"),h(3,"delete"),c()()()}}function Upt(t,n){if(t&1){let e=ie();d(0,"div",9)(1,"mat-form-field",10)(2,"mat-label"),h(3,"CPF"),c(),H(4,"input",11),d(5,"mat-error"),h(6),c()(),d(7,"div",12)(8,"mat-form-field",13)(9,"mat-label"),h(10,"Cargo"),c(),d(11,"mat-select",14),$("selectionChange",function(){let r=W(e).index,o=S(2);return Y(o.setPositionConditional(r))}),k(12,jpt,2,2,"mat-option",15),c(),d(13,"mat-error"),h(14),c()(),k(15,Hpt,6,1,"mat-form-field",16),c(),k(16,zpt,4,0,"div",17),c()}if(t&2){let e=n.$implicit,i=S(2);f("formGroup",e),m(4),f("showMaskTyped",!1),m(2),U(i.Error.get(e,"cpf")),m(6),f("ngForOf",i.cargos),m(2),U(i.Error.get(e,"cargo")),m(),f("ngIf",e.get("cargo").value==i.CargosAssinantes.Outro),m(),f("ngIf",i.signersArray.length>1)}}function Gpt(t,n){if(t&1){let e=ie();d(0,"div")(1,"p"),h(2,"Deve ser informado apenas as pessoas que assinar\xE3o a etapa de "),d(3,"strong"),h(4),c(),h(5," como "),d(6,"strong"),h(7,"Pessoa f\xEDsica"),c()(),d(8,"div",5),k(9,Upt,17,7,"div",6),d(10,"div",7)(11,"button",8),$("click",function(){W(e);let r=S();return Y(r.addSigner())}),d(12,"mat-icon"),h(13,"add"),c()()()()()}if(t&2){let e=S();m(4),U(e.isDegreeData?"Emiss\xE3o":"Registro"),m(5),f("ngForOf",e.signersArray.controls)}}var qB=(()=>{class t{get hasAssinantes(){return this.form&&this.form.get("hasAssinantes").value}constructor(e,i){this.degreeFormService=e,this.Error=i,this.CargosAssinantes=Vb,this.cargos=Object.values(Vb),this.hasAssinantesChanged=new Ae}ngOnInit(){this.signersArray=this.form.get("assinantes"),this.signersArray.controls.forEach((e,i)=>this.setPositionConditional(i)),this.setConditionalGroups()}setConditionalGroups(){let e="assinantes";this.hasAssinantes?this.form.setControl(e,this.signersArray):this.form.removeControl(e),this.form.updateValueAndValidity(),this.hasAssinantesChanged.emit(this.hasAssinantes)}addSigner(){let e=this.degreeFormService.getSignerInfoForm();this.signersArray.push(e)}removeSigner(e){this.signersArray.removeAt(e)}setPositionConditional(e){this.signersArray.at(e).get("cargo").value==Vb.Outro?this.signersArray.at(e).get("outroCargo").enable():this.signersArray.at(e).get("outroCargo").disable(),this.signersArray.at(e).updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(Gn),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-signers-form"]],inputs:{form:"form",isDegreeData:"isDegreeData"},outputs:{hasAssinantesChanged:"hasAssinantesChanged"},decls:7,vars:5,consts:[[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","formControlName","hasAssinantes",1,"ms-auto",3,"change"],[4,"ngIf"],[1,"row","mt-3"],["class","col-4 flow-box m-3 p-3",3,"formGroup",4,"ngFor","ngForOf"],[1,"d-flex","col-4","justify-content-center","align-items-center"],["mat-mini-fab","","color","primary",3,"click"],[1,"col-4","flow-box","m-3","p-3",3,"formGroup"],[1,"input-stretch"],["required","","matInput","","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],[1,"row"],[1,"col"],["required","","formControlName","cargo",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","col-6",4,"ngIf"],["class","d-flex justify-content-center align-items-center",4,"ngIf"],[3,"value"],[1,"col-6"],["required","","matInput","","formControlName","outroCargo"],[1,"d-flex","justify-content-center","align-items-center"],["mat-icon-button","","color","warn",3,"click"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"h2",2)(3,"strong"),h(4,"Assinantes"),c()(),d(5,"mat-slide-toggle",3),$("change",function(){return r.setConditionalGroups()}),c()(),k(6,Gpt,14,2,"div",4),c()),i&2&&(f("formGroup",r.form),m(2),f("ngClass",Le(3,Bpt,!r.hasAssinantes)),m(4),f("ngIf",r.hasAssinantes))},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,He,fi,ma,Wt,bt,jt,Si,Mi,Fo,Fr,Li]})}}return t})();var $pt=t=>({"text-muted":t}),qpt=()=>({standalone:!0});function Wpt(t,n){if(t&1){let e=ie();d(0,"button",18),$("click",function(){W(e);let r=S(2);return Y(r.addDeclaration())}),d(1,"mat-icon"),h(2,"add"),c()()}if(t&2){let e=S(2);f("disabled",(e.declaracao==null?null:e.declaracao.length)<1)}}function Ypt(t,n){if(t&1){let e=ie();d(0,"button",19),$("click",function(){W(e);let r=S(2);return Y(r.addDeclaration())}),d(1,"mat-icon"),h(2,"done"),c()()}if(t&2){let e=S(2);f("disabled",(e.declaracao==null?null:e.declaracao.length)<1)}}function Kpt(t,n){if(t&1){let e=ie();d(0,"button",20),$("click",function(){W(e);let r=S(2);return Y(r.cancelEdit())}),d(1,"mat-icon"),h(2,"close"),c()()}}function Xpt(t,n){t&1&&H(0,"mat-header-cell")}function Qpt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e," ")}}function Zpt(t,n){t&1&&H(0,"mat-header-cell")}function Jpt(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"button",21),$("click",function(){let r=W(e).index,o=S(2);return Y(o.editDeclaration(r))}),d(2,"mat-icon",22),h(3,"edit"),c()(),d(4,"button",23),$("click",function(){let r=W(e).index,o=S(2);return Y(o.deleteDeclaration(r))}),d(5,"mat-icon",24),h(6,"delete"),c()()()}}function eht(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"mat-label"),h(4,"Declara\xE7\xE3o"),c(),d(5,"textarea",7),tn("ngModelChange",function(r){W(e);let o=S();return nn(o.declaracao,r)||(o.declaracao=r),Y(r)}),c()(),d(6,"div"),k(7,Wpt,3,1,"button",8)(8,Ypt,3,1,"button",9)(9,Kpt,3,0,"button",10),c()(),d(10,"lac-table",11)(11,"div",12)(12,"div",13)(13,"h3"),h(14,"Nenhuma declara\xE7\xE3o inserida."),c()()(),he(15,14),k(16,Xpt,1,0,"mat-header-cell",15)(17,Qpt,2,1,"mat-cell",16),fe(),he(18,17),k(19,Zpt,1,0,"mat-header-cell",15)(20,Jpt,7,0,"mat-cell",16),fe(),c()()}if(t&2){let e=S();m(5),en("ngModel",e.declaracao),f("ngModelOptions",Wo(9,qpt)),m(2),f("ngIf",e.declaracaoIndex==null),m(),f("ngIf",e.declaracaoIndex!=null),m(),f("ngIf",e.declaracaoIndex!=null),m(),f("dataSource",e.declaracoesAcercaProcessoArray.value)("matSortDisabled",!0)("hidePageSize",!0)("disableSearch",!0)}}var WB=(()=>{class t{get hasDeclaracoesAcercaProcesso(){return this.form&&this.form.get("hasDeclaracoesAcercaProcesso").value}constructor(e,i){this.fb=e,this.Error=i,this.hasDeclaracoesChanged=new Ae,this.declaracaoIndex=null}ngOnInit(){this.declaracoesAcercaProcessoArray=this.form.get("declaracoesAcercaProcesso"),this.setConditionalGroups()}setConditionalGroups(){let e="declaracoesAcercaProcesso";this.hasDeclaracoesAcercaProcesso?this.form.setControl(e,this.declaracoesAcercaProcessoArray):this.form.removeControl(e),this.form.updateValueAndValidity(),this.hasDeclaracoesChanged.emit(this.hasDeclaracoesAcercaProcesso)}addDeclaration(){let e=this.fb.control(this.declaracao,[Se.minLength(1)]);this.declaracaoIndex==null?this.declaracoesAcercaProcessoArray.push(e):(this.declaracoesAcercaProcessoArray.at(this.declaracaoIndex).patchValue(e.value),this.declaracaoIndex=null),this.declaracao="",this.form.updateValueAndValidity()}editDeclaration(e){let i=this.declaracoesAcercaProcessoArray.at(e);this.declaracao=i.value,this.declaracaoIndex=e}cancelEdit(){this.declaracao=null,this.declaracaoIndex=null}deleteDeclaration(e){e>-1&&(this.declaracoesAcercaProcessoArray.removeAt(e),this.form.updateValueAndValidity())}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-process-declarations-form"]],inputs:{form:"form"},outputs:{hasDeclaracoesChanged:"hasDeclaracoesChanged"},decls:7,vars:5,consts:[[3,"formGroup"],[1,"d-flex","mt-3"],[1,"mb-0",3,"ngClass"],["color","primary","formControlName","hasDeclaracoesAcercaProcesso",1,"ms-auto",3,"change"],[4,"ngIf"],[1,"row"],[1,"col"],["matInput","","rows","3",1,"md-textarea","md-textarea-auto",3,"ngModelChange","ngModel","ngModelOptions"],["mat-mini-fab","","color","primary","matTooltip","Adicionar declara\xE7\xE3o",3,"disabled","click",4,"ngIf"],["mat-mini-fab","","color","primary","matTooltip","Editar declara\xE7\xE3o",3,"disabled","click",4,"ngIf"],["mat-mini-fab","","class","ms-2","color","warn","matTooltip","Cancelar edi\xE7\xE3o",3,"click",4,"ngIf"],["matSort","","initialPageSize","5",1,"compact-table","declarations-table",3,"dataSource","matSortDisabled","hidePageSize","disableSearch"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","declaration"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","action"],["mat-mini-fab","","color","primary","matTooltip","Adicionar declara\xE7\xE3o",3,"click","disabled"],["mat-mini-fab","","color","primary","matTooltip","Editar declara\xE7\xE3o",3,"click","disabled"],["mat-mini-fab","","color","warn","matTooltip","Cancelar edi\xE7\xE3o",1,"ms-2",3,"click"],["mat-icon-button","","matTooltip","Editar declara\xE7\xE3o",3,"click"],["aria-label","Edit"],["mat-icon-button","","color","warn","matTooltip","Remover declara\xE7\xE3o",3,"click"],["aria-label","Delete"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"h3",2)(3,"strong"),h(4,"Declara\xE7\xF5es da IES sobre o processo judicial"),c()(),d(5,"mat-slide-toggle",3),$("change",function(){return r.setConditionalGroups()}),c()(),k(6,eht,21,10,"div",4),c()),i&2&&(f("formGroup",r.form),m(2),f("ngClass",Le(3,$pt,!r.hasDeclaracoesAcercaProcesso)),m(4),f("ngIf",r.hasDeclaracoesAcercaProcesso))},dependencies:[ji,Ee,zt,Gt,it,pt,Va,dt,Tt,He,fi,ma,Wt,bt,jt,zn,Vn,Hn,tr,ir,Kn,dr,Xr,yi,Fr],styles:[".declarations-table[_ngcontent-%COMP%] .mat-column-declaration[_ngcontent-%COMP%]{flex-grow:1}.declarations-table[_ngcontent-%COMP%] .mat-column-action[_ngcontent-%COMP%]{flex:0 0 80px}"]})}}return t})();function tht(t,n){if(t&1){let e=ie();d(0,"button",6),$("click",function(){W(e);let r=S();return Y(r.previousStep())}),h(1," Voltar "),c()}}function iht(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.nextStep())}),h(1," Avan\xE7ar "),c()}if(t&2){let e=S();f("disabled",e.disableNextButton)}}function nht(t,n){if(t&1&&(d(0,"button",8),h(1," Visualizar representa\xE7\xE3o visual "),c()),t&2){let e=S(),i=je(6);f("disabled",e.disableNextButton)("matMenuTriggerFor",i)("matTooltip",e.disableNextButton?"Este diploma possui dados inv\xE1lidos":null)}}function rht(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.generateDegree())}),h(1," Gerar diploma "),c()}if(t&2){let e=S();f("disabled",e.disableNextButton)}}var _I=(()=>{class t{constructor(){this.disableNextButton=!1,this.submitted=new Ae,this.visualRepresentationPreviewClick=new Ae,this.returnToBeginningEmitter=new Ae}ngOnInit(){}ngOnChanges(e){let i=e.buttonsToShow?.currentValue;i&&i.forEach(r=>{r==xl.PreviousStep||r==xl.PreviousDegreeStep||r==xl.ReturnToBeginning?this.showPreviousButton=!0:r==xl.NextStep||r==xl.NextDegreeStep?this.showNextButton=!0:r==xl.GenerateDegree&&(this.showGenerateDegreeButton=!0)})}previousStep(){this.buttonsToShow.includes(xl.PreviousStep)?this.currentStepper.previous():this.buttonsToShow.includes(xl.PreviousDegreeStep)?this.degreeStepper.previous():this.buttonsToShow.includes(xl.ReturnToBeginning)&&this.returnToBeginningEmitter.emit()}nextStep(){this.buttonsToShow.includes(xl.NextStep)?this.currentStepper.next():this.buttonsToShow.includes(xl.NextDegreeStep)?this.degreeStepper.next():this.buttonsToShow.includes(xl.NextDegreeStep)&&this.degreeStepper.next()}generateDegree(){this.submitted.emit()}showVisualRepresentationPreview(e=!1){this.visualRepresentationPreviewClick.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-stepper-actions"]],inputs:{disableNextButton:"disableNextButton",buttonsToShow:"buttonsToShow",currentStepper:"currentStepper",degreeStepper:"degreeStepper",isSegundaViaOrJudicialDecision:"isSegundaViaOrJudicialDecision"},outputs:{submitted:"submitted",visualRepresentationPreviewClick:"visualRepresentationPreviewClick",returnToBeginningEmitter:"returnToBeginningEmitter"},features:[Oi],decls:11,vars:4,consts:[["optionsMenu","matMenu"],[1,"d-flex","justify-content-center"],["mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-raised-button","","color","accent","type","button",3,"disabled","click",4,"ngIf"],["mat-raised-button","","color","primary","tabindex","0","type","button",3,"disabled","matMenuTriggerFor","matTooltip",4,"ngIf"],["mat-menu-item","",3,"click"],["mat-stroked-button","","type","button",3,"click"],["mat-raised-button","","color","accent","type","button",3,"click","disabled"],["mat-raised-button","","color","primary","tabindex","0","type","button",3,"disabled","matMenuTriggerFor","matTooltip"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",1),k(1,tht,2,0,"button",2)(2,iht,2,1,"button",3)(3,nht,2,3,"button",4)(4,rht,2,1,"button",3),d(5,"mat-menu",null,0)(7,"button",5),$("click",function(){return W(o),Y(r.showVisualRepresentationPreview())}),h(8," Diploma "),c(),d(9,"button",5),$("click",function(){return W(o),Y(r.showVisualRepresentationPreview(!0))}),h(10," Hist\xF3rico Escolar "),c()()()}i&2&&(m(),f("ngIf",r.showPreviousButton),m(),f("ngIf",r.showNextButton),m(),f("ngIf",r.showGenerateDegreeButton&&!r.isSegundaViaOrJudicialDecision),m(),f("ngIf",r.showGenerateDegreeButton))},dependencies:[Ee,Ia,Gd,Es,Ze,yi]})}}return t})();var Qx=(t,n)=>[t,n],oht=t=>({"text-muted":t});function aht(t,n){if(t&1&&H(0,"app-ies-form",17),t&2){let e=S();f("iesType",e.IesTypes.Original)("form",e.originalIesForm)}}function sht(t,n){if(t&1&&H(0,"app-stepper-actions",21),t&2){let e=S(),i=je(1);f("buttonsToShow",so(4,Qx,e.StepperButtons.PreviousStep,e.StepperButtons.NextDegreeStep))("disableNextButton",e.form.invalid)("currentStepper",i)("degreeStepper",e.degreeStepper)}}function lht(t,n){if(t&1&&H(0,"app-stepper-actions",7),t&2){let e=S(),i=je(1);f("buttonsToShow",so(3,Qx,e.StepperButtons.PreviousStep,e.StepperButtons.NextStep))("disableNextButton",e.issuerIes.invalid)("currentStepper",i)}}function cht(t,n){if(t&1){let e=ie();d(0,"mat-step",22)(1,"app-process-declarations-form",23),$("hasDeclaracoesChanged",function(r){W(e);let o=S();return Y(o.hasDeclaracoes=r)}),c(),H(2,"app-stepper-actions",21),c()}if(t&2){let e=S(),i=je(1);f("stepControl",e.form.get("declaracoesAcercaProcesso"))("optional",!e.hasDeclaracoes),m(),f("form",e.form),m(),f("buttonsToShow",so(7,Qx,e.StepperButtons.PreviousStep,e.StepperButtons.NextDegreeStep))("disableNextButton",e.hasDeclaracoes&&e.form.invalid)("currentStepper",i)("degreeStepper",e.degreeStepper)}}var YB=(()=>{class t{get hasDadosIesOriginalCursoPTA(){return this.form&&this.form.get("hasDadosIesOriginalCursoPTA").value}constructor(e){this.degreeFormService=e,this.IesTypes=gd,this.StepperButtons=xl,this.returnToBeginningEmitter=new Ae}ngOnInit(){this.isJudicialDecision=this.degreeType===br.JudicialDecision,this.studentDataForm=this.degreeFormService.getFormGroup(this.form,"diplomado"),this.courseDataForm=this.degreeFormService.getFormGroup(this.form,"dadosCurso"),this.issuerIes=this.degreeFormService.getFormGroup(this.form,"iesEmissora"),this.originalIesForm=this.degreeFormService.getFormGroup(this.form,"dadosIesOriginalCursoPTA"),this.setConditionalGroups()}setConditionalGroups(){let e="dadosIesOriginalCursoPTA";this.hasDadosIesOriginalCursoPTA?this.form.setControl(e,this.originalIesForm):this.form.removeControl(e)}returnToBeginning(){this.returnToBeginningEmitter.emit()}static{this.\u0275fac=function(i){return new(i||t)(E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-data-stepper"]],inputs:{degreeType:"degreeType",form:"form",degreeStepper:"degreeStepper"},outputs:{returnToBeginningEmitter:"returnToBeginningEmitter"},decls:27,vars:50,consts:[["stepper",""],[3,"linear"],["label","Diplomado",3,"stepControl"],[3,"degreeDataForm","studentDataForm","isJudicialDecision"],[3,"returnToBeginningEmitter","buttonsToShow","disableNextButton","currentStepper"],["label","Curso",3,"stepControl"],[3,"courseDataForm","degreeType","isJudicialDecision"],[3,"buttonsToShow","disableNextButton","currentStepper"],["label","Processo de Transfer\xEAncia Assistida",3,"stepControl","optional"],[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","formControlName","hasDadosIesOriginalCursoPTA",1,"ms-auto",3,"change"],[3,"iesType","form",4,"ngIf"],["label","Assinantes",3,"stepControl","optional"],[3,"hasAssinantesChanged","form","isDegreeData"],["label","IES emissora",3,"stepControl"],[3,"iesType","form"],[3,"buttonsToShow","disableNextButton","currentStepper","degreeStepper",4,"ngIf"],[3,"buttonsToShow","disableNextButton","currentStepper",4,"ngIf"],["label","Declara\xE7\xF5es",3,"stepControl","optional",4,"ngIf"],[3,"buttonsToShow","disableNextButton","currentStepper","degreeStepper"],["label","Declara\xE7\xF5es",3,"stepControl","optional"],[3,"hasDeclaracoesChanged","form"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-horizontal-stepper",1,0)(2,"mat-step",2),H(3,"app-student-data-form",3),d(4,"app-stepper-actions",4),$("returnToBeginningEmitter",function(){return W(o),Y(r.returnToBeginning())}),c()(),d(5,"mat-step",5),H(6,"app-course-data-form",6)(7,"app-stepper-actions",7),c(),d(8,"mat-step",8)(9,"form",9)(10,"div",10)(11,"h2",11)(12,"strong"),h(13,"Dados da institui\xE7\xE3o de ensino de origem"),c()(),d(14,"mat-slide-toggle",12),$("change",function(){return W(o),Y(r.setConditionalGroups())}),c()(),d(15,"p"),h(16," Em caso da emiss\xE3o de segunda via de Diploma ocorrer a partir de acervo de outra institui\xE7\xE3o absorvida pela IES emissora por meio de Processo de Transfer\xEAncia Assistida, deve-se incluir a informa\xE7\xE3o da IES de origem. "),c(),k(17,aht,1,2,"app-ies-form",13),c(),H(18,"app-stepper-actions",7),c(),d(19,"mat-step",14)(20,"app-signers-form",15),$("hasAssinantesChanged",function(s){return W(o),Y(r.hasAssinantes=s)}),c(),H(21,"app-stepper-actions",7),c(),d(22,"mat-step",16),H(23,"app-ies-form",17),k(24,sht,1,7,"app-stepper-actions",18)(25,lht,1,6,"app-stepper-actions",19),c(),k(26,cht,3,10,"mat-step",20),c()}if(i&2){let o,a=je(1);f("linear",!0),m(2),f("stepControl",r.studentDataForm),m(),f("degreeDataForm",r.form)("studentDataForm",r.studentDataForm)("isJudicialDecision",r.isJudicialDecision),m(),f("buttonsToShow",so(36,Qx,r.StepperButtons.ReturnToBeginning,r.StepperButtons.NextStep))("disableNextButton",r.studentDataForm.invalid)("currentStepper",a),m(),f("stepControl",r.courseDataForm),m(),f("courseDataForm",r.courseDataForm)("degreeType",r.degreeType)("isJudicialDecision",r.isJudicialDecision),m(),f("buttonsToShow",so(39,Qx,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.courseDataForm.invalid)("currentStepper",a),m(),f("stepControl",r.originalIesForm)("optional",!r.hasDadosIesOriginalCursoPTA),m(),f("formGroup",r.form),m(2),f("ngClass",Le(42,oht,!r.hasDadosIesOriginalCursoPTA)),m(6),f("ngIf",r.hasDadosIesOriginalCursoPTA),m(),f("buttonsToShow",so(44,Qx,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.hasDadosIesOriginalCursoPTA&&r.originalIesForm.invalid)("currentStepper",a),m(),f("stepControl",r.form.get("assinantes"))("optional",!r.hasAssinantes),m(),f("form",r.form)("isDegreeData",!0),m(),f("buttonsToShow",so(47,Qx,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.hasAssinantes&&((o=r.form.get("assinantes"))==null?null:o.invalid)==!0)("currentStepper",a),m(),f("stepControl",r.issuerIes),m(),f("iesType",r.IesTypes.Issuer)("form",r.issuerIes),m(),f("ngIf",!r.isJudicialDecision),m(),f("ngIf",r.isJudicialDecision),m(),f("ngIf",r.isJudicialDecision)}},dependencies:[ji,Ee,zt,it,pt,dt,Tt,Fr,tp,tm,hbe,fbe,qB,ey,WB,_I]})}}return t})();function dht(t,n){if(t&1){let e=ie();d(0,"div",1)(1,"mat-form-field",4)(2,"mat-label"),h(3,"N\xFAmero da folha"),c(),d(4,"input",16),$("blur",function(){W(e);let r=S();return Y(r.updateValidators())}),c(),d(5,"mat-error"),h(6),c()(),d(7,"mat-form-field",4)(8,"mat-label"),h(9,"N\xFAmero de sequ\xEAncia"),c(),d(10,"input",17),$("blur",function(){W(e);let r=S();return Y(r.updateValidators())}),c(),d(11,"mat-error"),h(12),c()()()}if(t&2){let e=S();m(6),U(e.Error.get(e.registryBookForm,"numeroFolhaDoDiploma")),m(6),U(e.Error.get(e.registryBookForm,"numeroSequenciaDoDiploma"))}}var KB=(()=>{class t{constructor(e){this.Error=e,this.DegreeTypes=br}ngOnInit(){this.responsavelForm=this.registryBookForm.get("responsavelRegistro"),this.sheetControl=this.registryBookForm.get("numeroFolhaDoDiploma"),this.sequenceControl=this.registryBookForm.get("numeroSequenciaDoDiploma")}updateValidators(){this.sequenceControl.updateValueAndValidity(),this.sheetControl.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registry-book-form"]],inputs:{degreeType:"degreeType",registryBookForm:"registryBookForm"},decls:56,vars:16,consts:[[3,"formGroup"],[1,"row"],[1,"col-xl-6"],["matInput","","formControlName","livroRegistro",3,"required"],[1,"col-lg-6"],["matInput","","formControlName","numeroRegistro","type","text",3,"blur"],["matInput","","formControlName","processoDoDiploma"],["class","row",4,"ngIf"],[1,"mt-3","mb-0"],["controlName","dataColacaoGrau","placeholder","Cola\xE7\xE3o de grau",3,"formGroup","isRequired"],["controlName","dataExpedicaoDiploma","placeholder","Expedi\xE7\xE3o",3,"formGroup","isRequired"],["controlName","dataRegistroDiploma","placeholder","Registro",3,"formGroup","isRequired"],["formGroupName","responsavelRegistro"],["required","","matInput","","formControlName","nome"],["required","","matInput","","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],["matInput","","formControlName","iDouNumeroMatricula"],["matInput","","formControlName","numeroFolhaDoDiploma","type","text",3,"blur"],["matInput","","formControlName","numeroSequenciaDoDiploma","type","text",3,"blur"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"Livro registro"),c(),H(5,"input",3),d(6,"mat-error"),h(7),c()()(),d(8,"div",1)(9,"mat-form-field",4)(10,"mat-label"),h(11,"N\xFAmero do registro"),c(),d(12,"input",5),$("blur",function(){return r.updateValidators()}),c(),d(13,"mat-error"),h(14),c()(),d(15,"mat-form-field",4)(16,"mat-label"),h(17,"Processo"),c(),H(18,"input",6),d(19,"mat-error"),h(20),c()()(),k(21,dht,13,2,"div",7),d(22,"h3",8)(23,"strong"),h(24,"Datas"),c()(),d(25,"div",1)(26,"div",4),H(27,"app-form-date-picker",9),c(),d(28,"div",4),H(29,"app-form-date-picker",10),c(),d(30,"div",4),H(31,"app-form-date-picker",11),c()(),d(32,"div",12)(33,"h3",8)(34,"strong"),h(35,"Respons\xE1vel pelo Registro"),c()(),d(36,"div",1)(37,"mat-form-field",4)(38,"mat-label"),h(39,"Nome"),c(),H(40,"input",13),d(41,"mat-error"),h(42),c()(),d(43,"mat-form-field",4)(44,"mat-label"),h(45,"CPF"),c(),H(46,"input",14),d(47,"mat-error"),h(48),c()()(),d(49,"div",1)(50,"mat-form-field",4)(51,"mat-label"),h(52,"N\xFAmero da matr\xEDcula DOU"),c(),H(53,"input",15),d(54,"mat-error"),h(55),c()()()()()),i&2&&(f("formGroup",r.registryBookForm),m(5),f("required",r.degreeType==r.DegreeTypes.Default),m(2),U(r.Error.get(r.registryBookForm,"livroRegistro")),m(7),U(r.Error.get(r.registryBookForm,"numeroRegistro")),m(6),U(r.Error.get(r.registryBookForm,"processoDoDiploma")),m(),f("ngIf",r.degreeType!=r.DegreeTypes.Default||!r.registryBookForm.get("numeroRegistro").value),m(6),f("formGroup",r.registryBookForm)("isRequired",!0),m(2),f("formGroup",r.registryBookForm)("isRequired",!0),m(2),f("formGroup",r.registryBookForm)("isRequired",!0),m(11),U(r.Error.get(r.responsavelForm,"nome","name")),m(4),f("showMaskTyped",!1),m(2),U(r.Error.get(r.responsavelForm,"cpf")),m(7),U(r.Error.get(r.responsavelForm,"iDouNumeroMatricula")))},dependencies:[Ee,zt,Gt,it,pt,Jn,dt,Tt,xs,Wt,bt,jt,Si,Fo,xd]})}}return t})();var XB=(t,n)=>[t,n],ybe=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i,this.StepperButtons=xl,this.iesType=gd.Registry}ngOnInit(){this.registryIesForm=this.degreeFormService.getFormGroup(this.form,"iesRegistradora"),this.registryBookForm=this.degreeFormService.getFormGroup(this.form,"livroRegistro")}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registry-data-stepper"]],inputs:{degreeType:"degreeType",form:"form",degreeStepper:"degreeStepper"},decls:18,vars:37,consts:[["stepper",""],[3,"linear"],["label","IES Registradora",3,"stepControl"],[3,"iesType","form"],[3,"buttonsToShow","disableNextButton","currentStepper","degreeStepper"],["label","Livro de registro",3,"stepControl"],[3,"registryBookForm","degreeType"],[3,"buttonsToShow","disableNextButton","currentStepper"],["label","Assinantes",3,"stepControl","optional"],[3,"hasAssinantesChanged","form"],["label","Informa\xE7\xF5es adicionais"],[3,"formGroup"],[1,"input-stretch"],["matInput","","formControlName","informacoesAdicionais","placeholder","Informa\xE7\xF5es Adicionais","rows","3",1,"md-textarea","md-textarea-auto"],[3,"buttonsToShow","currentStepper","degreeStepper"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-horizontal-stepper",1,0)(2,"mat-step",2),H(3,"app-ies-form",3)(4,"app-stepper-actions",4),c(),d(5,"mat-step",5),H(6,"app-registry-book-form",6)(7,"app-stepper-actions",7),c(),d(8,"mat-step",8)(9,"app-signers-form",9),$("hasAssinantesChanged",function(s){return W(o),Y(r.hasAssinantes=s)}),c(),H(10,"app-stepper-actions",7),c(),d(11,"mat-step",10)(12,"div",11)(13,"mat-form-field",12),H(14,"textarea",13),d(15,"mat-error"),h(16),c()()(),H(17,"app-stepper-actions",14),c()()}if(i&2){let o,a=je(1);f("linear",!0),m(2),f("stepControl",r.registryIesForm),m(),f("iesType",r.iesType)("form",r.registryIesForm),m(),f("buttonsToShow",so(25,XB,r.StepperButtons.PreviousDegreeStep,r.StepperButtons.NextStep))("disableNextButton",r.registryIesForm.invalid)("currentStepper",a)("degreeStepper",r.degreeStepper),m(),f("stepControl",r.registryBookForm),m(),f("registryBookForm",r.registryBookForm)("degreeType",r.degreeType),m(),f("buttonsToShow",so(28,XB,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.registryBookForm.invalid)("currentStepper",a),m(),f("stepControl",r.form.get("assinantes"))("optional",!r.hasAssinantes),m(),f("form",r.form),m(),f("buttonsToShow",so(31,XB,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.hasAssinantes&&((o=r.form.get("assinantes"))==null?null:o.invalid)==!0)("currentStepper",a),m(2),f("formGroup",r.form),m(4),U(r.Error.get(r.registryBookForm,"informacoesAdicionais")),m(),f("buttonsToShow",so(34,XB,r.StepperButtons.PreviousStep,r.StepperButtons.NextDegreeStep))("currentStepper",a)("degreeStepper",r.degreeStepper)}},dependencies:[Gt,it,pt,dt,Tt,Wt,bt,Si,tp,tm,qB,ey,KB,_I]})}}return t})();function mht(t,n){if(t&1&&(d(0,"mat-option",7),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function pht(t,n){if(t&1&&(d(0,"div")(1,"mat-form-field",10)(2,"mat-label"),h(3,"Descri\xE7\xE3o da situa\xE7\xE3o"),c(),H(4,"textarea",11),d(5,"mat-error"),h(6),c()()()),t&2){let e=S(2);m(6),U(e.Error.get(e.form,"outraSituacao"))}}function hht(t,n){if(t&1&&(d(0,"div",12),H(1,"app-form-date-picker",13)(2,"app-form-date-picker",14)(3,"app-form-date-picker",15),c()),t&2){let e=S(2);m(),f("isRequired",!0)("formGroup",e.form.get("formado")),m(),f("isRequired",!0)("formGroup",e.form.get("formado")),m(),f("isRequired",!0)("formGroup",e.form.get("formado"))}}function fht(t,n){if(t&1&&(d(0,"div",16)(1,"mat-form-field",17)(2,"mat-label"),h(3,"Nome do pa\xEDs"),c(),H(4,"input",18),d(5,"mat-error"),h(6),c()(),d(7,"mat-form-field",17)(8,"mat-label"),h(9,"Institui\xE7\xE3o"),c(),H(10,"input",19),d(11,"mat-error"),h(12),c()(),d(13,"mat-form-field",17)(14,"mat-label"),h(15,"Nome do programa de interc\xE2mbio"),c(),H(16,"input",20),d(17,"mat-error"),h(18),c()()()),t&2){let e=S(2);m(6),U(e.Error.get(e.form.get("intercambio"),"pais")),m(6),U(e.Error.get(e.form.get("intercambio"),"instituicao")),m(6),U(e.Error.get(e.form.get("intercambio"),"nomeProgramaIntercambio"))}}function ght(t,n){if(t&1&&(d(0,"div"),k(1,pht,7,1,"div",6)(2,hht,4,6,"div",8)(3,fht,19,3,"div",9),c()),t&2){let e=S();m(),f("ngIf",e.situationTypeSelected==e.TipoSituacaoDiscente.OutraSituacao),m(),f("ngIf",e.situationTypeSelected==e.TipoSituacaoDiscente.Formado),m(),f("ngIf",e.situationTypeSelected==e.TipoSituacaoDiscente.IntercambioNacional||e.situationTypeSelected==e.TipoSituacaoDiscente.IntercambioInternacional)}}var QB=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i,this.TipoSituacaoDiscente=Ka,this.studentSituationTypes=Object.values(Ka),this.isElement=!1}ngOnInit(){}ngOnChanges(e){e.form?.currentValue&&this.buildForm()}buildForm(){this.situationTypeSelected=this.form.get("tipo")?.value,this.studentStatusChange(this.situationTypeSelected)}studentStatusChange(e){this.situationTypeSelected=e,this.degreeFormService.setStudentStatusFormConditions(this.form,e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-student-status-form"]],inputs:{isElement:"isElement",form:"form"},features:[Oi],decls:16,vars:6,consts:[[3,"formGroup"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["required","","formControlName","tipo",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","periodoLetivo",3,"required"],[4,"ngIf"],[3,"value"],["class","row","formGroupName","formado",4,"ngIf"],["class","row","formGroupName","intercambio",4,"ngIf"],[1,"input-stretch"],["matInput","","required","","formControlName","outraSituacao"],["formGroupName","formado",1,"row"],["controlName","dataConclusaoCurso","placeholder","Data de conclus\xE3o do curso",1,"col-lg-4","col-6","col-md-12",3,"isRequired","formGroup"],["controlName","dataColacaoGrau","placeholder","Data da cola\xE7\xE3o de Grau",1,"col-lg-4","col-6","col-md-12",3,"isRequired","formGroup"],["controlName","dataExpedicaoDiploma","placeholder","Data de expedi\xE7\xE3o do Diploma",1,"col-lg-4","col-6","col-md-12",3,"isRequired","formGroup"],["formGroupName","intercambio",1,"row"],[1,"col-lg-4","col-6","col-md-12"],["matInput","","formControlName","pais"],["matInput","","formControlName","instituicao"],["matInput","","formControlName","nomeProgramaIntercambio"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"Situa\xE7\xE3o"),c(),d(5,"mat-select",3),$("selectionChange",function(a){return r.studentStatusChange(a.value)}),k(6,mht,2,2,"mat-option",4),c(),d(7,"mat-error"),h(8),c()(),d(9,"mat-form-field",2)(10,"mat-label"),h(11,"Per\xEDodo letivo"),c(),H(12,"input",5),d(13,"mat-error"),h(14),c()()(),k(15,ght,4,3,"div",6),c()),i&2&&(f("formGroup",r.form),m(6),f("ngForOf",r.studentSituationTypes),m(2),U(r.Error.get(r.form,"tipo")),m(4),f("required",r.isElement),m(2),U(r.Error.get(r.form,"periodoLetivo")),m(),f("ngIf",r.situationTypeSelected!=null))},dependencies:[Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,xs,Wt,bt,jt,Si,Mi,Li,xd]})}}return t})();function _ht(t,n){if(t&1&&(d(0,"mat-form-field",6)(1,"mat-label"),h(2,"Carga hor\xE1ria"),c(),H(3,"input",7),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.workloadForm,"horaAula"))}}function vht(t,n){if(t&1&&(d(0,"mat-form-field",6)(1,"mat-label"),h(2,"Carga hor\xE1ria"),c(),H(3,"input",8),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.workloadForm,"horaRelogio"))}}function bht(t,n){if(t&1&&(d(0,"mat-form-field",9)(1,"mat-label"),h(2,"Etiqueta"),c(),H(3,"input",10),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.workloadForm,"etiqueta"))}}var ZB=(()=>{class t{constructor(e){this.Error=e,this.WorkloadTypes=Kp}ngOnInit(){let e=this.workloadForm.get("tipo").value;this.setConditional(e)}setConditional(e){e==Kp.HoraAula?(this.workloadForm.controls.horaAula.enable(),this.workloadForm.controls.horaRelogio.disable()):Kp.HoraRelogio&&(this.workloadForm.controls.horaAula.disable(),this.workloadForm.controls.horaRelogio.enable())}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-workload-form"]],inputs:{workloadForm:"workloadForm",showTagField:"showTagField"},decls:10,vars:6,consts:[[3,"formGroup"],[1,"row"],["color","primary","formControlName","tipo",1,"mb-2","d-flex","justify-content-between","align-self-center","col-4","col-lg-4","col-md-12",3,"change"],[3,"value"],["class","col",4,"ngIf"],["class","input-stretch",4,"ngIf"],[1,"col"],["required","","matInput","","placeholder","00","formControlName","horaAula","type","number"],["required","","matInput","","placeholder","00.00","formControlName","horaRelogio","type","number"],[1,"input-stretch"],["matInput","","formControlName","etiqueta"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1)(2,"mat-radio-group",2),$("change",function(a){return r.setConditional(a.value)}),d(3,"mat-radio-button",3),h(4,"Hora aula"),c(),d(5,"mat-radio-button",3),h(6,"Hora rel\xF3gio"),c()(),k(7,_ht,6,1,"mat-form-field",4)(8,vht,6,1,"mat-form-field",4),c(),k(9,bht,6,1,"mat-form-field",5),c()),i&2&&(f("formGroup",r.workloadForm),m(3),f("value",r.WorkloadTypes.HoraAula),m(2),f("value",r.WorkloadTypes.HoraRelogio),m(2),f("ngIf",r.workloadForm.get("tipo").value==r.WorkloadTypes.HoraAula),m(),f("ngIf",r.workloadForm.get("tipo").value==r.WorkloadTypes.HoraRelogio),m(),f("ngIf",r.showTagField))},dependencies:[Ee,Gt,gT,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,ep,em]})}}return t})();function yht(t,n){if(t&1){let e=ie();d(0,"div",7)(1,"div",8)(2,"mat-form-field",9)(3,"mat-label"),h(4,"C\xF3digo"),c(),H(5,"input",10),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",9)(9,"mat-label"),h(10,"Nome"),c(),H(11,"input",11),d(12,"mat-error"),h(13),c()()(),d(14,"div",12)(15,"button",13),$("click",function(){let r=W(e).index,o=S();return Y(o.removeArea(r))}),d(16,"mat-icon"),h(17,"delete"),c()()()()}if(t&2){let e=n.$implicit,i=S();f("formGroup",e),m(7),U(i.Error.get(e,"codigo")),m(6),U(i.Error.get(e,"nome","name"))}}var Sbe=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i}ngOnInit(){this.areasArray=this.form.get("areas")}addArea(){let e=this.degreeFormService.getAreaWithNameForm();this.areasArray.push(e)}removeArea(e){this.areasArray.removeAt(e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-areas-form"]],inputs:{form:"form"},decls:14,vars:3,consts:[[3,"formGroup"],[1,"font-medium","mb-0"],[1,"input-stretch"],["matInput","","formControlName","nomeParaAreas"],["class","flow-box mb-2 p-4",3,"formGroup",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],["mat-mini-fab","","color","primary","matTooltip","Adicionar uma \xE1rea especificada no Curr\xEDculo Escolar",3,"click"],[1,"flow-box","mb-2","p-4",3,"formGroup"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["required","","matInput","","formControlName","codigo"],["required","","matInput","","formControlName","nome"],[1,"d-flex","justify-content-center","align-items-center"],["mat-icon-button","","color","warn",3,"click"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"h3",1),h(2,"\xC1reas"),c(),d(3,"mat-form-field",2)(4,"mat-label"),h(5,"Nome para as \xE1reas"),c(),H(6,"input",3),d(7,"mat-error"),h(8),c()(),k(9,yht,18,3,"div",4),d(10,"div",5)(11,"button",6),$("click",function(){return r.addArea()}),d(12,"mat-icon"),h(13,"add"),c()()()()),i&2&&(f("formGroup",r.form),m(8),U(r.Error.get(r.form,"nomeParaAreas","name")),m(),f("ngForOf",r.areasArray.controls))},dependencies:[Vt,zt,Gt,it,pt,Jn,dt,Tt,He,fi,ma,Wt,bt,jt,Si,yi]})}}return t})();var Cht=t=>({"text-muted":t});function Sht(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",5),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function wht(t,n){if(t&1&&(d(0,"mat-option",19),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Eht(t,n){if(t&1&&(d(0,"mat-option",19),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Iht(t,n){if(t&1&&(d(0,"mat-option",19),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Dht(t,n){if(t&1&&(d(0,"mat-form-field",20)(1,"mat-label"),h(2,"Outro motivo"),c(),H(3,"input",23),d(4,"mat-error"),h(5),c()()),t&2){let e=S(2).$implicit,i=S(3);m(5),U(i.Error.get(e,"outroMotivo"))}}function Tht(t,n){if(t&1){let e=ie();d(0,"div")(1,"mat-form-field",20)(2,"mat-label"),h(3,"Motivos de n\xE3o habilita\xE7\xE3o no ENADE"),c(),d(4,"mat-select",21),$("selectionChange",function(){W(e);let r=S().index,o=S(3);return Y(o.setEnadeConditionals(r))}),k(5,Iht,2,2,"mat-option",13),c(),d(6,"mat-error"),h(7),c()(),k(8,Dht,6,1,"mat-form-field",22),c()}if(t&2){let e=S().$implicit,i=S(3);m(5),f("ngForOf",i.notQualifiedReasons),m(2),U(i.Error.get(e,"motivo")),m(),f("ngIf",e.get("motivo").value==i.MotivoNaoHabilitacaoAlunoEnadeHistorico.Outro)}}function Aht(t,n){if(t&1){let e=ie();d(0,"div",9)(1,"div",10)(2,"mat-form-field",11)(3,"mat-label"),h(4,"Situa\xE7\xE3o"),c(),d(5,"mat-select",12),$("selectionChange",function(){let r=W(e).index,o=S(3);return Y(o.setEnadeConditionals(r))}),k(6,wht,2,2,"mat-option",13),c(),d(7,"mat-error"),h(8),c()()(),d(9,"div",10)(10,"mat-form-field",14)(11,"mat-label"),h(12,"Edi\xE7\xE3o (ano)"),c(),H(13,"input",15),d(14,"mat-error"),h(15),c()(),d(16,"mat-form-field",14)(17,"mat-label"),h(18,"Condi\xE7\xE3o"),c(),d(19,"mat-select",16),k(20,Eht,2,2,"mat-option",13),c(),d(21,"mat-error"),h(22),c()()(),k(23,Tht,9,3,"div",4),d(24,"div",17)(25,"button",18),$("click",function(){let r=W(e).index,o=S(3);return Y(o.removeEnade(r))}),d(26,"mat-icon"),h(27,"delete"),c()()()()}if(t&2){let e=n.$implicit,i=S(3);f("formGroup",e),m(6),f("ngForOf",i.situationOptions),m(2),U(i.Error.get(e,"situacao")),m(5),f("showMaskTyped",!1),m(2),U(i.Error.get(e,"edicao")),m(5),f("ngForOf",i.conditionOptions),m(2),U(i.Error.get(e,"condicao")),m(),f("ngIf",e.get("situacao").value==i.SituacaoParticipacaoEnade.NaoHabilitado)}}function kht(t,n){if(t&1&&(d(0,"div"),k(1,Aht,28,8,"div",8),c()),t&2){let e=S(2);m(),f("ngForOf",e.enadeArray.controls)}}function Mht(t,n){if(t&1){let e=ie();d(0,"div"),k(1,kht,2,1,"div",4),d(2,"div",6)(3,"button",7),$("click",function(){W(e);let r=S();return Y(r.addEnade())}),d(4,"mat-icon"),h(5,"add"),c()()()()}if(t&2){let e=S();m(),f("ngIf",e.enadeArray.length>0)}}var wbe=(()=>{class t{get hasParticipacoesEnade(){return this.academicTranscriptForm&&this.academicTranscriptForm.get("hasParticipacoesEnade").value}constructor(e,i,r){this.Error=e,this.degreeFormService=i,this.fb=r,this.MotivoNaoHabilitacaoAlunoEnadeHistorico=Lb,this.SituacaoParticipacaoEnade=ip,this.situationOptions=Object.values(ip),this.conditionOptions=Object.values(OZ),this.notQualifiedReasons=Object.values(Lb)}ngOnInit(){this.enadeArray=this.academicTranscriptForm.get("participacoesEnade"),this.setConditionalGroups();for(let e=0;e({"text-muted":t});function Rht(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",5),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function Pht(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",20),$("change",function(){W(e);let r=S(2);return Y(r.setConditionalGroups())}),c()}}function Nht(t,n){if(t&1&&(d(0,"mat-option",31),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),U(e)}}function Oht(t,n){if(t&1){let e=ie();d(0,"button",32),$("click",function(){W(e);let r=S().index,o=S(3);return Y(o.removeFormaAcesso(r))}),d(1,"mat-icon"),h(2,"delete"),c()()}if(t&2){let e=S(4);f("disabled",e.readonly)}}function Lht(t,n){if(t&1&&(d(0,"div",26)(1,"div",8)(2,"mat-form-field",27)(3,"mat-label"),h(4,"Forma de acesso"),c(),d(5,"mat-select",28),k(6,Nht,2,2,"mat-option",29),c(),d(7,"mat-error"),h(8),c()(),k(9,Oht,3,1,"button",30),c()()),t&2){let e=n.$implicit,i=S(3);m(5),f("formControl",e),m(),f("ngForOf",i.admissionTypes),m(2),U(i.Error.get(e,"formaAcesso")),m(),f("ngIf",i.formasAcesso.length>1)}}function Vht(t,n){if(t&1){let e=ie();d(0,"button",33),$("click",function(){W(e);let r=S(3);return Y(r.addFormaAcesso())}),d(1,"mat-icon"),h(2,"add"),c()()}}function Bht(t,n){if(t&1&&(d(0,"div",0)(1,"div",8),H(2,"app-form-date-picker",21),d(3,"mat-form-field",11)(4,"mat-label"),h(5,"M\xEAs e ano do processo seletivo"),c(),H(6,"input",22),d(7,"mat-error"),h(8),c()()(),d(9,"h3")(10,"strong"),h(11,"Formas de acesso"),c()(),k(12,Lht,10,4,"div",23),d(13,"div",24),k(14,Vht,3,0,"button",25),c()()),t&2){let e=S(2);f("formGroup",e.admissionForm),m(2),f("isRequired",!0)("formGroup",e.admissionForm),m(4),f("dropSpecialCharacters",!1)("showMaskTyped",!0),m(2),U(e.Error.get(e.admissionForm,"anoMesProcessoSeletivo")),m(4),f("ngForOf",e.formasAcesso.controls),m(2),f("ngIf",e.isJudicialDecisionOrSegundaVia)}}function jht(t,n){if(t&1&&(d(0,"div",6)(1,"div",7)(2,"div",8)(3,"mat-form-field",9)(4,"mat-label"),h(5,"C\xF3digo do curriculo"),c(),H(6,"input",10),d(7,"mat-error"),h(8),c()()(),d(9,"div",8)(10,"div",11),H(11,"app-form-date-picker",12),c(),d(12,"mat-form-field",11)(13,"mat-label"),h(14,"Hora de emiss\xE3o"),c(),H(15,"input",13),d(16,"mat-error"),h(17),c()()(),d(18,"h3",14),h(19,"Carga hor\xE1ria do curso"),c(),H(20,"app-workload-form",15),d(21,"h3",14),h(22,"Carga hor\xE1ria integralizada"),c(),H(23,"app-workload-form",15)(24,"app-enade-form",16),c(),d(25,"div",7)(26,"div")(27,"div",1)(28,"h3",2)(29,"strong"),h(30,"Ingresso"),c()(),k(31,Pht,1,0,"mat-slide-toggle",17),c(),k(32,Bht,15,8,"div",18),c(),d(33,"h3",14),h(34,"Situa\xE7\xE3o atual do discente"),c(),H(35,"app-student-status-form",19)(36,"app-areas-form",19),c()()),t&2){let e=S();f("formGroup",e.academicTranscriptForm),m(6),f("required",!e.isJudicialDecisionOrSegundaVia),m(2),U(e.Error.get(e.academicTranscriptForm,"codigoCurriculo","codigo")),m(3),f("formGroup",e.academicTranscriptForm),m(4),f("dropSpecialCharacters",!1),m(2),U(e.Error.get(e.academicTranscriptForm,"horaEmissaoHistorico","stringHourValidator")),m(3),f("workloadForm",e.academicTranscriptForm.get("cargaHorariaCurso")),m(3),f("workloadForm",e.academicTranscriptForm.get("cargaHorariaCursoIntegralizada")),m(),f("academicTranscriptForm",e.academicTranscriptForm)("isJudicialDecisionOrSegundaVia",e.isJudicialDecisionOrSegundaVia),m(4),f("ngClass",Le(15,Ebe,!e.hasIngresso)),m(3),f("ngIf",e.isJudicialDecisionOrSegundaVia),m(),f("ngIf",e.hasIngresso),m(3),f("form",e.currentStudentStatusForm),m(),f("form",e.academicTranscriptForm)}}var Ibe=(()=>{class t{get hasHistorico(){return this.form&&this.form.get("hasHistorico").value}get hasIngresso(){return this.academicTranscriptForm&&this.academicTranscriptForm.get("hasIngresso").value}get formasAcesso(){return this.admissionForm.get("formasAcesso")}constructor(e,i,r,o){this.Error=e,this.degreeFormService=i,this.academicTranscriptService=r,this.fb=o,this.hasHistoricoChanged=new Ae}ngOnInit(){this.academicTranscriptService.getAvailableAdmissionTypes().subscribe(e=>{this.admissionTypes=e}),this.academicTranscriptForm=this.degreeFormService.getFormGroup(this.form,"historico"),this.academicTranscriptElementsArray=this.form.get("elementosHistorico"),this.admissionForm=this.degreeFormService.getFormGroup(this.academicTranscriptForm,"ingresso"),this.currentStudentStatusForm=this.degreeFormService.getFormGroup(this.academicTranscriptForm,"situacaoAtualDiscente"),this.setConditionalGroups()}setConditionalGroups(){let e="historico",i="elementosHistorico";if(this.hasHistorico){this.form.setControl(e,this.academicTranscriptForm),this.form.setControl(i,this.academicTranscriptElementsArray);let r="ingresso";this.hasIngresso?this.academicTranscriptForm.setControl(r,this.admissionForm):this.academicTranscriptForm.removeControl(r)}else this.form.removeControl(e),this.form.removeControl(i);this.form.updateValueAndValidity(),this.hasHistoricoChanged.emit(this.hasHistorico)}removeFormaAcesso(e){this.formasAcesso.removeAt(e)}addFormaAcesso(){let e=this.fb.control(null,[Se.required]);this.formasAcesso.push(e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn),E(Qp),E(Ti))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-form"]],inputs:{form:"form",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia"},outputs:{hasHistoricoChanged:"hasHistoricoChanged"},decls:7,vars:6,consts:[[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","class","ms-auto","formControlName","hasHistorico",3,"change",4,"ngIf"],["class","row mt-3",3,"formGroup",4,"ngIf"],["color","primary","formControlName","hasHistorico",1,"ms-auto",3,"change"],[1,"row","mt-3",3,"formGroup"],[1,"col-md-6"],[1,"row"],[1,"col-12"],["matInput","","formControlName","codigoCurriculo",3,"required"],[1,"col-6","col-lg-6","col-md-12"],["controlName","dataEmissaoHistorico","placeholder","Data de emiss\xE3o",3,"formGroup"],["matInput","","formControlName","horaEmissaoHistorico","mask","00:00:00","placeholder","HH:MM:SS",3,"dropSpecialCharacters"],[1,"font-medium","mb-0"],[3,"workloadForm"],[3,"academicTranscriptForm","isJudicialDecisionOrSegundaVia"],["color","primary","class","ms-auto","formControlName","hasIngresso",3,"change",4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"form"],["color","primary","formControlName","hasIngresso",1,"ms-auto",3,"change"],["controlName","data","placeholder","Data",1,"col-6","col-lg-6","col-md-12",3,"isRequired","formGroup"],["matInput","","formControlName","anoMesProcessoSeletivo","mask","00/0000","placeholder","HH:MM:SS",3,"dropSpecialCharacters","showMaskTyped"],["formArrayName","formasAcesso","class","px-2",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-center"],["mat-mini-fab","","color","primary","matTooltip","Adicionar nova forma de acesso",3,"click",4,"ngIf"],["formArrayName","formasAcesso",1,"px-2"],[1,"col"],["required","",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","color","warn","class","col-1 align-self-center",3,"disabled","click",4,"ngIf"],[3,"value"],["mat-icon-button","","color","warn",1,"col-1","align-self-center",3,"click","disabled"],["mat-mini-fab","","color","primary","matTooltip","Adicionar nova forma de acesso",3,"click"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"h2",2)(3,"strong"),h(4,"Hist\xF3rico escolar"),c()(),k(5,Rht,1,0,"mat-slide-toggle",3),c(),k(6,jht,37,17,"div",4),c()),i&2&&(f("formGroup",r.form),m(2),f("ngClass",Le(4,Ebe,!r.hasHistorico)),m(3),f("ngIf",r.isJudicialDecisionOrSegundaVia),m(),f("ngIf",r.hasHistorico))},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,Jn,Od,dt,Tt,Au,He,fi,ma,Wt,bt,jt,Si,Mi,Fo,yi,Fr,Li,xd,QB,ZB,Sbe,wbe]})}}return t})();var zht=t=>({"text-muted":t});function Uht(t,n){if(t&1){let e=ie();d(0,"div",5)(1,"div",6)(2,"mat-form-field",7)(3,"mat-label"),h(4,"Nome"),c(),H(5,"input",8),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",7)(9,"mat-label"),h(10,"CPF"),c(),H(11,"input",9),d(12,"mat-error"),h(13),c()(),d(14,"mat-form-field",7)(15,"mat-label"),h(16,"Cargo"),c(),H(17,"input",10),d(18,"mat-error"),h(19),c()()(),d(20,"h3",11),h(21,"Ato de designa\xE7\xE3o"),c(),d(22,"div",12)(23,"spa-files",13),$("filesLoading",function(r){W(e);let o=S();return Y(o.onFilesLoading(r))}),c()()()}if(t&2){let e=S();f("formGroup",e.responsabilityTermForm),m(7),U(e.Error.get(e.responsabilityTermForm,"nome","name")),m(4),f("showMaskTyped",!1),m(2),U(e.Error.get(e.responsabilityTermForm,"cpf")),m(6),U(e.Error.get(e.responsabilityTermForm,"cargo")),m(4),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes)}}var Dbe=(()=>{class t{get hasTermoResponsabilidade(){return this.form&&this.form.get("hasTermoResponsabilidade").value}constructor(e,i){this.Error=e,this.degreeFormService=i,this.acceptedFileTypes=["application/pdf"],this.$toUnsubscribe=[],this.hasResponsabilityTermChanged=new Ae}ngOnInit(){this.responsabilityTermForm=this.degreeFormService.getFormGroup(this.form,"termoResponsabilidade");let e=this.responsabilityTermForm.get("atoDesignacaoFile");this.filesToAdd=new Dse([]),e?.value!=null&&(this.filesToAdd.push(e),this.setAtoDesignacaoValue()),this.$toUnsubscribe.push(this.filesToAdd.valueChanges.subscribe(i=>{this.filesToAdd.length==0&&(this.responsabilityTermForm.get("atoDesignacaoFile").setValue(null,{emitEvent:!1}),this.responsabilityTermForm.updateValueAndValidity())})),this.setConditionalGroups()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}setConditionalGroups(){let e="termoResponsabilidade";this.hasTermoResponsabilidade?this.form.setControl(e,this.responsabilityTermForm):this.form.removeControl(e),this.form.updateValueAndValidity(),this.hasResponsabilityTermChanged.emit(this.hasTermoResponsabilidade)}onFilesLoading(e){e||this.setAtoDesignacaoValue()}setAtoDesignacaoValue(){this.responsabilityTermForm.get("atoDesignacaoFile").setValue(this.filesToAdd.value[0])}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-responsability-term-form"]],inputs:{form:"form",maxUploadSizeInBytes:"maxUploadSizeInBytes"},outputs:{hasResponsabilityTermChanged:"hasResponsabilityTermChanged"},decls:7,vars:5,consts:[[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","formControlName","hasTermoResponsabilidade",1,"ms-auto",3,"change"],["class","mt-3",3,"formGroup",4,"ngIf"],[1,"mt-3",3,"formGroup"],[1,"row"],[1,"col-6","col-lg-4","col-md-12"],["required","","matInput","","formControlName","nome"],["required","","matInput","","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],["required","","matInput","","formControlName","cargo"],[1,"font-medium","mt-3","mb-0"],[1,"col","p-0","mb-3",2,"height","200px"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"]],template:function(i,r){i&1&&(he(0,0),d(1,"div",1)(2,"h2",2)(3,"strong"),h(4,"Termo de responsabilidade"),c()(),d(5,"mat-slide-toggle",3),$("change",function(){return r.setConditionalGroups()}),c()(),k(6,Uht,24,9,"div",4),fe()),i&2&&(f("formGroup",r.form),m(2),f("ngClass",Le(3,zht,!r.hasTermoResponsabilidade)),m(4),f("ngIf",r.hasTermoResponsabilidade))},dependencies:[ji,Ee,Gt,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,cc,Fo,Fr]})}}return t})();var $ht=t=>({"text-muted":t});function qht(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",6),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function Wht(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.addProfessor())}),d(1,"mat-icon"),h(2,"add"),c()()}}function Yht(t,n){if(t&1&&(d(0,"mat-option",18),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function Kht(t,n){if(t&1){let e=ie();d(0,"div",19)(1,"button",20),$("click",function(){W(e);let r=S().index,o=S(2);return Y(o.removeProfessor(r))}),d(2,"mat-icon"),h(3,"delete"),c()()()}}function Xht(t,n){if(t&1&&(d(0,"div",9)(1,"div",10)(2,"mat-form-field",11)(3,"mat-label"),h(4,"Nome"),c(),H(5,"input",12),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",11)(9,"mat-label"),h(10,"Titula\xE7\xE3o"),c(),d(11,"mat-select",13),k(12,Yht,2,2,"mat-option",14),c(),d(13,"mat-error"),h(14),c()()(),d(15,"div",10)(16,"mat-form-field",11)(17,"mat-label"),h(18,"CPF"),c(),H(19,"input",15),d(20,"mat-error"),h(21),c()(),d(22,"mat-form-field",11)(23,"mat-label"),h(24,"Lattes"),c(),H(25,"input",16),d(26,"mat-error"),h(27),c()()(),k(28,Kht,4,0,"div",17),c()),t&2){let e=n.$implicit,i=S(2);f("formGroup",e),m(7),U(i.Error.get(e,"nome","name")),m(5),f("ngForOf",i.TitulacaoDocente),m(2),U(i.Error.get(e,"titulacao")),m(5),f("showMaskTyped",!1),m(2),U(i.Error.get(e,"cpf")),m(6),U(i.Error.get(e,"lattes")),m(),f("ngIf",i.professorArray.length>1)}}function Qht(t,n){if(t&1&&(d(0,"div"),k(1,Xht,29,8,"div",8),c()),t&2){let e=S();m(),f("ngForOf",e.professorArray.controls)}}var vI=(()=>{class t{get hasDocentes(){return this.elementForm&&this.elementForm.get("hasDocentes")?.value}constructor(e,i){this.Error=e,this.degreeFormService=i,this.TitulacaoDocente=Object.values(VZ)}ngOnInit(){}ngOnChanges(e){e.elementForm?.currentValue&&this.buildForm()}buildForm(){this.professorArray=this.elementForm.get("docentes"),this.setConditionalGroups()}setConditionalGroups(){let e="docentes";this.hasDocentes?this.elementForm.setControl(e,this.professorArray):this.elementForm.removeControl(e),this.elementForm.updateValueAndValidity()}addProfessor(){let e=this.degreeFormService.getProfessorForm();this.professorArray.push(e)}removeProfessor(e){this.professorArray.removeAt(e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-professor-form"]],inputs:{elementForm:"elementForm",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia",isDiscipline:"isDiscipline"},features:[Oi],decls:9,vars:7,consts:[[3,"formGroup"],[1,"d-flex","flex-wrap","align-items-center","justify-content-between"],[1,"mb-0",3,"ngClass"],["color","primary","class","me-2","formControlName","hasDocentes",3,"change",4,"ngIf"],["mat-mini-fab","","color","primary",3,"click",4,"ngIf"],[4,"ngIf"],["color","primary","formControlName","hasDocentes",1,"me-2",3,"change"],["mat-mini-fab","","color","primary",3,"click"],["class","flow-box mb-3 p-3",3,"formGroup",4,"ngFor","ngForOf"],[1,"flow-box","mb-3","p-3",3,"formGroup"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["required","","matInput","","formControlName","nome"],["required","","formControlName","titulacao"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],["matInput","","formControlName","lattes"],["class","d-flex justify-content-center align-items-center",4,"ngIf"],[3,"value"],[1,"d-flex","justify-content-center","align-items-center"],["mat-icon-button","","color","warn",3,"click"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"h3",2)(3,"strong"),h(4,"Docentes"),c()(),d(5,"div"),k(6,qht,1,0,"mat-slide-toggle",3)(7,Wht,3,0,"button",4),c()(),k(8,Qht,2,1,"div",5),c()),i&2&&(f("formGroup",r.elementForm),m(2),f("ngClass",Le(5,$ht,!r.hasDocentes&&r.isDiscipline)),m(4),f("ngIf",r.isJudicialDecisionOrSegundaVia&&r.isDiscipline),m(),f("ngIf",r.hasDocentes||!r.isDiscipline),m(),f("ngIf",r.hasDocentes||!r.isDiscipline))},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,He,fi,ma,Wt,bt,jt,Si,Mi,Fo,Fr,Li]})}}return t})();function Zht(t,n){if(t&1){let e=ie();d(0,"div",7)(1,"button",8),$("click",function(){W(e);let r=S().index,o=S();return Y(o.removeWorkload(r))}),d(2,"mat-icon"),h(3,"delete"),c()()()}}function Jht(t,n){if(t&1&&(d(0,"div",4),H(1,"app-workload-form",5),k(2,Zht,4,0,"div",6),c()),t&2){let e=n.$implicit,i=S();f("formGroup",e),m(),f("workloadForm",e)("showTagField",!0),m(),f("ngIf",i.workloadListArray.length>1)}}var bI=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i}ngOnInit(){}addWorkload(){let e=this.degreeFormService.getWorkloadForm(null,!0,!this.isDiscipline);this.workloadListArray.push(e)}removeWorkload(e){this.workloadListArray.removeAt(e)}changeWorkloadTimeUnit(e,i){e==Kp.HoraAula?(i.controls.horaAula.enable(),i.controls.horaRelogio.disable()):(i.controls.horaAula.disable(),i.controls.horaRelogio.enable())}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-workload-list-form"]],inputs:{workloadListArray:"workloadListArray",isDiscipline:"isDiscipline"},decls:7,vars:1,consts:[[1,"d-flex","flex-wrap","align-items-center","justify-content-between"],[1,"font-medium","mb-0"],["mat-mini-fab","","color","primary","type","button",3,"click"],["class","flow-box mb-3 p-3",3,"formGroup",4,"ngFor","ngForOf"],[1,"flow-box","mb-3","p-3",3,"formGroup"],[3,"workloadForm","showTagField"],["class","d-flex justify-content-center align-items-center",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center"],["mat-icon-button","","color","warn",3,"click"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"h3",1),h(2,"Cargas hor\xE1rias"),c(),d(3,"button",2),$("click",function(){return r.addWorkload()}),d(4,"mat-icon"),h(5,"add"),c()()(),k(6,Jht,3,4,"div",3)),i&2&&(m(6),f("ngForOf",r.workloadListArray.controls))},dependencies:[Vt,Ee,pt,dt,He,fi,ma,ZB]})}}return t})();var eft=t=>({"text-muted":t});function tft(t,n){if(t&1&&(d(0,"div",3)(1,"mat-form-field",4)(2,"mat-label"),h(3,"Nome"),c(),H(4,"input",19),d(5,"mat-error"),h(6),c()(),d(7,"mat-form-field",4)(8,"mat-label"),h(9,"CPF"),c(),H(10,"input",20),d(11,"mat-error"),h(12),c()()()),t&2){let e=S(2);m(6),U(e.Error.get(e.grantorForm,"nome","name")),m(4),f("showMaskTyped",!1),m(2),U(e.Error.get(e.grantorForm,"cpf"))}}function ift(t,n){if(t&1&&(d(0,"div")(1,"div",3)(2,"mat-form-field",4)(3,"mat-label"),h(4,"Raz\xE3o social"),c(),H(5,"input",21),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",4)(9,"mat-label"),h(10,"CNPJ"),c(),H(11,"input",22),d(12,"mat-error"),h(13),c()()(),d(14,"mat-form-field",1)(15,"mat-label"),h(16,"Nome fantasia"),c(),H(17,"input",23),d(18,"mat-error"),h(19),c()()()),t&2){let e=S(2);m(7),U(e.Error.get(e.grantorForm,"razaoSocial")),m(4),f("showMaskTyped",!1),m(2),U(e.Error.get(e.grantorForm,"cnpj")),m(6),U(e.Error.get(e.grantorForm,"nomeFantasia"))}}function nft(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"mat-form-field",1)(2,"mat-label"),h(3,"Tipo"),c(),d(4,"mat-select",15),$("selectionChange",function(r){W(e);let o=S();return Y(o.onGrantorTypeChange(r.value))}),d(5,"mat-option",16),h(6,"Pessoa F\xEDsica"),c(),d(7,"mat-option",16),h(8,"Pessoa Jur\xEDdica"),c()()(),k(9,tft,13,3,"div",17)(10,ift,20,4,"div",18),c()}if(t&2){let e=S();m(5),f("value",e.TipoConcedenteEstagio.PessoaFisica),m(2),f("value",e.TipoConcedenteEstagio.PessoaJuridica),m(2),f("ngIf",e.grantorForm.get("tipo").value===e.TipoConcedenteEstagio.PessoaFisica),m(),f("ngIf",e.grantorForm.get("tipo").value===e.TipoConcedenteEstagio.PessoaJuridica)}}var Tbe=(()=>{class t{get hasConcedente(){return this.form&&this.form.get("hasConcedente").value}constructor(e,i){this.Error=e,this.degreeFormService=i,this.TipoConcedenteEstagio=Yp}ngOnInit(){}ngOnChanges(e){e.form?.currentValue&&this.buildForm()}buildForm(){this.workloadListArray=this.form.get("cargaHorariaEmHoraRelogioComEtiqueta"),this.grantorForm=this.degreeFormService.getFormGroup(this.form,"concedente"),this.setConditionalGroups(),this.form.get("hasConcedente")?.value==!0&&this.onGrantorTypeChange(this.grantorForm.get("tipo").value)}setConditionalGroups(){let e="concedente";this.hasConcedente?this.form.setControl(e,this.grantorForm):this.form.removeControl(e)}onGrantorTypeChange(e){e==Yp.PessoaFisica?(Gn.IndividualInternshipGrantorFieldsName.forEach(i=>this.grantorForm.get(i).enable()),Gn.CompanyInternshipGrantorFieldsName.forEach(i=>this.grantorForm.get(i).disable())):(Gn.CompanyInternshipGrantorFieldsName.forEach(i=>this.grantorForm.get(i).enable()),Gn.IndividualInternshipGrantorFieldsName.forEach(i=>this.grantorForm.get(i).disable()))}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-internship-form"]],inputs:{form:"form",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia"},features:[Oi],decls:26,vars:13,consts:[[3,"formGroup"],[1,"input-stretch"],["required","","matInput","","formControlName","codigo"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["controlName","dataInicio","placeholder","Data de in\xEDcio",3,"isRequired","formGroup"],["controlName","dataFim","placeholder","Data de t\xE9rmino",3,"isRequired","formGroup"],["matInput","","formControlName","descricao","rows","2",1,"md-textarea","md-textarea-auto"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","formControlName","hasConcedente",1,"ms-auto",3,"change"],["formGroupName","concedente",4,"ngIf"],[3,"workloadListArray"],[3,"elementForm"],["formGroupName","concedente"],["required","","formControlName","tipo",3,"selectionChange"],[3,"value"],["class","row",4,"ngIf"],[4,"ngIf"],["required","","matInput","","formControlName","nome"],["required","","matInput","","formControlName","cpf","mask","000.000.000-00",3,"showMaskTyped"],["required","","matInput","","formControlName","razaoSocial"],["required","","matInput","","formControlName","cnpj","mask","00.000.000/0000-00",3,"showMaskTyped"],["matInput","","formControlName","nomeFantasia"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"mat-form-field",1)(2,"mat-label"),h(3,"C\xF3digo"),c(),H(4,"input",2),d(5,"mat-error"),h(6),c()(),d(7,"div",3)(8,"div",4),H(9,"app-form-date-picker",5),c(),d(10,"div",4),H(11,"app-form-date-picker",6),c()(),d(12,"mat-form-field",1)(13,"mat-label"),h(14,"Descri\xE7\xE3o"),c(),H(15,"textarea",7),d(16,"mat-error"),h(17),c()(),d(18,"div",8)(19,"h3",9)(20,"strong"),h(21,"Concedente"),c()(),d(22,"mat-slide-toggle",10),$("change",function(){return r.setConditionalGroups()}),c()(),k(23,nft,11,4,"div",11),H(24,"app-workload-list-form",12)(25,"app-professor-form",13),c()),i&2&&(f("formGroup",r.form),m(6),U(r.Error.get(r.form,"codigo")),m(3),f("isRequired",!0)("formGroup",r.form),m(2),f("isRequired",!0)("formGroup",r.form),m(6),U(r.Error.get(r.form,"descricao")),m(2),f("ngClass",Le(11,eft,!r.hasConcedente)),m(4),f("ngIf",r.hasConcedente),m(),f("workloadListArray",r.workloadListArray),m(),f("elementForm",r.form))},dependencies:[ji,Ee,zt,Gt,it,pt,Jn,dt,Tt,xs,Wt,bt,jt,Si,Mi,Fo,Fr,Li,xd,vI,bI]})}}return t})();var Abe=(()=>{class t{transform(e){switch(e){case ls.None:return"N\xE3o informar";case ls.Nota:return"Nota";case ls.NotaAteCem:return"Nota at\xE9 100";case ls.Conceito:return"Conceito";case ls.ConceitoRM:return"Conceito RM";case ls.ConceitoEspecificoDoCurso:return"Conceito espec\xEDfico do curso";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"evaluationType",type:t,pure:!0})}}return t})();function aft(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e.key),m(),U(e.value)}}function sft(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e.key),m(),U(e.value)}}function lft(t,n){if(t&1&&(d(0,"mat-form-field",17)(1,"mat-label"),h(2,"Outra forma de integraliza\xE7\xE3o"),c(),H(3,"input",18),d(4,"mat-error"),h(5),c()()),t&2){let e=S(2);m(5),U(e.Error.get(e.approvalForm,"outraFormaIntegralizacao"))}}function cft(t,n){if(t&1){let e=ie();he(0,0),d(1,"mat-form-field",2)(2,"mat-label"),h(3,"Forma de integraliza\xE7\xE3o"),c(),d(4,"mat-select",15),$("selectionChange",function(r){W(e);let o=S();return Y(o.onIntegralizationFormTypeChange(r.value))}),k(5,sft,2,2,"mat-option",8),ce(6,"keyvalue"),c()(),k(7,lft,6,1,"mat-form-field",16),fe()}if(t&2){let e=S();f("formGroup",e.approvalForm),m(5),f("ngForOf",xe(6,3,e.FormaIntegralizacao)),m(2),f("ngIf",e.integralizationFormTypeSelected==e.FormaIntegralizacao.Outro)}}function dft(t,n){if(t&1&&(d(0,"mat-option",14),h(1),ce(2,"evaluationType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function uft(t,n){if(t&1&&(d(0,"mat-form-field",2)(1,"mat-label"),h(2,"Conceito espec\xEDfico do curso"),c(),H(3,"input",19),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.form,"conceitoEspecificoDoCurso"))}}function mft(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function pft(t,n){if(t&1&&(d(0,"mat-form-field",2)(1,"mat-label"),h(2,"Conceito"),c(),d(3,"mat-select",20),k(4,mft,2,2,"mat-option",8),c()()),t&2){let e=S();m(4),f("ngForOf",e.tiposConceito)}}function hft(t,n){if(t&1&&(d(0,"mat-option",14),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}function fft(t,n){if(t&1&&(d(0,"mat-form-field",2)(1,"mat-label"),h(2,"Conceito RM"),c(),d(3,"mat-select",21),k(4,hft,2,2,"mat-option",8),c()()),t&2){let e=S();m(4),f("ngForOf",e.tiposConceitoRM)}}function gft(t,n){if(t&1&&(d(0,"mat-form-field",2)(1,"mat-label"),h(2,"Nota at\xE9 10"),c(),H(3,"input",22),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.form,"nota"))}}function _ft(t,n){if(t&1&&(d(0,"mat-form-field",2)(1,"mat-label"),h(2,"Nota at\xE9 100"),c(),H(3,"input",23),d(4,"mat-error"),h(5),c()()),t&2){let e=S();m(5),U(e.Error.get(e.form,"notaAteCem"))}}var kbe=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i,this.TipoAvaliacaoDisciplina=ls,this.SituacaoDisciplina=$x,this.FormaIntegralizacao=Wx,this.tiposAvaliacaoDisciplina=Object.values(ls),this.tiposConceito=Object.values(BZ),this.tiposConceitoRM=Object.values(jZ)}ngOnInit(){this.buildForm()}ngOnChanges(e){e.form?.currentValue&&this.buildForm()}buildForm(){this.approvalForm=this.degreeFormService.getFormGroup(this.form,"aprovacao")??this.degreeFormService.getApprovalForm(),this.workloadListArray=this.form.get("cargaHorariaComEtiqueta"),this.evaluationTypeSelected=this.form.get("tipoAvaliacao").value,this.situationTypeSelected=this.form.get("situacao").value,this.integralizationFormTypeSelected=this.approvalForm.get("formaIntegralizacao").value}onEvaluationTypeChange(e){if(this.evaluationTypeSelected=e,["nota","notaAteCem","conceito","conceitoRM","conceitoEspecificoDoCurso"].forEach(r=>{this.form.get(r).disable()}),e!=ls.None){let r;switch(e){case ls.Nota:r="nota";break;case ls.NotaAteCem:r="notaAteCem";break;case ls.Conceito:r="conceito";break;case ls.ConceitoRM:r="conceitoRM";break;case ls.ConceitoEspecificoDoCurso:r="conceitoEspecificoDoCurso";break;default:break}this.form.get(r).enable()}}onSituationChange(e){this.situationTypeSelected=e;let i="aprovacao";e==$x.Aprovado?this.form.setControl(i,this.approvalForm):this.form.removeControl(i)}onIntegralizationFormTypeChange(e){this.integralizationFormTypeSelected=e;let i="outraFormaIntegralizacao";e==Wx.Outro?this.approvalForm.get(i).enable():this.approvalForm.get(i).disable(),this.approvalForm.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-discipline-form"]],inputs:{form:"form",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia"},features:[Oi],decls:43,vars:21,consts:[[3,"formGroup"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["matInput","","formControlName","codigoDisciplina",3,"required"],["required","","matInput","","formControlName","periodo"],[1,"input-stretch"],["required","","matInput","","formControlName","disciplina"],["required","","formControlName","situacao",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"formGroup",4,"ngIf"],["required","","formControlName","tipoAvaliacao",3,"selectionChange"],["class","col-6 col-lg-6 col-md-12",4,"ngIf"],[3,"workloadListArray","isDiscipline"],[3,"elementForm","isJudicialDecisionOrSegundaVia","isDiscipline"],[3,"value"],["required","","formControlName","formaIntegralizacao",3,"selectionChange"],["class","col-12",4,"ngIf"],[1,"col-12"],["required","","matInput","","formControlName","outraFormaIntegralizacao"],["required","","matInput","","formControlName","conceitoEspecificoDoCurso"],["required","","formControlName","conceito"],["required","","formControlName","conceitoRM"],["required","","matInput","","placeholder","0.00","formControlName","nota"],["required","","matInput","","placeholder","00.00","formControlName","notaAteCem"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"C\xF3digo da disciplina"),c(),H(5,"input",3),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",2)(9,"mat-label"),h(10,"Per\xEDodo letivo"),c(),H(11,"input",4),d(12,"mat-error"),h(13),c()()(),d(14,"mat-form-field",5)(15,"mat-label"),h(16,"Nome da disciplina"),c(),H(17,"input",6),d(18,"mat-error"),h(19),c()(),d(20,"div",1)(21,"mat-form-field",2)(22,"mat-label"),h(23,"Situa\xE7\xE3o"),c(),d(24,"mat-select",7),$("selectionChange",function(a){return r.onSituationChange(a.value)}),k(25,aft,2,2,"mat-option",8),ce(26,"keyvalue"),c(),d(27,"mat-error"),h(28),c()(),k(29,cft,8,5,"ng-container",9),c(),d(30,"div",1)(31,"mat-form-field",2)(32,"mat-label"),h(33,"Tipo de avalia\xE7\xE3o"),c(),d(34,"mat-select",10),$("selectionChange",function(a){return r.onEvaluationTypeChange(a.value)}),k(35,dft,3,4,"mat-option",8),c()(),k(36,uft,6,1,"mat-form-field",11)(37,pft,5,1,"mat-form-field",11)(38,fft,5,1,"mat-form-field",11)(39,gft,6,1,"mat-form-field",11)(40,_ft,6,1,"mat-form-field",11),c(),H(41,"app-workload-list-form",12)(42,"app-professor-form",13),c()),i&2&&(f("formGroup",r.form),m(5),f("required",!r.isJudicialDecisionOrSegundaVia),m(2),U(r.Error.get(r.form,"codigoDisciplina","codigo")),m(6),U(r.Error.get(r.form,"periodo")),m(6),U(r.Error.get(r.form,"disciplina")),m(6),f("ngForOf",xe(26,19,r.SituacaoDisciplina)),m(3),U(r.Error.get(r.form,"situacao")),m(),f("ngIf",r.situationTypeSelected==r.SituacaoDisciplina.Aprovado),m(6),f("ngForOf",r.tiposAvaliacaoDisciplina),m(),f("ngIf",r.evaluationTypeSelected==r.TipoAvaliacaoDisciplina.ConceitoEspecificoDoCurso),m(),f("ngIf",r.evaluationTypeSelected==r.TipoAvaliacaoDisciplina.Conceito),m(),f("ngIf",r.evaluationTypeSelected==r.TipoAvaliacaoDisciplina.ConceitoRM),m(),f("ngIf",r.evaluationTypeSelected==r.TipoAvaliacaoDisciplina.Nota),m(),f("ngIf",r.evaluationTypeSelected==r.TipoAvaliacaoDisciplina.NotaAteCem),m(),f("workloadListArray",r.workloadListArray)("isDiscipline",!0),m(),f("elementForm",r.form)("isJudicialDecisionOrSegundaVia",r.isJudicialDecisionOrSegundaVia)("isDiscipline",!0))},dependencies:[Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,Mi,Li,vI,bI,$oe,Abe]})}}return t})();var Mbe=(()=>{class t{constructor(e){this.Error=e}ngOnInit(){}ngOnChanges(e){e.form?.currentValue&&this.buildForm()}buildForm(){this.workloadListArray=this.form.get("cargaHorariaEmHoraRelogioComEtiqueta")}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-complementary-activity-form"]],inputs:{form:"form",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia"},features:[Oi],decls:28,vars:12,consts:[[3,"formGroup"],[1,"row"],[1,"col-6","col-lg-6","col-md-12"],["matInput","","formControlName","codigo",3,"required"],["required","","matInput","","formControlName","tipo"],["controlName","dataInicio","placeholder","Data de in\xEDcio",1,"col-6","col-lg-6","col-md-12",3,"isRequired","formGroup"],["controlName","dataFim","placeholder","Data de t\xE9rmino",1,"col-6","col-lg-6","col-md-12",3,"isRequired","formGroup"],["controlName","dataRegistro","placeholder","Data de registro",3,"formGroup"],[1,"input-stretch"],["matInput","","formControlName","descricao","rows","2",1,"md-textarea","md-textarea-auto"],[3,"workloadListArray"],[3,"elementForm"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"C\xF3digo"),c(),H(5,"input",3),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",2)(9,"mat-label"),h(10,"Tipo"),c(),H(11,"input",4),d(12,"mat-error"),h(13),c()()(),d(14,"div",1),H(15,"app-form-date-picker",5)(16,"app-form-date-picker",6),c(),d(17,"div",1)(18,"div",2),H(19,"app-form-date-picker",7),c()(),d(20,"mat-form-field",8)(21,"mat-label"),h(22,"Descri\xE7\xE3o"),c(),H(23,"textarea",9),d(24,"mat-error"),h(25),c()(),H(26,"app-workload-list-form",10)(27,"app-professor-form",11),c()),i&2&&(f("formGroup",r.form),m(5),f("required",!r.isJudicialDecisionOrSegundaVia),m(2),U(r.Error.get(r.form,"codigo")),m(6),U(r.Error.get(r.form,"tipo","tipoString")),m(2),f("isRequired",!0)("formGroup",r.form),m(),f("isRequired",!0)("formGroup",r.form),m(3),f("formGroup",r.form),m(6),U(r.Error.get(r.form,"descricao")),m(),f("workloadListArray",r.workloadListArray),m(),f("elementForm",r.form))},dependencies:[zt,Gt,it,pt,Jn,dt,Tt,Wt,bt,jt,Si,xd,vI,bI]})}}return t})();var JB=(()=>{class t{transform(e){switch(e){case vo.AtividadeComplementar:return"Atividade complementar";case vo.Disciplina:return"Disciplina";case vo.Estagio:return"Est\xE1gio";case vo.SituacaoDiscente:return"Situa\xE7\xE3o discente";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"historicalElementType",type:t,pure:!0})}}return t})();function yft(t,n){if(t&1&&(d(0,"mat-option",29),h(1),ce(2,"historicalElementType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function xft(t,n){if(t&1&&H(0,"app-discipline-form",30),t&2){let e=S();f("form",e.form.get("disciplina"))("isJudicialDecisionOrSegundaVia",e.isJudicialDecisionOrSegundaVia)}}function Cft(t,n){if(t&1&&H(0,"app-complementary-activity-form",30),t&2){let e=S();f("form",e.form.get("atividadeComplementar"))("isJudicialDecisionOrSegundaVia",e.isJudicialDecisionOrSegundaVia)}}function Sft(t,n){if(t&1&&H(0,"app-internship-form",30),t&2){let e=S();f("form",e.form.get("estagio"))("isJudicialDecisionOrSegundaVia",e.isJudicialDecisionOrSegundaVia)}}function wft(t,n){if(t&1&&H(0,"app-student-status-form",31),t&2){let e=S();f("isElement",!0)("form",e.form.get("situacaoDiscente"))}}function Eft(t,n){if(t&1){let e=ie();d(0,"button",32),$("click",function(){W(e);let r=S();return Y(r.cancelEdit())}),d(1,"mat-icon",33),h(2,"close"),c(),h(3," Cancelar "),c()}}function Ift(t,n){if(t&1){let e=ie();d(0,"button",34),$("click",function(){W(e);let r=S();return Y(r.addElement())}),d(1,"mat-icon",33),h(2,"add"),c(),h(3," Adicionar "),c()}if(t&2){let e=S();f("disabled",e.form.invalid)}}function Dft(t,n){if(t&1){let e=ie();d(0,"button",35),$("click",function(){W(e);let r=S();return Y(r.addElement())}),d(1,"mat-icon",33),h(2,"done"),c(),h(3," Editar "),c()}if(t&2){let e=S();f("disabled",e.form.invalid)}}function Tft(t,n){t&1&&(d(0,"mat-header-cell",36),h(1,"Per\xEDodo"),c())}function Aft(t,n){if(t&1&&(d(0,"mat-cell",37),h(1),c()),t&2){let e=n.$implicit,i=S();m(),ue(" ",i.getElementPeriod(e)," ")}}function kft(t,n){t&1&&(d(0,"mat-header-cell",38),h(1,"Tipo"),c())}function Mft(t,n){if(t&1&&(d(0,"mat-cell",39),h(1),ce(2,"historicalElementType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.tipo)," ")}}function Fft(t,n){t&1&&(d(0,"mat-header-cell",40),h(1,"C\xF3digo"),c())}function Rft(t,n){if(t&1&&(d(0,"mat-cell",41),h(1),c()),t&2){let e=n.$implicit,i=S();m(),ue(" ",i.getElementCode(e)," ")}}function Pft(t,n){t&1&&(d(0,"mat-header-cell",42),h(1,"Descri\xE7\xE3o"),c())}function Nft(t,n){if(t&1&&(d(0,"mat-cell",43),h(1),c()),t&2){let e=n.$implicit,i=S();m(),ue(" ",i.getElementDescription(e)," ")}}function Oft(t,n){t&1&&H(0,"mat-header-cell")}function Lft(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"button",44),$("click",function(){let r=W(e).index,o=S();return Y(o.editElement(r))}),d(2,"mat-icon",45),h(3,"edit"),c()(),d(4,"button",46),$("click",function(){let r=W(e).index,o=S();return Y(o.removeElement(r))}),d(5,"mat-icon",47),h(6,"delete"),c()()()}}var Rbe=(()=>{class t{constructor(e,i){this.Error=e,this.degreeFormService=i,this.TipoElementoHistorico=vo,this.elementTypes=Object.keys(vo),this.isEditing=new Ae,this.elementIndex=null}ngOnInit(){this.buildForm()}buildForm(e){this.elementTypeSelected=null,this.form=e??this.degreeFormService.getAcademicTranscriptElementForm(),this.disciplinaForm=this.degreeFormService.getFormGroup(this.form,"disciplina")??this.degreeFormService.getDisciplineForm(this.isJudicialDecisionOrSegundaVia),this.atividadeComplementarForm=this.degreeFormService.getFormGroup(this.form,"atividadeComplementar")??this.degreeFormService.getComplementaryActivityForm(),this.estagioForm=this.degreeFormService.getFormGroup(this.form,"estagio")??this.degreeFormService.getInternshipForm(),this.situacaoDiscenteForm=this.degreeFormService.getFormGroup(this.form,"situacaoDiscente")??this.degreeFormService.getStudentStatusForm(null,!0)}emitIsEditingEvent(){this.isEditing.emit(this.elementIndex!=null)}addElement(){this.elementIndex==null?this.academicTranscriptElementsArray.push(this.form):(this.academicTranscriptElementsArray.setControl(this.elementIndex,this.form),this.elementIndex=null,this.emitIsEditingEvent()),this.buildForm()}editElement(e){let i=this.academicTranscriptElementsArray.at(e);this.elementIndex=e,this.buildForm(i),this.elementTypeSelected=this.form.get("tipo").value,this.emitIsEditingEvent()}cancelEdit(){this.elementIndex=null,this.buildForm(),this.emitIsEditingEvent()}removeElement(e){this.academicTranscriptElementsArray.removeAt(e)}onElementTypeChange(e){let i="atividadeComplementar",r="disciplina",o="estagio",a="situacaoDiscente";switch(this.elementTypeSelected=e,this.elementTypeSelected){case vo.AtividadeComplementar:this.form.setControl(i,this.atividadeComplementarForm),this.form.removeControl(r),this.form.removeControl(o),this.form.removeControl(a);break;case vo.Disciplina:this.form.setControl(r,this.disciplinaForm),this.form.removeControl(i),this.form.removeControl(o),this.form.removeControl(a);break;case vo.Estagio:this.form.setControl(o,this.estagioForm),this.form.removeControl(r),this.form.removeControl(i),this.form.removeControl(a);break;case vo.SituacaoDiscente:this.form.setControl(a,this.situacaoDiscenteForm),this.form.removeControl(o),this.form.removeControl(r),this.form.removeControl(i);break;default:break}this.form.updateValueAndValidity()}getElementCode(e){switch(e.tipo){case vo.AtividadeComplementar:return e.atividadeComplementar.codigo;case vo.Disciplina:return e.disciplina.codigoDisciplina;case vo.Estagio:return e.estagio.codigo;case vo.SituacaoDiscente:default:return""}}getElementPeriod(e){switch(e.tipo){case vo.AtividadeComplementar:return`${e.atividadeComplementar.dataInicio} - ${e.atividadeComplementar.dataFim}`;case vo.Disciplina:return e.disciplina.periodo;case vo.Estagio:return`${e.estagio.dataInicio} - ${e.estagio.dataFim}`;case vo.SituacaoDiscente:return e.situacaoDiscente.periodoLetivo;default:return""}}getElementDescription(e){switch(e.tipo){case vo.AtividadeComplementar:let i=e.atividadeComplementar.tipo;return e.atividadeComplementar.descricao?.length>0&&(i+=` - ${e.atividadeComplementar.descricao}`),i;case vo.Disciplina:return`${e.disciplina.disciplina} - ${e.disciplina.situacao}`;case vo.Estagio:let r=[];if(e.estagio.descricao?.length>0&&r.push(e.estagio.descricao),e.estagio.concedente!=null){let o=e.estagio.concedente.razaoSocial?.length>0?e.estagio.concedente.razaoSocial:e.estagio.concedente.nome;r.push(o)}return r.join(" - ");case vo.SituacaoDiscente:return e.situacaoDiscente.tipo;default:return""}}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-elements-form"]],inputs:{academicTranscriptElementsArray:"academicTranscriptElementsArray",isJudicialDecisionOrSegundaVia:"isJudicialDecisionOrSegundaVia"},outputs:{isEditing:"isEditing"},decls:35,vars:11,consts:[[1,"row"],[1,"col-6","col-lg-6","col-md-12",3,"formGroup"],[1,"input-stretch"],["required","","formControlName","tipo",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"form","isJudicialDecisionOrSegundaVia",4,"ngIf"],[3,"isElement","form",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","warn","matTooltip","Cancelar edi\xE7\xE3o",3,"click",4,"ngIf"],["mat-raised-button","","color","primary","matTooltip","Adicionar elemento",3,"disabled","click",4,"ngIf"],["mat-raised-button","","color","primary","matTooltip","Editar elemento",3,"disabled","click",4,"ngIf"],["matSort","",1,"col-6","col-lg-6","col-md-12",3,"dataSource","matSortDisabled"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","periodo"],["mat-sort-header","","fxFlex","20",4,"matHeaderCellDef"],["fxFlex","20",4,"matCellDef"],["matColumnDef","tipo"],["mat-sort-header","","fxFlex","25",4,"matHeaderCellDef"],["fxFlex","25",4,"matCellDef"],["matColumnDef","codigo"],["mat-sort-header","","fxFlex","10",4,"matHeaderCellDef"],["fxFlex","10",4,"matCellDef"],["matColumnDef","description"],["mat-sort-header","","fxFlex","30",4,"matHeaderCellDef"],["fxFlex","30",4,"matCellDef"],["matColumnDef","action"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"value"],[3,"form","isJudicialDecisionOrSegundaVia"],[3,"isElement","form"],["mat-raised-button","","color","warn","matTooltip","Cancelar edi\xE7\xE3o",3,"click"],[1,"me-1"],["mat-raised-button","","color","primary","matTooltip","Adicionar elemento",3,"click","disabled"],["mat-raised-button","","color","primary","matTooltip","Editar elemento",3,"click","disabled"],["mat-sort-header","","fxFlex","20"],["fxFlex","20"],["mat-sort-header","","fxFlex","25"],["fxFlex","25"],["mat-sort-header","","fxFlex","10"],["fxFlex","10"],["mat-sort-header","","fxFlex","30"],["fxFlex","30"],["mat-icon-button","","matTooltip","Editar elemento",3,"click"],["aria-label","Edit"],["mat-icon-button","","color","warn","matTooltip","Remover elemento",3,"click"],["aria-label","Delete"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"Tipo"),c(),d(5,"mat-select",3),$("selectionChange",function(a){return r.onElementTypeChange(a.value)}),k(6,yft,3,4,"mat-option",4),c()(),k(7,xft,1,2,"app-discipline-form",5)(8,Cft,1,2,"app-complementary-activity-form",5)(9,Sft,1,2,"app-internship-form",5)(10,wft,1,2,"app-student-status-form",6),d(11,"div",7),k(12,Eft,4,0,"button",8)(13,Ift,4,1,"button",9)(14,Dft,4,1,"button",10),c()(),d(15,"lac-table",11)(16,"div",12)(17,"div",13)(18,"h3"),h(19,"Nenhum elemento hist\xF3rico inserido."),c()()(),he(20,14),k(21,Tft,2,0,"mat-header-cell",15)(22,Aft,2,1,"mat-cell",16),fe(),he(23,17),k(24,kft,2,0,"mat-header-cell",18)(25,Mft,3,3,"mat-cell",19),fe(),he(26,20),k(27,Fft,2,0,"mat-header-cell",21)(28,Rft,2,1,"mat-cell",22),fe(),he(29,23),k(30,Pft,2,0,"mat-header-cell",24)(31,Nft,2,1,"mat-cell",25),fe(),he(32,26),k(33,Oft,1,0,"mat-header-cell",27)(34,Lft,7,0,"mat-cell",28),fe(),c()()),i&2&&(m(),f("formGroup",r.form),m(5),f("ngForOf",r.elementTypes),m(),f("ngIf",r.elementTypeSelected==r.TipoElementoHistorico.Disciplina),m(),f("ngIf",r.elementTypeSelected==r.TipoElementoHistorico.AtividadeComplementar),m(),f("ngIf",r.elementTypeSelected==r.TipoElementoHistorico.Estagio),m(),f("ngIf",r.elementTypeSelected==r.TipoElementoHistorico.SituacaoDiscente),m(2),f("ngIf",r.elementIndex!=null),m(),f("ngIf",r.elementIndex==null),m(),f("ngIf",r.elementIndex!=null),m(),f("dataSource",r.academicTranscriptElementsArray.value)("matSortDisabled",!0))},dependencies:[Vt,Ee,zt,it,pt,Jn,dt,Tt,He,Ze,fi,bt,jt,Mi,zn,Vn,Hn,tr,ir,Kn,Lr,dr,Xr,yi,Li,QB,Tbe,kbe,Mbe,JB]})}}return t})();var Bft=t=>({"text-muted":t});function jft(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",5),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function Hft(t,n){if(t&1){let e=ie();d(0,"button",20),$("click",function(){W(e);let r=S().index,o=S(2);return Y(o.removeFiliation(r))}),d(1,"mat-icon"),h(2,"delete"),c()()}}function zft(t,n){if(t&1&&(d(0,"div",10)(1,"div",6)(2,"mat-form-field",11)(3,"mat-label"),h(4,"Nome"),c(),H(5,"input",12),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",11)(9,"mat-label"),h(10,"Nome Social"),c(),H(11,"input",13),d(12,"mat-error"),h(13),c()()(),d(14,"mat-form-field",14)(15,"mat-label"),h(16,"Sexo"),c(),d(17,"mat-select",15)(18,"mat-option",16),h(19,"Feminino"),c(),d(20,"mat-option",17),h(21,"Masculino"),c()(),d(22,"mat-error"),h(23),c()(),d(24,"div",18),k(25,Hft,3,0,"button",19),c()()),t&2){let e=n.$implicit,i=S(2);f("formGroup",e),m(7),U(i.Error.get(e,"nome","name")),m(6),U(i.Error.get(e,"nomeSocial","name")),m(10),U(i.Error.get(e,"sexo")),m(2),f("ngIf",i.filiationArray.length>1)}}function Uft(t,n){if(t&1){let e=ie();d(0,"div",6),k(1,zft,26,5,"div",7),d(2,"div",8)(3,"button",9),$("click",function(){W(e);let r=S();return Y(r.addFiliation())}),d(4,"mat-icon"),h(5,"add"),c()()()()}if(t&2){let e=S();m(),f("ngForOf",e.filiationArray.controls)}}var Pbe=(()=>{class t{get hasFiliacao(){return this.form&&this.form.get("hasFiliacao").value}constructor(e,i,r){this.Error=e,this.degreeFormService=i,this.fb=r,this.hasFiliacaoChanged=new Ae}ngOnInit(){this.filiationArray=this.form.get("filiacao"),this.setConditionalGroups()}setConditionalGroups(){let e="filiacao";this.hasFiliacao?this.form.setControl(e,this.filiationArray):this.form.removeControl(e),this.form.updateValueAndValidity(),this.hasFiliacaoChanged.emit(this.hasFiliacao)}addFiliation(){let e=this.degreeFormService.getFiliationForm();this.filiationArray.push(e)}removeFiliation(e){this.filiationArray.length>1&&this.filiationArray.removeAt(e)}static{this.\u0275fac=function(i){return new(i||t)(E(wi),E(Gn),E(Ti))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-filiation-form"]],inputs:{isJudicialDecision:"isJudicialDecision",form:"form"},outputs:{hasFiliacaoChanged:"hasFiliacaoChanged"},decls:7,vars:6,consts:[[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","class","ms-auto","formControlName","hasFiliacao",3,"change",4,"ngIf"],["class","row",4,"ngIf"],["color","primary","formControlName","hasFiliacao",1,"ms-auto",3,"change"],[1,"row"],["class","col-4 flow-box m-3 p-3",3,"formGroup",4,"ngFor","ngForOf"],[1,"d-flex","col-4","justify-content-center","align-items-center"],["mat-mini-fab","","color","primary",3,"click"],[1,"col-4","flow-box","m-3","p-3",3,"formGroup"],[1,"col-6","col-lg-6","col-md-12"],["required","","matInput","","formControlName","nome"],["matInput","","formControlName","nomeSocial"],[1,"input-stretch"],["required","","formControlName","sexo"],["value","F"],["value","M"],[1,"d-flex","justify-content-center","align-items-center"],["mat-icon-button","","color","warn",3,"click",4,"ngIf"],["mat-icon-button","","color","warn",3,"click"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"h2",2)(3,"strong"),h(4,"Filia\xE7\xE3o"),c()(),k(5,jft,1,0,"mat-slide-toggle",3),c(),k(6,Uft,6,1,"div",4),c()),i&2&&(f("formGroup",r.form),m(2),f("ngClass",Le(4,Bft,!r.hasFiliacao)),m(3),f("ngIf",r.isJudicialDecision),m(),f("ngIf",r.hasFiliacao))},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,Jn,dt,Tt,He,fi,ma,Wt,bt,jt,Si,Mi,Fr,Li]})}}return t})();var e6=(()=>{class t{constructor(e){this.Error=e}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)(E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-judicial-process-form"]],inputs:{form:"form"},decls:19,vars:4,consts:[[3,"formGroup"],[1,"row"],[1,"col-lg-6"],["matInput","","formControlName","numeroProcessoJudicial","mask","0000000-00.0000.0.00.0000",3,"dropSpecialCharacters"],["matInput","","formControlName","nomeJuiz"],[1,"col"],["matInput","","formControlName","decisao","rows","2",1,"md-textarea","md-textarea-auto"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"N\xFAmero do processo judicial"),c(),H(5,"input",3),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",2)(9,"mat-label"),h(10,"Nome do juiz"),c(),H(11,"input",4),d(12,"mat-error"),h(13),c()()(),d(14,"div",1)(15,"mat-form-field",5)(16,"mat-label"),h(17,"Decis\xE3o"),c(),H(18,"textarea",6),c()()()),i&2&&(f("formGroup",r.form),m(5),f("dropSpecialCharacters",!1),m(2),U(r.Error.get(r.form,"numeroProcessoJudicial")),m(6),U(r.Error.get(r.form,"nomeJuiz")))},dependencies:[zt,Gt,it,pt,dt,Tt,Wt,bt,jt,Si,Fo]})}}return t})();var Zx=(t,n)=>[t,n],$ft=t=>({"text-muted":t});function qft(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",19),$("change",function(){W(e);let r=S();return Y(r.setConditionalGroups())}),c()}}function Wft(t,n){if(t&1&&(d(0,"div",20),H(1,"app-files",21),c()),t&2){let e=S();f("formGroup",e.supportingDocsArray),m(),f("filesToAdd",e.supportingDocsArray)("acceptedTypes",e.acceptedFileTypes)("hideDesignationAct",!0)("isJudicialDecision",e.isJudicialDecision)}}function Yft(t,n){t&1&&h(0,"Informa\xE7\xF5es do processo judicial")}function Kft(t,n){if(t&1&&(d(0,"mat-step",22),k(1,Yft,1,0,"ng-template",23),H(2,"app-judicial-process-form",24)(3,"app-stepper-actions",4),c()),t&2){let e=S(),i=je(1);f("stepControl",e.judicialProcessForm),m(2),f("form",e.judicialProcessForm),m(),f("buttonsToShow",so(5,Zx,e.StepperButtons.PreviousStep,e.StepperButtons.NextStep))("disableNextButton",e.judicialProcessForm.invalid)("currentStepper",i)}}function Xft(t,n){if(t&1&&H(0,"app-stepper-actions",4),t&2){let e=S(),i=je(1);f("buttonsToShow",so(3,Zx,e.StepperButtons.PreviousStep,e.StepperButtons.NextStep))("disableNextButton",e.hasHistorico&&!e.isHistoricoValid)("currentStepper",i)}}function Qft(t,n){if(t&1){let e=ie();d(0,"app-stepper-actions",25),$("submitted",function(){W(e);let r=S();return Y(r.generateDegree())})("visualRepresentationPreviewClick",function(r){W(e);let o=S();return Y(o.showVisualRepresentationPreview(r))}),c()}if(t&2){let e=S(),i=je(1);f("buttonsToShow",so(4,Zx,e.StepperButtons.PreviousStep,e.StepperButtons.GenerateDegree))("disableNextButton",e.hasHistorico&&!e.isHistoricoValid)("currentStepper",i)("isSegundaViaOrJudicialDecision",e.isSegundaVia||e.isJudicialDecision)}}function Zft(t,n){if(t&1){let e=ie();d(0,"mat-step",26)(1,"app-academic-transcript-elements-form",27),$("isEditing",function(r){W(e);let o=S();return Y(o.isEditing=r)}),c(),d(2,"app-stepper-actions",25),$("submitted",function(){W(e);let r=S();return Y(r.generateDegree())})("visualRepresentationPreviewClick",function(r){W(e);let o=S();return Y(o.showVisualRepresentationPreview(r))}),c()()}if(t&2){let e=S(),i=je(1);f("stepControl",e.academicTranscriptElementsArray),m(),f("academicTranscriptElementsArray",e.academicTranscriptElementsArray)("isJudicialDecisionOrSegundaVia",e.isJudicialDecision||e.isSegundaVia),m(),f("buttonsToShow",so(7,Zx,e.StepperButtons.PreviousStep,e.StepperButtons.GenerateDegree))("disableNextButton",e.academicTranscriptElementsArray.invalid||e.isEditing)("currentStepper",i)("isSegundaViaOrJudicialDecision",e.isSegundaVia||e.isJudicialDecision)}}var t6=(()=>{class t{get hasDocumentacaoComprobatoria(){return this.form&&this.form.get("hasDocumentacaoComprobatoria").value}get isFiliacaoValid(){return this.privateStudentDataForm.get("filiacao")?.valid}get isHistoricoValid(){return this.privateStudentDataForm.get("historico")?.valid}get showElementosHistorico(){return this.privateStudentDataForm.get("hasHistorico")?.value&&this.academicTranscriptElementsArray!=null}get academicTranscriptElementsArray(){return this.privateStudentDataForm.get("elementosHistorico")}constructor(e,i){this.degreeFormService=e,this.fb=i,this.StepperButtons=xl,this.acceptedFileTypes=["application/pdf"],this.submitted=new Ae,this.visualRepresentationPreviewClick=new Ae}ngOnInit(){this.requireDocumentacaoComprobatoria=this.degreeType==br.Default&&!this.isSegundaVia,this.isJudicialDecision=this.degreeType==br.JudicialDecision,this.privateStudentDataForm=this.degreeFormService.getFormGroup(this.form,"dadosPrivadosDiplomado"),this.supportingDocsArray=this.form.get("documentacaoComprobatoria"),this.requireDocumentacaoComprobatoria&&this.form.get("hasDocumentacaoComprobatoria").setValue(!0),this.isJudicialDecision&&(this.judicialProcessForm=this.degreeFormService.getFormGroup(this.privateStudentDataForm,"informacoesProcessoJudicial"),this.judicialProcessForm==null&&(this.judicialProcessForm=this.degreeFormService.getJudicialProcessForm(),this.privateStudentDataForm.setControl("informacoesProcessoJudicial",this.judicialProcessForm))),this.setConditionalGroups()}setConditionalGroups(){let e="documentacaoComprobatoria";this.hasDocumentacaoComprobatoria?this.form.setControl(e,this.supportingDocsArray):this.form.removeControl(e),this.form.updateValueAndValidity()}generateDegree(){this.submitted.emit()}showVisualRepresentationPreview(e=!1){this.visualRepresentationPreviewClick.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(E(Gn),E(Ti))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-documentation-stepper"]],inputs:{form:"form",degreeType:"degreeType",isSegundaVia:"isSegundaVia",maxUploadSizeInBytes:"maxUploadSizeInBytes",degreeStepper:"degreeStepper"},outputs:{submitted:"submitted",visualRepresentationPreviewClick:"visualRepresentationPreviewClick"},decls:23,vars:43,consts:[["stepper",""],[3,"linear"],["label","Termo de responsabilidade",3,"stepControl","optional"],[3,"hasResponsabilityTermChanged","form","maxUploadSizeInBytes"],[3,"buttonsToShow","disableNextButton","currentStepper"],["label","Documenta\xE7\xE3o comprobat\xF3ria",3,"stepControl","optional"],[3,"formGroup"],[1,"d-flex"],[1,"mb-0",3,"ngClass"],["color","primary","class","ms-auto","formControlName","hasDocumentacaoComprobatoria",3,"change",4,"ngIf"],["class","files-container stretch",3,"formGroup",4,"ngIf"],[3,"stepControl",4,"ngIf"],["label","Filia\xE7\xE3o",3,"completed","optional"],[3,"hasFiliacaoChanged","isJudicialDecision","form"],["label","Hist\xF3rico escolar",3,"completed","optional"],[3,"hasHistoricoChanged","form","isJudicialDecisionOrSegundaVia"],[3,"buttonsToShow","disableNextButton","currentStepper",4,"ngIf"],[3,"buttonsToShow","disableNextButton","currentStepper","isSegundaViaOrJudicialDecision","submitted","visualRepresentationPreviewClick",4,"ngIf"],["label","Elementos do hist\xF3rico",3,"stepControl",4,"ngIf"],["color","primary","formControlName","hasDocumentacaoComprobatoria",1,"ms-auto",3,"change"],[1,"files-container","stretch",3,"formGroup"],[3,"filesToAdd","acceptedTypes","hideDesignationAct","isJudicialDecision"],[3,"stepControl"],["matStepLabel",""],[3,"form"],[3,"submitted","visualRepresentationPreviewClick","buttonsToShow","disableNextButton","currentStepper","isSegundaViaOrJudicialDecision"],["label","Elementos do hist\xF3rico",3,"stepControl"],[3,"isEditing","academicTranscriptElementsArray","isJudicialDecisionOrSegundaVia"]],template:function(i,r){if(i&1){let o=ie();d(0,"mat-horizontal-stepper",1,0)(2,"mat-step",2)(3,"app-responsability-term-form",3),$("hasResponsabilityTermChanged",function(s){return W(o),Y(r.hasTermoResponsabilidade=s)}),c(),H(4,"app-stepper-actions",4),c(),d(5,"mat-step",5)(6,"form",6)(7,"div",7)(8,"h2",8)(9,"strong"),h(10,"Documenta\xE7\xE3o comprobat\xF3ria"),c()(),k(11,qft,1,0,"mat-slide-toggle",9),c(),k(12,Wft,2,5,"div",10),c(),H(13,"app-stepper-actions",4),c(),k(14,Kft,4,8,"mat-step",11),d(15,"mat-step",12)(16,"app-filiation-form",13),$("hasFiliacaoChanged",function(s){return W(o),Y(r.hasFiliacao=s)}),c(),H(17,"app-stepper-actions",4),c(),d(18,"mat-step",14)(19,"app-academic-transcript-form",15),$("hasHistoricoChanged",function(s){return W(o),Y(r.hasHistorico=s)}),c(),k(20,Xft,1,6,"app-stepper-actions",16)(21,Qft,1,7,"app-stepper-actions",17),c(),k(22,Zft,3,10,"mat-step",18),c()}if(i&2){let o,a=je(1);f("linear",!0),m(2),f("stepControl",r.form.get("termoResponsabilidade"))("optional",!r.hasTermoResponsabilidade),m(),f("form",r.form)("maxUploadSizeInBytes",r.maxUploadSizeInBytes),m(),f("buttonsToShow",so(32,Zx,r.StepperButtons.PreviousDegreeStep,r.StepperButtons.NextStep))("disableNextButton",r.hasTermoResponsabilidade&&((o=r.form.get("termoResponsabilidade"))==null?null:o.invalid)==!0)("currentStepper",a),m(),f("stepControl",r.supportingDocsArray)("optional",!r.hasDocumentacaoComprobatoria),m(),f("formGroup",r.form),m(2),f("ngClass",Le(35,$ft,!r.hasDocumentacaoComprobatoria)),m(3),f("ngIf",!r.requireDocumentacaoComprobatoria),m(),f("ngIf",r.hasDocumentacaoComprobatoria),m(),f("buttonsToShow",so(37,Zx,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.hasDocumentacaoComprobatoria&&r.supportingDocsArray.invalid)("currentStepper",a),m(),f("ngIf",r.isJudicialDecision),m(),f("completed",!r.hasFiliacao||r.isFiliacaoValid)("optional",r.isJudicialDecision&&!r.hasFiliacao),m(),f("isJudicialDecision",r.isJudicialDecision)("form",r.privateStudentDataForm),m(),f("buttonsToShow",so(40,Zx,r.StepperButtons.PreviousStep,r.StepperButtons.NextStep))("disableNextButton",r.hasFiliacao&&!r.isFiliacaoValid)("currentStepper",a),m(),f("completed",!r.hasHistorico||r.isHistoricoValid)("optional",r.isJudicialDecision&&!r.hasHistorico),m(),f("form",r.privateStudentDataForm)("isJudicialDecisionOrSegundaVia",r.isJudicialDecision||r.isSegundaVia),m(),f("ngIf",r.showElementosHistorico),m(),f("ngIf",!r.showElementosHistorico),m(),f("ngIf",r.showElementosHistorico)}},dependencies:[ji,Ee,zt,it,pt,dt,Tt,Fr,tp,dM,tm,$B,Ibe,Dbe,Rbe,Pbe,e6,_I]})}}return t})();var yI=(()=>{class t{transform(e){switch(e){case br.Default:return"Padr\xE3o";case br.Nsf:return"NSF";case br.JudicialDecision:return"Decis\xE3o judicial";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"degreeType",type:t,pure:!0})}}return t})();var Lbe=()=>({standalone:!0});function Jft(t,n){if(t&1&&(d(0,"a",24)(1,"mat-icon",22),h(2,"get_app"),c(),h(3),c()),t&2){let e=S(3);f("href","../../../assets/files/"+(e.fileType==e.FileTypes.Csv?"csv-template6.csv":"json-template5.json"),qo),m(3),ue(" Baixar modelo de arquivo ",e.fileType==e.FileTypes.Json?"JSON":"CSV"," ")}}function egt(t,n){if(t&1){let e=ie();d(0,"div",20)(1,"button",21),$("click",function(){W(e);let r=S(2);return Y(r.openRequiredInfoDialog())}),d(2,"mat-icon",22),h(3,"help"),c(),h(4," Quais dados s\xE3o necess\xE1rios? "),c(),k(5,Jft,4,2,"a",23),c()}if(t&2){let e=S(2);m(5),f("ngIf",e.fileType!=e.FileTypes.Manual)}}function tgt(t,n){t&1&&(d(0,"span"),h(1,"Envie um arquivo JSON com os dados dos diplomas:"),c())}function igt(t,n){t&1&&(d(0,"span"),h(1,"Envie um arquivo CSV com os dados dos diplomas:"),c())}function ngt(t,n){t&1&&(d(0,"span"),h(1,"Preencha os dados do diploma manualmente."),c())}function rgt(t,n){if(t&1){let e=ie();d(0,"spa-files",32),$("filesLoading",function(r){W(e);let o=S(3);return Y(o.onFilesLoading(r))}),c()}if(t&2){let e=S(3);f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes)}}function ogt(t,n){if(t&1&&(d(0,"mat-option",38),h(1),ce(2,"degreeType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function agt(t,n){if(t&1){let e=ie();he(0),d(1,"p"),h(2,"Segunda via?"),c(),d(3,"mat-radio-group",39),tn("ngModelChange",function(r){W(e);let o=S(4);return nn(o.isSegundaVia,r)||(o.isSegundaVia=r),Y(r)}),d(4,"mat-radio-button",38),h(5,"Sim"),c(),d(6,"mat-radio-button",38),h(7,"N\xE3o"),c()(),fe()}if(t&2){let e=S(4);m(3),en("ngModel",e.isSegundaVia),f("ngModelOptions",Wo(4,Lbe)),m(),f("value",!0),m(2),f("value",!1)}}function sgt(t,n){if(t&1){let e=ie();he(0),d(1,"p"),h(2,"Selecione o tipo de diploma:"),c(),d(3,"div",33)(4,"mat-icon",34),h(5,"card_membership"),c(),d(6,"mat-form-field",35)(7,"mat-label"),h(8,"Tipo do diploma"),c(),d(9,"mat-select",36),tn("ngModelChange",function(r){W(e);let o=S(3);return nn(o.degreeType,r)||(o.degreeType=r),Y(r)}),d(10,"mat-option"),h(11,"Selecione o tipo do diploma..."),c(),k(12,ogt,3,4,"mat-option",37),c()()(),k(13,agt,8,5,"ng-container",28),d(14,"p"),h(15,"O tipo do diploma flexibiliza a obrigatoriedade de alguns dados."),c(),d(16,"p"),h(17,"Na pr\xF3xima p\xE1gina ser\xE1 poss\xEDvel preencher as informa\xE7\xF5es do diploma de forma manual."),c(),fe()}if(t&2){let e=S(3);m(9),en("ngModel",e.degreeType),f("ngModelOptions",Wo(4,Lbe)),m(3),f("ngForOf",e.degreeTypes),m(),f("ngIf",e.degreeType!==e.DegreeTypes.JudicialDecision)}}function lgt(t,n){if(t&1){let e=ie();d(0,"div",25)(1,"div",26)(2,"p",27),k(3,tgt,2,0,"span",28)(4,igt,2,0,"span",28)(5,ngt,2,0,"span",28),c(),d(6,"mat-button-toggle-group",29),$("change",function(r){W(e);let o=S(2);return Y(o.onChangeFileType(r.value))}),d(7,"mat-button-toggle",30),h(8," JSON "),c(),d(9,"mat-button-toggle",30),h(10," CSV "),c(),d(11,"mat-button-toggle",30),h(12," Manual "),c()()(),d(13,"div"),k(14,rgt,1,4,"spa-files",31)(15,sgt,18,5,"ng-container",28),c()()}if(t&2){let e=S(2);m(3),f("ngIf",e.fileType==e.FileTypes.Json),m(),f("ngIf",e.fileType==e.FileTypes.Csv),m(),f("ngIf",e.fileType==e.FileTypes.Manual),m(2),f("value",e.FileTypes.Json)("checked",e.fileType==e.FileTypes.Json),m(2),f("value",e.FileTypes.Csv)("checked",e.fileType==e.FileTypes.Csv),m(2),f("value",e.FileTypes.Manual)("checked",e.fileType==e.FileTypes.Manual),m(3),f("ngIf",e.fileType!=e.FileTypes.Manual),m(),f("ngIf",e.fileType==e.FileTypes.Manual)}}function cgt(t,n){if(t&1){let e=ie();d(0,"app-file-validation-boxes",40),$("loadingChange",function(r){W(e);let o=S(2);return Y(o.loading=r)}),c()}if(t&2){let e=S(2);f("operationType",e.operationType)("fileValidationResult",e.fileValidationResult)("selectedResult",e.selectedResult)("degreeDataSource",e.degreeDataSource)("registrationDataSource",e.registrationDataSource)("templateId",e.form.get("templateId").value)("academicTranscriptTemplateId",e.form.get("academicTranscriptTemplateId").value)}}function dgt(t,n){if(t&1){let e=ie();d(0,"button",41),$("click",function(){W(e);let r=S(2);return Y(r.submitBatch())}),h(1," Gerar diplomas "),c()}if(t&2){let e=S(2);f("disabled",!e.form.valid||!e.fileValidationResult||!e.fileValidationResult.isValid||!e.degreeTemplateControl.valid||!e.academicTranscriptTemplateControl.valid)}}function ugt(t,n){if(t&1){let e=ie();d(0,"button",41),$("click",function(){W(e);let r=S(2);return Y(r.startFill())}),h(1," Avan\xE7ar "),c()}if(t&2){let e=S(2);f("disabled",!e.form.valid||!e.degreeTemplateControl.valid||!e.academicTranscriptTemplateControl.valid||e.degreeType==null||e.degreeType!=e.DegreeTypes.JudicialDecision&&e.isSegundaVia==null)}}function mgt(t,n){if(t&1){let e=ie();d(0,"mat-horizontal-stepper",42,0)(2,"mat-step",43)(3,"app-degree-data-stepper",44),$("returnToBeginningEmitter",function(){W(e);let r=S(2);return Y(r.returnToBeginning())}),c()(),d(4,"mat-step",45),H(5,"app-registry-data-stepper",46),c(),d(6,"mat-step",47)(7,"app-academic-documentation-stepper",48),$("submitted",function(){W(e);let r=S(2);return Y(r.submitDegree())})("visualRepresentationPreviewClick",function(r){W(e);let o=S(2);return Y(o.showVisualRepresentationPreview(r))}),c()()()}if(t&2){let e=je(1),i=S(2);f("linear",!0),m(2),f("stepControl",i.degreeDataForm),m(),f("form",i.degreeDataForm)("degreeStepper",e)("degreeType",i.degreeType),m(),f("stepControl",i.registryForm),m(),f("form",i.registryDataForm)("degreeStepper",e)("degreeType",i.degreeType),m(),f("stepControl",i.academicDocumentationForm),m(),f("form",i.academicDocumentationForm)("degreeStepper",e)("degreeType",i.degreeType)("isSegundaVia",i.isSegundaVia)("maxUploadSizeInBytes",i.maxUploadSizeInBytes)}}function pgt(t,n){if(t&1){let e=ie();d(0,"form",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"h2",9),h(6," Gera\xE7\xE3o de diplomas "),c(),d(7,"p"),h(8),c(),H(9,"app-template-autocomplete-selector",10)(10,"app-template-autocomplete-selector",10),k(11,egt,6,1,"div",11),d(12,"app-folder-selector",12),tn("selectedItemChange",function(r){W(e);let o=S();return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c()()(),d(13,"div",7),k(14,lgt,16,11,"div",13),c()(),k(15,cgt,1,7,"app-file-validation-boxes",14),d(16,"app-signature-flow-selector",15),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),H(17,"app-signature-flow-form",16),d(18,"div",17),k(19,dgt,2,1,"button",18)(20,ugt,2,1,"button",18),c()(),k(21,mgt,8,15,"mat-horizontal-stepper",19),c()}if(t&2){let e=S();f("formGroup",e.form),m(),f("hidden",e.fill),m(7),ue("Para gerar diplomas selecione um modelo ",e.fileType!=e.FileTypes.Manual?"e envie o arquivo com os dados de cada diploma":"e preencha as informa\xE7\xF5es do diploma","."),m(),f("type",e.TemplateTypes.Degree)("templateControl",e.degreeTemplateControl)("templateIdControl",e.form.get("templateId")),m(),f("type",e.TemplateTypes.AcademicTranscript)("templateControl",e.academicTranscriptTemplateControl)("templateIdControl",e.form.get("academicTranscriptTemplateId")),m(),f("ngIf",e.form.get("templateId").valid),m(),en("selectedItem",e.selectedFolder),m(2),f("ngIf",e.form.get("templateId").valid),m(),f("ngIf",e.fileType!=e.FileTypes.Manual),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type),m(2),f("ngIf",e.fileType!=e.FileTypes.Manual),m(),f("ngIf",e.fileType==e.FileTypes.Manual),m(),f("ngIf",e.fill)}}var Vbe=(()=>{class t{get degreeDataForm(){return this.degreeForm.get("diploma").get("dadosDiploma")}get registryDataForm(){return this.degreeForm.get("diploma").get("dadosRegistro")}get academicDocumentationForm(){return this.degreeForm.get("documentacaoAcademica")}constructor(e,i,r,o,a,s,l,u,p,g,_,v,y,x){this.messageService=e,this.fb=i,this.logger=r,this.route=o,this.router=a,this.batchService=s,this.documentFlowService=l,this.settingService=u,this.dialog=p,this.configurationService=g,this.degreeService=_,this.degreeFormService=v,this.dialogService=y,this.templateService=x,this.TemplateTypes=Jr,this.acceptedFileTypes=["application/json"],this.FileTypes=ss,this.fileType=ss.Json,this.DegreeTypes=br,this.degreeTypes=Object.keys(br),this.saving=!1,this.selectedFolder=this.settingService.NoFolder,this.type=Ro.EmissionRegistration,this.degreeTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.academicTranscriptTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.operationType=Pt.Degree,this.$toUnsubscribe=[]}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes;let e=JSON.parse(localStorage.getItem(cf.DegreeForm));e?.data!=null?this.degreeFormService.showUseFillAutomaticallySaved().then(i=>{if(i){let r=e.data;if(this.fileType=ss.Manual,this.degreeType=r.degree.degreeType,this.isSegundaVia=r.degree.documentacaoAcademica.registro.isSegundaVia,e.uploadedFilesValidityDate!=null){let o=new Date,a=new Date(e.uploadedFilesValidityDate);o>a&&(r.degree.documentacaoAcademica.registro.documentacaoComprobatoria=[],r.degree.documentacaoAcademica.registro.termoResponsabilidade!=null&&(r.degree.documentacaoAcademica.registro.termoResponsabilidade.atoDesignacaoFile=null))}this.buildForm(r)}else this.removeSavedForm(),this.buildForm()}):this.buildForm()}canDeactivate(){if(!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.degreeForm!=null&&this.fileType==ss.Manual)return this.degreeFormService.showConfirmFormDiscard(cf.DegreeForm).then(e=>e==null?!1:(e?this.saveForm():this.removeSavedForm(),!0));if(this.form.dirty||this.filesToAdd.value.length>0)return this.dialogService.confirmDiscard()}return!0}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}onFilesLoading(e){if(!e){let i=this.form.value.files[0],r={id:i.id,contentType:i.contentType,name:i.name,fileType:this.fileType};this.loading=!0,this.batchService.validateDegreesFile(r).subscribe(o=>{this.loading=!1,this.selectedResult=null,this.degreeDataSource=null,this.registrationDataSource=null,this.fileValidationResult=o,o.result&&o.result.length>0&&(this.degreeDataSource=o.result.map(a=>{let s=a.information;return{entryNumber:a.entryNumber,isValid:a.isValid,degreeType:s.degreeType,nome:s.diploma.dadosDiploma.diplomado.nome,sexo:s.diploma.dadosDiploma.diplomado.sexo,cpf:s.diploma.dadosDiploma.diplomado.cpf,dataNascimento:s.diploma.dadosDiploma.diplomado.dataNascimento,curso:s.diploma.dadosDiploma.dadosCurso.nomeCurso,modalidade:s.diploma.dadosDiploma.dadosCurso.modalidade?s.diploma.dadosDiploma.dadosCurso.modalidade:s.diploma.dadosDiploma.dadosCurso.modalidadeNSF,codigoCurso:s.diploma.dadosDiploma.dadosCurso.codigoCursoEMEC,errors:a.errors,structureErrors:a.structureErrors,signatureErrors:a.signatureErrors,information:s}}),this.registrationDataSource=o.result.map(a=>{let s=a.information;return{entryNumber:a.entryNumber,isValid:a.isValid,errors:a.errors,nomeRegistradora:s.diploma.dadosRegistro.iesRegistradora.nome,cnpj:s.diploma.dadosRegistro.iesRegistradora.cnpj,codigoMec:s.diploma.dadosRegistro.iesRegistradora.codigoMEC,livroRegistro:s.diploma.dadosRegistro.livroRegistro.livroRegistro,numeroFolhaDoDiploma:s.diploma.dadosRegistro.livroRegistro.numeroFolhaDoDiploma,numeroSequenciaDoDiploma:s.diploma.dadosRegistro.livroRegistro.numeroSequenciaDoDiploma}}),o.isValid||(this.selectedResult=this.degreeDataSource.find(a=>!a.isValid)))},o=>this.loading=!1)}}buildForm(e){this.filesToAdd=this.fb.array([],Se.minLength(1)),this.form=this.fb.group({templateId:[e?.templateId||this.route.snapshot.queryParams.templateId||"",Se.required],academicTranscriptTemplateId:[e?.academicTranscriptTemplateId||"",Se.required],files:this.filesToAdd}),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type,e?.documentFlow)),e&&this.startFill(e)}openRequiredInfoDialog(){this.dialog.open(wg,{width:"1000px",data:{type:this.operationType}})}onChangeFileType(e){this.fileType=e,this.fileType==ss.Json?(this.acceptedFileTypes=["application/json"],this.enableFilesControl()):this.fileType==ss.Csv?(this.acceptedFileTypes=["text/csv","application/vnd.ms-excel"],this.enableFilesControl()):this.fileType==ss.Manual&&(this.acceptedFileTypes=null,this.form.controls.files.disable())}enableFilesControl(){this.form.controls.files.enable(),this.form.controls.files.setValidators([Se.minLength(1)])}submitBatch(){if(!this.form.valid)return;let e={templateId:this.form.get("templateId").value,academicTranscriptTemplateId:this.form.get("academicTranscriptTemplateId").value,batchFile:this.filesToAdd.value[0],documentFlow:this.documentFlowService.getFormData(this.form.get("signatureFlow")),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,fileType:this.fileType};this.saving=!0,this.batchService.create(e).subscribe(i=>{this.closing=!0,this.removeSavedForm(),this.router.navigate(["../batches",i.id,"progress"],{relativeTo:this.route}),this.messageService.showSuccess("Os documentos ser\xE3o gerados e enviados para o Assinador")}).add(()=>this.saving=!1)}getDegreeRequest(){let e=this.degreeFormService.getDegreeFullInformationModel(this.degreeForm,this.degreeType,this.isSegundaVia);return{templateId:this.form.get("templateId").value,academicTranscriptTemplateId:this.form.get("academicTranscriptTemplateId").value,degree:e,documentFlow:this.documentFlowService.getFormData(this.form.get("signatureFlow")),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null}}submitDegree(){if(!this.form.valid||this.fileType===this.FileTypes.Manual&&!this.degreeForm.valid)return;let e=this.getDegreeRequest();this.saving=!0,this.degreeService.create(e).subscribe(i=>{this.closing=!0,i.success?(this.removeSavedForm(),this.router.navigate(["../degrees",i.id],{relativeTo:this.route}),this.messageService.showSuccess("O documento ser\xE1 gerado e enviado para o Assinador")):(this.messageService.showError("Algo deu errado ao tentar gerar o documento"),this.dialog.open(UB,{width:"1000px",data:{errors:i.errors}}))}).add(()=>this.saving=!1)}startFill(e){this.degreeForm==null&&(this.degreeForm=this.degreeFormService.getDegreeFullForm(this.degreeType,this.isSegundaVia,e?.degree),this.$toUnsubscribe.push(this.degreeForm.valueChanges.pipe($o(LB)).subscribe(o=>{this.saveForm()})));let i=this.documentFlowService.getFormData(this.form.get("signatureFlow")),r=Ve({type:Ro.EmissionRegistration},i);this.loading=!0,this.documentFlowService.validate(r).subscribe(o=>{this.loading=!1,this.fill=!0},()=>this.loading=!1)}returnToBeginning(){this.fill=!1}removeSavedForm(){this.degreeFormService.removeSavedForm(cf.DegreeForm)}saveForm(){let e=null;if(this.configurationService.config.clientConfig.uploadedFilesValidityInDays>0){let r=new Date;r.setDate(r.getDate()+this.configurationService.config.clientConfig.uploadedFilesValidityInDays),e=r.toString()}let i={uploadedFilesValidityDate:e,data:this.getDegreeRequest()};localStorage.setItem(cf.DegreeForm,JSON.stringify(i))}showVisualRepresentationPreview(e=!1){let i=e?this.form.get("academicTranscriptTemplateId").value:this.form.get("templateId").value,o={degree:this.degreeFormService.getDegreeFullInformationModel(this.degreeForm,this.degreeType,this.isSegundaVia)};this.loading=!0,this.templateService.getDocumentVisualRepresentationPreviewTicket(i,o).subscribe(a=>{this.loading=!1;let s={location:a.location};this.dialogService.openFile([s],0)},()=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Bi),E(Ti),E($t),E(Ut),E(lt),E(dc),E(oa),E(Xa),E(Dn),E(zo),E(Jo),E(Gn),E(Qi),E(vd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-generate"]],decls:3,vars:2,consts:[["degreeStepper",""],[1,"loader-container"],[3,"show"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"hidden"],[1,"row"],[1,"col-md-6"],[1,"box-light","generate-box"],[1,"font-medium"],[3,"type","templateControl","templateIdControl"],["class","d-flex flex-column flex-xl-row align-items-center justify-content-around",4,"ngIf"],[1,"mb-2",3,"selectedItemChange","selectedItem"],["class","box-light",4,"ngIf"],[3,"operationType","fileValidationResult","selectedResult","degreeDataSource","registrationDataSource","templateId","academicTranscriptTemplateId","loadingChange",4,"ngIf"],[3,"loadingChange","form","type"],[3,"form","type"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],[3,"linear",4,"ngIf"],[1,"d-flex","flex-column","flex-xl-row","align-items-center","justify-content-around"],["mat-button","","color","primary","type","button",1,"my-2","normal-wrap-button",3,"click"],[1,"me-1"],["mat-button","","target","_blank","class","my-2 normal-wrap-button mat-primary d-flex align-items-center",3,"href",4,"ngIf"],["mat-button","","target","_blank",1,"my-2","normal-wrap-button","mat-primary","d-flex","align-items-center",3,"href"],[1,"box-light"],[1,"mb-2","d-flex","align-items-center"],[1,"mb-0"],[4,"ngIf"],["hideSingleSelectionIndicator","true",1,"flex-shrink-0","ms-auto","medium",3,"change"],[3,"value","checked"],[3,"single","filesToAdd","acceptedTypes","maxFileSize","filesLoading",4,"ngIf"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"],[1,"d-flex","align-items-center"],[1,"me-2"],[1,"w-100"],["required","",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["color","primary",1,"d-flex","align-items-center","justify-content-around",3,"ngModelChange","ngModel","ngModelOptions"],[3,"loadingChange","operationType","fileValidationResult","selectedResult","degreeDataSource","registrationDataSource","templateId","academicTranscriptTemplateId"],["mat-raised-button","","color","accent",3,"click","disabled"],[3,"linear"],["label","Dados do diploma",3,"stepControl"],[3,"returnToBeginningEmitter","form","degreeStepper","degreeType"],["label","Dados do registro",3,"stepControl"],[3,"form","degreeStepper","degreeType"],["label","Documenta\xE7\xE3o acad\xEAmica",3,"stepControl"],[3,"submitted","visualRepresentationPreviewClick","form","degreeStepper","degreeType","isSegundaVia","maxUploadSizeInBytes"]],template:function(i,r){i&1&&(d(0,"div",1),H(1,"ngx-loading",2),k(2,pgt,22,20,"form",3),c()),i&2&&(m(),f("show",r.loading||r.saving),m(),f("ngIf",r.form))},dependencies:[Vt,Ee,zt,it,pt,Jn,Va,dt,He,ec,Ze,bt,jt,Mi,li,cc,vM,fI,Li,ep,em,tp,tm,uc,am,Eg,sm,Ig,YB,ybe,t6,yI],styles:[".mat-mdc-button-toggle[_ngcontent-%COMP%]{font-size:15px;padding:0!important}[_nghost-%COMP%] .mat-mdc-button-toggle-appearance-standard .mat-mdc-button-toggle-label-content{line-height:30px!important}"]})}}return t})();var i6=(()=>{class t{transform(e){switch(e){case lf.Canceled:return"Cancelado";case lf.Completed:return"Conclu\xEDdo";case lf.Started:return"Iniciado";default:return"Registrado"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"batchStatus",type:t,pure:!0})}}return t})();var n6=(()=>{class t{transform(e){switch(e){case Bl.Emission:return"Emiss\xE3o";case Bl.Registration:return"Registro";case Bl.EmissionRegistration:return"Emiss\xE3o/Registro";case Bl.AcademicTranscript:return"Hist\xF3rico escolar";case Bl.Curriculum:return"Curr\xEDculo escolar";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"batchType",type:t,pure:!0})}}return t})();var hgt=["batchesTable"];function fgt(t,n){t&1&&(d(0,"mat-header-cell",20),h(1,"Data de cria\xE7\xE3o"),c())}function ggt(t,n){if(t&1&&(d(0,"mat-cell",21)(1,"spa-link-button",22),h(2),ce(3,"date"),c()()),t&2){let e=n.$implicit;m(),f("routerLink",e.id),m(),U(Bt(3,2,e.creationDate,"short"))}}function _gt(t,n){t&1&&(d(0,"mat-header-cell",20),h(1,"Tipo"),c())}function vgt(t,n){if(t&1&&(d(0,"mat-cell",23),h(1),ce(2,"batchType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.type)," ")}}function bgt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function ygt(t,n){if(t&1&&(d(0,"mat-cell",23),h(1),ce(2,"batchStatus"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.status)," ")}}function xgt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Criados"),c())}function Cgt(t,n){if(t&1&&(d(0,"mat-cell",23),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.totalDegreesCreated," ")}}function Sgt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Erros"),c())}function wgt(t,n){if(t&1&&(d(0,"mat-cell",23)(1,"span",24),h(2),c()()),t&2){let e=n.$implicit;m(2),U(e.totalDegreesWithError)}}function Egt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Total"),c())}function Igt(t,n){if(t&1&&(d(0,"mat-cell",23),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.totalDegrees," ")}}function Dgt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Criador"),c())}function Tgt(t,n){if(t&1&&(d(0,"mat-cell",23),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.createdBy.name," ")}}var Hbe=(()=>{class t{constructor(e,i,r){this.batchService=e,this.router=i,this.route=r,this.loading=!1}ngOnInit(){this.dataSource=this.batchService.batches}static{this.\u0275fac=function(i){return new(i||t)(E(dc),E(lt),E(Ut))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-batch-list"]],viewQuery:function(i,r){if(i&1&&ot(hgt,5),i&2){let o;Pe(o=Ne())&&(r.batchesTable=o.first)}},decls:35,vars:4,consts:[["batchesTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-icon-button","","matTooltip","Atualizar a tabela",1,"ms-auto",3,"click"],["aria-label","Refresh"],["matSort","","matSortActive","creationDate","matSortDirection","desc",1,"centered-header-cells",3,"dataSource","disableSearch"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","creationDate"],["mat-sort-header","",4,"matHeaderCellDef"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","type"],["class","d-none d-md-flex align-items-center justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","totalDegreesCreated"],["matColumnDef","totalErrors"],["matColumnDef","totalDegrees"],["matColumnDef","createdBy"],["mat-sort-header",""],[1,"d-md-flex","justify-content-center"],["routerLinkActive","active",3,"routerLink"],[1,"d-none","d-md-flex","align-items-center","justify-content-center"],[1,"text-warn"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",1),H(1,"ngx-loading",2),d(2,"span",3),h(3," Lotes "),d(4,"button",4),$("click",function(){W(o);let s=je(8);return Y(s.refresh())}),d(5,"mat-icon",5),h(6,"refresh"),c()()(),d(7,"lac-table",6,0)(9,"div",7)(10,"div",8)(11,"h3"),h(12,"Nenhum lote cadastrado."),c()()(),he(13,9),k(14,fgt,2,0,"mat-header-cell",10)(15,ggt,4,5,"mat-cell",11),fe(),he(16,12),k(17,_gt,2,0,"mat-header-cell",10)(18,vgt,3,3,"mat-cell",13),fe(),he(19,14),k(20,bgt,2,0,"mat-header-cell",15)(21,ygt,3,3,"mat-cell",13),fe(),he(22,16),k(23,xgt,2,0,"mat-header-cell",15)(24,Cgt,2,1,"mat-cell",13),fe(),he(25,17),k(26,Sgt,2,0,"mat-header-cell",15)(27,wgt,3,1,"mat-cell",13),fe(),he(28,18),k(29,Egt,2,0,"mat-header-cell",15)(30,Igt,2,1,"mat-cell",13),fe(),he(31,19),k(32,Dgt,2,0,"mat-header-cell",15)(33,Tgt,2,1,"mat-cell",13),fe(),c()(),H(34,"router-outlet")}i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(6),f("dataSource",r.dataSource)("disableSearch",!0))},dependencies:[He,fi,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,As,_n,gn,zf,yi,rn,i6,n6],styles:[".mat-column-creationDate[_ngcontent-%COMP%]{flex:0 0 210px}"]})}}return t})();var Zbe=gc(zbe());var Jbe=gc(Ube());var Gbe=(()=>{class t{constructor(e){this.dialogService=e,this.errorCodesDontShowMessage=["user_cancelled"]}autoHandleNotInstalled(e){this.handleNotInstalled().then(i=>{i&&e.redirectToInstallPage()})}handleNotInstalled(){return this.dialogService.confirm({title:"Alerta",message:"Para continuar \xE9 preciso instalar o componente de assinatura.",confirmButtonText:"Instalar",cancelButtonText:"Cancelar",disableClose:!0})}showError(e){console.log("Web PKI error",e),this.errorCodesDontShowMessage.some(i=>i===e.code)||this.dialogService.alert(e.userMessage,"Ocorreu um erro")}static{this.\u0275fac=function(i){return new(i||t)(ae(Qi))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Cd="/api/registrations",kgt="/api/v2/registrations",Sd=(()=>{class t{constructor(e){this.http=e,this.reloadSubject=new qe,this.reloaded=this.reloadSubject.asObservable(),this.degrees={listPaginated:i=>this.list(i)}}get(e){return this.http.get(`${Cd}/${e}`)}getInfo(e){return this.http.get(`${Cd}/${e}/info`)}getAcademicDocumentationTicket(e){return this.http.get(`${Cd}/${e}/academic-documentation-ticket`)}getDegreeTicket(e){return this.http.get(`${Cd}/${e}/xml-ticket`)}getResponsibilityTermTicket(e){return this.http.get(`${Cd}/${e}/responsibility-term-ticket`)}getHistory(e){return this.http.get(`${Cd}/${e}/history`)}listPaginatedFilters(e,i){return{listPaginated:r=>{e.q&&(r.searchTerm=e.q);let o=this.http.get(`${Cd}`,{params:r.getHttpParams().append("batchId",e.batchId==null?"":e.batchId.toString()).append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString()).append("status",e.status==null?"":e.status.toString()).append("isSigned",e.isSigned==null?"":e.isSigned.toString())});return i&&(o=o.pipe(ri(i))),o}}}list(e){return this.http.get(`${Cd}`,{params:e.getHttpParams()})}getTickets(e){return this.http.post(`${Cd}/tickets`,e)}getBatch(e){return this.http.post(`${Cd}/batch`,e)}approve(e,i){return this.http.post(`${Cd}/${e}/approval`,i)}reject(e,i){return this.http.post(`${Cd}/${e}/rejection`,i)}cancel(e,i){return this.http.post(`${Cd}/${e}/cancellation`,i)}accept(e,i){return this.http.post(`${Cd}/${e}/acceptance`,i)}setNeedsReload(e){this.reloadSubject.next(e)}register(e,i){return this.http.post(`${Cd}/${e}/registration-data`,i)}validateAcademicDocFiles(e){return this.http.post(`${kgt}/academic-documentation-xmls`,e)}getRegistrationType(e){return this.http.get(`${Cd}/${e}/registration-type`)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dg="/api/emissions",Jp=(()=>{class t{constructor(e){this.http=e}listPaginatedFilters(e,i){return{listPaginated:r=>{e.q&&(r.searchTerm=e.q);let o=this.http.get(`${Dg}`,{params:r.getHttpParams().append("batchId",e.batchId==null?"":e.batchId.toString()).append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString()).append("status",e.status==null?"":e.status.toString()).append("isSigned",e.isSigned==null?"":e.isSigned.toString())});return i&&(o=o.pipe(ri(i))),o}}}create(e){return this.http.post(`${Dg}`,e)}get(e){return this.http.get(`${Dg}/${e}`)}getAcademicDocumentationTicket(e){return this.http.get(`${Dg}/${e}/academic-documentation-ticket`)}getHistory(e){return this.http.get(`${Dg}/${e}/history`)}getTickets(e){return this.http.post(`${Dg}/tickets`,e)}getBatch(e){return this.http.post(`${Dg}/batch`,e)}cancel(e,i){return this.http.post(`${Dg}/${e}/cancellation`,{reason:i})}uploadDegreeXml(e,i){return this.http.post(`${Dg}/${e}/degree-xml`,i)}getVisualRepresentationPreviewTicket(e,i){return this.http.get(`${Dg}/${e}/visual-representation/preview-ticket`,{params:new $a().set("type",i?Jr.AcademicTranscript:Jr.Degree)})}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Mgt=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fgt=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function Rgt(t,n){t&1&&(d(0,"span",3),ct(1,1),c())}function Pgt(t,n){t&1&&(d(0,"span",6),ct(1,2),c())}var Ngt=["*"];var Ogt=new ke("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})}),$be=new ke("MatChipAvatar"),qbe=new ke("MatChipTrailingIcon"),Wbe=new ke("MatChipRemove"),Kbe=new ke("MatChip"),Ybe=(()=>{class t{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(e){this._disabled=e}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(e,i){this._elementRef=e,this._parentChip=i,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this.tabIndex=-1,this._allowFocusWhenDisabled=!1,e.nativeElement.nodeName==="BUTTON"&&e.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(e){!this.disabled&&this.isInteractive&&this._isPrimary&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(e.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Kbe))}}static{this.\u0275dir=ze({type:t,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(i,r){i&1&&$("click",function(a){return r._handleClick(a)})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(xt("tabindex",r._getTabindex())("disabled",r._getDisabledAttribute())("aria-disabled",r.disabled),yt("mdc-evolution-chip__action--primary",r._isPrimary)("mdc-evolution-chip__action--presentational",!r.isInteractive)("mdc-evolution-chip__action--trailing",!r._isPrimary))},inputs:{isInteractive:"isInteractive",disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?-1:Gr(e)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},standalone:!0,features:[Ei]})}}return t})();var Lgt=0,SM=(()=>{class t{_hasFocus(){return this._hasFocusInternal}get value(){return this._value!==void 0?this._value:this._textElement.textContent.trim()}set value(e){this._value=e}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,e)}constructor(e,i,r,o,a,s,l,u){this._changeDetectorRef=e,this._elementRef=i,this._ngZone=r,this._focusMonitor=o,this._globalRippleOptions=l,this._onFocus=new qe,this._onBlur=new qe,this.role=null,this._hasFocusInternal=!1,this.id=`mat-mdc-chip-${Lgt++}`,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this.removable=!0,this.highlighted=!1,this.disableRipple=!1,this.disabled=!1,this.tabIndex=-1,this.removed=new Ae,this.destroyed=new Ae,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=Me(aL),this._document=a,this._animationsDisabled=s==="NoopAnimations",u!=null&&(this.tabIndex=parseInt(u)??-1),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){let e=this._elementRef.nativeElement;this._isBasicChip=e.hasAttribute(this.basicChipAttrName)||e.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=Cn(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!!(this.trailingIcon||this.removeIcon)}_handleKeydown(e){(e.keyCode===8&&!e.repeat||e.keyCode===46)&&(e.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(e){return this._getActions().find(i=>{let r=i._elementRef.nativeElement;return r===e||r.contains(e)})}_getActions(){let e=[];return this.primaryAction&&e.push(this.primaryAction),this.removeIcon&&e.push(this.removeIcon),this.trailingIcon&&e.push(this.trailingIcon),e}_handlePrimaryActionInteraction(){}_getTabIndex(){return this.role?this.disabled?-1:this.tabIndex:null}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{let i=e!==null;i!==this._hasFocusInternal&&(this._hasFocusInternal=i,i?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe(cn(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static{this.\u0275fac=function(i){return new(i||t)(E(Di),E(Xe),E(ht),E(ua),E(ni),E(Zn,8),E(wv,8),Sa("tabindex"))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(i,r,o){if(i&1&&(bi(o,$be,5),bi(o,qbe,5),bi(o,Wbe,5),bi(o,$be,5),bi(o,qbe,5),bi(o,Wbe,5)),i&2){let a;Pe(a=Ne())&&(r.leadingIcon=a.first),Pe(a=Ne())&&(r.trailingIcon=a.first),Pe(a=Ne())&&(r.removeIcon=a.first),Pe(a=Ne())&&(r._allLeadingIcons=a),Pe(a=Ne())&&(r._allTrailingIcons=a),Pe(a=Ne())&&(r._allRemoveIcons=a)}},viewQuery:function(i,r){if(i&1&&ot(Ybe,5),i&2){let o;Pe(o=Ne())&&(r.primaryAction=o.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:32,hostBindings:function(i,r){i&1&&$("keydown",function(a){return r._handleKeydown(a)}),i&2&&(La("id",r.id),xt("role",r.role)("tabindex",r._getTabIndex())("aria-label",r.ariaLabel),In("mat-"+(r.color||"primary")),yt("mdc-evolution-chip",!r._isBasicChip)("mdc-evolution-chip--disabled",r.disabled)("mdc-evolution-chip--with-trailing-action",r._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",r.leadingIcon)("mdc-evolution-chip--with-primary-icon",r.leadingIcon)("mdc-evolution-chip--with-avatar",r.leadingIcon)("mat-mdc-chip-with-avatar",r.leadingIcon)("mat-mdc-chip-highlighted",r.highlighted)("mat-mdc-chip-disabled",r.disabled)("mat-mdc-basic-chip",r._isBasicChip)("mat-mdc-standard-chip",!r._isBasicChip)("mat-mdc-chip-with-trailing-icon",r._hasTrailingIcon())("_mat-animation-noopable",r._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[ve.None,"aria-label","ariaLabel"],ariaDescription:[ve.None,"aria-description","ariaDescription"],value:"value",color:"color",removable:[ve.HasDecoratorInputTransform,"removable","removable",at],highlighted:[ve.HasDecoratorInputTransform,"highlighted","highlighted",at],disableRipple:[ve.HasDecoratorInputTransform,"disableRipple","disableRipple",at],disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?void 0:Gr(e)]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],standalone:!0,features:[Zt([{provide:Kbe,useExisting:t}]),Ei,Dt],ngContentSelectors:Fgt,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(i,r){i&1&&(hi(Mgt),H(0,"span",0),d(1,"span",1)(2,"span",2),k(3,Rgt,2,0,"span",3),d(4,"span",4),ct(5),H(6,"span",5),c()()(),k(7,Pgt,2,0,"span",6)),i&2&&(m(2),f("isInteractive",!1),m(),Xt(3,r.leadingIcon?3:-1),m(4),Xt(7,r._hasTrailingIcon()?7:-1))},dependencies:[Ybe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational).mdc-ripple-upgraded--background-focused:before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus:before{border-color:var(--mdc-chip-focus-outline-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary:before{border-color:var(--mdc-chip-disabled-outline-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-outline-width)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:before{border-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-selected-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-flat-disabled-selected-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-selected-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-hover-state-layer-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary .mdc-evolution-chip__ripple::after{background-color:var(--mdc-chip-selected-hover-state-layer-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:hover .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-surface--hover .mdc-evolution-chip__ripple::before{opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mat-mdc-chip-highlighted{--mdc-chip-with-icon-icon-color:var(--mdc-chip-with-icon-selected-icon-color);--mdc-chip-elevated-container-color:var(--mdc-chip-elevated-selected-container-color);--mdc-chip-label-text-color:var(--mdc-chip-selected-label-text-color);--mdc-chip-outline-width:var(--mdc-chip-flat-selected-outline-width)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color)}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color)}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-hover-state-layer-color);opacity:var(--mdc-chip-hover-state-layer-opacity)}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-hover-state-layer-color);opacity:var(--mdc-chip-selected-hover-state-layer-opacity)}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mdc-chip-selected-focus-state-layer-color);opacity:var(--mdc-chip-selected-focus-state-layer-opacity)}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mdc-chip-with-avatar-disabled-avatar-opacity)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mdc-chip-with-icon-disabled-icon-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color)}.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity)}.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity)}.mat-mdc-chip-remove::after{background:var(--mat-chip-trailing-action-state-layer-color)}.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity)}.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity)}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background:var(--mat-chip-selected-trailing-action-state-layer-color)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity)*var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-opacity))}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-2px;bottom:-2px;left:6px;right:6px;border-radius:50%}.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return t})();var r6=(()=>{class t{get chipFocusChanges(){return this._getChipStream(e=>e._onFocus)}get chipDestroyedChanges(){return this._getChipStream(e=>e.destroyed)}get chipRemovedChanges(){return this._getChipStream(e=>e.removed)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._syncChipsState()}get empty(){return!this._chips||this._chips.length===0}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(e){this._explicitRole=e}get focused(){return this._hasFocusedChip()}constructor(e,i,r){this._elementRef=e,this._changeDetectorRef=i,this._dir=r,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new qe,this._defaultRole="presentation",this._disabled=!1,this.tabIndex=0,this._explicitRole=null,this._chipActions=new js}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(e=>e._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(e=>{e.disabled=this._disabled,e._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(e){this._originatesFromChip(e)&&this._keyManager.onKeydown(e)}_isValidIndex(e){return e>=0&&ethis.tabIndex=e)}}_getChipStream(e){return this._chips.changes.pipe(kn(null),Wi(()=>Cn(...this._chips.map(e))))}_originatesFromChip(e){let i=e.target;for(;i&&i!==this._elementRef.nativeElement;){if(i.classList.contains("mat-mdc-chip"))return!0;i=i.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe(kn(this._chips)).subscribe(e=>{let i=[];e.forEach(r=>r._getActions().forEach(o=>i.push(o))),this._chipActions.reset(i),this._chipActions.notifyOnChanges()}),this._keyManager=new Ep(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(e=>this._skipPredicate(e)),this.chipFocusChanges.pipe(Ft(this._destroyed)).subscribe(({chip:e})=>{let i=e._getSourceAction(document.activeElement);i&&this._keyManager.updateActiveItem(i)}),this._dir?.change.pipe(Ft(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e))}_skipPredicate(e){return!e.isInteractive||e.disabled}_trackChipSetChanges(){this._chips.changes.pipe(kn(null),Ft(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe(Ft(this._destroyed)).subscribe(e=>{let r=this._chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&e.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=r)})}_redirectDestroyedChipFocus(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){let e=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),i=this._chips.toArray()[e];i.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():i.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static{this.\u0275fac=function(i){return new(i||t)(E(Xe),E(Di),E(Kr,8))}}static{this.\u0275cmp=oe({type:t,selectors:[["mat-chip-set"]],contentQueries:function(i,r,o){if(i&1&&bi(o,SM,5),i&2){let a;Pe(a=Ne())&&(r._chips=a)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(i,r){i&1&&$("keydown",function(a){return r._handleKeydown(a)}),i&2&&xt("role",r.role)},inputs:{disabled:[ve.HasDecoratorInputTransform,"disabled","disabled",at],role:"role",tabIndex:[ve.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>e==null?0:Gr(e)]},standalone:!0,features:[Ei,Dt],ngContentSelectors:Ngt,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(i,r){i&1&&(hi(),d(0,"div",0),ct(1),c())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}}return t})();var Xbe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({providers:[Dp,{provide:Ogt,useValue:{separatorKeyCodes:[13]}}],imports:[ki,jd,ki]})}}return t})();function Vgt(t,n){t&1&&(d(0,"span"),h(1," do diploma"),c())}function Bgt(t,n){t&1&&(d(0,"span"),h(1," do hist\xF3rico escolar"),c())}function jgt(t,n){t&1&&(d(0,"span"),h(1," do curr\xEDculo escolar"),c())}function Hgt(t,n){if(t&1&&(d(0,"h2"),h(1,"Baixar documentos "),k(2,Vgt,2,0,"span",4)(3,Bgt,2,0,"span",4)(4,jgt,2,0,"span",4),c()),t&2){let e=S();m(2),f("ngIf",e.type!=e.Types.AcademicTranscript&&e.type!=e.Types.Curriculum),m(),f("ngIf",e.type==e.Types.AcademicTranscript),m(),f("ngIf",e.type==e.Types.Curriculum)}}function zgt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getVisualRepresentation,r)||(o.getVisualRepresentation=r),Y(r)}),h(1," Representa\xE7\xE3o Visual "),c()}if(t&2){let e=S(2);en("ngModel",e.getVisualRepresentation)}}function Ugt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getDegree,r)||(o.getDegree=r),Y(r)}),h(1," Diploma "),c()}if(t&2){let e=S(2);en("ngModel",e.getDegree)}}function Ggt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getAcademicDocumentation,r)||(o.getAcademicDocumentation=r),Y(r)}),h(1," Documenta\xE7\xE3o Acad\xEAmica "),c()}if(t&2){let e=S(2);en("ngModel",e.getAcademicDocumentation)}}function $gt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getLetterheadVisualRepresentation,r)||(o.getLetterheadVisualRepresentation=r),Y(r)}),h(1," Representa\xE7\xE3o Visual timbrada "),c()}if(t&2){let e=S(2);en("ngModel",e.getLetterheadVisualRepresentation)}}function qgt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getAcademicTranscript,r)||(o.getAcademicTranscript=r),Y(r)}),h(1," Hist\xF3rico Escolar "),c()}if(t&2){let e=S(2);en("ngModel",e.getAcademicTranscript)}}function Wgt(t,n){if(t&1){let e=ie();d(0,"mat-checkbox",13),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.getCurriculum,r)||(o.getCurriculum=r),Y(r)}),h(1," Curr\xEDculo Escolar "),c()}if(t&2){let e=S(2);en("ngModel",e.getCurriculum)}}function Ygt(t,n){t&1&&(d(0,"h3",26),h(1,"Diplomas:"),c())}function Kgt(t,n){t&1&&(d(0,"h3",26),h(1,"Hist\xF3ricos Escolares:"),c())}function Xgt(t,n){t&1&&(d(0,"h3",26),h(1,"Curr\xEDculos Escolares:"),c())}function Qgt(t,n){if(t&1&&(d(0,"mat-chip",27),h(1),c()),t&2){let e=S(3);m(),U(e.totalDegrees)}}function Zgt(t,n){if(t&1&&(d(0,"mat-chip",27),h(1),c()),t&2){let e=S(3);m(),Do("",e.downloadsConcluded," / ",e.totalDegrees,"")}}function Jgt(t,n){t&1&&H(0,"mat-header-cell",10)}function e0t(t,n){if(t&1&&(he(0),H(1,"mat-spinner",31),fe()),t&2){let e=S().$implicit;m(),f("diameter",20)("matTooltip",e.resultTooltip)}}function t0t(t,n){if(t&1&&(he(0),d(1,"mat-icon",32),h(2,"done"),c(),fe()),t&2){let e=S().$implicit;m(),f("matTooltip",e.resultTooltip)}}function i0t(t,n){if(t&1&&(he(0),d(1,"mat-icon",33),h(2,"hourglass_empty"),c(),fe()),t&2){let e=S().$implicit;m(),f("matTooltip",e.resultTooltip)}}function n0t(t,n){t&1&&(he(0),d(1,"mat-icon",34),h(2,"warning"),c(),fe())}function r0t(t,n){t&1&&(he(0),d(1,"mat-icon",35),h(2,"error"),c(),fe())}function o0t(t,n){t&1&&(he(0),d(1,"mat-icon"),h(2,"arrow_right"),c(),fe())}function a0t(t,n){if(t&1&&(d(0,"mat-cell",10),he(1,28),k(2,e0t,2,2,"ng-container",29)(3,t0t,3,1,"ng-container",29)(4,i0t,3,1,"ng-container",29)(5,n0t,3,0,"ng-container",29)(6,r0t,3,0,"ng-container",29)(7,o0t,3,0,"ng-container",30),fe(),c()),t&2){let e=n.$implicit,i=S(3);m(),f("ngSwitch",e.result),m(),f("ngSwitchCase",i.BatchItemResult.Processing),m(),f("ngSwitchCase",i.BatchItemResult.Success),m(),f("ngSwitchCase",i.BatchItemResult.Waiting),m(),f("ngSwitchCase",i.BatchItemResult.Warning),m(),f("ngSwitchCase",i.BatchItemResult.Error)}}function s0t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Nome"),c())}function l0t(t,n){if(t&1&&(d(0,"li",41)(1,"small",42),h(2),c()()),t&2){let e=S().$implicit;m(2),U(e.resultTooltip)}}function c0t(t,n){if(t&1&&(d(0,"mat-cell")(1,"ul")(2,"li"),h(3),c(),k(4,l0t,3,1,"li",40),c()()),t&2){let e=n.$implicit,i=S(4);m(3),U(e.studentName),m(),f("ngIf",e.result==i.BatchItemResult.Warning||e.result==i.BatchItemResult.Error)}}function d0t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function u0t(t,n){if(t&1&&(d(0,"mat-cell")(1,"ul")(2,"li"),h(3),ce(4,"cpf"),c()()()),t&2){let e=n.$implicit;m(3),U(xe(4,1,e.studentCpf))}}function m0t(t,n){t&1&&(he(0)(1,36),k(2,s0t,2,0,"mat-header-cell",37)(3,c0t,5,2,"mat-cell",38),fe(),he(4,39),k(5,d0t,2,0,"mat-header-cell",37)(6,u0t,5,3,"mat-cell",38),fe()())}function p0t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo"),c())}function h0t(t,n){if(t&1&&(d(0,"li",41)(1,"small",42),h(2),c()()),t&2){let e=S().$implicit;m(2),U(e.resultTooltip)}}function f0t(t,n){if(t&1&&(d(0,"mat-cell")(1,"ul")(2,"li"),h(3),c(),k(4,h0t,3,1,"li",40),c()()),t&2){let e=n.$implicit,i=S(4);m(3),U(e.code),m(),f("ngIf",e.result==i.BatchItemResult.Warning||e.result==i.BatchItemResult.Error)}}function g0t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Nome da IES"),c())}function _0t(t,n){if(t&1&&(d(0,"mat-cell")(1,"ul")(2,"li"),h(3),c()()()),t&2){let e=n.$implicit;m(3),U(e.iesName)}}function v0t(t,n){t&1&&(he(0)(1,43),k(2,p0t,2,0,"mat-header-cell",37)(3,f0t,5,2,"mat-cell",38),fe(),he(4,44),k(5,g0t,2,0,"mat-header-cell",37)(6,_0t,4,1,"mat-cell",38),fe()())}function b0t(t,n){t&1&&H(0,"mat-header-row")}function y0t(t,n){t&1&&H(0,"mat-row")}function x0t(t,n){if(t&1&&(d(0,"div",14)(1,"div",15),k(2,Ygt,2,0,"h3",16)(3,Kgt,2,0,"h3",16)(4,Xgt,2,0,"h3",16),d(5,"mat-chip-set",17),k(6,Qgt,2,1,"mat-chip",18)(7,Zgt,2,2,"mat-chip",18),c()(),d(8,"lac-table",19),he(9,20),k(10,Jgt,1,0,"mat-header-cell",21)(11,a0t,8,6,"mat-cell",22),fe(),k(12,m0t,7,0,"ng-container",4)(13,v0t,7,0,"ng-container",4),H(14,"div",23),k(15,b0t,1,0,"mat-header-row",24)(16,y0t,1,0,"mat-row",25),c()()),t&2){let e=S(2);m(2),f("ngIf",e.type!=e.Types.AcademicTranscript&&e.type!=e.Types.Curriculum),m(),f("ngIf",e.type==e.Types.AcademicTranscript),m(),f("ngIf",e.type==e.Types.Curriculum),m(2),f("ngIf",!e.isInputDisabled),m(),f("ngIf",e.isInputDisabled),m(),f("matSortActive",e.type!=e.Types.Curriculum?"name":"code")("dataSource",e.items),m(4),f("ngIf",e.type!=e.Types.Curriculum),m(),f("ngIf",e.type==e.Types.Curriculum),m(2),f("matHeaderRowDef",e.columnsToDisplay)("matHeaderRowDefSticky",!0),m(),f("matRowDefColumns",e.columnsToDisplay)}}function C0t(t,n){if(t&1){let e=ie();d(0,"div",5)(1,"div",6)(2,"p",7),h(3,"Escolha os documentos a serem baixados:"),c()(),d(4,"div",8),k(5,zgt,2,1,"mat-checkbox",9)(6,Ugt,2,1,"mat-checkbox",9)(7,Ggt,2,1,"mat-checkbox",9)(8,$gt,2,1,"mat-checkbox",9)(9,qgt,2,1,"mat-checkbox",9)(10,Wgt,2,1,"mat-checkbox",9),c(),d(11,"div",10)(12,"button",11),$("click",function(){W(e);let r=S();return Y(r.downloadBatch())}),d(13,"mat-icon"),h(14,"get_app"),c(),h(15," Baixar "),c()()(),k(16,x0t,17,12,"div",12)}if(t&2){let e=S();f("hidden",e.isInputDisabled),m(5),f("ngIf",e.type!=e.Types.Emission&&e.type!=e.Types.Registration),m(),f("ngIf",e.type==e.Types.Degree||e.type==e.Types.Registration),m(),f("ngIf",e.type!=e.Types.AcademicTranscript&&e.type!=e.Types.Curriculum),m(),f("ngIf",e.type==e.Types.Degree),m(),f("ngIf",e.type!=e.Types.Registration&&e.type!=e.Types.Curriculum),m(),f("ngIf",e.type==e.Types.Curriculum),m(2),f("disabled",!(e.getVisualRepresentation||e.getDegree||e.getAcademicDocumentation||e.getLetterheadVisualRepresentation||e.getAcademicTranscript||e.getCurriculum)),m(4),f("ngIf",e.items)}}function S0t(t,n){if(t&1){let e=ie();d(0,"button",45),$("click",function(){W(e);let r=S();return Y(r.close())}),h(1,"Concluir"),c()}}var Tg=(()=>{class t{get numberOfFilesToDownload(){let e=0;return this.getVisualRepresentation&&e++,this.getDegree&&e++,this.getAcademicDocumentation&&e++,this.getLetterheadVisualRepresentation&&e++,this.getAcademicTranscript&&e++,this.getCurriculum&&e++,e}constructor(e,i,r,o,a,s,l,u,p,g,_,v){switch(this.ngZone=e,this.webPkiService=i,this.logger=r,this.messageService=o,this.dialogRef=s,this.dialogService=l,this.degreeService=u,this.registrationService=p,this.emissionService=g,this.academicTranscriptService=_,this.curriculumService=v,this.BatchItemResult=Gx,this.Types=Pt,this.columnsToDisplay=["result"],this.downloadsConcluded=0,this.items=[],this.type=Pt.Degree,this.isInputDisabled=!1,this.isProcessingBatch=!1,this.dataChanged=!1,this.getVisualRepresentation=!1,this.getDegree=!1,this.getAcademicDocumentation=!1,this.getLetterheadVisualRepresentation=!1,this.getAcademicTranscript=!1,this.getCurriculum=!1,this.isLoading=!1,this.nextDegreeIndexToProcess=new qe,this.pki=new Zbe.default(Ye.webPki.license),this.pkiStarted=!1,this.$toUnsubscribe=[],this.onWebPkiReady=()=>{this.isLoading=!1},this.onWebPkiError=y=>{this.webPkiService.showError(y),this.isLoading=!1},this.onWebPkiNotInstalled=()=>{this.isLoading=!1,this.webPkiService.autoHandleNotInstalled(this.pki)},this.totalDegrees=a.totalDegrees,this.items=a.selected,this.type=a.type,this.type){case Pt.Registration:this.degreeSearchParams=a.degreeSearchParams;break;case Pt.Emission:this.degreeSearchParams=a.degreeSearchParams;break;case Pt.AcademicTranscript:this.degreeSearchParams=a.degreeSearchParams;break;case Pt.Curriculum:this.degreeSearchParams=a.degreeSearchParams,this.columnsToDisplay.push("code","iesName");break;default:this.degreeSearchParams=a.degreeSearchParams;break}this.type!=Pt.Curriculum&&this.columnsToDisplay.push("name","cpf"),this.allDegreesSelected=a.allDegreesSelected}ngOnInit(){this.startPki()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}startPki(){this.pkiStarted||(this.isLoading=!0,this.pki.init({ready:this.onWebPkiReady,ngZone:this.ngZone,notInstalled:this.onWebPkiNotInstalled,defaultFail:this.onWebPkiError,requiredApiVersion:"1.6.1"}),this.pkiStarted=!0)}configureStartProcessingBatch(){this.isInputDisabled=!0,this.dataChanged=!0}configureFinishProcessingBatch(){this.isProcessingBatch=!1,this.isInputDisabled=!1}getBatchItems(){switch(this.type){case Pt.Registration:return this.registrationService.getBatch(this.degreeSearchParams);case Pt.Emission:return this.emissionService.getBatch(this.degreeSearchParams);case Pt.AcademicTranscript:return this.academicTranscriptService.getBatch(this.degreeSearchParams);case Pt.Curriculum:return this.curriculumService.getBatch(this.degreeSearchParams);default:return this.degreeService.getDegreeBatch(this.degreeSearchParams)}}downloadBatch(){this.pki.showFolderBrowser({message:"Escolha uma pasta"}).success(e=>{e.userCancelled?this.configureFinishProcessingBatch():(this.folderId=e.folderId,this.configureStartProcessingBatch(),this.initBatchProcess(),this.allDegreesSelected?(this.isLoading=!0,this.getBatchItems().subscribe(i=>{this.items=i,this.totalDegrees=i.length,this.isLoading=!1,this.startDownloadBatch()},i=>this.isLoading=!1)):this.startDownloadBatch())}).fail(e=>{this.configureFinishProcessingBatch(),this.messageService.showError("A pasta n\xE3o p\xF4de ser selecionada"),this.logger.logError("Error selecting folder",e)})}getTickets(e){switch(this.type){case Pt.Registration:return this.registrationService.getTickets(e);case Pt.Emission:return this.emissionService.getTickets(e);case Pt.AcademicTranscript:return this.academicTranscriptService.getTickets(e);case Pt.Curriculum:return this.curriculumService.getTickets(e);default:return this.degreeService.getDegreeTickets(e)}}startDownloadBatch(){return Mt(this,null,function*(){let e=100;this.isLoading=!0,this.batchTickets=[];for(let i=0;ia.id),getVisualRepresentation:this.getVisualRepresentation,getDegree:this.getDegree,getAcademicDocumentation:this.getAcademicDocumentation,getLetterheadVisualRepresentation:this.getLetterheadVisualRepresentation,getAcademicTranscript:this.getAcademicTranscript,getCurriculum:this.getCurriculum};try{(yield this.getTickets(o).toPromise()).degrees.forEach(s=>this.batchTickets.push(s)),this.isProcessingBatch||(this.isProcessingBatch=!0,this.isLoading=!1,this.nextDegreeIndexToProcess.next(0))}catch(a){this.logger.logError(a),this.isLoading=!1}}})}initBatchProcess(){this.$toUnsubscribe.push(this.nextDegreeIndexToProcess.subscribe(e=>{e{if(i.downloads.push(a),i.downloads.length==this.numberOfFilesToDownload){if(i.downloads.every(s=>s.success))i.result=Gx.Success,i.resultTooltip="Baixado";else{i.downloads.every(l=>!l.success)?i.result=Gx.Error:i.result=Gx.Warning;let s=i.downloads.filter(l=>!l.success);i.resultTooltip=s.map(l=>"Erro ao baixar arquivo "+l.type).join(`\r `)}this.nextDegreeIndexToProcess.next(e+1)}});let o=this.batchTickets[e];this.getDegree&&this.downloadFileToFolder(r,o.degreeTicket,Ob.Xml),this.getVisualRepresentation&&this.downloadFileToFolder(r,o.visualRepresentationTicket,Ob.VisualRepresentation),this.getAcademicDocumentation&&this.downloadFileToFolder(r,o.academicDocumentationTicket,Ob.AcademicDocumentation),this.getLetterheadVisualRepresentation&&this.downloadFileToFolder(r,o.letterheadVisualRepresentationTicket,Ob.LetterheadVisualRepresentation),this.getAcademicTranscript&&this.downloadFileToFolder(r,o.academicTranscriptTicket,Ob.AcademicTranscript),this.getCurriculum&&this.downloadFileToFolder(r,o.curriculumTicket,Ob.Curriculum)}downloadFileToFolder(e,i,r){this.pki.downloadToFolder({folderId:this.folderId,url:i.location,filename:i.filename}).success(()=>{this.logger.logTrace("Downloaded document",i),e.next({success:!0,type:r})}).fail(o=>{this.logger.logError("Download error for file "+i.location,o),e.next({success:!1,type:r})})}close(){this.isProcessingBatch?this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:"Tem certeza de que deseja interromper o download do lote de documentos?",confirmButtonText:"Sim",cancelButtonText:"N\xE3o",confirmButtonColor:"warn"}).then(e=>{e&&this.dialogRef.close(this.dataChanged)}):this.dialogRef.close(this.dataChanged)}static{this.\u0275fac=function(i){return new(i||t)(E(ht),E(Gbe),E($t),E(Bi),E(mr),E(Qr),E(Qi),E(Jo),E(Sd),E(Jp),E(Qp),E(Cg))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-degree-documents-download"]],decls:7,vars:5,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],["bodyClasses","dialog-documents-degree-download loader-container",3,"onCloseButtonClick","titleTemplate","contentTemplate","actionsTemplate","isLoading","disableActions"],[4,"ngIf"],[3,"hidden"],[1,"text-center"],[1,"mb-0"],[1,"row","documents-checkboxes"],["class","col-lg-4 col-md-6 col-12",3,"ngModel","ngModelChange",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-flat-button","","color","primary","tabindex","-1",3,"click","disabled"],["class","batch-table",4,"ngIf"],[1,"col-lg-4","col-md-6","col-12",3,"ngModelChange","ngModel"],[1,"batch-table"],[1,"d-flex"],["class","text-primary align-self-center",4,"ngIf"],[1,"ms-auto"],["class","badge",4,"ngIf"],["initialPageSize","10","matSort","","matSortDirection","desc","disableSearch","true",1,"compact-header",3,"matSortActive","dataSource"],["matColumnDef","result"],["class","d-flex justify-content-center",4,"matHeaderCellDef"],["class","d-flex justify-content-center",4,"matCellDef"],["lac-table-empty","",1,"p-4","mt-4"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[4,"matRowDef","matRowDefColumns"],[1,"text-primary","align-self-center"],[1,"badge"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"diameter","matTooltip"],[1,"text-success",3,"matTooltip"],[3,"matTooltip"],[1,"text-warning"],[1,"text-error"],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","cpf"],["class","text-warn",4,"ngIf"],[1,"text-warn"],[2,"white-space","pre-line"],["matColumnDef","code"],["matColumnDef","iesName"],["mat-flat-button","","color","primary",3,"click"]],template:function(i,r){if(i&1){let o=ie();d(0,"app-dialog-template",3),$("onCloseButtonClick",function(){return W(o),Y(r.close())}),c(),k(1,Hgt,5,3,"ng-template",null,0,Ii)(3,C0t,17,9,"ng-template",null,1,Ii)(5,S0t,2,0,"ng-template",null,2,Ii)}if(i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.isLoading)("disableActions",!r.isInputDisabled||r.isProcessingBatch||r.isLoading)}},dependencies:[Ee,vs,rl,v3,it,Va,He,Ze,pw,Co,zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,dr,Xr,yi,SM,r6,Uo,Zo]})}}return t})();var mJ=gc(yp());var uu="/api/reports",SI=(()=>{class t{constructor(e){this.http=e}getFileTypeParam(e){return`fileType=${e}`}getDegreeReportDownloadTicketBySelection(e,i){return this.http.post(`${uu}/degrees?${this.getFileTypeParam(i)}`,e)}getDegreeReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/degrees/date?${this.getFileTypeParam(i)}`,e)}getEmissionReportDownloadTicketBySelection(e,i){return this.http.post(`${uu}/emissions?${this.getFileTypeParam(i)}`,e)}getEmissionReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/emissions/date?${this.getFileTypeParam(i)}`,e)}getRegistrationReportDownloadTicketBySelection(e,i){return this.http.post(`${uu}/registrations?${this.getFileTypeParam(i)}`,e)}getRegistrationReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/registrations/date?${this.getFileTypeParam(i)}`,e)}getAcademicTranscriptReportDownloadTicketBySelection(e,i){return this.http.post(`${uu}/academic-transcripts?${this.getFileTypeParam(i)}`,e)}getAcademicTranscriptReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/academic-transcripts/date?${this.getFileTypeParam(i)}`,e)}getCurriculumReportDownloadTicketBySelection(e,i){return this.http.post(`${uu}/curriculums?${this.getFileTypeParam(i)}`,e)}getCurriculumReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/curriculums/date?${this.getFileTypeParam(i)}`,e)}getEventReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/events/date?${this.getFileTypeParam(i)}`,e)}getRestampsReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/restamps/date?${this.getFileTypeParam(i)}`,e)}getInstanceRestampsReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/organizations/restamps/date?${this.getFileTypeParam(i)}`,e)}getOrganizationDegreesReportDownloadTicket(e,i,r){return this.http.post(`${uu}/organizations/${e}?${this.getFileTypeParam(r)}`,i)}getInstanceDocumentsReportDownloadTicketByDate(e,i){return this.http.post(`${uu}/documents/date?${this.getFileTypeParam(i)}`,e)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var w0t=gc(yp(),1),eye=gc(yp(),1),eC=eye.default||w0t,E0t=new ke("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:I0t});function I0t(){return{useUtc:!1}}function D0t(t,n){let e=Array(t);for(let i=0;i{class t extends Us{constructor(e,i){super(),this._options=i,this.setLocale(e||eC.locale())}setLocale(e){super.setLocale(e);let i=eC.localeData(e);this._localeData={firstDayOfWeek:i.firstDayOfWeek(),longMonths:i.months(),shortMonths:i.monthsShort(),dates:D0t(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:i.weekdays(),shortDaysOfWeek:i.weekdaysShort(),narrowDaysOfWeek:i.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return e=="long"?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return e=="long"?this._localeData.longDaysOfWeek:e=="short"?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,i,r){let o=this._createMoment({year:e,month:i,date:r}).locale(this.locale);return o.isValid(),o}today(){return this._createMoment().locale(this.locale)}parse(e,i){return e&&typeof e=="string"?this._createMoment(e,i,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,i){return e=this.clone(e),this.isValid(e),e.format(i)}addCalendarYears(e,i){return this.clone(e).add({years:i})}addCalendarMonths(e,i){return this.clone(e).add({months:i})}addCalendarDays(e,i){return this.clone(e).add({days:i})}toIso8601(e){return this.clone(e).format()}deserialize(e){let i;if(e instanceof Date)i=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if(typeof e=="string"){if(!e)return null;i=this._createMoment(e,eC.ISO_8601).locale(this.locale)}return i&&this.isValid(i)?this._createMoment(i).locale(this.locale):super.deserialize(e)}isDateInstance(e){return eC.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return eC.invalid()}_createMoment(e,i,r){let{strict:o,useUtc:a}=this._options||{};return a?eC.utc(e,i,r,o):eC(e,i,r,o)}static{this.\u0275fac=function(i){return new(i||t)(ae(YS,8),ae(E0t,8))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac})}}return t})(),iye={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};var cJ=gc(yp());var o6=(()=>{class t{get startDate(){return this._startDate}set startDate(e){this._startDate=e,(this.dateRange.endDate||this.dateRange.endDate||this.startDate.isAfter(this.todayDate))&&(this.startDate>this.endDate||this.dateRange.startDate>this.dateRange.endDate?this.endDate=this.startDate:this.startDate>this.dateRange.endDate&&(this._startDate=(0,cJ.default)(this.dateRange.endDate).startOf("month"))),this.dateRange.startDate=this._startDate}get endDate(){return this._endDate}set endDate(e){this._endDate=e,this.dateRange.endDate=this._endDate}constructor(){this.todayDate=(0,cJ.default)().startOf("day")}ngOnInit(){this.dateRange.startDate==null?this.startDate=this.todayDate.clone().startOf("month"):this.startDate=this.dateRange.startDate,this.dateRange.endDate==null?this.endDate=this.todayDate.clone().startOf("day"):this.endDate=this.dateRange.endDate}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-date-range-picker"]],inputs:{dateRange:"dateRange",disableMax:"disableMax"},features:[Zt([{provide:Us,useClass:tye,deps:[YS]},{provide:jh,useValue:iye}])],decls:11,vars:9,consts:[["startDatePicker",""],["endDatePicker",""],[1,"col-12","col-sm-6"],["matInput","","readonly","","placeholder","Data inicial",1,"pointer",3,"click","ngModelChange","matDatepicker","max","ngModel"],["matSuffix","",3,"for"],["matInput","","readonly","","placeholder","Data final",1,"pointer",3,"click","ngModelChange","matDatepicker","min","max","ngModel"]],template:function(i,r){if(i&1){let o=ie();he(0),d(1,"mat-form-field",2)(2,"input",3),$("click",function(){W(o);let s=je(5);return Y(s.open())}),tn("ngModelChange",function(s){return W(o),nn(r.startDate,s)||(r.startDate=s),Y(s)}),c(),H(3,"mat-datepicker-toggle",4)(4,"mat-datepicker",null,0),c(),d(6,"mat-form-field",2)(7,"input",5),$("click",function(){W(o);let s=je(10);return Y(s.open())}),tn("ngModelChange",function(s){return W(o),nn(r.endDate,s)||(r.endDate=s),Y(s)}),c(),H(8,"mat-datepicker-toggle",4)(9,"mat-datepicker",null,1),c(),fe()}if(i&2){let o=je(5),a=je(10);m(2),f("matDatepicker",o)("max",r.disableMax?null:r.todayDate),en("ngModel",r.startDate),m(),f("for",o),m(4),f("matDatepicker",a)("min",r.startDate)("max",r.disableMax?null:r.todayDate),en("ngModel",r.endDate),m(),f("for",a)}},dependencies:[Gt,it,Va,Wt,bt,ZS,Rb,vg,Lx]})}}return t})();var wI=(()=>{class t{transform(e){switch(e){case rm.Xlsx:return"Planilha";case rm.Pdf:return"PDF";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"reportFileType",type:t,pure:!0})}}return t})();var EI=(()=>{class t{transform(e){switch(e){case _d.Degree:return"Diploma";case _d.AcademicDocumentation:return"Documenta\xE7\xE3o acad\xEAmica";case _d.Registration:return"Registro";case _d.AcademicTranscript:return"Hist\xF3rico escolar";case _d.Curriculum:return"Curr\xEDculo escolar";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"documentType",type:t,pure:!0})}}return t})();var a6=(()=>{class t{transform(e){switch(e){case d_.Restamped:return"Renotarizado";case d_.NonRestamped:return"N\xE3o renotarizado";case d_.WithError:return"Com erro";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"restampStatus",type:t,pure:!0})}}return t})();var s6=(()=>{class t{transform(e){switch(e){case u_.RestampDate:return"Data da renotariza\xE7\xE3o";case u_.ExpiringDate:return"Data de expira\xE7\xE3o";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"restampFilterFields",type:t,pure:!0})}}return t})();function T0t(t,n){if(t&1&&(d(0,"h2"),h(1),c()),t&2){let e=S();m(),U(e.dialogTitle)}}function A0t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"reportFileType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function k0t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),c()),t&2){let e=n.$implicit;f("value",e.id),m(),ue("",e.name," ")}}function M0t(t,n){if(t&1){let e=ie();d(0,"mat-form-field",3)(1,"mat-label"),h(2,"Organiza\xE7\xE3o"),c(),d(3,"mat-select",17),tn("ngModelChange",function(r){W(e);let o=S(3);return nn(o.subscriptionIds,r)||(o.subscriptionIds=r),Y(r)}),$("selectionChange",function(r){W(e);let o=S(3);return Y(o.onOrganizationSelectionChange(r.value))}),d(4,"mat-option")(5,"mat-icon",16),h(6,"cancel"),c(),h(7,"Nenhuma "),c(),k(8,k0t,2,2,"mat-option",5),c()()}if(t&2){let e=S(3);m(3),en("ngModel",e.subscriptionIds),m(5),f("ngForOf",e.subscriptions)}}function F0t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"restampStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function R0t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"documentType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function P0t(t,n){if(t&1){let e=ie();d(0,"div"),k(1,M0t,9,2,"mat-form-field",7),d(2,"div",14)(3,"mat-form-field",15)(4,"mat-label"),h(5,"Status"),c(),d(6,"mat-select",4),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.status,r)||(o.status=r),Y(r)}),d(7,"mat-option")(8,"mat-icon",16),h(9,"cancel"),c(),h(10,"Nenhum "),c(),k(11,F0t,3,4,"mat-option",5),c()(),d(12,"mat-form-field",15)(13,"mat-label"),h(14,"Tipo do documento"),c(),d(15,"mat-select",17),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.documentType,r)||(o.documentType=r),Y(r)}),$("selectionChange",function(r){W(e);let o=S(2);return Y(o.onDocumentTypeChange(r.value))}),d(16,"mat-option")(17,"mat-icon",16),h(18,"cancel"),c(),h(19,"Nenhum "),c(),k(20,R0t,3,4,"mat-option",5),c()()()()}if(t&2){let e=S(2);m(),f("ngIf",e.inSysAdminArea),m(5),en("ngModel",e.status),m(5),f("ngForOf",e.RestampStatus),m(4),en("ngModel",e.documentType),m(5),f("ngForOf",e.DocumentTypes)}}function N0t(t,n){if(t&1){let e=ie();d(0,"mat-form-field",3)(1,"input",18),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.searchTerm,r)||(o.searchTerm=r),Y(r)}),c()()}if(t&2){let e=S(2);m(),f("placeholder",e.searchPlaceholder),en("ngModel",e.searchTerm)}}function O0t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"restampFilterFields"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function L0t(t,n){if(t&1&&(d(0,"mat-form-field",15)(1,"mat-label"),h(2,"Campo de data a ser filtrado"),c(),d(3,"mat-select",19)(4,"mat-option")(5,"mat-icon",16),h(6,"cancel"),c(),h(7,"Nenhum "),c(),k(8,O0t,3,4,"mat-option",5),c()()),t&2){let e=S(2);m(8),f("ngForOf",e.RestampFilterFields)}}function V0t(t,n){t&1&&(d(0,"p",22),h(1,"Nenhum item selecionado"),c())}function B0t(t,n){if(t&1&&(d(0,"p",22),h(1),c()),t&2){let e=S(3);m(),U(e.selectedIds.length+(e.selectedIds.length==1?" item selecionado":" itens selecionados"))}}function j0t(t,n){if(t&1){let e=ie();d(0,"div"),H(1,"hr"),d(2,"h3",8),h(3,"Relat\xF3rio por sele\xE7\xE3o"),c(),d(4,"div",9),k(5,V0t,2,0,"p",20)(6,B0t,2,1,"p",20),d(7,"button",21),$("click",function(){W(e);let r=S(2);return Y(r.generateReportBySelection())}),h(8,"Gerar relat\xF3rio"),c()()()}if(t&2){let e=S(2);m(5),f("ngIf",e.selectedIds.length==0),m(),f("ngIf",e.selectedIds.length>0),m(),f("disabled",e.selectedIds.length==0)}}function H0t(t,n){if(t&1){let e=ie();d(0,"mat-form-field",3)(1,"mat-label"),h(2,"Tipo de arquivo"),c(),d(3,"mat-select",4),tn("ngModelChange",function(r){W(e);let o=S();return nn(o.fileType,r)||(o.fileType=r),Y(r)}),k(4,A0t,3,4,"mat-option",5),c()(),k(5,P0t,21,5,"div",6)(6,N0t,2,2,"mat-form-field",7),d(7,"h3",8),h(8,"Relat\xF3rio por per\xEDodo"),c(),d(9,"div",9),k(10,L0t,9,1,"mat-form-field",10),d(11,"app-date-range-picker",11),tn("dateRangeChange",function(r){W(e);let o=S();return nn(o.dateRange,r)||(o.dateRange=r),Y(r)}),c(),d(12,"button",12),$("click",function(){W(e);let r=S();return Y(r.generateReportByDate())}),h(13,"Gerar relat\xF3rio"),c()(),k(14,j0t,9,3,"div",6)}if(t&2){let e=S();m(3),en("ngModel",e.fileType),m(),f("ngForOf",e.fileTypes),m(),f("ngIf",e.type==e.OperationTypes.Restamp),m(),f("ngIf",e.type==e.OperationTypes.Event||e.type==e.OperationTypes.Restamp),m(4),f("ngIf",e.type==e.OperationTypes.Restamp),m(),en("dateRange",e.dateRange),f("disableMax",e.disableMax),m(3),f("ngIf",e.type!=e.OperationTypes.Event&&e.type!=e.OperationTypes.Restamp)}}var lm=(()=>{class t{constructor(e,i,r){this.reportService=i,this.subscriptionService=r,this.RestampStatus=Object.keys(d_),this.RestampFilterFields=Object.keys(u_),this.DocumentTypes=Object.keys(_d),this.OperationTypes=Pt,this.fileTypes=Object.keys(rm),this.fileType=rm.Xlsx,this.subscriptions=[],this.inSysAdminArea=e.inSysAdminArea,this.selectedIds=e.selectedIds,this.type=e.type,this.searchTerm=e.searchTerm,this.documentTypes=e.documentTypes,this.status=e.status,this.restampFilterField=e.restampFilterField,this.subscriptionIds=e.subscriptionIds,this.dateRange={startDate:e.startDate?(0,mJ.default)(e.startDate):null,endDate:e.endDate?(0,mJ.default)(e.endDate):null}}ngOnInit(){switch(this.type){case Pt.Registration:this.dialogTitle="Relat\xF3rio de registros";break;case Pt.Emission:this.dialogTitle="Relat\xF3rio de emiss\xF5es";break;case Pt.AcademicTranscript:this.dialogTitle="Relat\xF3rio de hist\xF3ricos escolares";break;case Pt.Curriculum:this.dialogTitle="Relat\xF3rio de curr\xEDculos escolares";break;case Pt.Event:this.dialogTitle="Relat\xF3rio de eventos",this.searchPlaceholder="Nome do agente ou organiza\xE7\xE3o";break;case Pt.Restamp:this.dialogTitle="Relat\xF3rio de renotariza\xE7\xF5es",this.searchPlaceholder="CPF do aluno ou c\xF3digo do curr\xEDculo",this.disableMax=!0;break;default:this.dialogTitle="Relat\xF3rio de diplomas";break}this.inSysAdminArea&&this.subscriptionService.list().subscribe(e=>{this.subscriptions=e})}generateReportByDate(){this.loading=!0;let e={startDateUtc:this.dateRange.startDate.toISOString(),endDateUtc:this.dateRange.endDate.add(1,"day").toISOString()},i;switch(this.type){case Pt.Emission:i=this.reportService.getEmissionReportDownloadTicketByDate(e,this.fileType);break;case Pt.Registration:i=this.reportService.getRegistrationReportDownloadTicketByDate(e,this.fileType);break;case Pt.AcademicTranscript:i=this.reportService.getAcademicTranscriptReportDownloadTicketByDate(e,this.fileType);break;case Pt.Curriculum:i=this.reportService.getCurriculumReportDownloadTicketByDate(e,this.fileType);break;case Pt.Event:let r=Gi(Ve({},e),{searchTerm:this.searchTerm});i=this.reportService.getEventReportDownloadTicketByDate(r,this.fileType);break;case Pt.Restamp:let o=Gi(Ve({},e),{documentTypes:this.documentTypes,status:this.status,restampFilterField:this.restampFilterField});if(this.inSysAdminArea){let a=Gi(Ve({},o),{subscriptionIds:this.subscriptionIds});i=this.reportService.getInstanceRestampsReportDownloadTicketByDate(a,this.fileType)}else i=this.reportService.getRestampsReportDownloadTicketByDate(o,this.fileType);break;case Pt.Degree:default:i=this.reportService.getDegreeReportDownloadTicketByDate(e,this.fileType);break}i.subscribe(r=>{document.location.href=r.location,this.loading=!1},r=>this.loading=!1)}generateReportBySelection(){this.loading=!0;let e;switch(this.type){case Pt.Emission:e=this.reportService.getEmissionReportDownloadTicketBySelection(this.selectedIds,this.fileType);break;case Pt.Registration:e=this.reportService.getRegistrationReportDownloadTicketBySelection(this.selectedIds,this.fileType);break;case Pt.AcademicTranscript:e=this.reportService.getAcademicTranscriptReportDownloadTicketBySelection(this.selectedIds,this.fileType);break;case Pt.Curriculum:e=this.reportService.getCurriculumReportDownloadTicketBySelection(this.selectedIds,this.fileType);break;case Pt.Degree:default:e=this.reportService.getDegreeReportDownloadTicketBySelection(this.selectedIds,this.fileType);break}e.subscribe(i=>{document.location.href=i.location,this.loading=!1},i=>this.loading=!1)}onDocumentTypeChange(e){e.includes(void 0)&&(this.documentTypes=[])}onOrganizationSelectionChange(e){e.includes(void 0)&&(this.subscriptionIds=[])}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(SI),E(lc))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-generate-report"]],decls:5,vars:3,consts:[["titleTemplate",""],["contentTemplate",""],[3,"titleTemplate","contentTemplate","isLoading"],[1,"input-stretch"],[3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["class","input-stretch",4,"ngIf"],[1,"text-primary"],[1,"text-center"],["class","col-6 col-lg-6 col-md-12 input-stretch",4,"ngIf"],[3,"dateRangeChange","dateRange","disableMax"],["mat-raised-button","","color","accent",3,"click"],[3,"value"],[1,"row"],[1,"col-6","col-lg-6","col-md-12","input-stretch"],[1,"icon-sm"],["multiple","",3,"ngModelChange","selectionChange","ngModel"],["matInput","",3,"ngModelChange","placeholder","ngModel"],["formControlName","restampFilterField"],["class","mb-0",4,"ngIf"],["mat-raised-button","","color","accent",3,"click","disabled"],[1,"mb-0"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",2),k(1,T0t,2,1,"ng-template",null,0,Ii)(3,H0t,15,8,"ng-template",null,1,Ii)),i&2){let o=je(2),a=je(4);f("titleTemplate",o)("contentTemplate",a)("isLoading",r.loading)}},dependencies:[Vt,Ee,Gt,it,Va,Tt,He,Ze,Wt,bt,jt,Mi,Li,o6,Uo,wI,EI,a6,s6]})}}return t})();function z0t(t,n){t&1&&(d(0,"mat-icon",5),h(1,"access_time"),c())}function U0t(t,n){t&1&&(d(0,"mat-icon",6),h(1,"check_circle"),c())}function G0t(t,n){t&1&&(d(0,"mat-icon",7),h(1,"cancel"),c())}function $0t(t,n){t&1&&(d(0,"mat-icon",8),h(1,"cancel"),c())}var II=(()=>{class t{constructor(){this.Statuses=bl}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-status-icon"]],inputs:{status:"status"},decls:5,vars:5,consts:[[3,"ngSwitch"],["aria-label","Created","matTooltip","Aguardando assinaturas",4,"ngSwitchCase"],["aria-label","Active","matTooltip","Assinado","color","primary",4,"ngSwitchCase"],["aria-label","Cancelled","matTooltip","Anulado","color","warn",4,"ngSwitchCase"],["aria-label","CanceledTemporarily","matTooltip","Anulado Temporariamente","color","warn",4,"ngSwitchCase"],["aria-label","Created","matTooltip","Aguardando assinaturas"],["aria-label","Active","matTooltip","Assinado","color","primary"],["aria-label","Cancelled","matTooltip","Anulado","color","warn"],["aria-label","CanceledTemporarily","matTooltip","Anulado Temporariamente","color","warn"]],template:function(i,r){i&1&&(he(0,0),k(1,z0t,2,0,"mat-icon",1)(2,U0t,2,0,"mat-icon",2)(3,G0t,2,0,"mat-icon",3)(4,$0t,2,0,"mat-icon",4),fe()),i&2&&(f("ngSwitch",r.status),m(),f("ngSwitchCase",r.Statuses.Created),m(),f("ngSwitchCase",r.Statuses.Active),m(),f("ngSwitchCase",r.Statuses.Canceled),m(),f("ngSwitchCase",r.Statuses.CanceledTemporarily))},dependencies:[vs,rl,He,yi]})}}return t})();function q0t(t,n){t&1&&(d(0,"mat-icon",10),h(1,"rule"),c())}function W0t(t,n){t&1&&(d(0,"mat-icon",11),h(1,"manage_search"),c())}function Y0t(t,n){t&1&&(d(0,"mat-icon",12),h(1,"manage_search"),c())}function K0t(t,n){t&1&&(d(0,"mat-icon",13),h(1,"menu_book"),c())}function X0t(t,n){t&1&&(d(0,"mat-icon",14),h(1,"cancel_schedule_send"),c())}function Q0t(t,n){t&1&&(d(0,"mat-icon",15),h(1,"access_time"),c())}function Z0t(t,n){t&1&&(d(0,"mat-icon",16),h(1,"check_circle"),c())}function J0t(t,n){t&1&&(d(0,"mat-icon",17),h(1,"cancel"),c())}function e_t(t,n){t&1&&(d(0,"mat-icon",18),h(1,"outbox"),c())}var DI=(()=>{class t{constructor(){this.Statuses=jl}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-status-icon"]],inputs:{status:"status"},decls:10,vars:10,consts:[[3,"ngSwitch"],["aria-label","CreatedAwaitingAcceptance","matTooltip","Aguardando aceita\xE7\xE3o",4,"ngSwitchCase"],["aria-label","Created","matTooltip","Aguardando revis\xE3o",4,"ngSwitchCase"],["aria-label","Accepted","matTooltip","Aguardando revis\xE3o",4,"ngSwitchCase"],["aria-label","Approved","matTooltip","Aguardando registro","color","primary",4,"ngSwitchCase"],["aria-label","Rejected","matTooltip","Recusada","color","warn",4,"ngSwitchCase"],["aria-label","Registered","matTooltip","Aguardando assinaturas","color","primary",4,"ngSwitchCase"],["aria-label","Signed","matTooltip","Registro conclu\xEDdo","color","primary",4,"ngSwitchCase"],["aria-label","Cancelled","matTooltip","Cancelada","color","warn",4,"ngSwitchCase"],["aria-label","SentToIssuer","matTooltip","Registro enviado \xE0 emissora","color","primary",4,"ngSwitchCase"],["aria-label","CreatedAwaitingAcceptance","matTooltip","Aguardando aceita\xE7\xE3o"],["aria-label","Created","matTooltip","Aguardando revis\xE3o"],["aria-label","Accepted","matTooltip","Aguardando revis\xE3o"],["aria-label","Approved","matTooltip","Aguardando registro","color","primary"],["aria-label","Rejected","matTooltip","Recusada","color","warn"],["aria-label","Registered","matTooltip","Aguardando assinaturas","color","primary"],["aria-label","Signed","matTooltip","Registro conclu\xEDdo","color","primary"],["aria-label","Cancelled","matTooltip","Cancelada","color","warn"],["aria-label","SentToIssuer","matTooltip","Registro enviado \xE0 emissora","color","primary"]],template:function(i,r){i&1&&(he(0,0),k(1,q0t,2,0,"mat-icon",1)(2,W0t,2,0,"mat-icon",2)(3,Y0t,2,0,"mat-icon",3)(4,K0t,2,0,"mat-icon",4)(5,X0t,2,0,"mat-icon",5)(6,Q0t,2,0,"mat-icon",6)(7,Z0t,2,0,"mat-icon",7)(8,J0t,2,0,"mat-icon",8)(9,e_t,2,0,"mat-icon",9),fe()),i&2&&(f("ngSwitch",r.status),m(),f("ngSwitchCase",r.Statuses.CreatedAwaitingAcceptance),m(),f("ngSwitchCase",r.Statuses.Created),m(),f("ngSwitchCase",r.Statuses.Accepted),m(),f("ngSwitchCase",r.Statuses.Approved),m(),f("ngSwitchCase",r.Statuses.Rejected),m(),f("ngSwitchCase",r.Statuses.Registered),m(),f("ngSwitchCase",r.Statuses.Signed),m(),f("ngSwitchCase",r.Statuses.Canceled),m(),f("ngSwitchCase",r.Statuses.SentToIssuer))},dependencies:[vs,rl,He,yi]})}}return t})();function t_t(t,n){if(t&1&&(d(0,"mat-icon",7),ce(1,"emissionStatus"),h(2,"access_time"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function i_t(t,n){if(t&1&&(d(0,"mat-icon",8),ce(1,"emissionStatus"),h(2,"check_circle"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function n_t(t,n){if(t&1&&(d(0,"mat-icon",9),ce(1,"emissionStatus"),h(2,"menu_book"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function r_t(t,n){if(t&1&&(d(0,"mat-icon",10),ce(1,"emissionStatus"),h(2,"cancel"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function o_t(t,n){if(t&1&&(d(0,"mat-icon",11),ce(1,"emissionStatus"),h(2,"outbox"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function a_t(t,n){if(t&1&&(d(0,"mat-icon",12),ce(1,"emissionStatus"),h(2,"playlist_add_check"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}var TI=(()=>{class t{constructor(){this.Statuses=Vl}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-emission-status-icon"]],inputs:{status:"status"},decls:7,vars:7,consts:[[3,"ngSwitch"],["aria-label","Created",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Registered","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Signed","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Cancelled","color","warn",3,"matTooltip",4,"ngSwitchCase"],["aria-label","SentToRegistry","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","AcceptedByRegistry","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Created",3,"matTooltip"],["aria-label","Registered","color","primary",3,"matTooltip"],["aria-label","Signed","color","primary",3,"matTooltip"],["aria-label","Cancelled","color","warn",3,"matTooltip"],["aria-label","SentToRegistry","color","primary",3,"matTooltip"],["aria-label","AcceptedByRegistry","color","primary",3,"matTooltip"]],template:function(i,r){i&1&&(he(0,0),k(1,t_t,3,3,"mat-icon",1)(2,i_t,3,3,"mat-icon",2)(3,n_t,3,3,"mat-icon",3)(4,r_t,3,3,"mat-icon",4)(5,o_t,3,3,"mat-icon",5)(6,a_t,3,3,"mat-icon",6),fe()),i&2&&(f("ngSwitch",r.status),m(),f("ngSwitchCase",r.Statuses.Created),m(),f("ngSwitchCase",r.Statuses.Registered),m(),f("ngSwitchCase",r.Statuses.Signed),m(),f("ngSwitchCase",r.Statuses.Canceled),m(),f("ngSwitchCase",r.Statuses.SentToRegistry),m(),f("ngSwitchCase",r.Statuses.AcceptedByRegistry))},dependencies:[vs,rl,He,yi,$b]})}}return t})();function s_t(t,n){if(t&1&&(d(0,"mat-icon",5),ce(1,"academicTranscriptStatus"),h(2,"access_time"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function l_t(t,n){if(t&1&&(d(0,"mat-icon",6),ce(1,"academicTranscriptStatus"),h(2,"check_circle"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function c_t(t,n){if(t&1&&(d(0,"mat-icon",7),ce(1,"academicTranscriptStatus"),h(2,"cancel"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function d_t(t,n){if(t&1&&(d(0,"mat-icon",8),ce(1,"academicTranscriptStatus"),h(2,"cancel"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}var AI=(()=>{class t{constructor(){this.Statuses=Ms}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-status-icon"]],inputs:{status:"status"},decls:5,vars:5,consts:[[3,"ngSwitch"],["aria-label","Created",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Active","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Cancelled","color","warn",3,"matTooltip",4,"ngSwitchCase"],["aria-label","CancelledTemporarily","color","warn",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Created",3,"matTooltip"],["aria-label","Active","color","primary",3,"matTooltip"],["aria-label","Cancelled","color","warn",3,"matTooltip"],["aria-label","CancelledTemporarily","color","warn",3,"matTooltip"]],template:function(i,r){i&1&&(he(0,0),k(1,s_t,3,3,"mat-icon",1)(2,l_t,3,3,"mat-icon",2)(3,c_t,3,3,"mat-icon",3)(4,d_t,3,3,"mat-icon",4),fe()),i&2&&(f("ngSwitch",r.status),m(),f("ngSwitchCase",r.Statuses.Created),m(),f("ngSwitchCase",r.Statuses.Active),m(),f("ngSwitchCase",r.Statuses.Canceled),m(),f("ngSwitchCase",r.Statuses.CanceledTemporarily))},dependencies:[vs,rl,He,yi,qb]})}}return t})();function u_t(t,n){if(t&1&&(d(0,"mat-icon",4),ce(1,"curriculumStatus"),h(2,"access_time"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function m_t(t,n){if(t&1&&(d(0,"mat-icon",5),ce(1,"curriculumStatus"),h(2,"check_circle"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}function p_t(t,n){if(t&1&&(d(0,"mat-icon",6),ce(1,"curriculumStatus"),h(2,"cancel"),c()),t&2){let e=S();f("matTooltip",xe(1,1,e.status))}}var kI=(()=>{class t{constructor(){this.Statuses=lu}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-curriculum-status-icon"]],inputs:{status:"status"},decls:4,vars:4,consts:[[3,"ngSwitch"],["aria-label","Created",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Active","color","primary",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Cancelled","color","warn",3,"matTooltip",4,"ngSwitchCase"],["aria-label","Created",3,"matTooltip"],["aria-label","Active","color","primary",3,"matTooltip"],["aria-label","Cancelled","color","warn",3,"matTooltip"]],template:function(i,r){i&1&&(he(0,0),k(1,u_t,3,3,"mat-icon",1)(2,m_t,3,3,"mat-icon",2)(3,p_t,3,3,"mat-icon",3),fe()),i&2&&(f("ngSwitch",r.status),m(),f("ngSwitchCase",r.Statuses.Created),m(),f("ngSwitchCase",r.Statuses.Active),m(),f("ngSwitchCase",r.Statuses.Canceled))},dependencies:[vs,rl,He,yi,Wb]})}}return t})();var h_t=t=>({primary:t});function f_t(t,n){t&1&&(d(0,"mat-icon",8),h(1,"radio_button_unchecked"),c())}function g_t(t,n){if(t&1&&H(0,"app-degree-status-icon",20),t&2){let e=S(2);f("status",e.form.get("documentStatus").value)}}function __t(t,n){if(t&1&&H(0,"app-emission-status-icon",20),t&2){let e=S(2);f("status",e.form.get("documentStatus").value)}}function v_t(t,n){if(t&1&&H(0,"app-registration-status-icon",20),t&2){let e=S(2);f("status",e.form.get("documentStatus").value)}}function b_t(t,n){if(t&1&&H(0,"app-academic-transcript-status-icon",20),t&2){let e=S(2);f("status",e.form.get("documentStatus").value)}}function y_t(t,n){if(t&1&&H(0,"app-curriculum-status-icon",20),t&2){let e=S(2);f("status",e.form.get("documentStatus").value)}}function x_t(t,n){if(t&1&&(d(0,"mat-option",22),h(1),ce(2,"degreeStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function C_t(t,n){if(t&1&&(d(0,"div"),k(1,x_t,3,4,"mat-option",21),c()),t&2){let e=S(2);m(),f("ngForOf",e.Statuses)}}function S_t(t,n){if(t&1&&(d(0,"mat-option",22),h(1),ce(2,"emissionStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function w_t(t,n){if(t&1&&(d(0,"div"),k(1,S_t,3,4,"mat-option",21),c()),t&2){let e=S(2);m(),f("ngForOf",e.Statuses)}}function E_t(t,n){if(t&1&&(d(0,"mat-option",22),h(1),ce(2,"registrationStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function I_t(t,n){if(t&1&&(d(0,"div"),k(1,E_t,3,4,"mat-option",21),c()),t&2){let e=S(2);m(),f("ngForOf",e.Statuses)}}function D_t(t,n){if(t&1&&(d(0,"mat-option",22),h(1),ce(2,"academicTranscriptStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function T_t(t,n){if(t&1&&(d(0,"div"),k(1,D_t,3,4,"mat-option",21),c()),t&2){let e=S(2);m(),f("ngForOf",e.Statuses)}}function A_t(t,n){if(t&1&&(d(0,"mat-option",22),h(1),ce(2,"curriculumStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function k_t(t,n){if(t&1&&(d(0,"div"),k(1,A_t,3,4,"mat-option",21),c()),t&2){let e=S(2);m(),f("ngForOf",e.Statuses)}}function M_t(t,n){if(t&1){let e=ie();d(0,"form",1)(1,"button",2),$("click",function(){W(e);let r=S();return Y(r.toggleIsSigned())}),H(2,"mat-icon",3),c(),he(3),k(4,f_t,2,0,"mat-icon",4)(5,g_t,1,1,"app-degree-status-icon",5)(6,__t,1,1,"app-emission-status-icon",5)(7,v_t,1,1,"app-registration-status-icon",5)(8,b_t,1,1,"app-academic-transcript-status-icon",5)(9,y_t,1,1,"app-curriculum-status-icon",5),fe(),d(10,"div",6)(11,"mat-form-field")(12,"mat-label"),h(13,"Status"),c(),d(14,"mat-select",7)(15,"mat-option")(16,"mat-icon",8),h(17,"cancel"),c(),h(18,"Nenhum "),c(),k(19,C_t,2,1,"div",9)(20,w_t,2,1,"div",9)(21,I_t,2,1,"div",9)(22,T_t,2,1,"div",9)(23,k_t,2,1,"div",9),c()()(),d(24,"div",10)(25,"mat-form-field",11)(26,"mat-label"),h(27,"In\xEDcio"),c(),H(28,"spa-date-input",12),c(),d(29,"mat-form-field",13)(30,"mat-label"),h(31,"Fim"),c(),H(32,"spa-date-input",14),c()(),d(33,"div",15)(34,"mat-form-field",16),H(35,"input",17),c(),d(36,"button",18),$("click",function(){W(e);let r=S();return Y(r.search())}),d(37,"mat-icon",19),h(38,"search"),c()()()()}if(t&2){let e=S();f("formGroup",e.form),m(),f("ngClass",Le(13,h_t,e.form.get("isSigned").value)),m(3),f("ngIf",e.form.get("documentStatus").value==null),m(),f("ngIf",e.operationType==e.OperationTypes.Degree),m(),f("ngIf",e.operationType==e.OperationTypes.Emission),m(),f("ngIf",e.operationType==e.OperationTypes.Registration),m(),f("ngIf",e.operationType==e.OperationTypes.AcademicTranscript),m(),f("ngIf",e.operationType==e.OperationTypes.Curriculum),m(10),f("ngIf",e.operationType==e.OperationTypes.Degree),m(),f("ngIf",e.operationType==e.OperationTypes.Emission),m(),f("ngIf",e.operationType==e.OperationTypes.Registration),m(),f("ngIf",e.operationType==e.OperationTypes.AcademicTranscript),m(),f("ngIf",e.operationType==e.OperationTypes.Curriculum)}}var Ag=(()=>{class t{constructor(){this.OperationTypes=Pt,this.submitted=new Ae}ngOnInit(){switch(this.operationType){case Pt.Degree:this.Statuses=Object.keys(bl);break;case Pt.Emission:this.Statuses=Object.keys(Vl);break;case Pt.Registration:this.Statuses=Object.keys(jl);break;case Pt.AcademicTranscript:this.Statuses=Object.keys(Ms);break;case Pt.Curriculum:this.Statuses=Object.keys(lu);break;default:break}}search(){this.submitted.emit()}setNullValue(e){this.form.get(e).setValue(null)}toggleIsSigned(){let e="isSigned",i=this.form.get(e).value;this.form.get(e).setValue(!i),this.submitted.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-search-toolbar"]],inputs:{operationType:"operationType",form:"form"},outputs:{submitted:"submitted"},decls:1,vars:1,consts:[["class","d-flex align-items-center",3,"formGroup",4,"ngIf"],[1,"d-flex","align-items-center",3,"formGroup"],["mat-icon-button","","type","button","matTooltip","Apenas assinados",1,"toggle",3,"click","ngClass"],["aria-label","isSigned","svgIcon","sign"],["class","icon-sm",4,"ngIf"],[3,"status",4,"ngIf"],[1,"py-1","px-2"],["formControlName","documentStatus"],[1,"icon-sm"],[4,"ngIf"],[1,"pickers-container"],["id","documentsStart","appearance","outline",1,"mb-0"],["formControlName","startDate","dayStart","",1,"compact-input"],["id","documentsEnd","appearance","outline",1,"ms-0","mx-sm-2","mb-0"],["formControlName","endDate","dayEnd","",1,"compact-input"],[1,"row"],["id","documentsSearch","appearance","outline"],["matInput","","placeholder","Pesquisar","formControlName","searchQuery"],["id","documentSearchButton","mat-icon-button","","matTooltip","Pesquisar",3,"click"],["aria-label","Search"],[3,"status"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,r){i&1&&k(0,M_t,39,15,"form",0),i&2&&f("ngIf",r.form)},dependencies:[ji,Vt,Ee,zt,Gt,it,pt,dt,Tt,He,fi,Wt,bt,jt,Mi,aB,yi,Li,II,DI,TI,AI,kI,wB,Gb,$b,qb,Wb]})}}return t})();var F_t=()=>[],kg=(()=>{class t{constructor(){this.onBatchDownloadClick=new Ae}downloadAll(){this.onBatchDownloadClick.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-download-all-documents"]],inputs:{description:"description",downloadAllText:"downloadAllText"},outputs:{onBatchDownloadClick:"onBatchDownloadClick"},decls:4,vars:4,consts:[[1,"d-flex","justify-content-center","mt-2"],[1,"me-2","py-2",3,"innerHTML"],[1,"py-2",3,"click","routerLink"],["color","primary",3,"innerHTML"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"span",1),d(2,"a",2),$("click",function(){return r.downloadAll()}),H(3,"span",3),c()()),i&2&&(m(),f("innerHTML",r.description,qc),m(),f("routerLink",Wo(3,F_t)),m(),f("innerHTML",r.downloadAllText,qc))},dependencies:[gn]})}}return t})();var R_t=["degreeTable"];function P_t(t,n){if(t&1){let e=ie();he(0),d(1,"button",33),$("click",function(){W(e);let r=S();return Y(r.downloadBatch())}),d(2,"mat-icon",34),h(3,"get_app"),c()(),fe()}}function N_t(t,n){if(t&1){let e=ie();d(0,"app-download-all-documents",35),$("onBatchDownloadClick",function(){W(e);let r=S();return Y(r.downloadAllDegreesBatch())}),c()}if(t&2){let e=S();f("description","Todos os "+e.selection.selected.length+" diplomas nesta p\xE1gina foram selecionados.")("downloadAllText","Baixar todos os "+e.degreeDataSource.totalCount+" diplomas.")}}function O_t(t,n){if(t&1){let e=ie();d(0,"mat-cell",36)(1,"mat-checkbox",37),$("click",function(r){return W(e),Y(r.stopPropagation())})("change",function(r){let o=W(e).$implicit,a=S();return Y(r?a.toggleDocument(o):null)}),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("checked",i.selection.isSelected(e))}}function L_t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function V_t(t,n){if(t&1&&(d(0,"mat-cell",36),H(1,"app-degree-status-icon",38),c()),t&2){let e=n.$implicit;m(),f("status",e.status)}}function B_t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Diplomado(a)"),c())}function j_t(t,n){if(t&1){let e=ie();d(0,"mat-cell",39)(1,"spa-link-button",40),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.studentName)}}function H_t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function z_t(t,n){if(t&1&&(d(0,"mat-cell",41),h(1),ce(2,"cpf"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.studentCpf)," ")}}function U_t(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function G_t(t,n){if(t&1&&(d(0,"mat-cell",39),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.course," ")}}function $_t(t,n){t&1&&(d(0,"mat-header-cell",42),h(1,"Data de cria\xE7\xE3o"),c())}function q_t(t,n){if(t&1&&(d(0,"mat-cell",42),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function W_t(t,n){t&1&&(d(0,"mat-header-cell",43),h(1,"Data de atualiza\xE7\xE3o"),c())}function Y_t(t,n){if(t&1&&(d(0,"mat-cell",42),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function K_t(t,n){t&1&&(he(0),H(1,"router-outlet"),fe())}var l6=(()=>{class t{constructor(e,i,r,o,a){this.degreeService=e,this.batchService=i,this.router=r,this.route=o,this.dialog=a,this.OperationTypes=Pt,this.loading=!1,this.isLoadingBatches=!1,this.selectedFn=s=>this.selectedFunction(s)}ngOnInit(){this.searchForm=Jo.buildSearchParamsForm(),this.initSelection(),this.updateDataSource()}navigateTo(e){this.batchId?this.router.navigate(["degrees",e],{relativeTo:this.route}):this.router.navigate([e],{relativeTo:this.route})}selectedFunction(e){e.items.forEach(o=>o.selected=this.selection.selected.some(a=>a.id==o.id));let i=e.items.filter(o=>o.selected),r=this.selection.selected.filter(o=>i.some(a=>a.id===o.id));this.selection.deselect(...r),this.selection.select(...i)}updateDataSource(){let e=this.degreeService.listPaginatedFilters(this.buildDegreeSearchParams(),this.selectedFn);this.degreeDataSource=new Al(e)}search(){this.updateDataSource()}refresh(){this.degreeTable.refresh(),this.initSelection()}initSelection(){this.selection=new id(!0,[])}isAllCurrentSelected(){let e=this.degreeDataSource.currentItems.length;for(let i=0;i{s&&this.refresh()})}generateReport(){let e=this.dialog.open(lm,{width:"500px",data:{selectedIds:this.selection.selected.map(i=>i.id),type:Pt.Degree}})}static{this.\u0275fac=function(i){return new(i||t)(E(Jo),E(dc),E(lt),E(Ut),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-list"]],viewQuery:function(i,r){if(i&1&&ot(R_t,5),i&2){let o;Pe(o=Ne())&&(r.degreeTable=o.first)}},inputs:{batchId:"batchId"},decls:45,vars:11,consts:[["selectAllCheckbox",""],["degreeTable",""],[3,"hidden"],[3,"show"],["box-title",""],[1,"document-toolbar"],[1,"toolbar-column-1"],[3,"change","checked","indeterminate","disabled"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[4,"ngIf"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[3,"submitted","operationType","form"],[1,"my-0"],[3,"description","downloadAllText","onBatchDownloadClick",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","disableSearch","true",1,"compact-table","centered-header-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","selected"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","nomeDiplomado"],["class","d-none d-md-flex align-items-center justify-content-start",4,"matCellDef"],["matColumnDef","cpfDiplomado"],["class","default d-none d-md-flex",4,"matCellDef"],["matColumnDef","curso"],["matColumnDef","creationDate"],["class","d-none d-md-flex",4,"matHeaderCellDef"],["class","d-none d-md-flex",4,"matCellDef"],["matColumnDef","updateDate"],["class","d-none d-md-flex","mat-sort-header","",4,"matHeaderCellDef"],["mat-icon-button","","matTooltip","Baixar selecionados",1,"ms-1","secondary-action-item",3,"click"],["aria-label","Download"],[3,"onBatchDownloadClick","description","downloadAllText"],[1,"d-md-flex","justify-content-center"],[3,"click","change","checked"],[3,"status"],[1,"d-none","d-md-flex","align-items-center","justify-content-start"],[3,"trigger"],[1,"default","d-none","d-md-flex"],[1,"d-none","d-md-flex"],["mat-sort-header","",1,"d-none","d-md-flex"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",2),H(1,"ngx-loading",3),d(2,"span",4),h(3,"Diplomas"),c(),d(4,"div",5)(5,"div",6)(6,"mat-checkbox",7,0),$("change",function(s){return W(o),Y(s?r.masterToggle():null)}),c(),d(8,"button",8),$("click",function(){return W(o),Y(r.refresh())}),d(9,"mat-icon",9),h(10,"refresh"),c()(),k(11,P_t,4,0,"ng-container",10),d(12,"button",11),$("click",function(){return W(o),Y(r.generateReport())}),d(13,"mat-icon",12),h(14,"assignment"),c()()(),d(15,"app-search-toolbar",13),$("submitted",function(){return W(o),Y(r.search())}),c()(),H(16,"hr",14),k(17,N_t,1,2,"app-download-all-documents",15),d(18,"lac-table",16,1)(20,"div",17)(21,"div",18)(22,"h3"),h(23,"Nenhum diploma cadastrado."),c()()(),he(24,19),k(25,O_t,2,1,"mat-cell",20),fe(),he(26,21),k(27,L_t,2,0,"mat-header-cell",22)(28,V_t,2,1,"mat-cell",20),fe(),he(29,23),k(30,B_t,2,0,"mat-header-cell",22)(31,j_t,3,1,"mat-cell",24),fe(),he(32,25),k(33,H_t,2,0,"mat-header-cell",22)(34,z_t,3,3,"mat-cell",26),fe(),he(35,27),k(36,U_t,2,0,"mat-header-cell",22)(37,G_t,2,1,"mat-cell",24),fe(),he(38,28),k(39,$_t,2,0,"mat-header-cell",29)(40,q_t,3,4,"mat-cell",30),fe(),he(41,31),k(42,W_t,2,0,"mat-header-cell",32)(43,Y_t,3,4,"mat-cell",30),fe(),c()(),k(44,K_t,2,0,"ng-container",10)}if(i&2){let o=je(7);f("hidden",r.route.firstChild),m(),f("show",r.loading),m(5),f("checked",r.selection.hasValue()&&r.isAllCurrentSelected())("indeterminate",r.selection.hasValue()&&!r.isAllCurrentSelected())("disabled",!r.degreeDataSource||r.degreeDataSource.currentItems.length==0),m(5),f("ngIf",r.selection.selected.length>0),m(4),f("operationType",r.OperationTypes.Degree)("form",r.searchForm),m(2),f("ngIf",o.checked&&r.degreeDataSource.currentItems.length"+e.selection.selected.length+" emiss\xF5es nesta p\xE1gina foram selecionadas.")("downloadAllText","Baixar todas as "+e.degreeDataSource.totalCount+" emiss\xF5es.")}}function tvt(t,n){if(t&1){let e=ie();d(0,"mat-cell",39)(1,"mat-checkbox",40),$("click",function(r){return W(e),Y(r.stopPropagation())})("change",function(r){let o=W(e).$implicit,a=S();return Y(r?a.toggleDocument(o):null)}),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("checked",i.selection.isSelected(e))}}function ivt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function nvt(t,n){if(t&1&&(d(0,"mat-cell",39),H(1,"app-emission-status-icon",41),c()),t&2){let e=n.$implicit;m(),f("status",e.status)}}function rvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Diplomado(a)"),c())}function ovt(t,n){if(t&1){let e=ie();d(0,"mat-cell",42)(1,"spa-link-button",43),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.studentName)}}function avt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function svt(t,n){if(t&1&&(d(0,"mat-cell",44),h(1),ce(2,"cpf"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.studentCpf)," ")}}function lvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function cvt(t,n){if(t&1&&(d(0,"mat-cell",42),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.course," ")}}function dvt(t,n){t&1&&(d(0,"mat-header-cell",45),h(1,"Data de cria\xE7\xE3o"),c())}function uvt(t,n){if(t&1&&(d(0,"mat-cell",45),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function mvt(t,n){t&1&&(d(0,"mat-header-cell",46),h(1,"Data de atualiza\xE7\xE3o"),c())}function pvt(t,n){if(t&1&&(d(0,"mat-cell",45),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function hvt(t,n){t&1&&(he(0),H(1,"router-outlet"),fe())}var c6=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.route=i,this.routeHelper=r,this.emissionService=o,this.router=a,this.dialog=s,this.OperationTypes=Pt,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1,this.selectedFn=l=>this.selectedFunction(l)}ngOnInit(){this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e))),this.searchForm=Jo.buildSearchParamsForm(),this.initSelection(),this.updateDataSource()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}navigateTo(e){this.batchId?this.router.navigate(["emissions",e],{relativeTo:this.route}):this.router.navigate([e],{relativeTo:this.route})}onRouteChange(e){if(this.emissionsTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="EmissionList")try{this.emissionsTable.refresh()}catch{}}}selectedFunction(e){e.items.forEach(o=>o.selected=this.selection.selected.some(a=>a.id==o.id));let i=e.items.filter(o=>o.selected),r=this.selection.selected.filter(o=>i.some(a=>a.id===o.id));this.selection.deselect(...r),this.selection.select(...i)}updateDataSource(){let e=this.emissionService.listPaginatedFilters(this.buildEmissionSearchParams(),this.selectedFn);this.degreeDataSource=new Al(e)}search(){this.updateDataSource()}refresh(){this.emissionsTable.refresh(),this.initSelection()}initSelection(){this.selection=new id(!0,[])}isAllCurrentSelected(){let e=this.degreeDataSource.currentItems.length;for(let i=0;i{s&&this.refresh()})}generateReport(){let e=this.dialog.open(lm,{width:"500px",data:{selectedIds:this.selection.selected.map(i=>i.id),type:Pt.Emission}})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Ut),E(ro),E(Jp),E(lt),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-emission-list"]],viewQuery:function(i,r){if(i&1&&ot(Q_t,5),i&2){let o;Pe(o=Ne())&&(r.emissionsTable=o.first)}},inputs:{batchId:"batchId",hideActionButton:"hideActionButton"},decls:46,vars:12,consts:[["selectAllCheckbox",""],["emissionsTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","accent","routerLink","new",4,"ngIf"],[1,"document-toolbar"],[1,"toolbar-column-1"],[3,"change","checked","indeterminate","disabled"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[4,"ngIf"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[3,"submitted","operationType","form"],[1,"my-0"],[3,"description","downloadAllText","onBatchDownloadClick",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","disableSearch","true",1,"compact-table","centered-header-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","selected"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","studentName"],["class","d-none d-md-flex align-items-center justify-content-start",4,"matCellDef"],["matColumnDef","studentCpf"],["class","default d-none d-md-flex",4,"matCellDef"],["matColumnDef","course"],["matColumnDef","creationDate"],["class","d-none d-md-flex",4,"matHeaderCellDef"],["class","d-none d-md-flex",4,"matCellDef"],["matColumnDef","updateDate"],["class","d-none d-md-flex","mat-sort-header","",4,"matHeaderCellDef"],["mat-flat-button","","color","accent","routerLink","new"],[1,"me-1"],["mat-icon-button","","matTooltip","Baixar selecionados",1,"ms-1","secondary-action-item",3,"click"],["aria-label","Download"],[3,"onBatchDownloadClick","description","downloadAllText"],[1,"d-md-flex","justify-content-center"],[3,"click","change","checked"],[3,"status"],[1,"d-none","d-md-flex","align-items-center","justify-content-start"],[3,"trigger"],[1,"default","d-none","d-md-flex"],[1,"d-none","d-md-flex"],["mat-sort-header","",1,"d-none","d-md-flex"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",2),H(1,"ngx-loading",3),d(2,"span",4),h(3,"Emiss\xF5es"),c(),k(4,Z_t,4,0,"button",5),d(5,"div",6)(6,"div",7)(7,"mat-checkbox",8,0),$("change",function(s){return W(o),Y(s?r.masterToggle():null)}),c(),d(9,"button",9),$("click",function(){return W(o),Y(r.refresh())}),d(10,"mat-icon",10),h(11,"refresh"),c()(),k(12,J_t,4,0,"ng-container",11),d(13,"button",12),$("click",function(){return W(o),Y(r.generateReport())}),d(14,"mat-icon",13),h(15,"assignment"),c()()(),d(16,"app-search-toolbar",14),$("submitted",function(){return W(o),Y(r.search())}),c()(),H(17,"hr",15),k(18,evt,1,2,"app-download-all-documents",16),d(19,"lac-table",17,1)(21,"div",18)(22,"div",19)(23,"h3"),h(24,"Nenhuma emiss\xE3o cadastrada."),c()()(),he(25,20),k(26,tvt,2,1,"mat-cell",21),fe(),he(27,22),k(28,ivt,2,0,"mat-header-cell",23)(29,nvt,2,1,"mat-cell",21),fe(),he(30,24),k(31,rvt,2,0,"mat-header-cell",23)(32,ovt,3,1,"mat-cell",25),fe(),he(33,26),k(34,avt,2,0,"mat-header-cell",23)(35,svt,3,3,"mat-cell",27),fe(),he(36,28),k(37,lvt,2,0,"mat-header-cell",23)(38,cvt,2,1,"mat-cell",25),fe(),he(39,29),k(40,dvt,2,0,"mat-header-cell",30)(41,uvt,3,4,"mat-cell",31),fe(),he(42,32),k(43,mvt,2,0,"mat-header-cell",33)(44,pvt,3,4,"mat-cell",31),fe(),c()(),k(45,hvt,2,0,"ng-container",11)}if(i&2){let o=je(8);f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected&&!r.hideActionButton),m(3),f("checked",r.selection.hasValue()&&r.isAllCurrentSelected())("indeterminate",r.selection.hasValue()&&!r.isAllCurrentSelected())("disabled",!r.degreeDataSource||r.degreeDataSource.currentItems.length==0),m(5),f("ngIf",r.selection.selected.length>0),m(4),f("operationType",r.OperationTypes.Emission)("form",r.searchForm),m(2),f("ngIf",o.checked&&r.degreeDataSource.currentItems.length"+e.selection.selected.length+" requisi\xE7\xF5es nesta p\xE1gina foram selecionadas.")("downloadAllText","Baixar todas as "+e.registrationDataSource.totalCount+" requisi\xE7\xF5es.")}}function yvt(t,n){if(t&1){let e=ie();d(0,"mat-cell",40)(1,"mat-checkbox",41),$("click",function(r){return W(e),Y(r.stopPropagation())})("change",function(r){let o=W(e).$implicit,a=S();return Y(r?a.toggleDocument(o):null)}),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("checked",i.selection.isSelected(e))}}function xvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function Cvt(t,n){if(t&1&&(d(0,"mat-cell",40),H(1,"app-registration-status-icon",42),c()),t&2){let e=n.$implicit;m(),f("status",e.status)}}function Svt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Diplomado(a)"),c())}function wvt(t,n){if(t&1){let e=ie();d(0,"mat-cell",43)(1,"spa-link-button",44),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.studentName)}}function Evt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function Ivt(t,n){if(t&1&&(d(0,"mat-cell",45),h(1),ce(2,"cpf"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.studentCpf)," ")}}function Dvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function Tvt(t,n){if(t&1&&(d(0,"mat-cell",43),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.course," ")}}function Avt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"IES Emissora"),c())}function kvt(t,n){if(t&1&&(d(0,"mat-cell",43),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.issuingIes," ")}}function Mvt(t,n){t&1&&(d(0,"mat-header-cell",46),h(1,"Data de cria\xE7\xE3o"),c())}function Fvt(t,n){if(t&1&&(d(0,"mat-cell",46),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function Rvt(t,n){t&1&&(d(0,"mat-header-cell",47),h(1,"Data de atualiza\xE7\xE3o"),c())}function Pvt(t,n){if(t&1&&(d(0,"mat-cell",46),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function Nvt(t,n){t&1&&(he(0),H(1,"router-outlet"),fe())}var d6=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.route=i,this.routeHelper=r,this.registrationService=o,this.router=a,this.dialog=s,this.OperationTypes=Pt,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1,this.selectedFn=l=>this.selectedFunction(l)}ngOnInit(){this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e))),this.searchForm=Jo.buildSearchParamsForm(),this.initSelection(),this.updateDataSource()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}navigateTo(e){this.batchId?this.router.navigate(["registrations",e],{relativeTo:this.route}):this.router.navigate([e],{relativeTo:this.route})}onRouteChange(e){if(this.registrationTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="RegistrationList")try{this.registrationTable.refresh()}catch{}}}selectedFunction(e){e.items.forEach(o=>o.selected=this.selection.selected.some(a=>a.id==o.id));let i=e.items.filter(o=>o.selected),r=this.selection.selected.filter(o=>i.some(a=>a.id===o.id));this.selection.deselect(...r),this.selection.select(...i)}updateDataSource(){let e=this.registrationService.listPaginatedFilters(this.buildDegreeSearchParams(),this.selectedFn);this.registrationDataSource=new Al(e)}search(){this.updateDataSource()}refresh(){this.registrationTable.refresh(),this.initSelection()}initSelection(){this.selection=new id(!0,[])}isAllCurrentSelected(){let e=this.registrationDataSource.currentItems.length;for(let i=0;i{s&&this.refresh()})}generateReport(){let e=this.dialog.open(lm,{width:"500px",data:{selectedIds:this.selection.selected.map(i=>i.id),type:Pt.Registration}})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Ut),E(ro),E(Sd),E(lt),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-list"]],viewQuery:function(i,r){if(i&1&&ot(gvt,5),i&2){let o;Pe(o=Ne())&&(r.registrationTable=o.first)}},inputs:{batchId:"batchId",hideActionButton:"hideActionButton"},decls:49,vars:12,consts:[["selectAllCheckbox",""],["registrationTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","accent","routerLink","new",4,"ngIf"],[1,"document-toolbar"],[1,"toolbar-column-1"],[3,"change","checked","indeterminate","disabled"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[4,"ngIf"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[3,"submitted","operationType","form"],[1,"my-0"],[3,"description","downloadAllText","onBatchDownloadClick",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","disableSearch","true",1,"compact-table","centered-header-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","selected"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","nomeDiplomado"],["class","d-none d-md-flex align-items-center justify-content-start",4,"matCellDef"],["matColumnDef","cpfDiplomado"],["class","default d-none d-md-flex",4,"matCellDef"],["matColumnDef","curso"],["matColumnDef","issuingIes"],["matColumnDef","creationDate"],["class","d-none d-md-flex",4,"matHeaderCellDef"],["class","d-none d-md-flex",4,"matCellDef"],["matColumnDef","updateDate"],["class","d-none d-md-flex","mat-sort-header","",4,"matHeaderCellDef"],["mat-flat-button","","color","accent","routerLink","new"],[1,"me-1"],["mat-icon-button","","matTooltip","Baixar selecionados",1,"ms-1","secondary-action-item",3,"click"],["aria-label","Download"],[3,"onBatchDownloadClick","description","downloadAllText"],[1,"d-md-flex","justify-content-center"],[3,"click","change","checked"],[3,"status"],[1,"d-none","d-md-flex","align-items-center","justify-content-start"],[3,"trigger"],[1,"default","d-none","d-md-flex"],[1,"d-none","d-md-flex"],["mat-sort-header","",1,"d-none","d-md-flex"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",2),H(1,"ngx-loading",3),d(2,"span",4),h(3,"Requisi\xE7\xF5es de registro"),c(),k(4,_vt,4,0,"button",5),d(5,"div",6)(6,"div",7)(7,"mat-checkbox",8,0),$("change",function(s){return W(o),Y(s?r.masterToggle():null)}),c(),d(9,"button",9),$("click",function(){return W(o),Y(r.refresh())}),d(10,"mat-icon",10),h(11,"refresh"),c()(),k(12,vvt,4,0,"ng-container",11),d(13,"button",12),$("click",function(){return W(o),Y(r.generateReport())}),d(14,"mat-icon",13),h(15,"assignment"),c()()(),d(16,"app-search-toolbar",14),$("submitted",function(){return W(o),Y(r.search())}),c()(),H(17,"hr",15),k(18,bvt,1,2,"app-download-all-documents",16),d(19,"lac-table",17,1)(21,"div",18)(22,"div",19)(23,"h3"),h(24,"Nenhuma requisi\xE7\xE3o cadastrada."),c()()(),he(25,20),k(26,yvt,2,1,"mat-cell",21),fe(),he(27,22),k(28,xvt,2,0,"mat-header-cell",23)(29,Cvt,2,1,"mat-cell",21),fe(),he(30,24),k(31,Svt,2,0,"mat-header-cell",23)(32,wvt,3,1,"mat-cell",25),fe(),he(33,26),k(34,Evt,2,0,"mat-header-cell",23)(35,Ivt,3,3,"mat-cell",27),fe(),he(36,28),k(37,Dvt,2,0,"mat-header-cell",23)(38,Tvt,2,1,"mat-cell",25),fe(),he(39,29),k(40,Avt,2,0,"mat-header-cell",23)(41,kvt,2,1,"mat-cell",25),fe(),he(42,30),k(43,Mvt,2,0,"mat-header-cell",31)(44,Fvt,3,4,"mat-cell",32),fe(),he(45,33),k(46,Rvt,2,0,"mat-header-cell",34)(47,Pvt,3,4,"mat-cell",32),fe(),c()(),k(48,Nvt,2,0,"ng-container",11)}if(i&2){let o=je(8);f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected&&!r.hideActionButton),m(3),f("checked",r.selection.hasValue()&&r.isAllCurrentSelected())("indeterminate",r.selection.hasValue()&&!r.isAllCurrentSelected())("disabled",!r.registrationDataSource||r.registrationDataSource.currentItems.length==0),m(5),f("ngIf",r.selection.selected.length>0),m(4),f("operationType",r.OperationTypes.Registration)("form",r.searchForm),m(2),f("ngIf",o.checked&&r.registrationDataSource.currentItems.length{class t{transform(e){switch(e){case s_.Final:return"Final";case s_.Copy:return"Segunda via";case s_.Partial:default:return"Parcial"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"academicTranscriptType",type:t,pure:!0})}}return t})();var Lvt=["academicTranscriptsTable"];function Vvt(t,n){t&1&&(d(0,"button",37)(1,"mat-icon",38),h(2,"add"),c(),h(3," Emitir hist. escolar "),c())}function Bvt(t,n){if(t&1){let e=ie();he(0),d(1,"button",39),$("click",function(){W(e);let r=S();return Y(r.downloadBatch())}),d(2,"mat-icon",40),h(3,"get_app"),c()(),fe()}}function jvt(t,n){if(t&1){let e=ie();d(0,"app-download-all-documents",41),$("onBatchDownloadClick",function(){W(e);let r=S();return Y(r.downloadAllBatch())}),c()}if(t&2){let e=S();f("description","Todos os "+e.selection.selected.length+" hist\xF3ricos escolares nesta p\xE1gina foram selecionados.")("downloadAllText","Baixar todos os "+e.histDataSource.totalCount+" hist\xF3ricos escolares.")}}function Hvt(t,n){if(t&1){let e=ie();d(0,"mat-cell",42)(1,"mat-checkbox",43),$("click",function(r){return W(e),Y(r.stopPropagation())})("change",function(r){let o=W(e).$implicit,a=S();return Y(r?a.toggleDocument(o):null)}),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("checked",i.selection.isSelected(e))}}function zvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function Uvt(t,n){if(t&1&&(d(0,"mat-cell",42),H(1,"app-academic-transcript-status-icon",44),c()),t&2){let e=n.$implicit;m(),f("status",e.status)}}function Gvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Diplomado(a)"),c())}function $vt(t,n){if(t&1){let e=ie();d(0,"mat-cell",45)(1,"spa-link-button",46),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.studentName)}}function qvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"CPF"),c())}function Wvt(t,n){if(t&1&&(d(0,"mat-cell",47),h(1),ce(2,"cpf"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.studentCpf)," ")}}function Yvt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function Kvt(t,n){if(t&1&&(d(0,"mat-cell",45),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.course," ")}}function Xvt(t,n){t&1&&(d(0,"mat-header-cell",48),h(1,"Tipo"),c())}function Qvt(t,n){if(t&1&&(d(0,"mat-cell",48),h(1),ce(2,"academicTranscriptType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.type)," ")}}function Zvt(t,n){t&1&&(d(0,"mat-header-cell",49),h(1,"Data de cria\xE7\xE3o"),c())}function Jvt(t,n){if(t&1&&(d(0,"mat-cell",49),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function ebt(t,n){t&1&&(d(0,"mat-header-cell",50),h(1,"Data de atualiza\xE7\xE3o"),c())}function tbt(t,n){if(t&1&&(d(0,"mat-cell",49),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function ibt(t,n){t&1&&(he(0),H(1,"router-outlet"),fe())}var u6=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.route=i,this.routeHelper=r,this.academicTranscriptService=o,this.router=a,this.dialog=s,this.OperationTypes=Pt,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1,this.selectedFn=l=>this.selectedFunction(l)}ngOnInit(){this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e))),this.searchForm=Jo.buildSearchParamsForm(),this.initSelection(),this.updateDataSource()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}navigateTo(e){this.batchId?this.router.navigate(["academic-transcripts",e],{relativeTo:this.route}):this.router.navigate([e],{relativeTo:this.route})}onRouteChange(e){if(this.academicTranscriptsTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="AcademicTranscriptList")try{this.academicTranscriptsTable.refresh()}catch{}}}selectedFunction(e){e.items.forEach(o=>o.selected=this.selection.selected.some(a=>a.id==o.id));let i=e.items.filter(o=>o.selected),r=this.selection.selected.filter(o=>i.some(a=>a.id===o.id));this.selection.deselect(...r),this.selection.select(...i)}updateDataSource(){let e=this.academicTranscriptService.listPaginatedFilters(this.buildAcademicTranscriptSearchParams(),this.selectedFn);this.histDataSource=new Al(e)}search(){this.updateDataSource()}refresh(){this.academicTranscriptsTable.refresh(),this.initSelection()}initSelection(){this.selection=new id(!0,[])}isAllCurrentSelected(){let e=this.histDataSource.currentItems.length;for(let i=0;i{s&&this.refresh()})}generateReport(){this.dialog.open(lm,{width:"500px",data:{selectedIds:this.selection.selected.map(e=>e.id),type:Pt.AcademicTranscript}})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Ut),E(ro),E(Qp),E(lt),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-list"]],viewQuery:function(i,r){if(i&1&&ot(Lvt,5),i&2){let o;Pe(o=Ne())&&(r.academicTranscriptsTable=o.first)}},inputs:{batchId:"batchId",hideActionButton:"hideActionButton"},decls:49,vars:12,consts:[["selectAllCheckbox",""],["academicTranscriptsTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","accent","routerLink","new",4,"ngIf"],[1,"document-toolbar"],[1,"toolbar-column-1"],[3,"change","checked","indeterminate","disabled"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[4,"ngIf"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[3,"submitted","operationType","form"],[1,"my-0"],[3,"description","downloadAllText","onBatchDownloadClick",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","disableSearch","true",1,"compact-table","centered-header-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","selected"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","studentName"],["class","d-none d-md-flex align-items-center justify-content-start",4,"matCellDef"],["matColumnDef","studentCpf"],["class","default d-none d-md-flex",4,"matCellDef"],["matColumnDef","course"],["matColumnDef","type"],["class","d-none d-md-flex flex-column justify-content-center",4,"matHeaderCellDef"],["class","d-none d-md-flex flex-column justify-content-center",4,"matCellDef"],["matColumnDef","creationDate"],["class","d-none d-md-flex",4,"matHeaderCellDef"],["class","d-none d-md-flex",4,"matCellDef"],["matColumnDef","updateDate"],["class","d-none d-md-flex","mat-sort-header","",4,"matHeaderCellDef"],["mat-flat-button","","color","accent","routerLink","new"],[1,"me-1"],["mat-icon-button","","matTooltip","Baixar selecionados",1,"ms-1","secondary-action-item",3,"click"],["aria-label","Download"],[3,"onBatchDownloadClick","description","downloadAllText"],[1,"d-md-flex","justify-content-center"],[3,"click","change","checked"],[3,"status"],[1,"d-none","d-md-flex","align-items-center","justify-content-start"],[3,"trigger"],[1,"default","d-none","d-md-flex"],[1,"d-none","d-md-flex","flex-column","justify-content-center"],[1,"d-none","d-md-flex"],["mat-sort-header","",1,"d-none","d-md-flex"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",2),H(1,"ngx-loading",3),d(2,"span",4),h(3,"Hist\xF3ricos Escolares"),c(),k(4,Vvt,4,0,"button",5),d(5,"div",6)(6,"div",7)(7,"mat-checkbox",8,0),$("change",function(s){return W(o),Y(s?r.masterToggle():null)}),c(),d(9,"button",9),$("click",function(){return W(o),Y(r.refresh())}),d(10,"mat-icon",10),h(11,"refresh"),c()(),k(12,Bvt,4,0,"ng-container",11),d(13,"button",12),$("click",function(){return W(o),Y(r.generateReport())}),d(14,"mat-icon",13),h(15,"assignment"),c()()(),d(16,"app-search-toolbar",14),$("submitted",function(){return W(o),Y(r.search())}),c()(),H(17,"hr",15),k(18,jvt,1,2,"app-download-all-documents",16),d(19,"lac-table",17,1)(21,"div",18)(22,"div",19)(23,"h3"),h(24,"Nenhum hist\xF3rico escolar cadastrado."),c()()(),he(25,20),k(26,Hvt,2,1,"mat-cell",21),fe(),he(27,22),k(28,zvt,2,0,"mat-header-cell",23)(29,Uvt,2,1,"mat-cell",21),fe(),he(30,24),k(31,Gvt,2,0,"mat-header-cell",23)(32,$vt,3,1,"mat-cell",25),fe(),he(33,26),k(34,qvt,2,0,"mat-header-cell",23)(35,Wvt,3,3,"mat-cell",27),fe(),he(36,28),k(37,Yvt,2,0,"mat-header-cell",23)(38,Kvt,2,1,"mat-cell",25),fe(),he(39,29),k(40,Xvt,2,0,"mat-header-cell",30)(41,Qvt,3,3,"mat-cell",31),fe(),he(42,32),k(43,Zvt,2,0,"mat-header-cell",33)(44,Jvt,3,4,"mat-cell",34),fe(),he(45,35),k(46,ebt,2,0,"mat-header-cell",36)(47,tbt,3,4,"mat-cell",34),fe(),c()(),k(48,ibt,2,0,"ng-container",11)}if(i&2){let o=je(8);f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected&&!r.hideActionButton),m(3),f("checked",r.selection.hasValue()&&r.isAllCurrentSelected())("indeterminate",r.selection.hasValue()&&!r.isAllCurrentSelected())("disabled",!r.histDataSource||r.histDataSource.currentItems.length==0),m(5),f("ngIf",r.selection.selected.length>0),m(4),f("operationType",r.OperationTypes.AcademicTranscript)("form",r.searchForm),m(2),f("ngIf",o.checked&&r.histDataSource.currentItems.length"+e.selection.selected.length+" curr\xEDculos nesta p\xE1gina foram selecionados.")("downloadAllText","Baixar todos os "+e.curriculumDataSource.totalCount+" curr\xEDculos.")}}function lbt(t,n){if(t&1){let e=ie();d(0,"mat-cell",38)(1,"mat-checkbox",39),$("click",function(r){return W(e),Y(r.stopPropagation())})("change",function(r){let o=W(e).$implicit,a=S();return Y(r?a.toggleDocument(o):null)}),c()()}if(t&2){let e=n.$implicit,i=S();m(),f("checked",i.selection.isSelected(e))}}function cbt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function dbt(t,n){if(t&1&&(d(0,"mat-cell",38),H(1,"app-curriculum-status-icon",40),c()),t&2){let e=n.$implicit;m(),f("status",e.status)}}function ubt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"C\xF3digo"),c())}function mbt(t,n){if(t&1){let e=ie();d(0,"mat-cell",41)(1,"spa-link-button",42),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.code)}}function pbt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Curso"),c())}function hbt(t,n){if(t&1&&(d(0,"mat-cell",41),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.course," ")}}function fbt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"IES"),c())}function gbt(t,n){if(t&1&&(d(0,"mat-cell",41),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.iesName," ")}}function _bt(t,n){t&1&&(d(0,"mat-header-cell",43),h(1,"Data de cria\xE7\xE3o"),c())}function vbt(t,n){if(t&1&&(d(0,"mat-cell",43),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function bbt(t,n){t&1&&(d(0,"mat-header-cell",44),h(1,"Data de atualiza\xE7\xE3o"),c())}function ybt(t,n){if(t&1&&(d(0,"mat-cell",43),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function xbt(t,n){t&1&&(he(0),H(1,"router-outlet"),fe())}var m6=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.route=i,this.routeHelper=r,this.curriculumService=o,this.router=a,this.dialog=s,this.OperationTypes=Pt,this.curriculumStatus=Object.keys(lu),this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1,this.selectedFn=l=>this.selectedFunction(l)}ngOnInit(){this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e))),this.searchForm=Jo.buildSearchParamsForm(),this.initSelection(),this.updateDataSource()}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}navigateTo(e){this.batchId?this.router.navigate(["curriculums",e],{relativeTo:this.route}):this.router.navigate([e],{relativeTo:this.route})}onRouteChange(e){if(this.curriculumsTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="CurriculumList")try{this.curriculumsTable.refresh()}catch{}}}selectedFunction(e){e.items.forEach(o=>o.selected=this.selection.selected.some(a=>a.id==o.id));let i=e.items.filter(o=>o.selected),r=this.selection.selected.filter(o=>i.some(a=>a.id===o.id));this.selection.deselect(...r),this.selection.select(...i)}updateDataSource(){let e=this.curriculumService.listPaginatedFilters(this.buildCurriculumSearchParams(),this.selectedFn);this.curriculumDataSource=new Al(e)}search(){this.updateDataSource()}refresh(){this.curriculumsTable.refresh(),this.initSelection()}initSelection(){this.selection=new id(!0,[])}isAllCurrentSelected(){let e=this.curriculumDataSource.currentItems.length;for(let i=0;i{s&&this.refresh()})}generateReport(){this.dialog.open(lm,{width:"500px",data:{selectedIds:this.selection.selected.map(e=>e.id),type:Pt.Curriculum}})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Ut),E(ro),E(Cg),E(lt),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-curriculum-list"]],viewQuery:function(i,r){if(i&1&&ot(rbt,5),i&2){let o;Pe(o=Ne())&&(r.curriculumsTable=o.first)}},inputs:{batchId:"batchId",hideActionButton:"hideActionButton"},decls:46,vars:12,consts:[["selectAllCheckbox",""],["curriculumsTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","accent","routerLink","new",4,"ngIf"],[1,"document-toolbar"],[1,"toolbar-column-1"],[3,"change","checked","indeterminate","disabled"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[4,"ngIf"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[3,"submitted","operationType","form"],[1,"my-0"],[3,"description","downloadAllText","onBatchDownloadClick",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","disableSearch","true",1,"compact-table","centered-header-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","selected"],["class","d-md-flex justify-content-center",4,"matCellDef"],["matColumnDef","status"],[4,"matHeaderCellDef"],["matColumnDef","code"],["class","d-none d-md-flex align-items-center justify-content-start",4,"matCellDef"],["matColumnDef","course"],["matColumnDef","iesName"],["matColumnDef","creationDate"],["class","d-none d-md-flex",4,"matHeaderCellDef"],["class","d-none d-md-flex",4,"matCellDef"],["matColumnDef","updateDate"],["class","d-none d-md-flex","mat-sort-header","",4,"matHeaderCellDef"],["mat-flat-button","","color","accent","routerLink","new"],[1,"me-1"],["mat-icon-button","","matTooltip","Baixar selecionados",1,"ms-1","secondary-action-item",3,"click"],["aria-label","Download"],[3,"onBatchDownloadClick","description","downloadAllText"],[1,"d-md-flex","justify-content-center"],[3,"click","change","checked"],[3,"status"],[1,"d-none","d-md-flex","align-items-center","justify-content-start"],[3,"trigger"],[1,"d-none","d-md-flex"],["mat-sort-header","",1,"d-none","d-md-flex"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",2),H(1,"ngx-loading",3),d(2,"span",4),h(3,"Curr\xEDculos Escolares"),c(),k(4,obt,4,0,"button",5),d(5,"div",6)(6,"div",7)(7,"mat-checkbox",8,0),$("change",function(s){return W(o),Y(s?r.masterToggle():null)}),c(),d(9,"button",9),$("click",function(){return W(o),Y(r.refresh())}),d(10,"mat-icon",10),h(11,"refresh"),c()(),k(12,abt,4,0,"ng-container",11),d(13,"button",12),$("click",function(){return W(o),Y(r.generateReport())}),d(14,"mat-icon",13),h(15,"assignment"),c()()(),d(16,"app-search-toolbar",14),$("submitted",function(){return W(o),Y(r.search())}),c()(),H(17,"hr",15),k(18,sbt,1,2,"app-download-all-documents",16),d(19,"lac-table",17,1)(21,"div",18)(22,"div",19)(23,"h3"),h(24,"Nenhum curr\xEDculo cadastrado."),c()()(),he(25,20),k(26,lbt,2,1,"mat-cell",21),fe(),he(27,22),k(28,cbt,2,0,"mat-header-cell",23)(29,dbt,2,1,"mat-cell",21),fe(),he(30,24),k(31,ubt,2,0,"mat-header-cell",23)(32,mbt,3,1,"mat-cell",25),fe(),he(33,26),k(34,pbt,2,0,"mat-header-cell",23)(35,hbt,2,1,"mat-cell",25),fe(),he(36,27),k(37,fbt,2,0,"mat-header-cell",23)(38,gbt,2,1,"mat-cell",25),fe(),he(39,28),k(40,_bt,2,0,"mat-header-cell",29)(41,vbt,3,4,"mat-cell",30),fe(),he(42,31),k(43,bbt,2,0,"mat-header-cell",32)(44,ybt,3,4,"mat-cell",30),fe(),c()(),k(45,xbt,2,0,"ng-container",11)}if(i&2){let o=je(8);f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected&&!r.hideActionButton),m(3),f("checked",r.selection.hasValue()&&r.isAllCurrentSelected())("indeterminate",r.selection.hasValue()&&!r.isAllCurrentSelected())("disabled",!r.curriculumDataSource||r.curriculumDataSource.currentItems.length==0),m(5),f("ngIf",r.selection.selected.length>0),m(4),f("operationType",r.OperationTypes.Curriculum)("form",r.searchForm),m(2),f("ngIf",o.checked&&r.curriculumDataSource.currentItems.length0)}}function Ibt(t,n){if(t&1&&H(0,"app-degree-list",20),t&2){let e=S(2);f("batchId",e.batch.id)}}function Dbt(t,n){if(t&1&&H(0,"app-emission-list",21),t&2){let e=S(2);f("batchId",e.batch.id)("hideActionButton",!0)}}function Tbt(t,n){if(t&1&&H(0,"app-registration-list",21),t&2){let e=S(2);f("batchId",e.batch.id)("hideActionButton",!0)}}function Abt(t,n){if(t&1&&H(0,"app-academic-transcript-list",21),t&2){let e=S(2);f("batchId",e.batch.id)("hideActionButton",!0)}}function kbt(t,n){if(t&1&&H(0,"app-curriculum-list",21),t&2){let e=S(2);f("batchId",e.batch.id)("hideActionButton",!0)}}function Mbt(t,n){if(t&1&&(he(0),k(1,Ibt,1,1,"app-degree-list",18)(2,Dbt,1,2,"app-emission-list",19)(3,Tbt,1,2,"app-registration-list",19)(4,Abt,1,2,"app-academic-transcript-list",19)(5,kbt,1,2,"app-curriculum-list",19),fe()),t&2){let e=S();m(),f("ngIf",e.batch.type==e.BatchTypes.EmissionRegistration),m(),f("ngIf",e.batch.type==e.BatchTypes.Emission),m(),f("ngIf",e.batch.type==e.BatchTypes.Registration),m(),f("ngIf",e.batch.type==e.BatchTypes.AcademicTranscript),m(),f("ngIf",e.batch.type==e.BatchTypes.Curriculum)}}var aye=(()=>{class t{constructor(e,i,r,o){this.route=e,this.router=i,this.batchService=r,this.routeHelper=o,this.$toUnsubscribe=[],this.Statuses=lf,this.BatchTypes=Bl,this.loading=!1}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.labels={Emission:{totalDegreesCreated:"Requisi\xE7\xF5es criadas",totalDegrees:"Total de requisi\xE7\xF5es"},Registration:{totalDegreesCreated:"Requisi\xE7\xF5es criadas",totalDegrees:"Total de requisi\xE7\xF5es"},EmissionRegistration:{totalDegreesCreated:"Diplomas Criados",totalDegrees:"Total Diplomas"},AcademicTranscript:{totalDegreesCreated:"Hist\xF3ricos escolares criados",totalDegrees:"Total de hist\xF3ricos escolares"},Curriculum:{totalDegreesCreated:"Curr\xEDculos escolares criados",totalDegrees:"Total de curr\xEDculos escolares"}},this.load(),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}onRouteChange(e){if(e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];i.name=="BatchDetail"&&this.load()}}load(){this.batch=null,this.loading=!0,this.batchService.get(this.id).subscribe(e=>{this.loading=!1,this.batch=e},e=>this.loading=!1)}downloadLog(){this.loading=!0,this.batchService.generateLogTicket(this.batch.id).subscribe(e=>{this.loading=!1,document.location.href=e.location},e=>this.loading=!1)}viewProgress(){this.router.navigate(["progress"],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(dc),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-batch-detail"]],decls:7,vars:4,consts:[[3,"hidden"],[3,"show"],["box-title",""],["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"col-md-6"],["label","Data de Cria\xE7\xE3o",1,"col-5"],["label","Tipo"],["label","Data de Atualiza\xE7\xE3o"],["label","Criado por"],["label","Status"],["class","col-md-6",4,"ngIf"],[3,"label"],["label","Erros"],[1,"text-warn"],["color","primary","mat-flat-button","",1,"my-2",3,"click"],[1,"me-1"],[3,"batchId",4,"ngIf"],[3,"batchId","hideActionButton",4,"ngIf"],[3,"batchId"],[3,"batchId","hideActionButton"]],template:function(i,r){i&1&&(d(0,"spa-box",0),H(1,"ngx-loading",1),d(2,"span",2),h(3,"Detalhes do lote"),c(),k(4,Ebt,35,22,"div",3),c(),k(5,Mbt,6,5,"ng-container",4),H(6,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.batch),m(),f("ngIf",r.batch))},dependencies:[Ee,He,Ze,li,un,wn,_n,l6,c6,d6,u6,m6,rn,i6,n6]})}}return t})();var p6=(()=>{class t{transform(e){switch(e){case Xp.ErroDeFato:return"Erro de Fato";case Xp.ErroDeDireito:return"Erro de Direito";case Xp.DecisaoJudicial:return"Decis\xE3o Judicial";case Xp.ReemissaoParaComplementoDeInformacao:return"Reemiss\xE3o para Complemento de Informa\xE7\xE3o";case Xp.ReemissaoParaInclusaoDeHabilitacao:return"Reemiss\xE3o para Inclus\xE3o de Habilita\xE7\xE3o";case Xp.ReemissaoParaAnotacaoDeRegistro:return"Reemiss\xE3o para Anota\xE7ao de Registro";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"cancellationReason",type:t,pure:!0})}}return t})();function Fbt(t,n){t&1&&(d(0,"span"),h(1,"Anula\xE7\xE3o"),c())}function Rbt(t,n){t&1&&(d(0,"span"),h(1,"Anula\xE7\xE3o Tempor\xE1ria"),c())}function Pbt(t,n){t&1&&(d(0,"span"),h(1,"Restaura\xE7\xE3o"),c())}function Nbt(t,n){if(t&1&&(d(0,"h2"),k(1,Fbt,2,0,"span",4)(2,Rbt,2,0,"span",4)(3,Pbt,2,0,"span",4),h(4," de diploma "),c()),t&2){let e=S();m(),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily)}}function Obt(t,n){t&1&&(d(0,"strong"),h(1,"anula\xE7\xE3o"),c())}function Lbt(t,n){t&1&&(d(0,"strong"),h(1,"anula\xE7\xE3o tempor\xE1ria"),c())}function Vbt(t,n){t&1&&(d(0,"strong"),h(1,"restaura\xE7\xE3o"),c())}function Bbt(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"cancellationReason"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function jbt(t,n){if(t&1&&(d(0,"mat-form-field",8)(1,"mat-label"),h(2,"Motivo da anula\xE7\xE3o"),c(),d(3,"mat-select",11),k(4,Bbt,3,4,"mat-option",12),c()()),t&2){let e=S(2);m(4),f("ngForOf",e.cancellationReasons)}}function Hbt(t,n){t&1&&(d(0,"span"),h(1,"O diploma ainda n\xE3o foi completamente assinado, portanto ser\xE1 exclu\xEDdo no Assinador."),c())}function zbt(t,n){if(t&1&&(d(0,"mat-card",14)(1,"span",15),k(2,Hbt,2,0,"span",4),h(3," Esta a\xE7\xE3o n\xE3o poder\xE1 ser revertida."),c()()),t&2){let e=S(2);m(2),f("ngIf",!e.isSigned)}}function Ubt(t,n){if(t&1&&(d(0,"p",5),h(1,"Informe o motivo da "),k(2,Obt,2,0,"strong",4)(3,Lbt,2,0,"strong",4)(4,Vbt,2,0,"strong",4),h(5," do diploma:"),c(),d(6,"form",6),k(7,jbt,5,1,"mat-form-field",7),d(8,"mat-form-field",8)(9,"mat-label"),h(10,"Descri\xE7\xE3o"),c(),H(11,"textarea",9),d(12,"mat-error"),h(13),c()()(),k(14,zbt,4,1,"mat-card",10)),t&2){let e=S();m(2),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily),m(2),f("formGroup",e.form),m(),f("ngIf",e.shouldDisplayCancellationReasonSelect),m(6),U(e.Error.get(e.form,"reason")),m(),f("ngIf",e.isCancel)}}function Gbt(t,n){t&1&&(d(0,"span"),h(1,"Anular"),c())}function $bt(t,n){t&1&&(d(0,"span"),h(1,"Anular temporariamente"),c())}function qbt(t,n){t&1&&(d(0,"span"),h(1,"Restaurar"),c())}function Wbt(t,n){if(t&1){let e=ie();d(0,"button",16),$("click",function(){W(e);let r=S();return Y(r.submit())}),k(1,Gbt,2,0,"span",4)(2,$bt,2,0,"span",4)(3,qbt,2,0,"span",4),c(),d(4,"button",17),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5,"Cancelar"),c()}if(t&2){let e=S();f("disabled",!e.form.valid)("color",e.isCancel||e.isCanceledTemporarily?"warn":"primary"),m(),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily)}}var lye=(()=>{class t{get isCancel(){return this.status==bl.Canceled}get isCanceledTemporarily(){return this.status==bl.CanceledTemporarily}get shouldDisplayCancellationReasonSelect(){return this.isSigned&&this.isCancel}constructor(e,i,r,o,a,s){this.formBuilder=e,this.degreeService=i,this.messageService=r,this.Error=o,this.dialogRef=s,this.cancellationReasons=Object.keys(Xp),this.degreeId=a.degreeId,this.status=a.status,this.isSigned=a.isSigned}ngOnInit(){if(this.form=this.formBuilder.group({reason:[null,[Se.maxLength(500)]]}),this.shouldDisplayCancellationReasonSelect){let e=this.formBuilder.control(null,[Se.required]);this.form.setControl("cancellationReason",e)}(!this.isCancel||!this.isSigned)&&this.form.get("reason").setValidators([Se.required,Se.maxLength(500)]),this.form.updateValueAndValidity()}submit(){let e=this.form.get("cancellationReason")?.value,i=this.form.get("reason").value;this.loading=!0,this.degreeService.updateStatus(this.degreeId,this.status,e,i).subscribe(()=>{this.loading=!1,this.messageService.showSuccess("Diploma atualizado com sucesso"),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Jo),E(Bi),E(wi),E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-degree-update-status"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[4,"ngIf"],[1,"mb-2"],[3,"formGroup"],["class","w-100",4,"ngIf"],[1,"w-100"],["matInput","","formControlName","reason","placeholder","Motivo","rows","7","maxlength","500",1,"md-textarea","md-textarea-auto"],["appearance","outlined","class","bg-warn mat-elevation-z0 mat-3 warning-card",4,"ngIf"],["formControlName","cancellationReason"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["appearance","outlined",1,"bg-warn","mat-elevation-z0","mat-3","warning-card"],[1,"text-white"],["mat-raised-button","","tabindex","-1",3,"click","disabled","color"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,Nbt,5,3,"ng-template",null,0,Ii)(3,Ubt,15,7,"ng-template",null,1,Ii)(5,Wbt,6,5,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Vt,Ee,zt,Gt,it,pt,wc,dt,Tt,Ze,Wt,bt,jt,Si,ws,Mi,Li,Uo,p6]})}}return t})();function Ybt(t,n){t&1&&(d(0,"h2"),h(1,"Gerar hist\xF3rico"),c())}function Kbt(t,n){if(t&1){let e=ie();d(0,"p"),h(1,"Para gerar o hist\xF3rico, preencha os campos abaixo:"),c(),d(2,"form",4),H(3,"app-template-autocomplete-selector",5),d(4,"app-folder-selector",6),tn("selectedItemChange",function(r){W(e);let o=S();return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c(),d(5,"app-signature-flow-selector",7),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),H(6,"app-signature-flow-form",8),c()}if(t&2){let e=S();m(2),f("formGroup",e.form),m(),f("type",e.TemplateTypes.AcademicTranscript)("templateControl",e.academicTranscriptTemplateControl)("templateIdControl",e.form.get("academicTranscriptTemplateId")),m(),en("selectedItem",e.selectedFolder),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type)}}function Xbt(t,n){if(t&1){let e=ie();d(0,"button",9),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"mat-icon"),h(2,"add"),c(),h(3," Gerar "),c(),d(4,"button",10),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5," Cancelar "),c()}if(t&2){let e=S();f("disabled",e.form.invalid)}}var cye=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.formBuilder=e,this.degreeService=i,this.documentFlowService=r,this.messageService=o,this.settingService=a,this.Error=s,this.dialogRef=l,this.TemplateTypes=Jr,this.academicTranscriptTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.selectedFolder=this.settingService.NoFolder,this.type=Ro.AcademicTranscript,this.degreeId=u.degreeId}ngOnInit(){this.form=this.formBuilder.group({documentFlowId:[null,[Se.maxLength(255)]],academicTranscriptTemplateId:[null,[Se.required,Se.maxLength(255)]]}),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type))}submit(){if(!this.form.valid||!this.degreeId)return;let{academicTranscriptTemplateId:e,documentFlowId:i}=this.form.value;this.loading=!0;let r={academicTranscriptTemplateId:e,documentFlowId:i,documentFlow:this.documentFlowService.getFormData(this.form.get(ds)),signerFolderId:this.selectedFolder.id===this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id===this.settingService.NewFolderId?this.selectedFolder.name:null};this.degreeService.createAcademicTranscriptFromDegree(this.degreeId,r).subscribe(o=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Jo),E(oa),E(Bi),E(Xa),E(wi),E(Qr),E(mr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-academic-transcript-create-from-degree"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup"],[3,"type","templateControl","templateIdControl"],[3,"selectedItemChange","selectedItem"],[3,"loadingChange","form","type"],[3,"form","type"],["mat-raised-button","","color","accent","tabindex","-1",3,"click","disabled"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,Ybt,2,0,"ng-template",null,0,Ii)(3,Kbt,7,9,"ng-template",null,1,Ii)(5,Xbt,6,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[zt,pt,dt,He,Ze,uc,am,sm,Ig,Uo]})}}return t})();var Qbt=[[["","header",""]]],Zbt=["[header]"];function Jbt(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.exportClick())}),d(1,"mat-icon"),h(2,"sim_card_download"),c()()}}function eyt(t,n){if(t&1){let e=ie();d(0,"button",8),$("click",function(){W(e);let r=S();return Y(r.refreshClick())}),d(1,"mat-icon"),h(2,"refresh"),c()()}}function tyt(t,n){if(t&1){let e=ie();d(0,"button",8),$("click",function(){W(e);let r=S();return Y(r.editClick())}),d(1,"mat-icon"),h(2,"edit"),c()()}}var eh=(()=>{class t{constructor(e){this.documentService=e,this.refresh=new Ae,this.edit=new Ae}ngOnInit(){}refreshClick(){this.refresh.emit()}editClick(){this.edit.emit()}exportClick(){this.loading=!0,this.documentService.getExportedDocumentTicket(this.documentId,this.documentType).subscribe(e=>{this.loading=!1,window.location.href=e.location},e=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ub))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-box-title"]],inputs:{loading:"loading",showEditButton:"showEditButton",hideRefreshButton:"hideRefreshButton",documentId:"documentId",showExportButton:"showExportButton",documentType:"documentType"},outputs:{refresh:"refresh",edit:"edit"},ngContentSelectors:Zbt,decls:10,vars:3,consts:[[1,"d-flex","align-items-center"],[1,"text-accent"],[1,"box-title","mb-0"],[1,"ms-auto"],["color","primary","mat-icon-button","","type","button","matTooltip","Exportar diploma",3,"click",4,"ngIf"],["color","primary","mat-icon-button","","type","button",3,"click",4,"ngIf"],[1,"my-2"],["color","primary","mat-icon-button","","type","button","matTooltip","Exportar diploma",3,"click"],["color","primary","mat-icon-button","","type","button",3,"click"]],template:function(i,r){i&1&&(hi(Qbt),d(0,"div",0)(1,"mat-icon",1),h(2,"keyboard_arrow_right"),c(),d(3,"h1",2),ct(4),c(),d(5,"div",3),k(6,Jbt,3,0,"button",4)(7,eyt,3,0,"button",5)(8,tyt,3,0,"button",5),c()(),H(9,"mat-divider",6)),i&2&&(m(6),f("ngIf",r.showExportButton),m(),f("ngIf",!r.hideRefreshButton),m(),f("ngIf",r.showEditButton))},dependencies:[Ee,He,fi,kc,yi]})}}return t})();function iyt(t,n){t&1&&(d(0,"mat-header-cell",17),h(1,"Data"),c())}function nyt(t,n){if(t&1&&(d(0,"mat-cell",17),h(1),ce(2,"spaDate"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.date,"short")," ")}}function ryt(t,n){t&1&&(d(0,"mat-header-cell",18),h(1,"Opera\xE7\xE3o"),c())}function oyt(t,n){if(t&1&&(d(0,"mat-cell",18),h(1),ce(2,"eventType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.type)," ")}}function ayt(t,n){t&1&&(d(0,"mat-header-cell",18),h(1,"Detalhes"),c())}function syt(t,n){if(t&1&&(d(0,"mat-cell",18),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.details," ")}}function lyt(t,n){t&1&&(d(0,"mat-header-cell",19),h(1,"Usu\xE1rio"),c())}function cyt(t,n){if(t&1&&(d(0,"mat-cell",19),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.agent==null?null:e.agent.name," ")}}function dyt(t,n){t&1&&H(0,"mat-header-row")}function uyt(t,n){t&1&&H(0,"mat-row")}function myt(t,n){if(t&1&&(d(0,"div",1),H(1,"ngx-loading",2),d(2,"lac-table",3)(3,"div",4)(4,"h4")(5,"strong"),h(6,"Nenhum evento cadastrado"),c()()(),he(7,5),k(8,iyt,2,0,"mat-header-cell",6)(9,nyt,3,4,"mat-cell",7),fe(),he(10,8),k(11,ryt,2,0,"mat-header-cell",9)(12,oyt,3,3,"mat-cell",10),fe(),he(13,11),k(14,ayt,2,0,"mat-header-cell",9)(15,syt,2,1,"mat-cell",10),fe(),he(16,12),k(17,lyt,2,0,"mat-header-cell",13)(18,cyt,2,1,"mat-cell",14),fe(),k(19,dyt,1,0,"mat-header-row",15)(20,uyt,1,0,"mat-row",16),c()()),t&2){let e=S();m(),f("show",e.loading),m(),f("dataSource",e.events),m(17),f("matHeaderRowDef",e.displayedColumns),m(),f("matRowDefColumns",e.displayedColumns)}}var RI=(()=>{class t{constructor(e){this.documentService=e,this.displayedColumns=["date","event","details","agent"],this.tableShouldBeLoaded=!0}ngOnInit(){}ngOnChanges(e){e.loadTable?.currentValue&&this.load()}load(){this.tableShouldBeLoaded&&(this.loading=!0,this.documentService.getEvents(this.documentId,this.type).subscribe(e=>{this.events=e,this.loading=!1,this.tableShouldBeLoaded=!1},e=>{this.loading=!1,this.tableShouldBeLoaded=!1}))}static{this.\u0275fac=function(i){return new(i||t)(E(Ub))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-document-events"]],inputs:{loadTable:"loadTable",documentId:"documentId",type:"type"},features:[Oi],decls:1,vars:0,consts:[["class","loader-container",4,"transloco"],[1,"loader-container"],[3,"show"],["initialPageSize","5","matSort","","matSortDisabled","true","disableSearch","true",1,"compact-table","table-striped","events-table","centered-cells",3,"dataSource"],["lac-table-empty","",1,"text-center","p-4","mt-4"],["matColumnDef","date"],["fxFlex","15",4,"matHeaderCellDef"],["fxFlex","15",4,"matCellDef"],["matColumnDef","event"],["fxFlex","65",4,"matHeaderCellDef"],["fxFlex","65",4,"matCellDef"],["matColumnDef","details"],["matColumnDef","agent"],["fxFlex","25",4,"matHeaderCellDef"],["fxFlex","25",4,"matCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["fxFlex","15"],["fxFlex","65"],["fxFlex","25"]],template:function(i,r){i&1&&k(0,myt,21,4,"div",0)},dependencies:[zn,Mm,Vn,Hn,Fm,tr,ir,Uh,Gh,Kn,li,dr,Xr,Fn,Hx,QE]})}}return t})();function pyt(t,n){t&1&&(d(0,"mat-header-cell",12),h(1,"Data de cria\xE7\xE3o"),c())}function hyt(t,n){if(t&1&&(d(0,"mat-cell",13),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.creationDate,"short")," ")}}function fyt(t,n){t&1&&(d(0,"mat-header-cell",13),h(1,"Tipo"),c())}function gyt(t,n){if(t&1&&(d(0,"mat-cell",13),h(1),ce(2,"documentType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.documentType)," ")}}function _yt(t,n){t&1&&(he(0,14),k(1,fyt,2,0,"mat-header-cell",11)(2,gyt,3,3,"mat-cell",6),fe())}function vyt(t,n){t&1&&(d(0,"mat-header-cell",12),h(1,"Data da renotariza\xE7\xE3o"),c())}function byt(t,n){if(t&1&&(d(0,"mat-cell",13),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",e.date!=null?Bt(2,1,e.date,"dd/MM/yyyy"):"N\xE3o renotarizado"," ")}}function yyt(t,n){t&1&&(d(0,"mat-header-cell",12),h(1,"Data de expira\xE7\xE3o"),c())}function xyt(t,n){if(t&1&&(d(0,"mat-cell",13),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.archivingExpiringDate,"dd/MM/yyyy")," ")}}function Cyt(t,n){t&1&&(d(0,"mat-header-cell",13),h(1,"Mensagem de erro"),c())}function Syt(t,n){if(t&1&&(d(0,"mat-cell",13),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.errorReason," ")}}var ny=(()=>{class t{constructor(e){this.documentService=e,this.DocumentTypes=_d,this.tableShouldBeLoaded=!0}ngOnInit(){}ngOnChanges(e){e.loadTable?.currentValue&&this.load()}load(){this.tableShouldBeLoaded&&(this.loading=!0,this.documentService.getRestamps(this.documentId,this.documentType).subscribe(e=>{this.restamps=e,this.loading=!1,this.tableShouldBeLoaded=!1},e=>{this.loading=!1,this.tableShouldBeLoaded=!1}))}static{this.\u0275fac=function(i){return new(i||t)(E(Ub))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-document-restamp-table"]],inputs:{loadTable:"loadTable",documentId:"documentId",documentType:"documentType"},features:[Oi],decls:19,vars:2,consts:[["restampsTable",""],["matSort","","matSortActive","creationDate","matSortDirection","desc","disableSearch","true",1,"centered-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","creationDate"],["mat-sort-header","","fxFlex","65",4,"matHeaderCellDef"],["fxFlex","65",4,"matCellDef"],["matColumnDef","documentType",4,"ngIf"],["matColumnDef","date"],["matColumnDef","archivingExpiringDate"],["matColumnDef","errorReason"],["fxFlex","65",4,"matHeaderCellDef"],["mat-sort-header","","fxFlex","65"],["fxFlex","65"],["matColumnDef","documentType"]],template:function(i,r){i&1&&(d(0,"lac-table",1,0)(2,"div",2)(3,"div",3)(4,"h3"),h(5,"Nenhuma renotariza\xE7\xE3o cadastrada."),c()()(),he(6,4),k(7,pyt,2,0,"mat-header-cell",5)(8,hyt,3,4,"mat-cell",6),fe(),k(9,_yt,3,0,"ng-container",7),he(10,8),k(11,vyt,2,0,"mat-header-cell",5)(12,byt,3,4,"mat-cell",6),fe(),he(13,9),k(14,yyt,2,0,"mat-header-cell",5)(15,xyt,3,4,"mat-cell",6),fe(),he(16,10),k(17,Cyt,2,0,"mat-header-cell",11)(18,Syt,2,1,"mat-cell",6),fe(),c()),i&2&&(f("dataSource",r.restamps),m(9),f("ngIf",r.documentType==r.DocumentTypes.Degree))},dependencies:[Ee,zn,Vn,Hn,tr,ir,Kn,Lr,dr,Xr,rn,EI]})}}return t})();var wyt=["menuTrigger"];function Eyt(t,n){t&1&&(d(0,"b"),h(1,"Assinado"),c())}function Iyt(t,n){t&1&&(d(0,"b"),h(1,"Aguardando assinaturas"),c())}function Dyt(t,n){if(t&1){let e=ie();d(0,"div",51)(1,"spa-prop",52),k(2,Eyt,2,0,"b",46)(3,Iyt,2,0,"b",46),c(),d(4,"div",53)(5,"div")(6,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.viewAcademicTranscriptOnSigner())}),d(7,"mat-icon",50),h(8,"launch"),c(),h(9,"Ver no Assinador "),c()(),d(10,"div")(11,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.viewAcademicTranscript())}),d(12,"mat-icon",50),h(13,"history_edu"),c(),h(14,"Ver hist\xF3rico escolar "),c()()()()}if(t&2){let e=S(3);m(2),f("ngIf",e.academicTranscript.isAcademicTranscriptSigned),m(),f("ngIf",!e.academicTranscript.isAcademicTranscriptSigned)}}function Tyt(t,n){t&1&&(d(0,"b"),h(1,"Assinada"),c())}function Ayt(t,n){t&1&&(d(0,"b"),h(1,"Aguardando assinaturas"),c())}function kyt(t,n){if(t&1){let e=ie();d(0,"div",48)(1,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.getAcademicDocXmlFile())}),d(2,"mat-icon",50),h(3,"save_alt"),c(),h(4,"Doc. acad\xEAmica "),c()()}}function Myt(t,n){if(t&1){let e=ie();d(0,"div",48)(1,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.createAcademicTranscript())}),d(2,"mat-icon",50),h(3,"history_edu"),c(),h(4,"Gerar hist\xF3rico "),c()()}}function Fyt(t,n){if(t&1){let e=ie();d(0,"div",14),k(1,Dyt,15,2,"div",43),d(2,"div",44)(3,"spa-prop",45),k(4,Tyt,2,0,"b",46)(5,Ayt,2,0,"b",46),c(),d(6,"div",14),k(7,kyt,5,0,"div",47),d(8,"div",48)(9,"button",49),$("click",function(){W(e);let r=S(2);return Y(r.viewAcademicDocOnSigner())}),d(10,"mat-icon",50),h(11,"launch"),c(),h(12,"Ver no Assinador "),c()(),k(13,Myt,5,0,"div",47),c()()()}if(t&2){let e=S(2);m(),f("ngIf",e.academicTranscript&&e.academicTranscript.status!=e.AcademicTranscriptStatus.Canceled&&e.academicTranscript.status!=e.AcademicTranscriptStatus.CanceledTemporarily),m(3),f("ngIf",e.degree.isAcademicDocumentationSigned),m(),f("ngIf",!e.degree.isAcademicDocumentationSigned),m(2),f("ngIf",e.degree.isAcademicDocumentationSigned),m(6),f("ngIf",e.degree.canGenerateAcademicTranscript)}}function Ryt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation())}),d(2,"mat-icon",50),h(3,"save_alt"),c(),h(4,"Representa\xE7\xE3o Visual"),c()()}}function Pyt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation(!0))}),d(2,"mat-icon",50),h(3,"save_alt"),c(),h(4,"Representa\xE7\xE3o Visual timbrada"),c()()}}function Nyt(t,n){if(t&1&&(d(0,"div",54)(1,"p",26),h(2,"Representa\xE7\xE3o visual"),c(),d(3,"div",14),k(4,Ryt,5,0,"div",55)(5,Pyt,5,0,"div",55),c()()),t&2){let e=S(2);m(4),f("ngIf",e.degree.hasVisualRepresentation),m(),f("ngIf",e.degree.hasLetterhead)}}function Oyt(t,n){t&1&&(d(0,"span"),h(1,"Aguardando assinaturas"),c())}function Lyt(t,n){t&1&&(d(0,"span",56),h(1,"Assinado"),c())}function Vyt(t,n){t&1&&(d(0,"span",57),h(1,"Anulado"),c())}function Byt(t,n){t&1&&(d(0,"span",58),h(1,"Anulado temporariamente"),c())}function jyt(t,n){t&1&&(d(0,"mat-icon",59),h(1,"warning"),c())}function Hyt(t,n){if(t&1){let e=ie();d(0,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.viewOnSigner())}),d(1,"mat-icon",50),h(2,"launch"),c(),h(3,"Ver no Assinador"),c()}}function zyt(t,n){if(t&1){let e=ie();d(0,"button",49),$("click",function(){W(e);let r=S(3);return Y(r.getXmlFile())}),d(1,"mat-icon",50),h(2,"save_alt"),c(),h(3,"Diploma"),c()}}function Uyt(t,n){if(t&1){let e=ie();d(0,"div",38),k(1,Hyt,4,0,"button",60),d(2,"button",61),$("click",function(){W(e);let r=S(2);return Y(r.validate())}),d(3,"mat-icon",50),h(4,"check"),c(),h(5,"Validar"),c(),k(6,zyt,4,0,"button",60),c()}if(t&2){let e=S(2);m(),f("ngIf",e.degree.signerDocumentUrl),m(5),f("ngIf",e.degree.isSigned)}}function Gyt(t,n){if(t&1){let e=ie();d(0,"button",62,1),$("click",function(){W(e);let r=S(2);return Y(r.onCancelClick())}),d(2,"mat-icon",50),h(3,"cancel"),c(),h(4,"Anular diploma"),c()}if(t&2){S();let e=je(48);f("matMenuTriggerFor",e)}}function $yt(t,n){if(t&1){let e=ie();d(0,"button",41),$("click",function(){W(e);let r=S(2);return Y(r.cancel(!0))}),d(1,"mat-icon"),h(2,"schedule"),c(),h(3,"Temporariamente"),c()}}function qyt(t,n){if(t&1){let e=ie();d(0,"button",63),$("click",function(){W(e);let r=S(2);return Y(r.restore())}),d(1,"mat-icon",50),h(2,"restore"),c(),h(3,"Restaurar diploma"),c()}}function Wyt(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"div",15)(2,"div",14)(3,"div",16)(4,"spa-prop",17),h(5),c()(),d(6,"div",16)(7,"spa-prop",18),h(8),ce(9,"cpf"),c()()(),d(10,"spa-prop",19),h(11),c(),d(12,"div",14)(13,"div",16)(14,"spa-prop",20),h(15),c()(),d(16,"div",16)(17,"spa-prop",21),h(18),c()()(),d(19,"div",14)(20,"div",16)(21,"spa-prop",22),h(22),ce(23,"date"),c()(),d(24,"div",16)(25,"spa-prop",23),h(26),ce(27,"date"),c()()(),k(28,Fyt,14,5,"div",7)(29,Nyt,6,2,"div",24),c(),d(30,"div",25)(31,"p",26),h(32,"Diploma"),c(),d(33,"div",27),H(34,"app-degree-status-icon",28),d(35,"h2",29),he(36,30),k(37,Oyt,2,0,"span",31)(38,Lyt,2,0,"span",32)(39,Vyt,2,0,"span",33)(40,Byt,2,0,"span",34),fe(),c(),k(41,jyt,2,0,"mat-icon",35),c(),d(42,"spa-prop",36),h(43),c(),k(44,Uyt,7,2,"div",37),d(45,"div",38),k(46,Gyt,5,1,"button",39),d(47,"mat-menu",null,0),k(49,$yt,4,0,"button",40),d(50,"button",41),$("click",function(){W(e);let r=S();return Y(r.cancel())}),d(51,"mat-icon"),h(52,"clear"),c(),h(53,"Definitivamente"),c()(),k(54,qyt,4,0,"button",42),c()()()}if(t&2){let e=S();m(5),U(e.degree.studentName),m(3),U(xe(9,21,e.degree.studentCpf)),m(3),U(e.degree.course),m(4),U(e.degree.issuingIes),m(3),U(e.degree.registeringIes),m(4),U(Bt(23,23,e.degree.creationDate,"short")),m(4),U(Bt(27,26,e.degree.updateDate,"short")),m(2),f("ngIf",!e.isCanceledOrCanceledTemporarily),m(),f("ngIf",!e.isCanceledOrCanceledTemporarily),m(5),f("status",e.degree.status),m(2),f("ngSwitch",e.degree.status),m(),f("ngSwitchCase",e.Statuses.Created),m(),f("ngSwitchCase",e.Statuses.Active),m(),f("ngSwitchCase",e.Statuses.Canceled),m(),f("ngSwitchCase",e.Statuses.CanceledTemporarily),m(),f("ngIf",e.degree.status==e.Statuses.Active&&!e.degree.isAcademicDocumentationSigned),m(2),U(e.degree.verificationCode),m(),f("ngIf",!e.isCanceledOrCanceledTemporarily),m(2),f("ngIf",e.degree.status!=e.Statuses.Canceled),m(3),f("ngIf",!e.isCanceledOrCanceledTemporarily&&e.degree.isSigned),m(5),f("ngIf",e.degree.status==e.Statuses.CanceledTemporarily&&e.degree.isSigned)}}function Yyt(t,n){if(t&1&&(d(0,"div",64),H(1,"app-degree-history-table",65),c()),t&2){let e=S();m(),f("history",e.history)}}function Kyt(t,n){if(t&1&&(d(0,"mat-tab",66),H(1,"app-document-restamp-table",67),c()),t&2){let e=S();m(),f("loadTable",e.tabIndex==2)("documentId",e.id)("documentType",e.Type)}}var f6=(()=>{class t{get isCanceledOrCanceledTemporarily(){return this.degree.status===bl.Canceled||this.degree.status===bl.CanceledTemporarily}constructor(e,i,r,o,a){this.route=e,this.degreeService=i,this.dialog=r,this.router=o,this.routeHelper=a,this.Type=Pt.Degree,this.Statuses=bl,this.AcademicTranscriptStatus=Ms,this.loading=!1,this.loadingHistory=!1}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.load()}load(){this.loading=!0,this.degreeService.get(this.id).subscribe(e=>{this.loading=!1,this.degree=e,this.academicTranscript=this.degree.academicTranscript},e=>this.loading=!1),this.loadingHistory=!0,this.degreeService.getHistory(this.id).subscribe(e=>{this.loadingHistory=!1,this.history=e},e=>this.loadingHistory=!1)}viewOnSigner(){window.open(this.degree.signerDocumentUrl,"_blank")}viewAcademicDocOnSigner(){window.open(this.degree.signerAcademicDocumentationUrl,"_blank")}viewAcademicTranscriptOnSigner(){this.academicTranscript&&window.open(this.academicTranscript.signerDocumentUrl,"_blank")}getVisualRepresentation(e=!1){this.loading=!0,(e?this.degreeService.getLetterheadVisualRepresentationTicket(this.degree.id):this.degreeService.getVisualRepresentationTicket(this.degree.id)).subscribe(r=>{this.loading=!1,window.location.href=r.location},r=>this.loading=!1)}validate(){window.open("/validar/"+this.degree.verificationCode,"_blank")}createAcademicTranscript(){this.dialog.open(cye,{width:"1200px",height:"600px",data:{degreeId:this.degree.id}}).afterClosed().toPromise().then(i=>{i&&this.load()})}updateStatus(e){this.dialog.open(lye,{width:"600px",data:{degreeId:this.degree.id,status:e,isSigned:this.degree.isSigned&&this.degree.isAcademicDocumentationSigned}}).afterClosed().toPromise().then(r=>{r&&this.load()})}onCancelClick(){(this.isCanceledOrCanceledTemporarily||!this.degree.isSigned)&&(this.menuTrigger.closeMenu(),this.cancel())}cancel(e=!1){this.updateStatus(e?bl.CanceledTemporarily:bl.Canceled)}restore(){this.updateStatus(bl.Active)}viewAcademicTranscript(){this.academicTranscript&&(this.routeHelper.activatedNamedRoutesSnapshot.findNamedRoute("AcademicTranscriptDetail")!=null?this.router.navigate(["../.."],{relativeTo:this.route}):this.router.navigate(["academic-transcripts",this.academicTranscript.id],{relativeTo:this.route}))}onTabIndexChange(e){this.tabIndex=e}getXmlFile(){this.loading=!0,this.degreeService.getDegreeTicket(this.degree.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}getAcademicDocXmlFile(){this.loading=!0,this.degreeService.getAcademicDocumentationTicket(this.degree.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Jo),E(Dn),E(lt),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-degree-detail"]],viewQuery:function(i,r){if(i&1&&ot(wyt,5),i&2){let o;Pe(o=Ne())&&(r.menuTrigger=o.first)}},decls:16,vars:13,consts:[["cancelMenu","matMenu"],["menuTrigger","matMenuTrigger"],[3,"hidden"],[1,"box-light"],[3,"show"],[3,"refresh","loadingChange","loading","documentId","showExportButton","documentType"],["header",""],["class","row",4,"ngIf"],["mat-stretch-tabs","false","animationDuration","0ms",3,"selectedIndexChange"],["label","Hist\xF3rico"],["class","overflow-hidden",4,"ngIf"],["label","Eventos"],[3,"loadTable","documentId","type"],["label","Renotariza\xE7\xF5es",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"col"],["label","Diplomado(a)"],["label","CPF"],["label","Curso"],["label","IES Emissora"],["label","IES Registradora"],["label","Criado em"],["label","Atualizado em"],["class","mt-3",4,"ngIf"],[1,"col-md-6","d-flex","flex-column","align-items-center","justify-content-center"],[1,"prop-label"],[1,"d-flex","align-items-center"],[3,"status"],[1,"mb-0","ms-1"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","text-primary",4,"ngSwitchCase"],["aria-label","Cancelled","matTooltip","Anulado","class","text-warn",4,"ngSwitchCase"],["aria-label","Cancelled","matTooltip","Anulado temporariamente","class","text-warn",4,"ngSwitchCase"],["color","warn","class","ms-1","matTooltip","O diploma s\xF3 estar\xE1 dispon\xEDvel para valida\xE7\xE3o quando a documenta\xE7\xE3o acad\xEAmica for assinada",4,"ngIf"],["label","C\xF3digo de valida\xE7\xE3o",1,"mt-3","text-center"],["class","d-flex justify-content-center mt-3",4,"ngIf"],[1,"d-flex","justify-content-center","mt-3"],["color","warn","mat-flat-button","",3,"matMenuTriggerFor","click",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","col-6 col-lg-6 col-md-12",4,"ngIf"],[1,"col-6","col-md-12","col-lg-12"],["label","Documenta\xE7\xE3o Acad\xEAmica"],[4,"ngIf"],["class","col-lg-4 col-md-6 col-sm-6 col-12",4,"ngIf"],[1,"col-lg-4","col-md-6","col-sm-6","col-12"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],[1,"col-6","col-lg-6","col-md-12"],["label","Hist\xF3rico Escolar"],[1,"d-flex","flex-column"],[1,"mt-3"],["class","col",4,"ngIf"],[1,"text-primary"],["aria-label","Cancelled","matTooltip","Anulado",1,"text-warn"],["aria-label","Cancelled","matTooltip","Anulado temporariamente",1,"text-warn"],["color","warn","matTooltip","O diploma s\xF3 estar\xE1 dispon\xEDvel para valida\xE7\xE3o quando a documenta\xE7\xE3o acad\xEAmica for assinada",1,"ms-1"],["color","primary","mat-stroked-button","",3,"click",4,"ngIf"],["color","primary","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",3,"click","matMenuTriggerFor"],["color","accent","mat-flat-button","",3,"click"],[1,"overflow-hidden"],[3,"history"],["label","Renotariza\xE7\xF5es"],[3,"loadTable","documentId","documentType"]],template:function(i,r){i&1&&(d(0,"div",2)(1,"div",3),H(2,"ngx-loading",4),d(3,"app-box-title",5),$("refresh",function(){return r.load()}),tn("loadingChange",function(a){return nn(r.loading,a)||(r.loading=a),a}),d(4,"span",6),h(5,"Detalhes do Diploma"),c()(),k(6,Wyt,55,29,"div",7),c(),d(7,"div",3)(8,"mat-tab-group",8),$("selectedIndexChange",function(a){return r.onTabIndexChange(a)}),d(9,"mat-tab",9),H(10,"ngx-loading",4),k(11,Yyt,2,1,"div",10),c(),d(12,"mat-tab",11),H(13,"app-document-events",12),c(),k(14,Kyt,2,3,"mat-tab",13),c()()(),H(15,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(2),f("show",r.loading),m(),en("loading",r.loading),f("documentId",r.id)("showExportButton",!0)("documentType",r.Type),m(3),f("ngIf",r.degree),m(4),f("show",r.loadingHistory),m(),f("ngIf",r.history),m(2),f("loadTable",r.tabIndex==1)("documentId",r.id)("type",r.Type),m(),f("ngIf",(r.degree==null?null:r.degree.status)==r.Statuses.Active))},dependencies:[Ee,vs,rl,Ia,Gd,Es,He,Ze,li,wn,_n,yi,Hl,mc,II,bd,eh,RI,ny,rn,Zo]})}}return t})();function yJ(t,n){return Math.min(t,n)}function xJ(t,n){return Math.pow(2,t)*n}function CJ(t,n=zc){let{initialInterval:e,maxInterval:i=1/0,backoffDelay:r=xJ}=typeof t=="number"?{initialInterval:t}:t;return e=e<0?0:e,vt(0,n).pipe(nH(o=>gs(yJ(r(o,e),i)).pipe(bh(o+1))))}var Xyt=t=>({rotate:t});function Qyt(t,n){if(t&1&&(d(0,"a",12),h(1,"Ir para o Assinador"),c()),t&2){let e=S(3);ba("href",e.signerUrl,qo)}}function Zyt(t,n){if(t&1){let e=ie();d(0,"button",13),$("click",function(){W(e);let r=S(3);return Y(r.downloadLog())}),d(1,"mat-icon",14),h(2,"get_app"),c(),h(3,"Log da gera\xE7\xE3o"),c()}}function Jyt(t,n){if(t&1&&(d(0,"div",9),k(1,Qyt,2,1,"a",10)(2,Zyt,4,0,"button",11),c()),t&2){let e=S(2);m(),f("ngIf",e.batch.totalDegreesCreated>0&&!e.isRegistration&&e.canGoToSigner),m(),f("ngIf",e.hasError)}}function e1t(t,n){if(t&1&&(he(0),d(1,"div",2)(2,"div",3)(3,"mat-icon",4),h(4),c()(),H(5,"mat-progress-bar",5),d(6,"div",6)(7,"h3",7),h(8),c()()(),k(9,Jyt,3,2,"div",8),fe()),t&2){let e=S();m(2),f("ngClass",e.statusClass),m(),f("ngClass",Le(7,Xyt,e.rotating)),m(),U(e.statusIcon),m(),f("value",e.progress)("color",e.hasError?"warn":"primary"),m(3),U(e.statusMessage),m(),f("ngIf",e.hasEnded)}}var dye=(()=>{class t{get isRegistration(){return this.batch&&this.batch.type==Bl.Registration}constructor(e,i,r,o){this.route=i,this.batchService=r,this.spaControl=o,this.$toUnsubscribe=[],this.statusMessage="",this.statusIcon="",this.statusClass="",this.signerUrl=e.config.clientConfig.signerUrl+"/private/documents"}startRotating(){this.rotateTimeout&&(clearTimeout(this.rotateTimeout),this.rotateTimeout=null),this.rotating=!0}stopRotating(){this.rotateTimeout=setTimeout(()=>{this.rotating=!1},2e3)}ngOnInit(){let e=this.route.parent.snapshot.paramMap.get("id");this.canGoToSigner=this.spaControl.selectedSubscriptionSnapshot.roles.some(i=>i=="Admin"||i=="Manager"),this.pollSub=CJ({initialInterval:1e3,maxInterval:6e4,backoffDelay:(i,r)=>Math.pow(1.2,i)*r}).subscribe(i=>{this.loading||(this.loading=!0,this.startRotating(),this.batchService.get(e).subscribe(r=>{this.loading=!1,this.stopRotating(),this.batch=r,this.progress=(r.totalDegreesCreated+r.totalDegreesWithError)*100/r.totalDegrees,this.hasError=r.totalDegreesWithError>0,this.statusIcon="sync",this.statusClass="text-primary",r.status==lf.Completed||r.status==lf.Canceled?(this.rotating=!1,this.pollSub.unsubscribe(),this.hasEnded=!0,r.status==lf.Canceled?(this.isCanceled=!0,this.statusClass="text-warn",this.statusMessage="Lote cancelado",this.statusIcon="cancel"):(this.statusMessage="Lote conclu\xEDdo",this.statusIcon=this.hasError?"warning":"check_circle",this.statusClass=this.hasError?"text-warn":"text-success")):this.statusMessage="Criando documentos no Assinador",this.statusMessage+=` (criados ${r.totalDegreesCreated} de ${r.totalDegrees})`}))}),this.$toUnsubscribe.push(this.pollSub)}downloadLog(){this.rotating=!0,this.batchService.generateLogTicket(this.batch.id).subscribe(e=>{this.rotating=!1,document.location.href=e.location},e=>this.rotating=!1)}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(zo),E(Ut),E(dc),E(di))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-batch-progress"]],decls:4,vars:1,consts:[["box-title",""],[4,"ngIf"],[1,"my-3"],[1,"d-flex","justify-content-center","align-items-center","my-3",3,"ngClass"],[1,"icon-md-2",3,"ngClass"],["mode","determinate",3,"value","color"],[1,"d-flex","justify-content-center","align-items-center","mt-3"],[1,"mb-0"],["class","d-flex justify-content-center",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-flat-button","","color","primary","class","me-2","target","_blank",3,"href",4,"ngIf"],["color","primary","mat-button","",3,"click",4,"ngIf"],["mat-flat-button","","color","primary","target","_blank",1,"me-2",3,"href"],["color","primary","mat-button","",3,"click"],[1,"me-1"]],template:function(i,r){i&1&&(d(0,"spa-box")(1,"span",0),h(2,"Progresso da gera\xE7\xE3o de diplomas"),c(),k(3,e1t,10,9,"ng-container",1),c()),i&2&&(m(3),f("ngIf",r.batch))},dependencies:[ji,Ee,He,ec,Ze,un,mw]})}}return t})();var PI=(()=>{class t{transform(e){switch(e){case Ro.EmissionRegistration:return"Emiss\xE3o e Registro";case Ro.Emission:return"Emiss\xE3o";case Ro.Registration:return"Registro";case Ro.AcademicTranscript:return"Hist\xF3rico Escolar";case Ro.Curriculum:return"Curr\xEDculo Escolar";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"flowType",type:t,pure:!0})}}return t})();var t1t=["flowsTable"];function i1t(t,n){t&1&&(d(0,"button",21)(1,"mat-icon",22),h(2,"add_circle"),c(),h(3," Novo"),c())}function n1t(t,n){t&1&&(d(0,"mat-header-cell",23),h(1,"Nome"),c())}function r1t(t,n){if(t&1){let e=ie();d(0,"mat-cell",24)(1,"spa-link-button",25),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigate(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.name)}}function o1t(t,n){t&1&&(d(0,"mat-header-cell",26),h(1,"Tipo"),c())}function a1t(t,n){if(t&1&&(d(0,"mat-cell",27),h(1),ce(2,"flowType"),c()),t&2){let e=n.$implicit;m(),U(xe(2,1,e.type))}}function s1t(t,n){t&1&&(d(0,"mat-header-cell",26),h(1,"Data de cria\xE7\xE3o"),c())}function l1t(t,n){if(t&1&&(d(0,"mat-cell",27),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function c1t(t,n){t&1&&(d(0,"mat-header-cell",26),h(1,"Data de atualiza\xE7\xE3o"),c())}function d1t(t,n){if(t&1&&(d(0,"mat-cell",27),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function u1t(t,n){t&1&&(d(0,"mat-header-cell",24),h(1,"Criador"),c())}function m1t(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.createdBy.name," ")}}function p1t(t,n){t&1&&H(0,"mat-header-cell",28)}function h1t(t,n){if(t&1){let e=ie();d(0,"mat-cell",28)(1,"button",29),$("click",function(){let r=W(e).$implicit,o=S();return Y(o.delete(r))}),d(2,"mat-icon",30),h(3,"delete"),c()()()}}var uye=(()=>{class t{constructor(e,i,r,o,a,s){this.spaControl=e,this.dialogService=i,this.router=r,this.route=o,this.documentFlowService=a,this.routeHelper=s,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1}ngOnInit(){this.dataSource=this.documentFlowService.flows,this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}onRouteChange(e){if(this.flowsTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="DocumentFlowList")try{this.flowsTable.refresh()}catch{}}}navigate(e){this.router.navigate([e],{relativeTo:this.route})}delete(e){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:`Tem certeza que deseja excluir o fluxo "${e.name}"?`,confirmButtonText:"Excluir",cancelButtonText:"Cancelar",confirmButtonColor:"warn"}).then(i=>{i&&(this.loading=!0,this.documentFlowService.delete(e.id).subscribe(()=>this.flowsTable.refresh()).add(()=>this.loading=!1))})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(Qi),E(lt),E(Ut),E(oa),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-flow-list"]],viewQuery:function(i,r){if(i&1&&ot(t1t,5),i&2){let o;Pe(o=Ne())&&(r.flowsTable=o.first)}},decls:30,vars:4,consts:[["flowsTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","primary","routerLink","new",4,"ngIf"],["matSort","","matSortActive","updateDate","matSortDirection","desc","showRefresh","",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","name"],["mat-sort-header","","fxFlex","65",4,"matHeaderCellDef"],["fxFlex","65",4,"matCellDef"],["matColumnDef","type"],["mat-sort-header","","fxFlex","20",4,"matHeaderCellDef"],["fxFlex","20",4,"matCellDef"],["matColumnDef","creationDate"],["matColumnDef","updateDate"],["matColumnDef","createdBy"],["fxFlex","65",4,"matHeaderCellDef"],["matColumnDef","delete"],["fxFlex","15",4,"matHeaderCellDef"],["fxFlex","15",4,"matCellDef"],["mat-flat-button","","color","primary","routerLink","new"],[1,"me-1"],["mat-sort-header","","fxFlex","65"],["fxFlex","65"],[3,"trigger"],["mat-sort-header","","fxFlex","20"],["fxFlex","20"],["fxFlex","15"],["mat-flat-button","",3,"click"],["color","warn"]],template:function(i,r){i&1&&(d(0,"spa-box",1),H(1,"ngx-loading",2),d(2,"span",3),h(3,"Fluxos"),c(),k(4,i1t,4,0,"button",4),d(5,"lac-table",5,0)(7,"div",6)(8,"div",7)(9,"h3"),h(10,"Nenhum fluxo cadastrado."),c()()(),he(11,8),k(12,n1t,2,0,"mat-header-cell",9)(13,r1t,3,1,"mat-cell",10),fe(),he(14,11),k(15,o1t,2,0,"mat-header-cell",12)(16,a1t,3,3,"mat-cell",13),fe(),he(17,14),k(18,s1t,2,0,"mat-header-cell",12)(19,l1t,3,4,"mat-cell",13),fe(),he(20,15),k(21,c1t,2,0,"mat-header-cell",12)(22,d1t,3,4,"mat-cell",13),fe(),he(23,16),k(24,u1t,2,0,"mat-header-cell",17)(25,m1t,2,1,"mat-cell",10),fe(),he(26,18),k(27,p1t,1,0,"mat-header-cell",19)(28,h1t,4,0,"mat-cell",20),fe(),c()(),H(29,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected),m(),f("dataSource",r.dataSource))},dependencies:[Ee,He,Ze,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,As,_n,gn,rn,PI]})}}return t})();function f1t(t,n){if(t&1){let e=ie();d(0,"button",8),$("click",function(){W(e);let r=S();return Y(r.startEdit())}),d(1,"mat-icon"),h(2,"edit"),c()()}}function g1t(t,n){if(t&1&&(d(0,"div")(1,"spa-prop",11),h(2),c(),d(3,"spa-prop",12),h(4),ce(5,"flowType"),c()()),t&2){let e=S(2);m(2),U(e.flow.name),m(2),U(xe(5,2,e.flow.type))}}function _1t(t,n){if(t&1&&(d(0,"div",9)(1,"div",10),k(2,g1t,6,4,"div",7),c()()),t&2){let e=S();m(2),f("ngIf",!e.edit)}}function v1t(t,n){if(t&1&&(d(0,"form",13)(1,"div",14)(2,"mat-form-field",15)(3,"mat-label"),h(4,"Nome do fluxo"),c(),H(5,"input",16),d(6,"mat-error"),h(7),c()()(),d(8,"spa-prop",12),h(9),ce(10,"flowType"),c()()),t&2){let e=S();f("formGroup",e.form),m(7),U(e.Error.get(e.form,"name","flowName")),m(2),U(xe(10,3,e.flow.type))}}function b1t(t,n){if(t&1){let e=ie();d(0,"div",19)(1,"button",20),$("click",function(){W(e);let r=S(2);return Y(r.save())}),h(2,"Salvar"),c(),d(3,"button",21),$("click",function(){W(e);let r=S(2);return Y(r.cancelEdit())}),h(4,"Cancelar"),c()()}if(t&2){let e=S(2);m(),f("disabled",!e.form.valid)}}function y1t(t,n){if(t&1&&(he(0),H(1,"app-signature-flow-form",17),k(2,b1t,5,1,"div",18),fe()),t&2){let e=S();m(),f("form",e.form.get("signatureFlow"))("type",e.form.value.type)("readonly",!e.edit),m(),f("ngIf",e.edit)}}var mye=(()=>{class t{constructor(e,i,r,o,a,s){this.route=e,this.documentFlowService=i,this.fb=r,this.router=o,this.messageService=a,this.Error=s,this.loading=!1}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.loading=!0,this.documentFlowService.get(this.id).subscribe(e=>{this.loading=!1,this.flow=e,this.form=this.buildForm()},e=>this.loading=!1)}buildForm(){return this.fb.group({name:[this.flow.name,[Se.required,Se.maxLength(200)]],type:[this.flow.type,[Se.required]],signatureFlow:this.documentFlowService.getSignatureFlowForm(this.flow.type,this.flow)})}startEdit(){this.formBeforeEdit=this.form,this.form=this.buildForm(),this.edit=!0}cancelEdit(){this.form=this.formBeforeEdit,this.edit=!1}save(){let e=this.documentFlowService.getFormRequest(this.form);this.loading=!0,this.documentFlowService.update(this.flow.id,e).subscribe(i=>{this.loading=!1,this.edit=!1,this.messageService.showSuccess("Fluxo atualizado com sucesso"),this.router.navigate([".."],{relativeTo:this.route})},i=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(oa),E(Ti),E(lt),E(Bi),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-flow-detail"]],decls:9,vars:5,consts:[[1,"box-light"],[3,"show"],[1,"d-flex","align-items-center"],[1,"mb-0"],["mat-icon-button","","class","ms-auto","matTooltip","Editar fluxo",3,"click",4,"ngIf"],["class","row",4,"ngIf"],[3,"formGroup",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","matTooltip","Editar fluxo",1,"ms-auto",3,"click"],[1,"row"],[1,"col-md-6"],["label","Nome"],["label","Tipo"],[3,"formGroup"],[1,"row","mt-3"],[1,"col-12","col-md-6","col-lg-4"],["matInput","","formControlName","name"],[3,"form","type","readonly"],["class","d-flex justify-content-center",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-button","","color","primary",3,"click"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"div",2)(3,"h2",3),h(4,"Detalhes do fluxo"),c(),k(5,f1t,3,0,"button",4),c(),k(6,_1t,3,1,"div",5)(7,v1t,11,5,"form",6),c(),k(8,y1t,3,4,"ng-container",7)),i&2&&(m(),f("show",r.loading),m(4),f("ngIf",!r.edit),m(),f("ngIf",r.flow),m(),f("ngIf",r.flow&&r.edit),m(),f("ngIf",r.flow))},dependencies:[Ee,zt,Gt,it,pt,dt,Tt,He,Ze,fi,Wt,bt,jt,Si,li,wn,yi,uc,PI]})}}return t})();function x1t(t,n){if(t&1&&(d(0,"mat-option",12),h(1),ce(2,"flowType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}var pye=(()=>{class t{constructor(e,i,r,o,a,s){this.messageService=e,this.fb=i,this.route=r,this.Error=o,this.router=a,this.documentFlowService=s}ngOnInit(){this.flowTypes=Object.keys(Ro),this.form=this.fb.group({name:["",[Se.required,Se.maxLength(200)]],type:[null,[Se.required]],signatureFlow:this.documentFlowService.getSignatureFlowForm(null,null)})}onTypeChange(e){this.form.value.type=e,this.documentFlowService.changeSignatureFlowFormValidation(this.form.controls.signatureFlow,e),this.form.updateValueAndValidity()}submit(){if(!this.form.valid)return;let e=this.documentFlowService.getFormRequest(this.form);this.saving=!0,this.documentFlowService.create(e).subscribe(i=>{this.router.navigate([".."],{relativeTo:this.route}),this.messageService.showSuccess("Fluxo criado com sucesso")}).add(()=>this.saving=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Bi),E(Ti),E(Ut),E(wi),E(lt),E(oa))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-flow-create"]],decls:23,vars:7,consts:[[1,"loader-container"],[3,"show"],[3,"formGroup"],[1,"box-light"],[1,"row"],[1,"col-12","col-md-6","col-lg-4"],["matInput","","formControlName","name"],["formControlName","type",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"form","type"],[1,"d-flex","justify-content-center","mt-3"],["mat-raised-button","","color","primary",3,"click","disabled"],[3,"value"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"form",2)(3,"div",3)(4,"h2"),h(5,"Novo fluxo"),c(),d(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),h(9,"Nome do fluxo"),c(),H(10,"input",6),d(11,"mat-error"),h(12),c()()(),d(13,"div",4)(14,"mat-form-field",5)(15,"mat-label"),h(16,"Tipo"),c(),d(17,"mat-select",7),$("valueChange",function(a){return r.onTypeChange(a)}),k(18,x1t,3,4,"mat-option",8),c()()()()(),H(19,"app-signature-flow-form",9),d(20,"div",10)(21,"button",11),$("click",function(){return r.submit()}),h(22,"Criar fluxo"),c()()()),i&2&&(m(),f("show",r.saving),m(),f("formGroup",r.form),m(10),U(r.Error.get(r.form,"name","flowName")),m(6),f("ngForOf",r.flowTypes),m(),f("form",r.form.get("signatureFlow"))("type",r.form.value.type),m(2),f("disabled",!r.form.valid))},dependencies:[Vt,zt,Gt,it,pt,dt,Tt,Ze,Wt,bt,jt,Si,Mi,li,Li,uc,PI]})}}return t})();var hye=(()=>{class t{constructor(e,i,r){this.logger=e,this.spaControl=i,this.router=r}canActivate(e,i){return this.spaControl.trySetSubscription(Ye.subscriptionNoFilter).pipe(ri(r=>{r||this.router.navigate(["/private/s"])}))}static{this.\u0275fac=function(i){return new(i||t)(ae($t),ae(di),ae(lt))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cm=(()=>{class t{transform(e){switch(e){case Zr.IssuerRegistry:return"Emissora e Registradora";case Zr.Issuer:return"Emissora";case Zr.Registry:return"Registradora";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"subscriptionType",type:t,pure:!0})}}return t})();function C1t(t,n){if(t&1&&(d(0,"mat-option",8),h(1),ce(2,"subscriptionType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}var ry=(()=>{class t{get model(){return this._model}set model(e){this._model=e,this.resetForm()}get submitButtonLabel(){return this.model?"Salvar":"Criar"}constructor(e,i,r){this.fb=e,this.logger=i,this.subscriptionService=r,this.types=[],this.submitted=new Ae,this.hasParentIntegration=Ye.hasParentIntegration,this.checkNameAvailable=o=>gs(300).pipe(Wi(()=>(this.logger.logTrace("Checking subscription name availability: ",o.value),this.subscriptionService.checkNameAvailable(o.value,this.model?this.model.id:null).pipe(st(a=>(this.logger.logTrace("Name available:",a),a?null:{nameTaken:{value:o.value}})))))),this.types=Object.keys(Zr),this.createForm()}createForm(){this.form=this.fb.group({name:[{value:"",disabled:this.hasParentIntegration},[Se.required,Se.maxLength(100)],this.checkNameAvailable],alias:[{value:"",disabled:this.hasParentIntegration},Se.maxLength(50)],type:[null,Se.required]})}resetForm(){this.model&&this.form.reset({name:this.model.name,alias:this.model.alias,type:this.model.type})}ngOnInit(){}onSubmit(){if(!this.form.valid)return;let e=this.form.value,i={name:e.name,alias:e.alias,type:e.type};this.submitted.emit(i)}getErrorMessage(e){let i=this.form.get(e);switch(e){case"name":return i.hasError("required")?"\xC9 necess\xE1rio preencher este campo":i.hasError("nameTaken")?"Este nome j\xE1 est\xE1 em uso":"";case"type":return i.hasError("required")?"\xC9 necess\xE1rio preencher este campo":""}return"Campo inv\xE1lido"}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E($t),E(lc))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-form"]],inputs:{model:"model"},outputs:{submitted:"submitted"},decls:24,vars:7,consts:[[3,"formGroup"],[1,"row"],[1,"col-md-6"],["matInput","","formControlName","name","maxlength","100"],["matInput","","formControlName","alias","maxlength","50"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],[3,"submit","form"],[3,"value"]],template:function(i,r){i&1&&(d(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),h(4,"Nome"),c(),H(5,"input",3),d(6,"mat-error"),h(7),c()(),d(8,"mat-form-field",2)(9,"mat-label"),h(10,"Apelido"),c(),H(11,"input",4),d(12,"mat-error"),h(13),c()()(),d(14,"div",1)(15,"mat-form-field",2)(16,"mat-label"),h(17,"Tipo"),c(),d(18,"mat-select",5),k(19,C1t,3,4,"mat-option",6),c(),d(20,"mat-error"),h(21),c()()(),d(22,"spa-submit-button",7),$("submit",function(){return r.onSubmit()}),h(23),c()()),i&2&&(f("formGroup",r.form),m(7),U(r.getErrorMessage("name")),m(6),U(r.getErrorMessage("alias")),m(6),f("ngForOf",r.types),m(2),U(r.getErrorMessage("type")),m(),f("form",r.form),m(),U(r.submitButtonLabel))},dependencies:[Vt,zt,Gt,it,pt,wc,dt,Tt,Wt,bt,jt,Si,Mi,o_,Li,cm]})}}return t})();function S1t(t,n){if(t&1){let e=ie();d(0,"spa-box",1)(1,"span",2),h(2,"Nova organiza\xE7\xE3o"),c(),d(3,"app-subscription-form",3),$("submitted",function(r){W(e);let o=S();return Y(o.onSubmit(r))}),c()()}if(t&2){let e=S();f("hidden",e.route.firstChild)}}var gye=(()=>{class t{constructor(e,i,r,o,a,s){this.route=e,this.router=i,this.logger=r,this.dialogService=o,this.subscriptionService=a,this.messageService=s,this.saving=!1,this.closing=!1}ngOnInit(){}onSubmit(e){this.logger.logTrace("SubscriptionCreateComponent onSubmit",e),this.saving=!0,this.subscriptionService.create(e).subscribe(()=>{this.messageService.showSuccess("Organiza\xE7\xE3o criada com sucesso"),this.closing=!0,this.close()},i=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("SubscriptionCreateComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.formComponent.form.dirty)return this.dialogService.confirmDiscard()}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Qi),E(lc),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-create"]],viewQuery:function(i,r){if(i&1&&ot(ry,5),i&2){let o;Pe(o=Ne())&&(r.formComponent=o.first)}},decls:1,vars:0,consts:[[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],[3,"submitted"]],template:function(i,r){i&1&&k(0,S1t,4,1,"spa-box",0)},dependencies:[Fn,un,ry]})}}return t})();function w1t(t,n){t&1&&(d(0,"h2"),h(1,"Gerar relat\xF3rio por per\xEDodo"),c())}function E1t(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"reportFileType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function I1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",14),h(2,"Diplomas"),c()())}function D1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",15),h(2,"Emiss\xF5es"),c()())}function T1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",16),h(2,"Registros"),c()())}function A1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",17),h(2,"Hist\xF3ricos Escolares"),c()())}function k1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",18),h(2,"Curr\xEDculos Escolares"),c()())}function M1t(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",19),h(2,"Lista de diplomas anulados por Institui\xE7\xE3o"),c()())}function F1t(t,n){if(t&1){let e=ie();d(0,"form",4)(1,"div",5)(2,"mat-form-field",6)(3,"mat-label"),h(4,"Tipo de arquivo"),c(),d(5,"mat-select",7),k(6,E1t,3,4,"mat-option",8),c()()(),d(7,"div",5)(8,"app-date-range-picker",9),tn("dateRangeChange",function(r){W(e);let o=S();return nn(o.dateRange,r)||(o.dateRange=r),Y(r)}),c()(),d(9,"div")(10,"p"),h(11,"Escolha os relat\xF3rios a serem gerados:"),c(),d(12,"div",10),k(13,I1t,3,0,"div",11)(14,D1t,3,0,"div",11)(15,T1t,3,0,"div",11)(16,A1t,3,0,"div",11)(17,k1t,3,0,"div",11)(18,M1t,3,0,"div",11),d(19,"div")(20,"mat-checkbox",12),h(21,"Arquivos de fiscaliza\xE7\xE3o por Institui\xE7\xE3o"),c()()()()()}if(t&2){let e=S();f("formGroup",e.form),m(6),f("ngForOf",e.fileTypes),m(2),en("dateRange",e.dateRange),m(5),f("ngIf",e.organization.type!=e.SubscriptionTypes.Registry),m(),f("ngIf",e.organization.type!=e.SubscriptionTypes.Registry),m(),f("ngIf",e.organization.type!=e.SubscriptionTypes.Issuer),m(),f("ngIf",e.organization.type!=e.SubscriptionTypes.Registry),m(),f("ngIf",e.organization.type!=e.SubscriptionTypes.Registry),m(),f("ngIf",e.organization.type!=e.SubscriptionTypes.Issuer)}}function R1t(t,n){if(t&1){let e=ie();d(0,"button",20),$("click",function(){W(e);let r=S();return Y(r.generateReport())}),h(1," Gerar relat\xF3rio "),c()}if(t&2){let e=S();f("disabled",e.form.invalid)}}var _ye=(()=>{class t{constructor(e,i,r,o){this.reportService=i,this.fb=r,this.Error=o,this.fileTypes=Object.keys(rm),this.SubscriptionTypes=Zr,this.dateRange={},this.organization=e.organization}ngOnInit(){this.form=this.fb.group({fileType:[rm.Xlsx,[Se.required]],includeDegrees:[""],includeEmissions:[""],includeRegistrations:[""],includeAcademicTranscripts:[""],includeCurriculums:[""],includeCancellationListsByInstitute:[""],includeInspectionFilesByInstitute:[""]})}generateReport(){this.loading=!0;let e=this.form.value,i=Gi(Ve({},e),{startDateUtc:this.dateRange.startDate.toISOString(),endDateUtc:this.dateRange.endDate.add(1,"day").toISOString()});this.reportService.getOrganizationDegreesReportDownloadTicket(this.organization.id,i,e.fileType).subscribe(r=>{document.location.href=r.location,this.loading=!1},r=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(SI),E(Ti),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-generate-organization-degrees-report"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup"],[1,"row"],[1,"col-4","input-stretch"],["formControlName","fileType"],[3,"value",4,"ngFor","ngForOf"],[3,"dateRangeChange","dateRange"],[1,"d-flex","flex-wrap","justify-content-center","gap-3"],[4,"ngIf"],["formControlName","includeInspectionFilesByInstitute"],[3,"value"],["formControlName","includeDegrees"],["formControlName","includeEmissions"],["formControlName","includeRegistrations"],["formControlName","includeAcademicTranscripts"],["formControlName","includeCurriculums"],["formControlName","includeCancellationListsByInstitute"],["mat-raised-button","","color","accent",3,"click","disabled"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,w1t,2,0,"ng-template",null,0,Ii)(3,F1t,22,9,"ng-template",null,1,Ii)(5,R1t,2,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,Ze,bt,jt,Mi,Co,Li,o6,Uo,wI]})}}return t})();var g6="/api/subscriptions",vye="/api/admin/subscriptions",oy=(()=>{class t{constructor(e){this.http=e}getPartners(e){return{listPaginated:i=>this.getPartnersBySubscriptionId(e,i)}}getRegistryPartners(){return this.http.get(`${g6}/registry-partnerships`)}getPartnersBySubscriptionId(e,i){return this.http.get(`${g6}/${e}/partnerships`,{params:i.getHttpParams()})}delete(e){return this.http.delete(`${g6}/partnerships/${e}`)}create(e){return this.http.post(`${g6}/partnerships`,e)}updateAdminGeneralSettings(e,i){return this.http.post(`${vye}/${e}/settings/general`,i)}getAdminGeneralSettings(e){return this.http.get(`${vye}/${e}/settings/general`)}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var P1t=["partnersTable"];function N1t(t,n){t&1&&(d(0,"mat-header-cell",18),h(1,"Nome"),c())}function O1t(t,n){if(t&1&&(d(0,"mat-cell",19),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.partnerName," ")}}function L1t(t,n){t&1&&(d(0,"mat-header-cell",20),h(1,"Tipo"),c())}function V1t(t,n){if(t&1&&(d(0,"mat-cell",21),h(1),ce(2,"subscriptionType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.partnerType)," ")}}function B1t(t,n){t&1&&H(0,"mat-header-cell",22)}function j1t(t,n){if(t&1){let e=ie();d(0,"mat-cell",22)(1,"button",23),$("click",function(){let r=W(e).$implicit,o=S();return Y(o.delete(r))}),d(2,"mat-icon",24),h(3,"delete"),c()()()}}var bye=(()=>{class t{constructor(e,i,r,o,a){this.subscriptionService=e,this.router=i,this.route=r,this.dialogService=o,this.routeHelper=a,this.$toUnsubscribe=[]}ngOnInit(){this.subscriptionId=this.route.snapshot.paramMap.get("id"),this.dataSource=this.subscriptionService.getPartners(this.subscriptionId),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}delete(e){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:`Tem certeza que deseja excluir a parceria com "${e.partnerName}"?`,confirmButtonText:"Excluir",cancelButtonText:"Cancelar",confirmButtonColor:"warn"}).then(i=>{i&&(this.isLoading=!0,this.subscriptionService.delete(e.id).subscribe(()=>this.partnersTable.refresh()).add(()=>this.isLoading=!1))})}onRouteChange(e){if(this.partnersTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="SubscriptionDetail")try{this.partnersTable.refresh()}catch{}}}static{this.\u0275fac=function(i){return new(i||t)(E(oy),E(lt),E(Ut),E(Qi),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-partnership-list"]],viewQuery:function(i,r){if(i&1&&ot(P1t,5),i&2){let o;Pe(o=Ne())&&(r.partnersTable=o.first)}},decls:23,vars:2,consts:[["partnersTable",""],[1,"box-light"],[3,"show"],[1,"mt-3"],["mat-flat-button","","color","primary","routerLink","partners/new"],[1,"me-1"],["matSort","","matSortActive","partnerName","matSortDirection","asc","showRefresh","",1,"compact-table",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","partnerName"],["mat-sort-header","","fxFlex","45",4,"matHeaderCellDef"],["fxFlex","45",4,"matCellDef"],["matColumnDef","partnerType"],["mat-sort-header","","fxFlex","30",4,"matHeaderCellDef"],["fxFlex","30",4,"matCellDef"],["matColumnDef","delete"],["fxFlex","15",4,"matHeaderCellDef"],["fxFlex","15",4,"matCellDef"],["mat-sort-header","","fxFlex","45"],["fxFlex","45"],["mat-sort-header","","fxFlex","30"],["fxFlex","30"],["fxFlex","15"],["mat-flat-button","",3,"click"],["color","warn"]],template:function(i,r){i&1&&(d(0,"div",1),H(1,"ngx-loading",2),d(2,"h2",3),h(3,"Parcerias"),c(),d(4,"button",4)(5,"mat-icon",5),h(6,"add_circle"),c(),h(7," Nova parceria"),c(),d(8,"lac-table",6,0)(10,"div",7)(11,"div",8)(12,"h3"),h(13,"Nenhuma parceria encontrada."),c()()(),he(14,9),k(15,N1t,2,0,"mat-header-cell",10)(16,O1t,2,1,"mat-cell",11),fe(),he(17,12),k(18,L1t,2,0,"mat-header-cell",13)(19,V1t,3,3,"mat-cell",14),fe(),he(20,15),k(21,B1t,1,0,"mat-header-cell",16)(22,j1t,4,0,"mat-cell",17),fe(),c()()),i&2&&(m(),f("show",r.isLoading),m(7),f("dataSource",r.dataSource))},dependencies:[He,Ze,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,gn,cm]})}}return t})();function z1t(t,n){if(t&1&&(d(0,"span",9),h(1),c()),t&2){let e=S();m(),ue("Organiza\xE7\xE3o ",e.model.name,"")}}function U1t(t,n){if(t&1&&(d(0,"div")(1,"div",10)(2,"div",11)(3,"spa-prop",12),h(4),c()()(),d(5,"div",13)(6,"div",11)(7,"spa-prop",14),h(8),c()(),d(9,"div",11)(10,"spa-prop",15),h(11),c()()(),d(12,"div",13)(13,"div",11)(14,"spa-prop",16),h(15),ce(16,"subscriptionType"),c()()()()),t&2){let e=S();m(4),U(e.model.id),m(4),U(e.model.name),m(3),U(e.model.alias),m(4),U(xe(16,4,e.model.type))}}function G1t(t,n){if(t&1){let e=ie();d(0,"div",17),H(1,"ngx-loading",18),d(2,"h2",19),h(3,"Configura\xE7\xF5es Gerais"),c(),d(4,"form",20)(5,"div")(6,"mat-slide-toggle",21),h(7,"Habilitar renotariza\xE7\xE3o"),c()(),d(8,"div",22)(9,"button",23),$("click",function(){W(e);let r=S();return Y(r.saveSettings())}),h(10,"Salvar"),c()()()()}if(t&2){let e=S();m(),f("show",e.settingsLoading),m(3),f("formGroup",e.generalSettingForm),m(5),f("disabled",e.generalSettingForm.pristine)}}var yye=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.route=e,this.router=i,this.logger=r,this.subscriptionService=o,this.dialog=a,this.fb=s,this.messageService=l,this.organizationService=u,this.loading=!0,this.hasParentIntegration=Ye.hasParentIntegration,this.$toUnsubscribe=[]}ngOnInit(){this.logger.logTrace("SubscriptionDetailComponent ngOnInit"),this.$toUnsubscribe.push(Cn(this.route.paramMap,this.subscriptionService.changed).subscribe(()=>this.load()))}load(){this.logger.logTrace("SubscriptionDetailComponent load"),this.subId=this.route.snapshot.params.id,this.logger.logTrace("SubscriptionDetailComponent -- id:",this.subId),this.loading=!0,this.subscriptionService.get(this.subId).subscribe(e=>{this.logger.logTrace("SubscriptionDetailComponent -- model loaded"),this.model=e,this.loading=!1}),this.settingsLoading=!0,this.organizationService.getAdminGeneralSettings(this.subId).subscribe(e=>{this.buildForm(e),this.settingsLoading=!1},e=>this.settingsLoading=!1)}close(){this.router.navigate([".."],{relativeTo:this.route})}ngOnDestroy(){this.logger.logTrace("SubscriptionDetailComponent ngOnDestroy");for(let e of this.$toUnsubscribe)e.unsubscribe()}showReportDialog(){let e=this.dialog.open(_ye,{width:"800px",data:{organization:this.model}})}buildForm(e){this.generalSettingForm=this.fb.group(e)}saveSettings(){if(!this.generalSettingForm.valid)return;let e=Object.assign({},this.generalSettingForm.value);this.settingsLoading=!0,this.organizationService.updateAdminGeneralSettings(this.subId,e).subscribe(i=>{this.generalSettingForm.markAsPristine(),this.messageService.showSuccess("Configura\xE7\xF5es atualizadas com sucesso"),this.settingsLoading=!1},i=>this.settingsLoading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(lc),E(Dn),E(Ti),E(Bi),E(oy))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-detail"]],decls:16,vars:6,consts:[[3,"hidden"],[3,"loading"],["box-title","",4,"ngIf"],["box-commands",""],["mat-stroked-button","","color","primary","type","button","routerLink","edit"],["mat-list-icon","",1,"me-2"],["mat-flat-button","","color","primary",3,"click"],[4,"ngIf"],["class","box-light",4,"ngIf"],["box-title",""],[1,"row","pt-4"],[1,"col-md-6"],["label","ID"],[1,"row"],["label","Nome"],["label","Apelido"],["label","Tipo"],[1,"box-light"],[3,"show"],[1,"mt-3"],[3,"formGroup"],["formControlName","enableRestamp"],[1,"mt-4"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"spa-box",1),k(2,z1t,2,1,"span",2),d(3,"div",3)(4,"button",4)(5,"mat-icon",5),h(6,"edit"),c(),h(7,"Editar"),c(),d(8,"button",6),$("click",function(){return r.showReportDialog()}),d(9,"mat-icon",5),h(10,"assignment"),c(),h(11,"Gerar relat\xF3rio "),c()(),k(12,U1t,17,6,"div",7),c(),k(13,G1t,11,3,"div",8),c(),H(14,"app-partnership-list",0)(15,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(),f("loading",r.loading),m(),f("ngIf",!r.loading),m(10),f("ngIf",!r.loading),m(),f("ngIf",r.generalSettingForm),m(),f("hidden",r.route.firstChild))},dependencies:[Ee,zt,it,pt,dt,Tt,He,Ze,li,un,wn,_n,gn,Fr,bye,cm]})}}return t})();var xye=(()=>{class t{constructor(e,i,r,o,a,s){this.route=e,this.router=i,this.logger=r,this.dialogService=o,this.subscriptionService=a,this.messageService=s,this.loading=!0,this.saving=!1,this.closing=!1}ngOnInit(){this.logger.logTrace("SubscriptionEditComponent ngOnInit"),this.route.parent.paramMap.subscribe(e=>{let i=e.get("id");this.logger.logTrace("Subscription id:",i),this.loading=!0,this.subscriptionService.get(i).subscribe(r=>{this.model=r,this.loading=!1})})}submit(e){this.saving=!0,this.subscriptionService.update(this.model.id,e).subscribe(()=>{this.messageService.showSuccess("Organiza\xE7\xE3o alterada com sucesso"),this.closing=!0,this.close()},i=>{this.saving=!1})}canDeactivate(){if(this.logger.logTrace("SubscriptionEditComponent canDeactivate",this.dialogService),!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.formComponent.form.dirty)return this.dialogService.confirmDiscard()}return!0}close(){this.router.navigate([".."],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E($t),E(Qi),E(lc),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-subscription-edit"]],viewQuery:function(i,r){if(i&1&&ot(ry,7),i&2){let o;Pe(o=Ne())&&(r.formComponent=o.first)}},decls:5,vars:3,consts:[[3,"loading","hidden"],["box-title",""],[3,"submitted","model"]],template:function(i,r){i&1&&(d(0,"spa-box",0)(1,"span",1),h(2,"Edi\xE7\xE3o"),c(),d(3,"app-subscription-form",2),$("submitted",function(a){return r.submit(a)}),c()(),H(4,"router-outlet")),i&2&&(f("loading",r.saving)("hidden",r.route.firstChild),m(3),f("model",r.model))},dependencies:[un,_n,ry]})}}return t})();var v6=(()=>{class t{transform(e){switch(e){case su.Manual:return"Manual (fora do sistema)";case su.Subscription:return"Registradora credenciada";case su.Integration:return"Integra\xE7\xE3o";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"registrationType",type:t,pure:!0})}}return t})();var Sye=(()=>{class t{transform(e){switch(e){case oI.V1041:return"1.04.1";case oI.V105:return"1.05";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"degreeVersion",type:t,pure:!0})}}return t})();var wye=()=>({standalone:!0});function q1t(t,n){if(t&1&&(d(0,"mat-option",30),h(1),ce(2,"registrationType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function W1t(t,n){if(t&1&&(d(0,"mat-option",30),h(1),c()),t&2){let e=n.$implicit;f("value",e.partnerId),m(),ue(" ",e.partnerName," ")}}function Y1t(t,n){if(t&1&&(he(0),d(1,"mat-option"),h(2," Escolha uma registradora... "),c(),k(3,W1t,2,2,"mat-option",19),fe()),t&2){let e=S(4);m(3),f("ngForOf",e.registryPartners)}}function K1t(t,n){if(t&1&&(d(0,"div",15)(1,"mat-icon",16),h(2,"business"),c(),d(3,"mat-form-field",17)(4,"mat-label"),h(5,"Registradora"),c(),d(6,"mat-select",31),k(7,Y1t,4,1,"ng-container",5),c()()()),t&2){let e=S(3);m(7),f("ngIf",e.registryPartners)}}function X1t(t,n){if(t&1&&(d(0,"mat-option",30),h(1),ce(2,"degreeVersion"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function Q1t(t,n){if(t&1){let e=ie();d(0,"div",15)(1,"mat-icon",16),h(2,"watch_later"),c(),d(3,"mat-form-field",17)(4,"mat-label"),h(5,"Vers\xE3o do diploma"),c(),d(6,"mat-select",32),$("selectionChange",function(r){W(e);let o=S(3);return Y(o.onDegreeVersionChange(r.value))}),k(7,X1t,3,4,"mat-option",19),c()()()}if(t&2){let e=S(3);m(7),f("ngForOf",e.degreeVersions)}}function Z1t(t,n){t&1&&(d(0,"span"),h(1,"Envie um arquivo JSON com os dados dos diplomas:"),c())}function J1t(t,n){t&1&&(d(0,"span"),h(1,"Preencha os dados do diploma manualmente."),c())}function ext(t,n){if(t&1){let e=ie();d(0,"mat-button-toggle-group",37),$("change",function(r){W(e);let o=S(4);return Y(o.onChangeFileType(r.value))}),d(1,"mat-button-toggle",38),h(2," JSON "),c(),d(3,"mat-button-toggle",38),h(4," Manual "),c()()}if(t&2){let e=S(4);m(),f("value",e.FileTypes.Json)("checked",e.fileType==e.FileTypes.Json),m(2),f("value",e.FileTypes.Manual)("checked",e.fileType==e.FileTypes.Manual)}}function txt(t,n){if(t&1){let e=ie();he(0),d(1,"spa-files",39),$("filesLoading",function(r){W(e);let o=S(4);return Y(o.onFilesLoading(r))}),c(),fe()}if(t&2){let e=S(4);m(),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes)}}function ixt(t,n){if(t&1&&(d(0,"mat-option",30),h(1),ce(2,"degreeType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function nxt(t,n){if(t&1){let e=ie();he(0),d(1,"p"),h(2,"Segunda via?"),c(),d(3,"mat-radio-group",44),tn("ngModelChange",function(r){W(e);let o=S(5);return nn(o.isSegundaVia,r)||(o.isSegundaVia=r),Y(r)}),d(4,"mat-radio-button",30),h(5,"Sim"),c(),d(6,"mat-radio-button",30),h(7,"N\xE3o"),c()(),fe()}if(t&2){let e=S(5);m(3),en("ngModel",e.isSegundaVia),f("ngModelOptions",Wo(4,wye)),m(),f("value",!0),m(2),f("value",!1)}}function rxt(t,n){if(t&1){let e=ie();he(0),d(1,"p"),h(2,"Selecione o tipo de diploma:"),c(),d(3,"div",40)(4,"mat-icon",41),h(5,"card_membership"),c(),d(6,"mat-form-field",42)(7,"mat-label"),h(8,"Tipo do diploma"),c(),d(9,"mat-select",43),tn("ngModelChange",function(r){W(e);let o=S(4);return nn(o.degreeType,r)||(o.degreeType=r),Y(r)}),d(10,"mat-option"),h(11,"Selecione o tipo do diploma..."),c(),k(12,ixt,3,4,"mat-option",19),c()()(),k(13,nxt,8,5,"ng-container",5),d(14,"p"),h(15,"O tipo do diploma flexibiliza a obrigatoriedade de alguns dados."),c(),d(16,"p"),h(17,"Na pr\xF3xima p\xE1gina ser\xE1 poss\xEDvel preencher as informa\xE7\xF5es do diploma de forma manual."),c(),fe()}if(t&2){let e=S(4);m(9),en("ngModel",e.degreeType),f("ngModelOptions",Wo(4,wye)),m(3),f("ngForOf",e.degreeTypes),m(),f("ngIf",e.degreeType!==e.DegreeTypes.JudicialDecision)}}function oxt(t,n){if(t&1&&(d(0,"div",8)(1,"div",33)(2,"div",34)(3,"p",35),k(4,Z1t,2,0,"span",5)(5,J1t,2,0,"span",5),c(),k(6,ext,5,4,"mat-button-toggle-group",36),c(),k(7,txt,2,4,"ng-container",5)(8,rxt,18,5,"ng-container",5),c()()),t&2){let e=S(3);m(4),f("ngIf",e.fileType==e.FileTypes.Json),m(),f("ngIf",e.fileType==e.FileTypes.Manual),m(),f("ngIf",e.showFileTypeToggles),m(),f("ngIf",e.fileType==e.FileTypes.Json),m(),f("ngIf",e.fileType==e.FileTypes.Manual)}}function axt(t,n){if(t&1){let e=ie();d(0,"app-file-validation-boxes",45),$("documentationChanged",function(r){W(e);let o=S(3);return Y(o.onDocumentationChanged(r))})("loadingChange",function(r){W(e);let o=S(3);return Y(o.loading=r)}),c()}if(t&2){let e=S(3);f("operationType",e.operationType)("fileValidationResult",e.fileValidationResult)("selectedResult",e.selectedResult)("degreeDataSource",e.degreeDataSource)("templateId",e.form.get("templateId").value)("academicTranscriptTemplateId",e.form.get("academicTranscriptTemplateId").value)}}function sxt(t,n){if(t&1){let e=ie();d(0,"button",46),$("click",function(){W(e);let r=S(3);return Y(r.submitBatch())}),h(1," Emitir diplomas "),c()}if(t&2){let e=S(3);f("disabled",!e.form.valid||!e.fileValidationResult||!e.fileValidationResult.isValid||!e.degreeTemplateControl.valid||!e.academicTranscriptTemplateControl.valid)}}function lxt(t,n){if(t&1){let e=ie();d(0,"button",46),$("click",function(){W(e);let r=S(3);return Y(r.startFill())}),h(1," Avan\xE7ar "),c()}if(t&2){let e=S(3);f("disabled",!e.form.valid||!e.degreeTemplateControl.valid||!e.academicTranscriptTemplateControl.valid||e.degreeType==null||e.degreeType!=e.DegreeTypes.JudicialDecision&&e.isSegundaVia==null)}}function cxt(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",7)(2,"div",8)(3,"div",9)(4,"h2",10),h(5," Emiss\xE3o de diplomas "),c(),d(6,"p"),h(7,"Para gerar diplomas envie o arquivo com os dados de emiss\xE3o de cada diploma:"),c(),d(8,"div",11)(9,"button",12),$("click",function(){W(e);let r=S(2);return Y(r.openRequiredInfoDialog())}),d(10,"mat-icon",13),h(11,"help"),c(),h(12," Quais dados s\xE3o necess\xE1rios? "),c(),d(13,"a",14)(14,"mat-icon",13),h(15,"get_app"),c(),h(16," Baixar modelo de arquivo JSON "),c()(),d(17,"div",15)(18,"mat-icon",16),h(19,"menu_book"),c(),d(20,"mat-form-field",17)(21,"mat-label"),h(22,"Registro"),c(),d(23,"mat-select",18),$("selectionChange",function(r){W(e);let o=S(2);return Y(o.onRegistrationTypeChange(r.value))}),k(24,q1t,3,4,"mat-option",19),c()()(),k(25,K1t,8,1,"div",20),d(26,"div",15)(27,"mat-icon",16),h(28,"description"),c(),H(29,"app-template-autocomplete-selector",21),c(),d(30,"div",15)(31,"mat-icon",16),h(32,"history_edu"),c(),H(33,"app-template-autocomplete-selector",22),c(),k(34,Q1t,8,1,"div",20),d(35,"app-folder-selector",23),tn("selectedItemChange",function(r){W(e);let o=S(2);return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c()()(),k(36,oxt,9,5,"div",24),c(),k(37,axt,1,6,"app-file-validation-boxes",25),d(38,"app-signature-flow-selector",26),$("loadingChange",function(r){W(e);let o=S(2);return Y(o.loading=r)}),c(),H(39,"app-signature-flow-form",27),d(40,"div",28),k(41,sxt,2,1,"button",29)(42,lxt,2,1,"button",29),c()()}if(t&2){let e,i=S(2);m(24),f("ngForOf",i.regTypes),m(),f("ngIf",i.form.get("registrationType").value==i.RegistrationTypes.Subscription),m(4),f("type",i.TemplateTypes.Degree)("templateControl",i.degreeTemplateControl)("templateIdControl",i.form.get("templateId"))("includeNotGenerateOption",!0),m(4),f("type",i.TemplateTypes.AcademicTranscript)("templateControl",i.academicTranscriptTemplateControl)("templateIdControl",i.form.get("academicTranscriptTemplateId")),m(),f("ngIf",i.acceptPreviousVersionToCurrent&&i.form.get("registrationType").value==i.RegistrationTypes.Manual),m(),en("selectedItem",i.selectedFolder),m(),f("ngIf",!i.acceptPreviousVersionToCurrent||i.isSubscriptionOrIntegrationRegistrationType||((e=i.form.get("degreeVersion"))==null?null:e.valid)),m(),f("ngIf",i.fileType==i.FileTypes.Json),m(),f("form",i.form)("type",i.type),m(),f("form",i.form.get("signatureFlow"))("type",i.type),m(2),f("ngIf",i.fileType==i.FileTypes.Json),m(),f("ngIf",i.fileType==i.FileTypes.Manual)}}function dxt(t,n){if(t&1){let e=ie();d(0,"mat-horizontal-stepper",47,0)(2,"mat-step",48)(3,"app-degree-data-stepper",49),$("returnToBeginningEmitter",function(){W(e);let r=S(2);return Y(r.returnToBeginning())}),c()(),d(4,"mat-step",50)(5,"app-academic-documentation-stepper",51),$("submitted",function(){W(e);let r=S(2);return Y(r.submitEmission())})("visualRepresentationPreviewClick",function(r){W(e);let o=S(2);return Y(o.showVisualRepresentationPreview(r))}),c()()()}if(t&2){let e=je(1),i=S(2);f("linear",!0),m(2),f("stepControl",i.degreeDataForm),m(),f("form",i.degreeDataForm)("degreeStepper",e)("degreeType",i.degreeType),m(),f("stepControl",i.academicDocumentationForm),m(),f("form",i.academicDocumentationForm)("degreeStepper",e)("degreeType",i.degreeType)("isSegundaVia",i.isSegundaVia)("maxUploadSizeInBytes",i.maxUploadSizeInBytes)}}function uxt(t,n){if(t&1&&(d(0,"form",4),k(1,cxt,43,19,"div",5)(2,dxt,6,11,"mat-horizontal-stepper",6),c()),t&2){let e=S();f("formGroup",e.form),m(),f("ngIf",!e.fill),m(),f("ngIf",e.fill)}}var Eye=(()=>{class t{get degreeVersionControl(){return this.form.get("degreeVersion")}get academicDocumentationForm(){return this.emissionRequestForm.get("documentacaoAcademica")}get degreeDataForm(){return this.emissionRequestForm.get("dadosDiploma")}get isSubscriptionOrIntegrationRegistrationType(){return this.form.get("registrationType").valid&&this.form.get("registrationType").value!=su.Manual}get showFileTypeToggles(){return!this.acceptPreviousVersionToCurrent||this.isSubscriptionOrIntegrationRegistrationType||this.form.get("degreeVersion").value==this.currentDegreeVersion}constructor(e,i,r,o,a,s,l,u,p,g,_,v,y,x){this.fb=e,this.configurationService=i,this.route=r,this.router=o,this.dialog=a,this.settingService=s,this.documentFlowService=l,this.batchService=u,this.degreeFormService=p,this.emissionService=g,this.messageService=_,this.subscriptionService=v,this.dialogService=y,this.templateService=x,this.RegistrationTypes=su,this.TemplateTypes=Jr,this.regTypes=Object.keys(su),this.NoTemplate=cI,this.degreeVersions=Object.keys(oI),this.acceptedFileTypes=["application/json"],this.FileTypes=ss,this.fileType=ss.Json,this.DegreeTypes=br,this.degreeTypes=Object.keys(br),this.documentations={},this.selectedFolder=this.settingService.NoFolder,this.type=Ro.Emission,this.degreeTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.academicTranscriptTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.operationType=Pt.Emission,this.$toUnsubscribe=[]}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.acceptPreviousVersionToCurrent=this.configurationService.config.clientConfig.acceptPreviousVersionToCurrent,this.currentDegreeVersion=this.configurationService.config.clientConfig.currentDegreeVersion;let e=JSON.parse(localStorage.getItem(cf.EmissionForm));e?.data!=null?this.degreeFormService.showUseFillAutomaticallySaved().then(i=>{if(i){let r=e.data;this.fileType=ss.Manual,this.degreeType=r.emission.degreeType,this.isSegundaVia=r.emission.documentacaoAcademica.registro.isSegundaVia;let o=new Date,a=new Date(e.uploadedFilesValidityDate);o>a&&(r.emission.documentacaoAcademica.registro.documentacaoComprobatoria=[],r.emission.documentacaoAcademica.registro.termoResponsabilidade!=null&&(r.emission.documentacaoAcademica.registro.termoResponsabilidade.atoDesignacaoFile=null)),this.buildForm(r)}else this.removeSavedForm(),this.buildForm()}):this.buildForm(),this.subscriptionService.getRegistryPartners().subscribe(i=>{this.registryPartners=i})}canDeactivate(){if(!this.closing){if(this.saving)return this.dialogService.confirmContinueBackground();if(this.emissionRequestForm!=null&&this.fileType==ss.Manual)return this.degreeFormService.showConfirmFormDiscard(cf.EmissionForm).then(e=>e==null?!1:(e?this.saveForm():this.removeSavedForm(),!0));if(this.form.dirty||this.filesToAdd.value.length>0)return this.dialogService.confirmDiscard()}return!0}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}buildForm(e){this.filesToAdd=this.fb.array([],Se.minLength(1)),this.form=this.fb.group({registrationType:this.fb.control(e?.registrationType||"",Se.required),registryId:this.fb.control(e?.registryId||""),templateId:[e?.templateId||this.route.snapshot.queryParams.templateId||"",Se.required],academicTranscriptTemplateId:[e?.academicTranscriptTemplateId||"",Se.required],files:this.filesToAdd}),this.acceptPreviousVersionToCurrent&&this.form.setControl("degreeVersion",this.fb.control("",Se.required)),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type,e?.documentFlow)),e&&this.startFill(e)}openRequiredInfoDialog(){this.dialog.open(wg,{width:"1000px",data:{type:this.operationType}})}onFilesLoading(e){if(!e){let i=this.form.value.files[0],r={id:i.id,contentType:i.contentType,name:i.name,fileType:this.fileType,ignoreComprobatoryDocumentationValidation:!0};this.acceptPreviousVersionToCurrent&&this.form.get("registrationType")?.value==su.Manual&&(r.degreeVersion=this.degreeVersionControl.value),this.loading=!0,this.batchService.validateEmissionsFile(r).subscribe(o=>{this.loading=!1,this.selectedResult=null,this.degreeDataSource=null,this.fileValidationResult=o,o.result&&o.result.length>0&&(this.degreeDataSource=o.result.map(a=>{let s=a.information;return{entryNumber:a.entryNumber,isValid:a.isValid,degreeType:s.degreeType,nome:s.dadosDiploma.diplomado.nome,sexo:s.dadosDiploma.diplomado.sexo,cpf:s.dadosDiploma.diplomado.cpf,dataNascimento:s.dadosDiploma.diplomado.dataNascimento,curso:s.dadosDiploma.dadosCurso.nomeCurso,modalidade:s.dadosDiploma.dadosCurso.modalidade?s.dadosDiploma.dadosCurso.modalidade:s.dadosDiploma.dadosCurso.modalidadeNSF,codigoCurso:s.dadosDiploma.dadosCurso.codigoCursoEMEC,preAddedDocumentsCount:this.getPreAddedDocumentationCount(s),documents:null,errors:a.errors,structureErrors:a.structureErrors,signatureErrors:a.signatureErrors,information:s}}),o.isValid||(this.selectedResult=this.degreeDataSource.find(a=>!a.isValid)))},o=>this.loading=!1)}}onChangeFileType(e){this.fileType=e,this.fileType==ss.Json?(this.acceptedFileTypes=["application/json"],this.form.controls.files.enable()):this.fileType==ss.Manual&&(this.acceptedFileTypes=null,this.form.controls.files.disable())}onDegreeVersionChange(e){e!=this.currentDegreeVersion&&this.fileType==ss.Manual&&this.onChangeFileType(ss.Json)}onDocumentationChanged(e){this.documentations[e.index]=e}onRegistrationTypeChange(e){let i=this.form.controls.registryId;e!=su.Subscription?i.disable():(i.enable(),i.setValidators([Se.required])),this.acceptPreviousVersionToCurrent&&(e!=su.Manual?(this.degreeVersionControl.disable(),this.onChangeFileType(ss.Json)):this.degreeVersionControl.enable())}getPreAddedDocumentationCount(e){return e?.documentacaoAcademica?.registro?.documentacaoComprobatoria?.length?e.documentacaoAcademica.registro.documentacaoComprobatoria.length:0}emissionsWithoutDocs(){let e=0;for(let i=0;i0){this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:`H\xE1 ${e} ${e<2?"emiss\xE3o":"emiss\xF5es"} sem documenta\xE7\xE3o associada. Tem certeza que deseja continuar?`,confirmButtonText:"Emitir mesmo assim",cancelButtonText:"Cancelar",confirmButtonColor:"primary"}).then(i=>{i&&this.submit()});return}this.submit()}getEmissionRequest(){let e=this.degreeFormService.getEmissionRequestModel(this.emissionRequestForm,this.degreeType,this.isSegundaVia),i=this.form.get("templateId");return{templateId:i.value!=this.NoTemplate?i.value:null,academicTranscriptTemplateId:this.form.get("academicTranscriptTemplateId").value,registrationType:this.form.get("registrationType").value,registryId:this.form.get("registryId").value,documentFlow:this.documentFlowService.getFormData(this.form.get(ds)),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,emission:e}}submitEmission(){if(!this.form.valid)return;let e=this.getEmissionRequest();this.saving=!0,this.emissionService.create(e).subscribe(i=>{this.closing=!0,i.success?(this.removeSavedForm(),this.router.navigate(["../../emissions",i.id],{relativeTo:this.route}),this.messageService.showSuccess("Os documentos ser\xE3o gerados e enviados para o Assinador")):(this.messageService.showError("Algo deu errado ao tentar gerar o documento"),this.dialog.open(UB,{width:"1000px",data:{errors:i.errors}}))}).add(()=>this.saving=!1)}submit(){let e={registrationType:this.form.get("registrationType").value,registryId:this.form.get("registryId").value,files:Object.values(this.documentations)},i=this.form.get("templateId"),r={templateId:i.value!=this.NoTemplate?i.value:null,academicTranscriptTemplateId:this.form.get("academicTranscriptTemplateId").value,batchFile:this.filesToAdd.value[0],documentFlow:this.documentFlowService.getFormData(this.form.get(ds)),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,fileType:this.fileType,emission:e,type:Bl.Emission};this.acceptPreviousVersionToCurrent&&this.form.get("registrationType")?.value==su.Manual&&(r.degreeVersion=this.degreeVersionControl.value),this.saving=!0,this.batchService.create(r).subscribe(o=>{this.closing=!0,this.removeSavedForm(),this.router.navigate(["../../batches",o.id,"progress"],{relativeTo:this.route}),this.messageService.showSuccess("Os documentos ser\xE3o gerados e enviados para o Assinador")}).add(()=>this.saving=!1)}startFill(e){this.emissionRequestForm==null&&(this.emissionRequestForm=this.degreeFormService.getEmissionRequestForm(this.degreeType,this.isSegundaVia,e?.emission),this.$toUnsubscribe.push(this.emissionRequestForm.valueChanges.pipe($o(LB)).subscribe(o=>{this.saveForm()})));let i=this.documentFlowService.getFormData(this.form.get("signatureFlow")),r=Ve({type:Ro.Emission},i);this.loading=!0,this.documentFlowService.validate(r).subscribe(o=>{this.loading=!1,this.fill=!0},()=>this.loading=!1)}returnToBeginning(){this.fill=!1}removeSavedForm(){this.degreeFormService.removeSavedForm(cf.EmissionForm)}saveForm(){let e=null;if(this.configurationService.config.clientConfig.uploadedFilesValidityInDays>0){let r=new Date;r.setDate(r.getDate()+this.configurationService.config.clientConfig.uploadedFilesValidityInDays),e=r.toString()}let i={uploadedFilesValidityDate:e,data:this.getEmissionRequest()};localStorage.setItem(cf.EmissionForm,JSON.stringify(i))}showVisualRepresentationPreview(e=!1){if(!e&&(!this.form.get("templateId").value||this.form.get("templateId").value==cI)){this.messageService.showError("N\xE3o foi selecionado modelo de representa\xE7\xE3o visual para este diploma");return}let i=e?this.form.get("academicTranscriptTemplateId").value:this.form.get("templateId").value,o={emission:this.degreeFormService.getEmissionRequestModel(this.emissionRequestForm,this.degreeType,this.isSegundaVia)};this.loading=!0,this.templateService.getDocumentVisualRepresentationPreviewTicket(i,o).subscribe(a=>{this.loading=!1;let s={location:a.location};this.dialogService.openFile([s],0)},()=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(zo),E(Ut),E(lt),E(Dn),E(Xa),E(oa),E(dc),E(Gn),E(Jp),E(Bi),E(oy),E(Qi),E(vd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-emission-create"]],decls:3,vars:2,consts:[["degreeStepper",""],[1,"loader-container"],[3,"show"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[4,"ngIf"],[3,"linear",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"box-light","generate-box"],[1,"font-medium"],[1,"d-flex","flex-column","flex-xl-row","align-items-center","justify-content-between"],["mat-button","","color","primary","type","button",1,"my-2","normal-wrap-button",3,"click"],[1,"me-1"],["mat-button","","target","_blank","href","../../../../assets/files/emission-json-template3.json",1,"my-2","normal-wrap-button","mat-primary","d-flex","align-items-center"],[1,"d-flex"],[1,"middle","align-self-center","me-2"],[1,"col","px-0"],["formControlName","registrationType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["class","d-flex",4,"ngIf"],[1,"col","px-0",3,"type","templateControl","templateIdControl","includeNotGenerateOption"],[1,"col","px-0",3,"type","templateControl","templateIdControl"],[1,"mb-2",3,"selectedItemChange","selectedItem"],["class","col-md-6",4,"ngIf"],[3,"operationType","fileValidationResult","selectedResult","degreeDataSource","templateId","academicTranscriptTemplateId","documentationChanged","loadingChange",4,"ngIf"],[3,"loadingChange","form","type"],[3,"form","type"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],[3,"value"],["formControlName","registryId"],["formControlName","degreeVersion",3,"selectionChange"],[1,"box-light"],[1,"mb-2","d-flex","align-items-center"],[1,"mb-0"],["hideSingleSelectionIndicator","true","class","flex-shrink-0 ms-auto medium",3,"change",4,"ngIf"],["hideSingleSelectionIndicator","true",1,"flex-shrink-0","ms-auto","medium",3,"change"],[3,"value","checked"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"],[1,"d-flex","align-items-center"],[1,"me-2"],[1,"w-100"],["required","",3,"ngModelChange","ngModel","ngModelOptions"],["color","primary",1,"d-flex","align-items-center","justify-content-around",3,"ngModelChange","ngModel","ngModelOptions"],[3,"documentationChanged","loadingChange","operationType","fileValidationResult","selectedResult","degreeDataSource","templateId","academicTranscriptTemplateId"],["mat-raised-button","","color","accent",3,"click","disabled"],[3,"linear"],["label","Dados do diploma",3,"stepControl"],[3,"returnToBeginningEmitter","form","degreeStepper","degreeType"],["label","Documenta\xE7\xE3o acad\xEAmica",3,"stepControl"],[3,"submitted","visualRepresentationPreviewClick","form","degreeStepper","degreeType","isSegundaVia","maxUploadSizeInBytes"]],template:function(i,r){i&1&&(d(0,"div",1),H(1,"ngx-loading",2),k(2,uxt,3,3,"form",3),c()),i&2&&(m(),f("show",r.loading||r.saving),m(),f("ngIf",r.form))},dependencies:[Vt,Ee,zt,it,pt,Jn,Va,dt,Tt,He,ec,Ze,bt,jt,Mi,li,cc,vM,fI,Li,ep,em,tp,tm,uc,am,Eg,sm,Ig,YB,t6,v6,yI,Sye],styles:[".mat-mdc-button-toggle[_ngcontent-%COMP%]{font-size:15px;padding:0!important}[_nghost-%COMP%] .mat-mdc-button-toggle-appearance-standard .mat-mdc-button-toggle-label-content{line-height:30px!important}"]})}}return t})();function mxt(t,n){t&1&&(d(0,"span"),h(1,"emiss\xE3o"),c())}function pxt(t,n){t&1&&(d(0,"span"),h(1,"curr\xEDculo escolar"),c())}function hxt(t,n){if(t&1&&(d(0,"h2"),h(1," Cancelamento de "),k(2,mxt,2,0,"span",4)(3,pxt,2,0,"span",4),c()),t&2){let e=S();m(2),f("ngIf",e.operationType==e.OperationTypes.Emission),m(),f("ngIf",e.operationType==e.OperationTypes.Curriculum)}}function fxt(t,n){t&1&&(d(0,"span"),h(1," da emiss\xE3o:"),c())}function gxt(t,n){t&1&&(d(0,"span"),h(1," do curr\xEDculo escolar:"),c())}function _xt(t,n){t&1&&(d(0,"span"),h(1,"A documenta\xE7\xE3o acad\xEAmica ainda n\xE3o foi completamente assinada, portanto ser\xE1 exclu\xEDda no Assinador."),c())}function vxt(t,n){t&1&&(d(0,"span"),h(1,"O curr\xEDculo escolar ainda n\xE3o foi completamente assinado, portanto ser\xE1 exclu\xEDdo no Assinador."),c())}function bxt(t,n){if(t&1&&(d(0,"span"),k(1,_xt,2,0,"span",4)(2,vxt,2,0,"span",4),c()),t&2){let e=S(2);m(),f("ngIf",e.operationType==e.OperationTypes.Emission),m(),f("ngIf",e.operationType==e.OperationTypes.Curriculum)}}function yxt(t,n){if(t&1&&(d(0,"p"),h(1,"Informe o motivo do "),d(2,"strong"),h(3,"cancelamento"),c(),k(4,fxt,2,0,"span",4)(5,gxt,2,0,"span",4),c(),d(6,"form",5)(7,"mat-form-field",6)(8,"mat-label"),h(9,"Motivo"),c(),H(10,"textarea",7),d(11,"mat-error"),h(12),c()()(),d(13,"mat-card",8)(14,"span",9),k(15,bxt,3,2,"span",4),h(16," Esta a\xE7\xE3o n\xE3o poder\xE1 ser revertida."),c()()),t&2){let e=S();m(4),f("ngIf",e.operationType==e.OperationTypes.Emission),m(),f("ngIf",e.operationType==e.OperationTypes.Curriculum),m(),f("formGroup",e.form),m(6),U(e.Error.get(e.form,"reason")),m(3),f("ngIf",!e.isSigned)}}function xxt(t,n){if(t&1){let e=ie();d(0,"button",10),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"span"),h(2,"Cancelar"),c()(),d(3,"button",11),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(4,"Descartar"),c()}if(t&2){let e=S();f("disabled",!e.form.valid)}}var b6=(()=>{class t{constructor(e,i,r,o,a,s,l){this.formBuilder=e,this.emissionService=i,this.messageService=r,this.Error=o,this.dialogRef=s,this.curriculumService=l,this.OperationTypes=Pt,this.operationType=a.operationType,this.documentId=a.documentId,this.isSigned=a.isSigned}ngOnInit(){this.form=this.formBuilder.group({reason:[null,[Se.required,Se.maxLength(500)]]})}submit(){let e=this.form.get("reason").value;this.loading=!0;let i,r;switch(this.operationType){case Pt.Emission:i=this.emissionService.cancel(this.documentId,e),r="Emiss\xE3o cancelada com sucesso";break;case Pt.Curriculum:i=this.curriculumService.cancel(this.documentId,e),r="Curr\xEDculo escolar cancelado com sucesso";break;default:break}i.subscribe(()=>{this.loading=!1,this.messageService.showSuccess(r),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Jp),E(Bi),E(wi),E(mr),E(Qr),E(Cg))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-document-cancel"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[4,"ngIf"],[3,"formGroup"],[1,"w-100"],["matInput","","formControlName","reason","rows","7","maxlength","500",1,"md-textarea","md-textarea-auto"],["appearance","outlined",1,"bg-warn","mat-elevation-z0","mat-3","warning-card"],[1,"text-white"],["mat-raised-button","","color","warn","tabindex","-1",3,"click","disabled"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,hxt,4,2,"ng-template",null,0,Ii)(3,yxt,17,5,"ng-template",null,1,Ii)(5,xxt,5,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Ee,zt,Gt,it,pt,wc,dt,Tt,Ze,Wt,bt,jt,Si,ws,Uo]})}}return t})();var wJ=t=>({errors:t});function Cxt(t,n){t&1&&(d(0,"h2"),h(1,"Envio de registro"),c())}function Sxt(t,n){if(t&1&&(d(0,"span",13),h(1,"Resumo"),c()),t&2){let e=S(3);f("matBadge",e.errors.length)}}function wxt(t,n){if(t&1&&(d(0,"span",13),h(1,"Estrutura"),c()),t&2){let e=S(4);f("matBadge",e.structureErrors.length)}}function Ext(t,n){if(t&1&&(d(0,"mat-tab"),k(1,wxt,2,1,"ng-template",11),dn(2,12),c()),t&2){S(2);let e=je(9),i=S();m(2),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Le(2,wJ,i.structureErrors))}}function Ixt(t,n){if(t&1&&(d(0,"span",13),h(1,"Assinatura"),c()),t&2){let e=S(4);f("matBadge",e.signatureErrors.length)}}function Dxt(t,n){if(t&1&&(d(0,"mat-tab"),k(1,Ixt,2,1,"ng-template",11),dn(2,12),c()),t&2){S(2);let e=je(9),i=S();m(2),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Le(2,wJ,i.signatureErrors))}}function Txt(t,n){if(t&1&&(he(0),d(1,"mat-tab-group",10)(2,"mat-tab"),k(3,Sxt,2,1,"ng-template",11),dn(4,12),c(),k(5,Ext,3,4,"mat-tab",9)(6,Dxt,3,4,"mat-tab",9),c(),fe()),t&2){S();let e=je(9),i=S();m(4),f("ngTemplateOutlet",e)("ngTemplateOutletContext",Le(4,wJ,i.errors)),m(),f("ngIf",(i.structureErrors==null?null:i.structureErrors.length)>0),m(),f("ngIf",(i.signatureErrors==null?null:i.signatureErrors.length)>0)}}function Axt(t,n){if(t&1&&(d(0,"li"),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function kxt(t,n){if(t&1&&(d(0,"ng-scrollbar",14)(1,"ul"),k(2,Axt,2,1,"li",15),c()()),t&2){let e=n.errors;m(2),f("ngForOf",e)}}function Mxt(t,n){if(t&1&&(d(0,"p"),h(1,"Envie o XML de dados p\xFAblicos do diploma que foi gerado pela IES Registradora:"),c(),d(2,"form",5),H(3,"spa-files",6),d(4,"div",7)(5,"mat-checkbox",8),h(6,"Pular valida\xE7\xE3o das assinaturas"),c()()(),k(7,Txt,7,6,"ng-container",9)(8,kxt,3,1,"ng-template",null,3,Ii)),t&2){let e=S();m(2),f("formGroup",e.form),m(),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes),m(4),f("ngIf",e.errors)}}function Fxt(t,n){if(t&1){let e=ie();d(0,"button",16),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"mat-icon"),h(2,"file_upload"),c(),h(3," Enviar "),c(),d(4,"button",17),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5,"Cancelar"),c()}if(t&2){let e=S();f("disabled",!e.form.valid)}}var Iye=(()=>{class t{constructor(e,i,r,o,a,s){this.fb=e,this.configurationService=i,this.emissionService=r,this.messageService=o,this.dialogRef=s,this.acceptedFileTypes=["application/xml","text/xml"],this.emissionId=a.emissionId}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.buildForm()}buildForm(){this.filesToAdd=this.fb.array([],Se.required),this.form=this.fb.group({files:this.filesToAdd,skipSignatureValidation:[!1]})}submit(){let e=this.filesToAdd.value[0],i={id:e.id,name:e.name,contentType:e.contentType,location:e.location,skipSignatureValidation:this.form.get("skipSignatureValidation").value};this.loading=!0,this.emissionService.uploadDegreeXml(this.emissionId,i).subscribe(r=>{this.loading=!1,r.success?(this.messageService.showSuccess("Registro enviado com sucesso"),this.dialogRef.close(!0)):(this.errors=r.errors,this.structureErrors=r.structureErrors,this.signatureErrors=r.signatureErrors)},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(zo),E(Jp),E(Bi),E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-emission-upload"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],["errorsTabContent",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup"],[3,"single","filesToAdd","acceptedTypes","maxFileSize"],[1,"mt-2"],["formControlName","skipSignatureValidation"],[4,"ngIf"],["animationDuration","0ms"],["mat-tab-label",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["matBadgeOverlap","false",1,"pe-2",3,"matBadge"],["visibility","hover",1,"pt-2",2,"height","150px"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","accent","tabindex","-1",3,"click","disabled"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",4),k(1,Cxt,2,0,"ng-template",null,0,Ii)(3,Mxt,10,6,"ng-template",null,1,Ii)(5,Fxt,6,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Vt,Ee,ta,zt,it,pt,dt,Tt,He,Ze,Co,cc,bM,Hl,mc,vB,Ju,Uo]})}}return t})();var Rxt=t=>({"text-warn":t});function Pxt(t,n){t&1&&(d(0,"b"),h(1,"Assinada"),c())}function Nxt(t,n){t&1&&(d(0,"b"),h(1,"Aguardando assinaturas"),c())}function Oxt(t,n){if(t&1){let e=ie();d(0,"div",9)(1,"button",34),$("click",function(){W(e);let r=S(3);return Y(r.getXmlFile())}),d(2,"mat-icon",35),h(3,"save_alt"),c(),h(4,"Doc. acad\xEAmica"),c()()}}function Lxt(t,n){if(t&1){let e=ie();d(0,"div",7)(1,"div",9)(2,"spa-prop",32),k(3,Pxt,2,0,"b",6)(4,Nxt,2,0,"b",6),c(),k(5,Oxt,5,0,"div",33),c(),d(6,"div",9)(7,"button",34),$("click",function(){W(e);let r=S(2);return Y(r.viewOnSigner())}),d(8,"mat-icon",35),h(9,"launch"),c(),h(10," Ver no Assinador"),c()()()}if(t&2){let e=S(2);m(3),f("ngIf",e.emission.isAcademicDocumentationSigned),m(),f("ngIf",!e.emission.isAcademicDocumentationSigned),m(),f("ngIf",e.emission.isAcademicDocumentationSigned)}}function Vxt(t,n){if(t&1&&(d(0,"spa-prop",36),h(1),c()),t&2){let e=S(2);m(),U(e.emission.registryName)}}function Bxt(t,n){if(t&1&&(d(0,"div",8)(1,"spa-prop",38),h(2),ce(3,"registrationStatus"),c()()),t&2){let e=S(3);m(2),U(xe(3,1,e.emission.registrationStatus))}}function jxt(t,n){if(t&1&&(d(0,"div",8)(1,"spa-prop",39),h(2),ce(3,"date"),c()()),t&2){let e=S(3);m(2),U(Bt(3,1,e.emission.registrationUpdateDate,"short"))}}function Hxt(t,n){if(t&1&&(d(0,"div",8)(1,"spa-prop",40),h(2),c()()),t&2){let e=S(3);m(2),U(e.emission.registrationStatusDescription)}}function zxt(t,n){if(t&1&&(d(0,"div",16),k(1,Bxt,4,3,"div",37)(2,jxt,4,4,"div",37)(3,Hxt,3,1,"div",37),c()),t&2){let e=S(2);m(),f("ngIf",e.emission.registrationStatus),m(),f("ngIf",e.emission.registrationUpdateDate),m(),f("ngIf",e.emission.registrationStatusDescription)}}function Uxt(t,n){if(t&1){let e=ie();d(0,"div",9)(1,"button",34),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation())}),d(2,"mat-icon",35),h(3,"visibility"),c(),h(4,"Representa\xE7\xE3o visual"),c()()}}function Gxt(t,n){if(t&1){let e=ie();d(0,"div",9)(1,"button",34),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation(!0))}),d(2,"mat-icon",35),h(3,"visibility"),c(),h(4,"Representa\xE7\xE3o visual do hist\xF3rico"),c()()}}function $xt(t,n){if(t&1&&(d(0,"div",41)(1,"p",42),h(2,"Representa\xE7\xE3o visual"),c(),d(3,"div",7),k(4,Uxt,5,0,"div",33)(5,Gxt,5,0,"div",33),c()()),t&2){let e=S(2);m(4),f("ngIf",e.emission.hasVisualRepresentation),m(),f("ngIf",e.emission.hasAcademicTranscriptVisualRepresentation)}}function qxt(t,n){if(t&1){let e=ie();d(0,"div",43)(1,"spa-prop",44),h(2),c(),d(3,"button",34),$("click",function(){W(e);let r=S(2);return Y(r.viewDegree())}),d(4,"mat-icon",35),h(5,"card_membership"),c(),h(6," Ver diploma"),c()()}if(t&2){let e=S(2);m(2),U(e.emission.degreeVerificationCode)}}function Wxt(t,n){if(t&1&&(d(0,"spa-prop",38),h(1),ce(2,"registrationStatus"),c()),t&2){let e=S(3);m(),U(xe(2,1,e.emission.registrationStatus))}}function Yxt(t,n){if(t&1&&(d(0,"spa-prop",39),h(1),ce(2,"date"),c()),t&2){let e=S(3);m(),U(Bt(2,1,e.emission.registrationUpdateDate,"short"))}}function Kxt(t,n){if(t&1&&(d(0,"spa-prop",40),h(1),c()),t&2){let e=S(3);m(),U(e.emission.registrationStatusDescription)}}function Xxt(t,n){if(t&1&&(d(0,"div",45),k(1,Wxt,3,3,"spa-prop",46)(2,Yxt,3,4,"spa-prop",47)(3,Kxt,2,1,"spa-prop",48),c()),t&2){let e=S(2);m(),f("ngIf",e.emission.registrationStatus),m(),f("ngIf",e.emission.registrationUpdateDate),m(),f("ngIf",e.emission.registrationStatusDescription)}}function Qxt(t,n){if(t&1){let e=ie();d(0,"div",49)(1,"button",50),$("click",function(){W(e);let r=S(2);return Y(r.uploadRegistry())}),d(2,"mat-icon",35),h(3,"file_upload"),c(),h(4," Enviar registro"),c()()}}function Zxt(t,n){if(t&1){let e=ie();d(0,"div",51)(1,"button",52),$("click",function(){W(e);let r=S(2);return Y(r.cancel())}),d(2,"mat-icon",35),h(3,"cancel"),c(),h(4," Cancelar emiss\xE3o"),c()()}}function Jxt(t,n){if(t&1&&(d(0,"div",7)(1,"div",8)(2,"div",7)(3,"div",9)(4,"spa-prop",10),h(5),c()(),d(6,"div",9)(7,"spa-prop",11),h(8),ce(9,"cpf"),c()()(),d(10,"div",7)(11,"div",9)(12,"spa-prop",12),h(13),c()(),d(14,"div",9)(15,"spa-prop",13),h(16),c()()(),d(17,"div",7)(18,"div",9)(19,"spa-prop",14),h(20),ce(21,"date"),c()(),d(22,"div",9)(23,"spa-prop",15),h(24),ce(25,"date"),c()()(),k(26,Lxt,11,3,"div",4),d(27,"div",16)(28,"div",9)(29,"spa-prop",17),h(30),ce(31,"registrationType"),c()(),d(32,"div",9),k(33,Vxt,2,1,"spa-prop",18),c()(),k(34,zxt,4,3,"div",19)(35,$xt,6,2,"div",20),c(),d(36,"div",21)(37,"p",22),h(38,"Status"),c(),d(39,"div",23),H(40,"app-emission-status-icon",24),d(41,"h2",25)(42,"span",26),h(43),ce(44,"emissionStatus"),c()()(),k(45,qxt,7,1,"div",27)(46,Xxt,4,3,"div",28),d(47,"div",29),k(48,Qxt,5,0,"div",30)(49,Zxt,5,0,"div",31),c()()()),t&2){let e=S();m(5),U(e.emission.studentName),m(3),U(xe(9,18,e.emission.studentCpf)),m(5),U(e.emission.course),m(3),U(e.emission.issuingIes),m(4),U(Bt(21,20,e.emission.creationDate,"short")),m(4),U(Bt(25,23,e.emission.updateDate,"short")),m(2),f("ngIf",!e.isCanceled),m(4),U(xe(31,26,e.emission.registrationType)),m(3),f("ngIf",e.emission.registryName),m(),f("ngIf",e.emission.status==e.EmissionStatus.Registered&&(e.emission.registrationStatus||e.emission.registrationUpdateDate)),m(),f("ngIf",!e.emission.degreeId&&!e.isCanceled&&(e.emission.hasVisualRepresentation||e.emission.hasAcademicTranscriptVisualRepresentation)),m(5),f("status",e.emission.status),m(2),f("ngClass",Le(30,Rxt,e.isCanceled)),m(),U(xe(44,28,e.emission.status)),m(2),f("ngIf",e.emission.degreeId),m(),f("ngIf",e.emission.registrationType!=e.RegistrationTypes.Manual&&e.emission.status!=e.EmissionStatus.Registered),m(2),f("ngIf",e.emission.status==e.EmissionStatus.Signed&&e.emission.registrationType==e.RegistrationTypes.Manual),m(),f("ngIf",e.canCancel)}}function eCt(t,n){if(t&1&&(d(0,"div"),H(1,"app-degree-history-table",53),c()),t&2){let e=S();m(),f("history",e.history)("type",e.operationType)}}var EJ=(()=>{class t{get isCanceled(){return this.emission.status===Vl.Canceled}get canCancel(){return this.emission.status!=Vl.Canceled&&this.emission.status!=Vl.Registered&&this.emission.status!=Vl.SentToRegistry&&this.emission.status!=Vl.AcceptedByRegistry}constructor(e,i,r,o,a){this.route=e,this.emissionService=i,this.dialog=r,this.navigationService=o,this.dialogService=a,this.EmissionStatus=Vl,this.RegistrationTypes=su,this.operationType=Pt.Emission,this.loadingHistory=!1}ngOnInit(){this.load()}load(){this.id=this.route.snapshot.paramMap.get("id"),this.loading=!0,this.emissionService.get(this.id).subscribe(e=>{this.emission=e,this.loading=!1},e=>this.loading=!1),this.loadingHistory=!0,this.emissionService.getHistory(this.id).subscribe(e=>{this.loadingHistory=!1,this.history=e},e=>this.loadingHistory=!1)}getXmlFile(){this.loading=!0,this.emissionService.getAcademicDocumentationTicket(this.emission.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}viewOnSigner(){window.open(this.emission.signerAcademicDocumentationUrl,"_blank")}uploadRegistry(){this.dialog.open(Iye,{width:"800px",data:{emissionId:this.emission.id}}).afterClosed().toPromise().then(i=>{i&&this.load()})}viewDegree(){this.emission.degreeId&&this.navigationService.navigate("Degree",this.emission.degreeId)}cancel(){this.dialog.open(b6,{width:"600px",data:{operationType:Pt.Emission,documentId:this.emission.id,isSigned:this.emission.isAcademicDocumentationSigned}}).afterClosed().toPromise().then(i=>{i&&this.load()})}getVisualRepresentation(e=!1){this.loading=!0,this.emissionService.getVisualRepresentationPreviewTicket(this.emission.id,e).subscribe(i=>{this.loading=!1;let r={location:i.location};this.dialogService.openFile([r],0)},i=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Jp),E(Dn),E(Bb),E(Qi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-emission-detail"]],decls:11,vars:8,consts:[[1,"box-light"],[3,"show"],[3,"refresh","loadingChange","loading","documentId","showExportButton","documentType"],["header",""],["class","row",4,"ngIf"],["box-title",""],[4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"col"],["label","Diplomado(a)"],["label","CPF"],["label","Curso"],["label","IES Emissora"],["label","Criada em"],["label","Atualizada em"],[1,"row","mt-2"],["label","Registro"],["label","Registradora",4,"ngIf"],["class","row mt-2",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"col-md-6","d-flex","flex-column","align-items-center"],[1,"prop-label","mt-4"],[1,"d-flex","align-items-center"],[3,"status"],[1,"mb-0","ms-1"],[3,"ngClass"],["class","d-flex flex-column justify-content-center mt-3",4,"ngIf"],["class","d-flex flex-column justify-content-center mt-3 text-center",4,"ngIf"],[1,"d-flex","flex-column","mt-3"],["class","align-self-center",4,"ngIf"],["class","align-self-center mt-3",4,"ngIf"],["label","Documenta\xE7\xE3o Acad\xEAmica"],["class","col",4,"ngIf"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],["label","Registradora"],["class","col-md-6",4,"ngIf"],["label","Status Registro"],["label","\xDAltima altera\xE7\xE3o"],["label","Descri\xE7\xE3o"],[1,"mt-3"],[1,"prop-label"],[1,"d-flex","flex-column","justify-content-center","mt-3"],["label","C\xF3digo de valida\xE7\xE3o",1,"text-center"],[1,"d-flex","flex-column","justify-content-center","mt-3","text-center"],["label","Status Registro",4,"ngIf"],["label","\xDAltima altera\xE7\xE3o",4,"ngIf"],["label","Descri\xE7\xE3o",4,"ngIf"],[1,"align-self-center"],["color","primary","mat-flat-button","",3,"click"],[1,"align-self-center","mt-3"],["color","warn","mat-flat-button","",3,"click"],[3,"history","type"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"app-box-title",2),$("refresh",function(){return r.load()}),tn("loadingChange",function(a){return nn(r.loading,a)||(r.loading=a),a}),d(3,"span",3),h(4,"Detalhes da emiss\xE3o"),c()(),k(5,Jxt,50,32,"div",4),c(),d(6,"spa-box"),H(7,"ngx-loading",1),d(8,"span",5),h(9,"Hist\xF3rico"),c(),k(10,eCt,2,2,"div",6),c()),i&2&&(m(),f("show",r.loading),m(),en("loading",r.loading),f("documentId",r.id)("showExportButton",!0)("documentType",r.operationType),m(3),f("ngIf",r.emission),m(2),f("show",r.loadingHistory),m(3),f("ngIf",r.history))},dependencies:[ji,Ee,He,Ze,li,un,wn,bd,TI,eh,rn,Zo,v6,Gb,$b]})}}return t})();var Lc=function(t){return t.Approve="Approve",t.Reject="Reject",t.Cancel="Cancel",t.Accept="Accept",t}(Lc||{});var tCt=()=>({standalone:!0});function iCt(t,n){if(t&1&&(d(0,"h2"),h(1),c()),t&2){let e=S();m(),ue("",e.actionName," requisi\xE7\xE3o de registro")}}function nCt(t,n){if(t&1&&(d(0,"mat-option",13),h(1),ce(2,"cancellationReason"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function rCt(t,n){if(t&1&&(d(0,"mat-form-field",10)(1,"mat-label"),h(2,"Motivo da anula\xE7\xE3o"),c(),d(3,"mat-select",11),k(4,nCt,3,4,"mat-option",12),c()()),t&2){let e=S(2);m(4),f("ngForOf",e.cancellationReasons)}}function oCt(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"mat-checkbox",15),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.proceedToRegister,r)||(o.proceedToRegister=r),Y(r)}),h(2," Fazer registro ap\xF3s aprova\xE7\xE3o "),c()()}if(t&2){let e=S(2);m(),en("ngModel",e.proceedToRegister),f("ngModelOptions",Wo(2,tCt))}}function aCt(t,n){if(t&1&&(d(0,"form",4)(1,"h3",5),h(2," Deseja mesmo "),d(3,"strong"),h(4),c(),h(5," esta requisi\xE7ao de registro? "),c(),k(6,rCt,5,1,"mat-form-field",6),d(7,"mat-form-field",7)(8,"mat-label"),h(9,"Motivo"),c(),H(10,"textarea",8),d(11,"mat-error"),h(12),c()(),k(13,oCt,3,3,"div",9),c()),t&2){let e=S();f("formGroup",e.form),m(4),U(e.actionName.toLowerCase()),m(2),f("ngIf",e.shouldDisplayCancellationReasonSelect),m(6),U(e.Error.get(e.form,"reason")),m(),f("ngIf",e.isApprove)}}function sCt(t,n){if(t&1){let e=ie();d(0,"button",16),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"span"),h(2),c()(),d(3,"button",17),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(4),c()}if(t&2){let e=S();f("disabled",!e.form.valid)("color",!e.isApprove&&!e.isAccept?"warn":"primary"),m(2),U(e.actionName),m(2),U(e.isCancel?"Descartar":"Cancelar")}}var y6=(()=>{class t{get isApprove(){return this.action==Lc.Approve}get isAccept(){return this.action==Lc.Accept}get isCancel(){return this.action==Lc.Cancel}get shouldDisplayCancellationReasonSelect(){return this.isSigned&&this.isCancel}get actionName(){switch(this.action){case Lc.Approve:return"Aprovar";case Lc.Reject:return"Recusar";case Lc.Accept:return"Aceitar";default:return"Cancelar"}}constructor(e,i,r,o,a,s){this.formBuilder=e,this.registrationService=i,this.messageService=r,this.Error=o,this.dialogRef=s,this.cancellationReasons=Object.keys(Xp),this.Types=Lc;let l=a.request;this.registrationId=l.registrationId,this.action=l.action,this.notes=l.notes,this.isSigned=l.isSigned}ngOnInit(){let e=[Se.maxLength(1e3)];if(!this.isApprove&&!this.isAccept&&(!this.isCancel||!this.isSigned)&&e.push(Se.required),this.form=this.formBuilder.group({reason:[this.notes,e]}),this.shouldDisplayCancellationReasonSelect){let i=this.formBuilder.control(null,[Se.required]);this.form.setControl("cancellationReason",i)}this.form.updateValueAndValidity()}submit(){let e={cancellationReason:this.form.get("cancellationReason")?.value,reason:this.form.get("reason").value};this.loading=!0;let i;switch(this.action){case Lc.Approve:i=this.registrationService.approve(this.registrationId,e);break;case Lc.Reject:i=this.registrationService.reject(this.registrationId,e);break;case Lc.Accept:i=this.registrationService.accept(this.registrationId,e);break;default:i=this.registrationService.cancel(this.registrationId,e);break}i.subscribe(()=>{this.loading=!1,this.messageService.showSuccess("Requisi\xE7\xE3o atualizada com sucesso"),this.registrationService.setNeedsReload(this.registrationId),this.dialogRef.close({proceedToRegister:this.proceedToRegister})},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Sd),E(Bi),E(wi),E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-registration-action"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup"],[1,"text-center"],["class","col-12 mb-1",4,"ngIf"],[1,"col-12","mt-2"],["matInput","","formControlName","reason","rows","5","maxlength","1000",1,"md-textarea","md-textarea-auto"],["class","d-flex justify-content-center",4,"ngIf"],[1,"col-12","mb-1"],["formControlName","cancellationReason"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"d-flex","justify-content-center"],[3,"ngModelChange","ngModel","ngModelOptions"],["type","submit","mat-raised-button","","tabindex","-1",3,"click","disabled","color"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,iCt,2,1,"ng-template",null,0,Ii)(3,aCt,14,5,"ng-template",null,1,Ii)(5,sCt,5,4,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Vt,Ee,zt,Gt,it,pt,wc,Va,dt,Tt,Ze,Wt,bt,jt,Si,Mi,Co,Li,Uo,p6]})}}return t})();var lCt=t=>({"text-warn":t});function cCt(t,n){if(t&1&&(d(0,"div",29)(1,"spa-prop",30),h(2),c()()),t&2){let e=S(2);m(2),U(e.registration.description)}}function dCt(t,n){t&1&&(d(0,"div",34)(1,"p",23),h(2,"Aten\xE7\xE3o"),c(),d(3,"div",35)(4,"h3")(5,"strong"),h(6,"Esta requisi\xE7\xE3o foi realizada em uma vers\xE3o anterior \xE0 vers\xE3o vigente, portanto n\xE3o \xE9 poss\xEDvel realizar o registro"),c()()()())}function uCt(t,n){if(t&1){let e=ie();d(0,"button",37),$("click",function(){W(e);let r=S(4);return Y(r.updateStatus(r.RegistrationActionTypes.Accept))}),d(1,"mat-icon",21),h(2,"check"),c(),h(3," Aceitar"),c()}}function mCt(t,n){if(t&1){let e=ie();d(0,"button",37),$("click",function(){W(e);let r=S(4);return Y(r.review())}),d(1,"mat-icon",21),h(2,"search"),c(),h(3," Revisar"),c()}}function pCt(t,n){if(t&1){let e=ie();d(0,"button",37),$("click",function(){W(e);let r=S(4);return Y(r.register())}),d(1,"mat-icon",21),h(2,"edit"),c(),h(3," Registrar"),c()}}function hCt(t,n){if(t&1&&(he(0),k(1,uCt,4,0,"button",36)(2,mCt,4,0,"button",36)(3,pCt,4,0,"button",36),fe()),t&2){let e=S(3);m(),f("ngIf",e.registration.status==e.Statuses.CreatedAwaitingAcceptance),m(),f("ngIf",e.registration.status==e.Statuses.Created||e.registration.status==e.Statuses.Accepted),m(),f("ngIf",e.registration.status==e.Statuses.Approved)}}function fCt(t,n){if(t&1){let e=ie();d(0,"button",20),$("click",function(){W(e);let r=S(4);return Y(r.getXmlFile(!0))}),d(1,"mat-icon",21),h(2,"save_alt"),c(),h(3,"Diploma"),c()}}function gCt(t,n){if(t&1){let e=ie();he(0),d(1,"button",20),$("click",function(){W(e);let r=S(3);return Y(r.viewOnSigner())}),d(2,"mat-icon",21),h(3,"launch"),c(),h(4," Ver no Assinador"),c(),k(5,fCt,4,0,"button",38),fe()}if(t&2){let e=S(3);m(5),f("ngIf",e.registration.isSigned)}}function _Ct(t,n){if(t&1){let e=ie();d(0,"button",39),$("click",function(){W(e);let r=S(3);return Y(r.updateStatus(r.RegistrationActionTypes.Reject))}),d(1,"mat-icon",21),h(2,"cancel"),c(),h(3," Recusar"),c()}}function vCt(t,n){if(t&1){let e=ie();d(0,"button",39),$("click",function(){W(e);let r=S(3);return Y(r.updateStatus(r.RegistrationActionTypes.Cancel))}),d(1,"mat-icon",21),h(2,"cancel"),c(),h(3," Cancelar"),c()}}function bCt(t,n){if(t&1&&(he(0),k(1,dCt,7,0,"div",31),d(2,"div",32),k(3,hCt,4,3,"ng-container",28)(4,gCt,6,1,"ng-container",28),c(),d(5,"div",32),k(6,_Ct,4,0,"button",33)(7,vCt,4,0,"button",33),c(),fe()),t&2){let e=S(2);m(),f("ngIf",!e.registration.isCurrentVersion&&(e.registration.status==e.Statuses.Created||e.registration.status==e.Statuses.Approved)),m(2),f("ngIf",e.registration.isCurrentVersion),m(),f("ngIf",e.registration.signerDocumentId),m(2),f("ngIf",e.registration.status==e.Statuses.CreatedAwaitingAcceptance),m(),f("ngIf",e.registration.status!=e.Statuses.CreatedAwaitingAcceptance)}}function yCt(t,n){if(t&1){let e=ie();d(0,"div",10)(1,"div",11)(2,"div",10)(3,"div",12)(4,"spa-prop",13),h(5),c()(),d(6,"div",12)(7,"spa-prop",14),h(8),ce(9,"cpf"),c()()(),d(10,"spa-prop",15),h(11),c(),d(12,"div",10)(13,"div",12)(14,"spa-prop",16),h(15),c()()(),d(16,"div",10)(17,"div",12)(18,"spa-prop",17),h(19),ce(20,"date"),c()(),d(21,"div",12)(22,"spa-prop",18),h(23),ce(24,"date"),c()()(),d(25,"div",19)(26,"div",12)(27,"button",20),$("click",function(){W(e);let r=S();return Y(r.getXmlFile())}),d(28,"mat-icon",21),h(29,"save_alt"),c(),h(30,"Doc. Acad\xEAmica"),c()()()(),d(31,"div",22)(32,"p",23),h(33,"Status"),c(),d(34,"div",24),H(35,"app-registration-status-icon",25),d(36,"h2",26),h(37),ce(38,"registrationStatus"),c()(),k(39,cCt,3,1,"div",27)(40,bCt,8,5,"ng-container",28),c()()}if(t&2){let e=S();m(5),U(e.registration.studentName),m(3),U(xe(9,11,e.registration.studentCpf)),m(3),U(e.registration.course),m(4),U(e.registration.issuingIes),m(4),U(Bt(20,13,e.registration.creationDate,"short")),m(4),U(Bt(24,16,e.registration.updateDate,"short")),m(12),f("status",e.registration.status),m(),f("ngClass",Le(21,lCt,e.isCanceledOrRejected)),m(),ue(" ",xe(38,19,e.registration.status)," "),m(2),f("ngIf",e.isCanceledOrRejected),m(),f("ngIf",!e.isCanceledOrRejected)}}function xCt(t,n){if(t&1&&(d(0,"div",40),H(1,"app-degree-history-table",41),c()),t&2){let e=S();m(),f("history",e.history)("type",e.operationType)}}function CCt(t,n){if(t&1&&(d(0,"mat-tab",42),H(1,"app-document-restamp-table",43),c()),t&2){let e=S();m(),f("loadTable",e.tabIndex==1)("documentId",e.registration.id)("documentType",e.operationType)}}var IJ=(()=>{class t{get isCanceledOrRejected(){return this.registration.status===jl.Canceled||this.registration.status===jl.Rejected}constructor(e,i,r,o){this.route=e,this.router=i,this.dialog=r,this.registrationService=o,this.Statuses=jl,this.operationType=Pt.Registration,this.RegistrationActionTypes=Lc,this.$toUnsubscribe=[],this.loading=!1,this.loadingHistory=!1}ngOnInit(){this.load(),this.$toUnsubscribe.push(this.registrationService.reloaded.subscribe(e=>{this.registration.id==e&&this.load()}))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}load(){let e=this.route.snapshot.paramMap.get("id");this.loading=!0,this.registrationService.get(e).subscribe(i=>{this.loading=!1,this.registration=i},i=>this.loading=!1),this.loadingHistory=!0,this.registrationService.getHistory(e).subscribe(i=>{this.loadingHistory=!1,this.history=i},i=>this.loadingHistory=!1)}getXmlFile(e){this.loading=!0,(e?this.registrationService.getDegreeTicket(this.registration.id):this.registrationService.getAcademicDocumentationTicket(this.registration.id)).subscribe(r=>{this.loading=!1,window.location.href=r.location},r=>this.loading=!1)}viewOnSigner(){window.open(this.registration.signerDocumentUrl,"_blank")}review(){this.router.navigate(["review"],{relativeTo:this.route})}register(){this.router.navigate(["register"],{relativeTo:this.route})}updateStatus(e){this.dialog.open(y6,{width:"600px",disableClose:!0,data:{request:{registrationId:this.registration.id,action:e,isSigned:this.registration.isSigned}}})}onTabIndexChange(e){this.tabIndex=e}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(lt),E(Dn),E(Sd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-detail"]],decls:15,vars:6,consts:[[3,"hidden"],[1,"box-light"],[3,"show"],[3,"refresh"],["header",""],["class","row",4,"ngIf"],["mat-stretch-tabs","false","animationDuration","0ms",3,"selectedIndexChange"],["label","Hist\xF3rico"],["class","overflow-hidden",4,"ngIf"],["label","Renotariza\xE7\xF5es",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"col"],["label","Diplomado(a)"],["label","CPF"],["label","Curso"],["label","IES Emissora"],["label","Criado em"],["label","Atualizado em"],[1,"row","mt-3"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],[1,"col-md-6","d-flex","flex-column","align-items-center","justify-content-start","mt-4"],[1,"prop-label"],[1,"d-flex","align-items-center"],[3,"status"],[1,"mb-0","ms-1",3,"ngClass"],["class","mt-3 text-center",4,"ngIf"],[4,"ngIf"],[1,"mt-3","text-center"],["label","Motivo"],["class","d-flex flex-column align-items-center mt-3 text-center",4,"ngIf"],[1,"d-flex","justify-content-center","mt-3"],["color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"d-flex","flex-column","align-items-center","mt-3","text-center"],[1,"col-8"],["color","primary","mat-flat-button","",3,"click",4,"ngIf"],["color","primary","mat-flat-button","",3,"click"],["color","primary","mat-stroked-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",3,"click"],[1,"overflow-hidden"],[3,"history","type"],["label","Renotariza\xE7\xF5es"],[3,"loadTable","documentId","documentType"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),H(2,"ngx-loading",2),d(3,"app-box-title",3),$("refresh",function(){return r.load()}),d(4,"span",4),h(5,"Detalhes da requisi\xE7\xE3o de registro"),c()(),k(6,yCt,41,23,"div",5),c(),d(7,"div",1)(8,"mat-tab-group",6),$("selectedIndexChange",function(a){return r.onTabIndexChange(a)}),d(9,"mat-tab",7),H(10,"ngx-loading",2),k(11,xCt,2,2,"div",8),c(),k(12,CCt,2,3,"mat-tab",9),c()()(),he(13),H(14,"router-outlet"),fe()),i&2&&(f("hidden",r.route.firstChild),m(2),f("show",r.loading),m(4),f("ngIf",r.registration),m(4),f("show",r.loadingHistory),m(),f("ngIf",r.history),m(),f("ngIf",(r.registration==null?null:r.registration.status)==r.Statuses.Signed||(r.registration==null?null:r.registration.status)==r.Statuses.SentToIssuer))},dependencies:[ji,Ee,He,Ze,li,wn,_n,Hl,mc,bd,DI,eh,ny,rn,Zo,Gb]})}}return t})();function SCt(t,n){t&1&&(d(0,"h2"),h(1,"Anota\xE7\xF5es"),c())}function wCt(t,n){if(t&1&&(d(0,"form",4)(1,"p"),h(2," Adicione abaixo observa\xE7\xF5es sobre esta requisi\xE7\xE3o. Elas ser\xE3o utilizadas para justificar a aprova\xE7\xE3o ou cancelamento da requisi\xE7\xE3o. "),c(),d(3,"mat-form-field",5)(4,"mat-label"),h(5,"Observa\xE7\xF5es"),c(),H(6,"textarea",6),d(7,"mat-error"),h(8),c()()()),t&2){let e=S();f("formGroup",e.form),m(8),U(e.Error.get(e.form,"notes"))}}function ECt(t,n){if(t&1){let e=ie();d(0,"button",7),$("click",function(){W(e);let r=S();return Y(r.submit())}),h(1," Salvar "),c()}if(t&2){let e=S();f("disabled",!e.form.valid)}}var Dye=(()=>{class t{constructor(e,i,r,o){this.formBuilder=e,this.Error=i,this.dialogRef=o,this.notes=r.notes}ngOnInit(){this.form=this.formBuilder.group({notes:[this.notes,[Se.maxLength(1e3)]]})}submit(){let e=this.form.get("notes").value;this.dialogRef.close({value:e})}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(wi),E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-review-notes"]],decls:7,vars:3,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate"],[3,"formGroup"],[1,"col-12","mt-2"],["matInput","","formControlName","notes","rows","5","maxlength","1000",1,"md-textarea","md-textarea-auto"],["mat-raised-button","","color","primary","tabindex","-1",3,"click","disabled"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,SCt,2,0,"ng-template",null,0,Ii)(3,wCt,9,2,"ng-template",null,1,Ii)(5,ECt,2,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)}},dependencies:[zt,Gt,it,pt,wc,dt,Tt,Ze,Wt,bt,jt,Si,Uo]})}}return t})();function ICt(t,n){if(t&1&&(he(0),h(1),fe()),t&2){let e=S();m(),ue(" ",e.cargaHoraria,` `)}}function DCt(t,n){if(t&1&&(he(0),h(1),fe()),t&2){let e=S();m(),ue(" ",e.cargaHorariaRelogio?e.cargaHorariaRelogio:e.carga,` `)}}var Tye=(()=>{class t{constructor(){}ngOnInit(){this.cargaHorariaComEtiqueta?this.cargaHoraria=this.cargaHorariaComEtiqueta.map(e=>this.getCargaHorariaDescription(e)).join(" / "):this.cargaV2?this.cargaHoraria=this.getCargaHorariaDescription(this.cargaV2):this.cargaHorariaRelogioComEtiqueta&&(this.cargaHorariaRelogio=this.cargaHorariaRelogioComEtiqueta.map(e=>e.horaRelogio).join(" / "))}getCargaHorariaDescription(e){return e.horaAula?`${e.horaAula} (Aula)`:`${e.horaRelogio} (Rel\xF3gio)`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-carga-horaria"]],inputs:{carga:"carga",cargaV2:"cargaV2",cargaHorariaComEtiqueta:"cargaHorariaComEtiqueta",cargaHorariaRelogioComEtiqueta:"cargaHorariaRelogioComEtiqueta"},decls:2,vars:2,consts:[[4,"ngIf"]],template:function(i,r){i&1&&k(0,ICt,2,1,"ng-container",0)(1,DCt,2,1,"ng-container",0),i&2&&(f("ngIf",r.cargaHoraria),m(),f("ngIf",!r.cargaHoraria))},dependencies:[Ee]})}}return t})();var Aye=(()=>{class t{transform(e){switch(e){case Yp.PessoaJuridica:return"Pessoa jur\xEDdica";case Yp.PessoaFisica:return"Pessoa f\xEDsica";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"grantorType",type:t,pure:!0})}}return t})();var kCt=t=>({disabled:t}),kye=t=>({atividade:t});function MCt(t,n){if(t&1&&(d(0,"li"),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function FCt(t,n){if(t&1&&(d(0,"div",7)(1,"div",18)(2,"p",27),h(3,"Declara\xE7\xF5es da IES sobre o processo judicial"),c(),d(4,"ul"),k(5,MCt,2,1,"li",28),c()()()),t&2){let e=S();m(5),f("ngForOf",e.diploma.declaracoesAcercaProcesso)}}function RCt(t,n){if(t&1&&(d(0,"div",7)(1,"div",18)(2,"div",9)(3,"h2"),h(4,"Dados da IES de origem - Processo de Transfer\xEAncia Assistida"),c(),H(5,"app-dados-ies",29),c()()()),t&2){let e=S();m(5),f("dadosIesOriginal",e.dadosIesOriginal)}}function PCt(t,n){if(t&1){let e=ie();d(0,"button",36),$("click",function(){W(e);let r=S(2);return Y(r.getResponsibilityTermFile())}),d(1,"mat-icon",37),h(2,"get_app"),c()()}}function NCt(t,n){if(t&1&&(d(0,"div",8)(1,"div",9)(2,"div",30)(3,"h2",31),h(4,"Termo de responsabilidade"),c(),k(5,PCt,3,0,"button",32),c(),d(6,"div",7)(7,"spa-prop",33),h(8),c(),d(9,"spa-prop",34),h(10),ce(11,"cpf"),c(),d(12,"spa-prop",35),h(13),c()()()()),t&2){let e=S();m(5),f("ngIf",e.termo.hasAtoDesignacao),m(3),ue(" ",e.termo.nome," "),m(2),ue(" ",xe(11,4,e.termo.cpf)," "),m(3),ue(" ",e.termo.cargo," ")}}function OCt(t,n){if(t&1&&dn(0,38),t&2){S();let e=je(85);f("ngTemplateOutlet",e)}}function LCt(t,n){if(t&1&&H(0,"app-situacao-discente",39),t&2){let e=S();f("situacaoDiscente",e.situacaoAtualDiscente)}}function VCt(t,n){if(t&1&&dn(0,38),t&2){S();let e=je(85);f("ngTemplateOutlet",e)}}function BCt(t,n){if(t&1&&(d(0,"div",41)(1,"div",42)(2,"small"),h(3,"Filia\xE7\xE3o"),c()(),d(4,"div",43)(5,"div",7)(6,"spa-prop",44),h(7),c(),d(8,"spa-prop",45),h(9),c()(),d(10,"div",7)(11,"spa-prop",46),h(12),c()()()()),t&2){let e=n.$implicit;m(7),ue(" ",e.nome," "),m(2),ue(" ",e.sexo," "),m(3),ue(" ",e.nomeSocial," ")}}function jCt(t,n){if(t&1&&(d(0,"div",7),k(1,BCt,13,3,"div",40),c()),t&2){let e=S();m(),f("ngForOf",e.filiacao)}}function HCt(t,n){if(t&1&&dn(0,38),t&2){S();let e=je(85);f("ngTemplateOutlet",e)}}function zCt(t,n){if(t&1&&(d(0,"spa-prop",60),h(1),ce(2,"date"),c()),t&2){let e=S(3);m(),ue(" ",Bt(2,1,e.historico.ingresso.anoMesProcessoSeletivo,"MM/yyyy")," ")}}function UCt(t,n){if(t&1&&(he(0),d(1,"spa-prop",57),h(2),c(),d(3,"spa-prop",58),h(4),ce(5,"date"),c(),k(6,zCt,3,4,"spa-prop",59),fe()),t&2){let e=S(2);m(2),ue(" ",e.formasAcesso," "),m(2),ue(" ",Bt(5,3,e.historico.ingresso.data,e.dateFormat)," "),m(2),f("ngIf",e.historico.ingresso.anoMesProcessoSeletivo)}}function GCt(t,n){if(t&1&&(d(0,"spa-prop",61),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.historico.nomeParaAreas," ")}}function $Ct(t,n){if(t&1&&(he(0),d(1,"div")(2,"strong"),h(3,"C\xF3digo:"),c(),h(4),c(),d(5,"div",62)(6,"strong"),h(7,"Nome:"),c(),h(8),c(),fe()),t&2){let e=n.$implicit;m(4),ue(" ",e.codigo," "),m(4),ue(" ",e.nome," ")}}function qCt(t,n){if(t&1&&(d(0,"div",7)(1,"spa-prop",47),h(2),c(),d(3,"spa-prop",48),h(4),ce(5,"date"),c(),d(6,"spa-prop",49),h(7),c(),d(8,"spa-prop",50),H(9,"app-carga-horaria",51),c(),d(10,"spa-prop",52),H(11,"app-carga-horaria",53),c(),k(12,UCt,7,6,"ng-container",54)(13,GCt,2,1,"spa-prop",55),d(14,"spa-prop",56),k(15,$Ct,9,2,"ng-container",28),c()()),t&2){let e=S();m(2),ue(" ",e.historico.codigoCurriculo," "),m(2),ue(" ",Bt(5,9,e.historico.dataEmissaoHistorico,e.dateFormat)," "),m(3),ue(" ",e.historico.horaEmissaoHistorico," "),m(2),f("cargaV2",e.historico.cargaHorariaCurso),m(2),f("carga",e.historico.cargaHorariaCursoIntegralizada)("cargaV2",e.historico.cargaHorariaCursoIntegralizadaV2),m(),f("ngIf",e.historico.ingresso),m(),f("ngIf",e.historico.nomeParaAreas),m(2),f("ngForOf",e.historico.areas)}}function WCt(t,n){if(t&1&&dn(0,38),t&2){S();let e=je(85);f("ngTemplateOutlet",e)}}function YCt(t,n){if(t&1&&(d(0,"spa-prop",69),h(1),c()),t&2){let e=S().$implicit;m(),ue(" ",e.naoHabilitado.motivo?e.naoHabilitado.motivo:e.naoHabilitado.outroMotivo," ")}}function KCt(t,n){if(t&1&&(d(0,"div",64)(1,"div",42)(2,"small"),h(3),c()(),d(4,"div",65)(5,"spa-prop",66),h(6),c(),d(7,"spa-prop",67),h(8),c(),k(9,YCt,2,1,"spa-prop",68),c()()),t&2){let e=n.$implicit;m(3),U(e.situacao),m(3),ue(" ",e.naoHabilitado?e.naoHabilitado.condicao:e.informacoes==null?null:e.informacoes.condicao," "),m(2),ue(" ",e.naoHabilitado?e.naoHabilitado.edicao:e.informacoes==null?null:e.informacoes.edicao," "),m(),f("ngIf",e.naoHabilitado)}}function XCt(t,n){if(t&1&&(d(0,"div",7),k(1,KCt,10,4,"div",63),c()),t&2){let e=S();m(),f("ngForOf",e.participacoesEnade)}}function QCt(t,n){if(t&1&&(d(0,"spa-prop",73),h(1),c()),t&2){let e=S(2);m(),ue(" ",e.informacoesProcessoJudicial.decisao," ")}}function ZCt(t,n){if(t&1&&(d(0,"div",7)(1,"div",8)(2,"div",9)(3,"h2"),h(4,"Informa\xE7\xF5es do processo judicial"),c(),d(5,"div",7)(6,"spa-prop",70),h(7),c(),d(8,"spa-prop",71),h(9),c(),k(10,QCt,2,1,"spa-prop",72),c()()()()),t&2){let e=S();m(7),ue(" ",e.informacoesProcessoJudicial.numeroProcessoJudicial," "),m(2),ue(" ",e.informacoesProcessoJudicial.nomeJuiz," "),m(),f("ngIf",e.informacoesProcessoJudicial.decisao)}}function JCt(t,n){if(t&1&&dn(0,38),t&2){S();let e=je(85);f("ngTemplateOutlet",e)}}function eSt(t,n){if(t&1&&(d(0,"spa-prop",82),h(1),c()),t&2){let e=S(2).$implicit;m(),ue(" ",e.disciplina.codigoDisciplina," ")}}function tSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3).$implicit;m(),U(e.disciplina.nota)}}function iSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3).$implicit;m(),U(e.disciplina.notaAteCem)}}function nSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3).$implicit;m(),U(e.disciplina.conceito)}}function rSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3).$implicit;m(),U(e.disciplina.conceitoRM)}}function oSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(3).$implicit;m(),U(e.disciplina.conceitoEspecificoDoCurso)}}function aSt(t,n){if(t&1&&(d(0,"spa-prop",83),he(1,84),k(2,tSt,2,1,"span",85)(3,iSt,2,1,"span",85)(4,nSt,2,1,"span",85)(5,rSt,2,1,"span",85)(6,oSt,2,1,"span",85),fe(),c()),t&2){let e=S(2).$implicit;m(),f("ngSwitch",e.disciplina.tipoAvaliacao),m(),f("ngSwitchCase","Nota"),m(),f("ngSwitchCase","NotaAteCem"),m(),f("ngSwitchCase","Conceito"),m(),f("ngSwitchCase","ConceitoRM"),m(),f("ngSwitchCase","ConceitoEspecificoDoCurso")}}function sSt(t,n){if(t&1&&(d(0,"spa-prop",86),h(1),c()),t&2){let e=S(2).$implicit,i=S(2);m(),ue(" ",i.getIntegralizationForm(e.disciplina.aprovacao)," ")}}function lSt(t,n){if(t&1&&(d(0,"span"),h(1," - "),d(2,"a",88),h(3,"Lattes"),c()()),t&2){let e=S().$implicit;m(2),f("href",e.lattes,qo)}}function cSt(t,n){if(t&1&&(d(0,"div")(1,"strong"),h(2,"CPF:"),c(),h(3),ce(4,"cpf"),c()),t&2){let e=S().$implicit;m(3),ue(" ",xe(4,1,e.cpf)," ")}}function dSt(t,n){if(t&1&&(d(0,"spa-prop",87)(1,"div")(2,"strong"),h(3,"Nome:"),c(),h(4),k(5,lSt,4,1,"span",54),c(),d(6,"div")(7,"strong"),h(8,"Titula\xE7\xE3o:"),c(),h(9),c(),k(10,cSt,5,3,"div",54),c()),t&2){let e=n.$implicit;m(4),ue(" ",e.nome," "),m(),f("ngIf",e.lattes),m(4),ue(" ",e.titulacao," "),m(),f("ngIf",e.cpf)}}function uSt(t,n){if(t&1&&(d(0,"div")(1,"div",7),k(2,eSt,2,1,"spa-prop",74),d(3,"spa-prop",44),h(4),c()(),d(5,"div",7)(6,"spa-prop",75),h(7),c(),d(8,"spa-prop",76),H(9,"app-carga-horaria",77),c()(),d(10,"div",7),k(11,aSt,7,6,"spa-prop",78),c(),d(12,"div",7)(13,"spa-prop",79),h(14),c(),k(15,sSt,2,1,"spa-prop",80),c(),d(16,"div",7),k(17,dSt,11,4,"spa-prop",81),c()()),t&2){let e=S().$implicit;m(2),f("ngIf",e.disciplina.codigoDisciplina),m(2),ue(" ",e.disciplina.disciplina," "),m(3),ue(" ",e.disciplina.periodo," "),m(2),f("carga",e.disciplina.cargaHoraria)("cargaV2",e.disciplina.cargaHorariaV2)("cargaHorariaComEtiqueta",e.disciplina.cargaHorariaComEtiqueta),m(2),f("ngIf",e.disciplina.tipoAvaliacao),m(3),ue(" ",e.disciplina.situacao," "),m(),f("ngIf",(e.disciplina.aprovacao==null?null:e.disciplina.aprovacao.formaIntegralizacao)||(e.disciplina.aprovacao==null?null:e.disciplina.aprovacao.outraFormaIntegralizacao)),m(2),f("ngForOf",e.disciplina.docentes)}}function mSt(t,n){if(t&1&&(d(0,"div"),H(1,"app-situacao-discente",39),c()),t&2){let e=S().$implicit;m(),f("situacaoDiscente",e.situacaoDiscente)}}function pSt(t,n){if(t&1&&(d(0,"spa-prop",93),h(1),c()),t&2){let e=S(2).$implicit;m(),ue(" ",e.atividadeComplementar.codigo," ")}}function hSt(t,n){if(t&1&&(d(0,"spa-prop",94),h(1),ce(2,"date"),c()),t&2){let e=S(2).$implicit,i=S(2);m(),ue(" ",Bt(2,1,e.atividadeComplementar.dataRegistro,i.dateFormat)," ")}}function fSt(t,n){if(t&1&&(d(0,"div")(1,"div",7),k(2,pSt,2,1,"spa-prop",89),d(3,"spa-prop",90),h(4),c(),k(5,hSt,3,4,"spa-prop",91),c(),dn(6,92),c()),t&2){let e=S().$implicit;S(2);let i=je(83);m(2),f("ngIf",e.atividadeComplementar.codigo),m(2),ue(" ",e.atividadeComplementar.tipo," "),m(),f("ngIf",e.atividadeComplementar.dataRegistro),m(),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(5,kye,e.atividadeComplementar))}}function gSt(t,n){if(t&1&&(d(0,"spa-prop",97),h(1),c()),t&2){let e=S(2).$implicit;m(),ue(" ",e.estagio.codigo," ")}}function _St(t,n){if(t&1&&(d(0,"spa-prop",98),h(1),ce(2,"grantorType"),c()),t&2){let e=S(2).$implicit;m(),ue(" ",xe(2,1,e.estagio.concedente.tipo)," ")}}function vSt(t,n){if(t&1&&(d(0,"spa-prop",102),h(1),c()),t&2){let e=S(4).$implicit;m(),ue(" ",e.estagio.concedente.nomeFantasia," ")}}function bSt(t,n){if(t&1&&(d(0,"div",7)(1,"spa-prop",99),h(2),c(),k(3,vSt,2,1,"spa-prop",100),d(4,"spa-prop",101),h(5),ce(6,"CnpjPipe"),c()()),t&2){let e=S(3).$implicit;m(2),ue(" ",e.estagio.concedente.razaoSocial," "),m(),f("ngIf",e.estagio.concedente.nomeFantasia),m(2),ue(" ",xe(6,3,e.estagio.concedente.cnpj)," ")}}function ySt(t,n){if(t&1&&(d(0,"div",7)(1,"spa-prop",103),h(2),c(),d(3,"spa-prop",104),h(4),ce(5,"cpf"),c()()),t&2){let e=S(3).$implicit;m(2),ue(" ",e.estagio.concedente.nome," "),m(2),ue(" ",xe(5,2,e.estagio.concedente.cpf)," ")}}function xSt(t,n){if(t&1&&(d(0,"div"),k(1,bSt,7,5,"div",13)(2,ySt,6,4,"div",13),c()),t&2){let e=S(2).$implicit,i=S(2);m(),f("ngIf",(e.estagio==null?null:e.estagio.concedente.tipo)==i.GrantorTypes.PessoaJuridica),m(),f("ngIf",(e.estagio==null?null:e.estagio.concedente.tipo)==i.GrantorTypes.PessoaFisica)}}function CSt(t,n){if(t&1&&(d(0,"div")(1,"div",7),k(2,gSt,2,1,"spa-prop",95)(3,_St,3,3,"spa-prop",96),c(),k(4,xSt,3,2,"div",54),dn(5,92),c()),t&2){let e=S().$implicit;S(2);let i=je(83);m(2),f("ngIf",e.estagio.codigo),m(),f("ngIf",e.estagio==null?null:e.estagio.concedente),m(),f("ngIf",e.estagio==null?null:e.estagio.concedente),m(),f("ngTemplateOutlet",i)("ngTemplateOutletContext",Le(5,kye,e.estagio))}}function SSt(t,n){if(t&1&&(d(0,"div",64)(1,"div",42)(2,"small"),h(3),ce(4,"historicalElementType"),c()(),d(5,"div",43),k(6,uSt,18,10,"div",54)(7,mSt,2,1,"div",54)(8,fSt,7,7,"div",54)(9,CSt,6,7,"div",54),c()()),t&2){let e=n.$implicit,i=S(2);m(3),U(xe(4,5,e.tipo)),m(3),f("ngIf",e.tipo==i.HistoricalElementTypes.Disciplina),m(),f("ngIf",e.tipo==i.HistoricalElementTypes.SituacaoDiscente),m(),f("ngIf",e.tipo==i.HistoricalElementTypes.AtividadeComplementar),m(),f("ngIf",e.tipo==i.HistoricalElementTypes.Estagio)}}function wSt(t,n){if(t&1&&(d(0,"div",7),k(1,SSt,10,7,"div",63),c()),t&2){let e=S();m(),f("ngForOf",e.elementosHistorico)}}function ESt(t,n){if(t&1&&(d(0,"div",7)(1,"spa-prop",109),h(2),c()()),t&2){let e=S().atividade;m(2),ue(" ",e==null?null:e.descricao," ")}}function ISt(t,n){if(t&1&&(d(0,"span"),h(1," - "),d(2,"a",88),h(3,"Lattes"),c()()),t&2){let e=S().$implicit;m(2),f("href",e.lattes,qo)}}function DSt(t,n){if(t&1&&(d(0,"div")(1,"strong"),h(2,"CPF:"),c(),h(3),ce(4,"cpf"),c()),t&2){let e=S().$implicit;m(3),ue(" ",xe(4,1,e.cpf)," ")}}function TSt(t,n){if(t&1&&(d(0,"spa-prop",87)(1,"div")(2,"strong"),h(3,"Nome:"),c(),h(4),k(5,ISt,4,1,"span",54),c(),d(6,"div")(7,"strong"),h(8,"Titula\xE7\xE3o:"),c(),h(9),c(),k(10,DSt,5,3,"div",54),c()),t&2){let e=n.$implicit;m(4),ue(" ",e.nome," "),m(),f("ngIf",e.lattes),m(4),ue(" ",e.titulacao," "),m(),f("ngIf",e.cpf)}}function ASt(t,n){if(t&1&&(d(0,"div",7)(1,"spa-prop",105),h(2),ce(3,"date"),c(),d(4,"spa-prop",106),h(5),ce(6,"date"),c()(),k(7,ESt,3,1,"div",13),d(8,"div",7)(9,"spa-prop",107),H(10,"app-carga-horaria",108),c()(),d(11,"div",7),k(12,TSt,11,4,"spa-prop",81),c()),t&2){let e=n.atividade,i=S();m(2),ue(" ",Bt(3,6,e==null?null:e.dataInicio,i.dateFormat)," "),m(3),ue(" ",Bt(6,9,e==null?null:e.dataFim,i.dateFormat)," "),m(2),f("ngIf",e==null?null:e.descricao),m(3),f("carga",e==null?null:e.cargaHorariaEmHoraRelogio)("cargaHorariaRelogioComEtiqueta",e==null?null:e.cargaHorariaEmHoraRelogioComEtiqueta),m(2),f("ngForOf",e==null?null:e.docentes)}}function kSt(t,n){t&1&&(d(0,"h3",110),h(1,"Indispon\xEDvel"),c())}var x6=(()=>{class t{constructor(e,i){this.admissionTypePipe=e,this.registrationService=i,this.HistoricalElementTypes=vo,this.GrantorTypes=Yp,this.collapse=!1}ngOnInit(){this.diploma=this.info.dadosDiploma,this.diplomado=this.info.dadosDiploma.diplomado,this.curso=this.info.dadosDiploma.dadosCurso,this.iesEmissora=this.info.dadosDiploma.iesEmissora,this.dadosIesOriginal=this.info.dadosDiploma.dadosIesOriginalCursoPTA;let e=this.info.documentacaoAcademica.registro;this.filiacao=e.dadosPrivadosDiplomado.filiacao,this.historico=e.dadosPrivadosDiplomado.historico,this.informacoesProcessoJudicial=e.dadosPrivadosDiplomado.informacoesProcessoJudicial,this.situacaoAtualDiscente=this.historico?.situacaoAtualDiscente,this.termo=e.termoResponsabilidade,this.participacoesEnade=this.historico?.participacoesEnade,this.elementosHistorico=this.historico?.elementosHistorico,this.formasAcesso=this.historico?.ingresso?.formasAcesso.map(i=>this.admissionTypePipe.transform(i)).join(", ")}getIntegralizationForm(e){return e.formaIntegralizacao!=null?e.formaIntegralizacao:e.outraFormaIntegralizacao}getResponsibilityTermFile(){this.loading=!0,this.registrationService.getResponsibilityTermTicket(this.info.id).subscribe(e=>{this.loading=!1,window.location.href=e.location},e=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(dI),E(Sd))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-info"]],inputs:{info:"info",loading:"loading"},decls:86,vars:36,consts:[["atividadeBase",""],["unavailableText",""],[1,"d-flex","justify-content-end","loader-container","mb-2",2,"z-index","10"],["mat-fab","","aria-label","Toggle collapse","color","primary",2,"position","absolute","top","-30px",3,"click","matTooltip"],["mat-stretch-tabs","false","animationDuration","0ms",3,"ngClass"],["label","Dados do diploma"],[1,"overflow-hidden",3,"hidden"],[1,"row"],[1,"col-md-4"],[1,"box-light"],["label","Data de conclus\xE3o"],["label","Segunda Via?",1,"col-md-6"],["label","Tipo de diploma",1,"col-md-6"],["class","row",4,"ngIf"],[1,"col-md-8"],[3,"diplomado","degreeType"],["label","Dados do curso"],[1,"row",3,"hidden"],[1,"col-md-12"],[3,"curso"],["label","Dados da IES emissora"],[3,"ies"],["class","col-md-4",4,"ngIf"],["label","Dados privados"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"situacaoDiscente",4,"ngIf"],[1,"col"],[1,"prop-label"],[4,"ngFor","ngForOf"],[3,"dadosIesOriginal"],[1,"d-flex","align-items-center"],[1,"mb-0"],["class","ms-auto","color","primary","matTooltip","Baixar termo de responsabilidade","mat-icon-button","","type","button",3,"click",4,"ngIf"],["label","Nome",1,"col-md-12"],["label","CPF",1,"col-md-12"],["label","Cargo",1,"col-md-12"],["color","primary","matTooltip","Baixar termo de responsabilidade","mat-icon-button","","type","button",1,"ms-auto",3,"click"],["aria-label","Download"],[3,"ngTemplateOutlet"],[3,"situacaoDiscente"],["class","col-md-6",4,"ngFor","ngForOf"],[1,"col-md-6"],[1,"small-label-container","text-primary"],[1,"theme-border-primary","mt-1","p-3"],["label","Nome",1,"col"],["label","Sexo",1,"col"],["label","Nome social",1,"col"],["label","C\xF3digo do curr\xEDculo",1,"col-md-6"],["label","Data de emiss\xE3o",1,"col-md-6"],["label","Hora de emiss\xE3o",1,"col-md-6"],["label","C. Hor\xE1ria do Curso",1,"col-md-6"],[3,"cargaV2"],["label","C. Hor\xE1ria Integralizada",1,"col-md-6"],[3,"carga","cargaV2"],[4,"ngIf"],["label","\xC1rea","class","col-md-6",4,"ngIf"],["label","\xC1reas",1,"col-md-12"],["label","Forma de acesso",1,"col-md-6"],["label","Data de ingresso",1,"col-md-6"],["label","Ano e m\xEAs do processo seletivo","class","col-md-6",4,"ngIf"],["label","Ano e m\xEAs do processo seletivo",1,"col-md-6"],["label","\xC1rea",1,"col-md-6"],[1,"mb-1"],["class","col-lg-4 col-md-6 mb-3",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","mb-3"],[1,"row","theme-border-primary","mt-1","p-3"],["label","Condi\xE7\xE3o",1,"col-6"],["label","Edi\xE7\xE3o",1,"col-6"],["label","Motivo","class","col-12",4,"ngIf"],["label","Motivo",1,"col-12"],["label","N\xFAmero do processo judicial",1,"col-md-6"],["label","Nome do juiz",1,"col-md-6"],["label","Decis\xE3o","class","col-md-6",4,"ngIf"],["label","Decis\xE3o",1,"col-md-6"],["label","C\xF3digo da disciplina","class","col",4,"ngIf"],["label","Per\xEDodo",1,"col"],["label","Carga Hor\xE1ria",1,"col"],[3,"carga","cargaV2","cargaHorariaComEtiqueta"],["label","Nota","class","col",4,"ngIf"],["label","Situa\xE7\xE3o",1,"col"],["label","Forma de integraliza\xE7\xE3o","class","col",4,"ngIf"],["label","Docente","class","col-md-6",4,"ngFor","ngForOf"],["label","C\xF3digo da disciplina",1,"col"],["label","Nota",1,"col"],[3,"ngSwitch"],[4,"ngSwitchCase"],["label","Forma de integraliza\xE7\xE3o",1,"col"],["label","Docente",1,"col-md-6"],["target","_blank",3,"href"],["label","C\xF3digo","class","col-md-6",4,"ngIf"],["label","Tipo de atividade complementar",1,"col-md-6"],["label","Data de registro","class","col-md-6",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["label","C\xF3digo",1,"col-md-6"],["label","Data de registro",1,"col-md-6"],["label","C\xF3digo","class","col",4,"ngIf"],["label","Tipo de concedente","class","col",4,"ngIf"],["label","C\xF3digo",1,"col"],["label","Tipo de concedente",1,"col"],["label","Raz\xE3o social",1,"col-md-6"],["label","Nome fantasia","class","col-md-6",4,"ngIf"],["label","CNPJ",1,"col-md-6"],["label","Nome fantasia",1,"col-md-6"],["label","Nome",1,"col-md-6"],["label","CPF",1,"col-md-6"],["label","Data de in\xEDcio",1,"col-md-6"],["label","Data de fim",1,"col-md-6"],["label","Carga hor\xE1ria em rel\xF3gio",1,"col-md-6"],[3,"carga","cargaHorariaRelogioComEtiqueta"],["label","Descri\xE7\xE3o",1,"col-md-12"],[1,"text-center"]],template:function(i,r){if(i&1){let o=ie();d(0,"div",2)(1,"button",3),$("click",function(){return W(o),Y(r.collapse=!r.collapse)}),d(2,"mat-icon"),h(3),c()()(),d(4,"mat-tab-group",4)(5,"mat-tab",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h2"),h(11,"Dados do diploma"),c(),d(12,"spa-prop",10),h(13),ce(14,"date"),c(),d(15,"div",7)(16,"spa-prop",11),h(17),c(),d(18,"spa-prop",12),h(19),ce(20,"degreeType"),c()(),k(21,FCt,6,1,"div",13),c()(),d(22,"div",14)(23,"div",9)(24,"h2"),h(25,"Dados do diplomado"),c(),H(26,"app-dados-diplomado",15),c()()()()(),d(27,"mat-tab",16)(28,"div",6)(29,"div",17)(30,"div",18)(31,"div",9)(32,"h2"),h(33,"Dados do curso"),c(),H(34,"app-dados-curso",19),c()()()()(),d(35,"mat-tab",20)(36,"div",6)(37,"div",7)(38,"div",18)(39,"div",9)(40,"h2"),h(41,"Dados da IES emissora"),c(),H(42,"app-dados-ies",21),c()()(),k(43,RCt,6,1,"div",13),d(44,"div",7),k(45,NCt,14,6,"div",22),c()()(),d(46,"mat-tab",23)(47,"div",6)(48,"div",7)(49,"div",8)(50,"div",9)(51,"h2"),h(52,"Situa\xE7\xE3o atual do discente"),c(),k(53,OCt,1,1,"ng-container",24)(54,LCt,1,1,"app-situacao-discente",25),c()(),d(55,"div",14)(56,"div",9)(57,"h2"),h(58,"Filia\xE7\xE3o"),c(),k(59,VCt,1,1,"ng-container",24)(60,jCt,2,1,"div",13),c()()(),d(61,"div",7)(62,"div",8)(63,"div",9)(64,"h2"),h(65,"Hist\xF3rico escolar"),c(),k(66,HCt,1,1,"ng-container",24)(67,qCt,16,12,"div",13),c()(),d(68,"div",14)(69,"div",9)(70,"h2"),h(71,"Participa\xE7\xF5es no Enade"),c(),k(72,WCt,1,1,"ng-container",24)(73,XCt,2,1,"div",13),c()()(),k(74,ZCt,11,3,"div",13),d(75,"div",7)(76,"div",26)(77,"div",9)(78,"h2"),h(79,"Elementos do Hist\xF3rico"),c(),k(80,JCt,1,1,"ng-container",24)(81,wSt,2,1,"div",13),c()()()()()(),k(82,ASt,13,12,"ng-template",null,0,Ii)(84,kSt,2,0,"ng-template",null,1,Ii)}i&2&&(m(),f("matTooltip",r.collapse?"Exibir informa\xE7\xF5es":"Esconder informa\xE7\xF5es"),m(2),U(r.collapse?"unfold_more":"unfold_less"),m(),f("ngClass",Le(34,kCt,r.collapse)),m(2),f("hidden",r.collapse),m(7),ue(" ",Bt(14,29,r.diploma.dataConclusao,r.dateFormat)," "),m(4),ue(" ",r.info.documentacaoAcademica.registro.isSegundaVia?"Sim":"N\xE3o"," "),m(2),ue(" ",xe(20,32,r.info.degreeType)," "),m(2),f("ngIf",(r.diploma.declaracoesAcercaProcesso==null?null:r.diploma.declaracoesAcercaProcesso.length)>0),m(5),f("diplomado",r.diplomado)("degreeType",r.info.degreeType),m(2),f("hidden",r.collapse),m(),f("hidden",r.collapse),m(5),f("curso",r.curso),m(2),f("hidden",r.collapse),m(6),f("ies",r.iesEmissora),m(),f("ngIf",r.dadosIesOriginal),m(2),f("ngIf",r.termo),m(2),f("hidden",r.collapse),m(6),f("ngIf",!r.situacaoAtualDiscente),m(),f("ngIf",r.situacaoAtualDiscente),m(5),f("ngIf",!r.filiacao),m(),f("ngIf",r.filiacao),m(6),f("ngIf",!r.historico),m(),f("ngIf",r.historico),m(5),f("ngIf",!r.participacoesEnade),m(),f("ngIf",r.participacoesEnade),m(),f("ngIf",r.informacoesProcessoJudicial),m(6),f("ngIf",!r.elementosHistorico),m(),f("ngIf",r.elementosHistorico))},dependencies:[ji,Vt,Ee,ta,vs,rl,He,fi,QS,wn,yi,Hl,mc,uI,Kb,Qb,Tye,PB,rn,Zo,Xb,JB,yI,Aye],styles:[".disabled[_ngcontent-%COMP%]{opacity:.5;margin-bottom:10px}"]})}}return t})();var MSt=t=>({"list-item-active":t});function FSt(t,n){if(t&1){let e=ie();d(0,"a",20),$("click",function(){let r=W(e).$implicit,o=S(2);return Y(o.selectFile(r))}),d(1,"mat-icon",21),h(2),c(),d(3,"span",22),h(4),c()()}if(t&2){let e=n.$implicit,i=S(2);f("disableRipple",!0)("ngClass",Le(4,MSt,i.file.id==e.id)),m(2),U(e.isReviewed?"check_box":"check_box_outline_blank"),m(2),U(e.displayName)}}function RSt(t,n){if(t&1){let e=ie();d(0,"button",33),$("click",function(){W(e);let r=S(3);return Y(r.markReviewed(r.file,!1))}),d(1,"mat-icon",17),h(2,"close"),c(),h(3," Marcar como n\xE3o revisado "),c()}}function PSt(t,n){if(t&1){let e=ie();d(0,"button",34),$("click",function(){W(e);let r=S(3);return Y(r.markReviewed(r.file,!0))}),d(1,"mat-icon",17),h(2,"check"),c(),h(3," Marcar como revisado "),c()}}function NSt(t,n){if(t&1&&(d(0,"spa-prop",35),h(1),c()),t&2){let e=S(3);m(),ue(" ",e.file.description," ")}}function OSt(t,n){if(t&1&&H(0,"iframe",36),t&2){let e=S(3);f("src",e.fileSrc,tv)}}function LSt(t,n){t&1&&(d(0,"h3",37)(1,"b"),h(2,"Conte\xFAdo indispon\xEDvel"),c()())}function VSt(t,n){if(t&1){let e=ie();d(0,"div",23)(1,"div",5)(2,"div",24)(3,"h2",25),h(4),c(),d(5,"div",26),k(6,RSt,4,0,"button",27)(7,PSt,4,0,"button",28),d(8,"button",29),$("click",function(){W(e);let r=S(2);return Y(r.addNote())}),d(9,"mat-icon",17),h(10,"note_add"),c()()()(),k(11,NSt,2,1,"spa-prop",30),d(12,"div"),k(13,OSt,1,1,"iframe",31)(14,LSt,3,0,"h3",32),c()()()}if(t&2){let e=S(2);m(4),U(e.file.displayName),m(2),f("ngIf",e.file.isReviewed),m(),f("ngIf",!e.file.isReviewed),m(4),f("ngIf",e.file.description),m(2),f("ngIf",e.fileSrc),m(),f("ngIf",!e.fileSrc)}}function BSt(t,n){if(t&1){let e=ie();d(0,"div")(1,"app-registration-info",2),tn("loadingChange",function(r){W(e);let o=S();return nn(o.loading,r)||(o.loading=r),Y(r)}),c(),d(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"h2",7),h(7,"Documenta\xE7\xE3o Comprobat\xF3ria"),c(),d(8,"div",8)(9,"mat-chip-set",9)(10,"mat-chip",10),h(11),c()()()(),d(12,"div",11)(13,"ng-scrollbar",12)(14,"mat-nav-list",13),k(15,FSt,5,6,"a",14),c()()(),d(16,"div",15)(17,"button",16),$("click",function(){W(e);let r=S();return Y(r.reject())}),d(18,"mat-icon",17),h(19,"close"),c(),h(20," Recusar requisi\xE7\xE3o "),c(),d(21,"button",18),$("click",function(){W(e);let r=S();return Y(r.approve())}),d(22,"mat-icon",17),h(23,"check"),c(),h(24," Aprovar requisi\xE7\xE3o "),c()()()(),k(25,VSt,15,6,"div",19),c()()}if(t&2){let e=S();m(),f("info",e.info),en("loading",e.loading),m(10),U(e.info.files.length),m(4),f("ngForOf",e.info.files),m(10),f("ngIf",e.file)}}var Fye=(()=>{class t{constructor(e,i,r,o,a,s){this.route=e,this.registrationService=i,this.sanitizer=r,this.dialogService=o,this.dialog=a,this.router=s,this.loading=!1}ngOnInit(){this.route.parent.paramMap.subscribe(e=>{let i=e.get("id");this.load(i)})}load(e){this.loading=!0,this.registrationService.getInfo(e).subscribe(i=>{this.loading=!1,this.info=i,i.files.length>0&&this.selectFile(i.files[0])},i=>this.loading=!1)}selectFile(e){this.fileSrc=e.isUnavailable?null:this.sanitizer.bypassSecurityTrustResourceUrl(e.ticketUrl),this.file=e}markReviewed(e,i){e.isReviewed=i}addNote(){this.dialog.open(Dye,{width:"600px",disableClose:!0,data:{notes:this.notes}}).afterClosed().toPromise().then(i=>{i&&(this.notes=i.value)})}reject(){this.checkReviewed(!1)}approve(){this.checkReviewed(!0)}checkReviewed(e){let i=this.info.files.filter(r=>!r.isReviewed);i.length>0?this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:`Existem ${i.length} arquivo(s) n\xE3o revisado(s). Deseja continuar?`,confirmButtonText:"Continuar",cancelButtonText:"Cancelar"}).then(r=>{r&&this.openApproveOrReject(e)}):this.openApproveOrReject(e)}openApproveOrReject(e){this.dialog.open(y6,{width:"600px",disableClose:!0,data:{request:{notes:this.notes,registrationId:this.info.id,action:e?Lc.Approve:Lc.Reject}}}).afterClosed().toPromise().then(r=>{if(r){let o=r,a="..";o.proceedToRegister&&(a+="/register"),this.router.navigate([a],{relativeTo:this.route})}})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Sd),E(Kl),E(Qi),E(Dn),E(lt))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-review"]],decls:2,vars:2,consts:[[3,"show"],[4,"ngIf"],[3,"loadingChange","info","loading"],[1,"row"],[1,"col-md-4","col-lg-3"],[1,"box-light"],[1,"d-flex","mb-3","align-items-center"],[1,"mb-0","text-truncate"],[1,"ms-auto","flex-shrink-0"],[1,"ml"],["matTooltip","Total de documentos",1,"badge"],[2,"overflow-y","auto"],["visibility","hover"],[1,"mat-list-sm"],["class","mb-1","mat-list-item","",3,"disableRipple","ngClass","click",4,"ngFor","ngForOf"],[1,"d-flex","flex-column","align-items-center","mt-5"],["color","warn","mat-button","",3,"click"],[1,"me-1"],["color","primary","mat-flat-button","",1,"mt-3",3,"click"],["class","col-md-8 col-lg-9",4,"ngIf"],["mat-list-item","",1,"mb-1",3,"click","disableRipple","ngClass"],["matListIcon","",1,"me-2",2,"vertical-align","bottom"],[1,"text-truncate"],[1,"col-md-8","col-lg-9"],[1,"d-flex","align-items-center"],[1,"mb-0"],[1,"ms-auto"],["class","mt-0","color","warn","mat-button","",3,"click",4,"ngIf"],["class","mt-0","color","primary","mat-button","",3,"click",4,"ngIf"],["color","primary","mat-icon-button","","matTooltip","Adicionar nota",3,"click"],["label","Observa\xE7\xF5es",4,"ngIf"],["width","100%","height","800","class","file-frame","frameborder","0",3,"src",4,"ngIf"],["class","text-center",4,"ngIf"],["color","warn","mat-button","",1,"mt-0",3,"click"],["color","primary","mat-button","",1,"mt-0",3,"click"],["label","Observa\xE7\xF5es"],["width","100%","height","800","frameborder","0",1,"file-frame",3,"src"],[1,"text-center"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),k(1,BSt,26,5,"div",1)),i&2&&(f("show",r.loading),m(),f("ngIf",r.info))},dependencies:[ji,Vt,Ee,He,Ze,fi,Kue,E0,li,wn,yi,SM,r6,Ju,x6]})}}return t})();var jSt=()=>["../../../settings"];function HSt(t,n){t&1&&(d(0,"mat-card",6)(1,"mat-card-content"),h(2," Os dados da registradora ainda n\xE3o foram configurados. Clique aqui para defini-los. "),c()()),t&2&&f("routerLink",Wo(1,jSt))}function zSt(t,n){if(t&1){let e=ie();he(0),H(1,"hr",19),d(2,"app-folder-selector",20),tn("selectedItemChange",function(r){W(e);let o=S(3);return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c(),fe()}if(t&2){let e=S(3);m(2),en("selectedItem",e.selectedFolder)}}function USt(t,n){if(t&1&&(d(0,"div",9)(1,"div",10)(2,"h2",21),h(3,"Informa\xE7\xF5es do processo judicial"),c(),H(4,"app-judicial-process-form",22),c(),d(5,"div",10),H(6,"app-process-declarations-form",22),c()()),t&2){let e=S(3);m(4),f("form",e.informacoesProcessoJudicialForm),m(2),f("form",e.form)}}function GSt(t,n){if(t&1){let e=ie();d(0,"div")(1,"div",8)(2,"div",13),H(3,"mat-card",23),d(4,"app-signature-flow-selector",24),$("loadingChange",function(r){W(e);let o=S(3);return Y(o.loading=r)}),c(),H(5,"app-signature-flow-form",25),c()()()}if(t&2){let e=S(3);m(3),f("hidden",!0),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type)}}function $St(t,n){if(t&1){let e=ie();d(0,"form",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"h2"),h(5,"Dados do Registro"),c(),d(6,"p"),h(7,"Informe os dados de registro do diploma:"),c(),d(8,"h3",11)(9,"strong"),h(10,"Livro de registro"),c()(),H(11,"app-registry-book-form",12),d(12,"div",8)(13,"div",13)(14,"h3",11)(15,"strong"),h(16,"Informa\xE7\xF5es adicionais"),c()(),d(17,"mat-form-field",14),H(18,"textarea",15),c()()(),k(19,zSt,3,1,"ng-container",1),c()(),k(20,USt,7,2,"div",16),c(),k(21,GSt,6,5,"div",1),d(22,"div",17)(23,"button",18),$("click",function(){W(e);let r=S(2);return Y(r.submit())}),h(24,"Registrar diploma"),c()()()}if(t&2){let e=S(2);f("formGroup",e.form),m(11),f("registryBookForm",e.livroForm)("degreeType",e.degreeType),m(8),f("ngIf",!e.info.batchId),m(),f("ngIf",e.isJudicialDecision),m(),f("ngIf",!e.info.batchId),m(2),f("disabled",!e.form.valid)}}function qSt(t,n){if(t&1){let e=ie();d(0,"div")(1,"app-registration-info",2),tn("loadingChange",function(r){W(e);let o=S();return nn(o.loading,r)||(o.loading=r),Y(r)}),c(),d(2,"div"),k(3,HSt,3,2,"mat-card",3),d(4,"app-registry-data",4),$("onLoaded",function(r){W(e);let o=S();return Y(o.registryData=r)}),c()(),k(5,$St,25,7,"form",5),c()}if(t&2){let e=S();m(),f("info",e.info),en("loading",e.loading),m(2),f("ngIf",e.registryData===null),m(),f("readonly",!0),m(),f("ngIf",e.form)}}var Rye=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.route=e,this.registrationService=i,this.settingService=r,this.documentFlowService=o,this.fb=a,this.router=s,this.messageService=l,this.Error=u,this.degreeFormService=p,this.judicialProcessNumberPattern=/^\d{7}\-\d{2}\.\d{4}\.\d\.\d{2}\.\d{4}$/,this.DegreeTypes=br,this.loading=!1,this.selectedFolder=this.settingService.NoFolder,this.type=Ro.Registration}ngOnInit(){this.route.parent.paramMap.subscribe(e=>{let i=e.get("id");this.load(i)})}load(e){this.loading=!0,this.registrationService.getInfo(e).subscribe(i=>{this.loading=!1,this.info=i,this.isJudicialDecision=this.info.degreeType==br.JudicialDecision,this.registrationService.getRegistrationType(e).subscribe(r=>{this.degreeType=r,this.buildForm()})},i=>this.loading=!1)}buildForm(){this.livroForm=this.degreeFormService.getRegistryBookForm(this.degreeType),this.form=this.fb.group({informacoesAdicionais:[null,[]],livroRegistro:this.livroForm,hasDeclaracoesAcercaProcesso:[null,[]]}),this.isJudicialDecision&&(this.informacoesProcessoJudicialForm=this.fb.group({numeroProcessoJudicial:[null,[Se.required,Se.pattern(this.judicialProcessNumberPattern)]],nomeJuiz:[null,[Se.required]],decisao:[null,[]]}),this.form.addControl("informacoesProcessoJudicial",this.informacoesProcessoJudicialForm)),this.info.batchId||this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type))}convertDate(e){return e.split("/").reverse().join("-")}submit(){if(!this.form.valid)return;let e=Object.assign({},this.form.value);e.livroRegistro.dataColacaoGrau=this.convertDate(e.livroRegistro.dataColacaoGrau),e.livroRegistro.dataExpedicaoDiploma=this.convertDate(e.livroRegistro.dataExpedicaoDiploma),e.livroRegistro.dataRegistroDiploma=this.convertDate(e.livroRegistro.dataRegistroDiploma),this.info.degreeType!=br.Nsf&&e.livroRegistro.numeroRegistro&&(e.livroRegistro.numeroFolhaDoDiploma=null,e.livroRegistro.numeroSequenciaDoDiploma=null);let i={dadosRegistro:e};this.info.batchId||(i.signerFolderId=this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,i.newFolderName=this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,i.documentFlow=this.documentFlowService.getFormData(this.form.get(ds))),this.loading=!0,this.registrationService.register(this.info.id,i).subscribe(r=>{this.messageService.showSuccess("Registro realizado com sucesso"),this.registrationService.setNeedsReload(this.info.id),this.loading=!1,this.router.navigate([".."],{relativeTo:this.route})},r=>this.loading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Sd),E(Xa),E(oa),E(Ti),E(lt),E(Bi),E(wi),E(Gn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-register"]],decls:2,vars:2,consts:[[3,"show"],[4,"ngIf"],[3,"loadingChange","info","loading"],["appearance","outlined","class","bg-warn mx-0 mat-elevation-z0 mat-3 text-white pointer",3,"routerLink",4,"ngIf"],[3,"onLoaded","readonly"],[3,"formGroup",4,"ngIf"],["appearance","outlined",1,"bg-warn","mx-0","mat-elevation-z0","mat-3","text-white","pointer",3,"routerLink"],[3,"formGroup"],[1,"row"],[1,"col-md-6"],[1,"box-light"],[1,"mt-3","mb-0"],[3,"registryBookForm","degreeType"],[1,"col"],[1,"input-stretch"],["matInput","","formControlName","informacoesAdicionais","rows","2",1,"md-textarea","md-textarea-auto"],["class","col-md-6",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"click","disabled"],[1,"my-4"],[1,"mb-2",3,"selectedItemChange","selectedItem"],[1,"font-medium"],[3,"form"],["appearance","outlined",3,"hidden"],[3,"loadingChange","form","type"],[3,"form","type"]],template:function(i,r){i&1&&(H(0,"ngx-loading",0),k(1,qSt,6,5,"div",1)),i&2&&(f("show",r.loading),m(),f("ngIf",r.info))},dependencies:[Ee,zt,Gt,it,pt,dt,Tt,Ze,Wt,bt,ws,lw,li,gn,uc,am,sm,zB,x6,KB,WB,e6]})}}return t})();var WSt=()=>({standalone:!0});function YSt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",25),tn("ngModelChange",function(r){W(e);let o=S(2);return nn(o.skipSignatureValidation,r)||(o.skipSignatureValidation=r),Y(r)}),h(1," Pular valida\xE7\xE3o das assinaturas "),c()}if(t&2){let e=S(2);en("ngModel",e.skipSignatureValidation),f("ngModelOptions",Wo(2,WSt))}}function KSt(t,n){if(t&1){let e=ie();d(0,"div",23)(1,"button",24),$("click",function(){W(e);let r=S(2);return Y(r.validateFiles())}),h(2," Validar arquivos "),c()()}if(t&2){let e=S(2);m(),f("disabled",!e.hasFiles)}}function XSt(t,n){if(t&1){let e=ie();d(0,"form",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h2",7),h(5," Registro de diplomas "),c(),d(6,"p"),h(7,"Para adicionar requisi\xE7\xF5es de registro de diplomas envie os arquivos XML de documenta\xE7\xE3o acad\xEAmica assinados pela emissora. "),c(),d(8,"div",8)(9,"button",9),$("click",function(){W(e);let r=S();return Y(r.openRequiredInfoDialog())}),d(10,"mat-icon",10),h(11,"help"),c(),h(12," Quais dados s\xE3o necess\xE1rios? "),c()(),k(13,YSt,2,3,"mat-slide-toggle",11),d(14,"app-folder-selector",12),tn("selectedItemChange",function(r){W(e);let o=S();return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c()()(),d(15,"div",5)(16,"div",13)(17,"div",14)(18,"p",15)(19,"span"),h(20,"Envie arquivos de documenta\xE7\xE3o acad\xEAmica assinados em formato XML:"),c()()(),d(21,"div")(22,"spa-files",16),$("filesLoading",function(r){W(e);let o=S();return Y(o.onFilesLoading(r))}),c()()()()(),k(23,KSt,3,1,"div",17),d(24,"div",18),H(25,"app-file-validation-boxes",19)(26,"mat-card",20),d(27,"app-signature-flow-selector",21),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),H(28,"app-signature-flow-form",22),d(29,"div",23)(30,"button",24),$("click",function(){W(e);let r=S();return Y(r.submitBatch())}),h(31," Registrar diplomas "),c()()()()}if(t&2){let e=S();f("formGroup",e.form),m(13),f("ngIf",e.allowSkipSignatureValidation),m(),en("selectedItem",e.selectedFolder),m(8),f("single",!1)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes),m(),f("ngIf",!e.hasValidatedFiles),m(),f("hidden",!e.hasValidatedFiles),m(),f("fileValidationResult",e.fileValidationResult)("selectedResult",e.selectedResult)("degreeDataSource",e.degreeDataSource)("operationType",e.operationType),m(),f("hidden",!0),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type),m(2),f("disabled",!e.form.valid||!e.fileValidationResult||!e.fileValidationResult.isValid)}}var Pye=(()=>{class t{get hasFiles(){return this.filesToAdd!=null&&this.filesToAdd.value!=null&&this.filesToAdd.value.length>0}constructor(e,i,r,o,a,s,l,u,p,g,_){this.fb=e,this.configurationService=i,this.router=r,this.settingService=o,this.messageService=a,this.batchService=s,this.documentFlowService=l,this.dialog=u,this.route=p,this.registrationService=g,this.dialogService=_,this.acceptedFileTypes=["application/xml","text/xml"],this.selectedFolder=this.settingService.NoFolder,this.type=Ro.Registration,this.operationType=Pt.Registration}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.allowSkipSignatureValidation=this.configurationService.config.clientConfig.allowSkipSignatureValidation,this.buildForm()}buildForm(){this.filesToAdd=this.fb.array([],Se.required),this.form=this.fb.group({files:this.filesToAdd}),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type))}openRequiredInfoDialog(){this.dialog.open(wg,{width:"1000px",data:{type:this.operationType}})}onFilesLoading(e){this.hasValidatedFiles=!1}validateFiles(){let e={skipSignatureValidation:this.skipSignatureValidation,academicDocumentationFiles:this.filesToAdd.value};this.loading=!0,this.registrationService.validateAcademicDocFiles(e).subscribe(i=>{this.loading=!1,this.selectedResult=null,this.degreeDataSource=null,this.fileValidationResult=i,i.result&&i.result.length>0&&(this.degreeDataSource=i.result.map(r=>{let o=r.information;return{entryNumber:r.entryNumber,isValid:r.isValid,degreeType:o?.degreeType,nome:o?.dadosDiploma?.diplomado.nome,sexo:o?.dadosDiploma?.diplomado.sexo,cpf:o?.dadosDiploma?.diplomado.cpf,dataNascimento:o?.dadosDiploma?.diplomado.dataNascimento,curso:o?.dadosDiploma?.dadosCurso.nomeCurso,modalidade:o?.dadosDiploma?.dadosCurso.modalidade?o?.dadosDiploma?.dadosCurso.modalidade:o?.dadosDiploma?.dadosCurso.modalidadeNSF,codigoCurso:o?.dadosDiploma?.dadosCurso.codigoCursoEMEC,errors:r.errors,structureErrors:r.structureErrors,signatureErrors:r.signatureErrors}}),i.isValid||(this.selectedResult=this.degreeDataSource.find(r=>!r.isValid))),this.hasValidatedFiles=!0},i=>this.loading=!1)}submitBatch(){let e={skipSignatureValidation:this.skipSignatureValidation,academicDocumentationFiles:this.filesToAdd.value},i={documentFlow:this.documentFlowService.getFormData(this.form.get(ds)),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,registration:e,type:Bl.Registration};this.saving=!0,this.batchService.create(i).subscribe(r=>{this.router.navigate(["../../batches",r.id,"progress"],{relativeTo:this.route}),this.messageService.showSuccess("As requisi\xE7\xF5es de registro ser\xE3o geradas")}).add(()=>this.saving=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(zo),E(lt),E(Xa),E(Bi),E(dc),E(oa),E(Dn),E(Ut),E(Sd),E(Qi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-registration-create"]],decls:3,vars:2,consts:[[1,"loader-container"],[3,"show"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-md-6"],[1,"box-light","generate-box"],[1,"font-medium"],[1,"d-flex","flex-column","flex-xl-row","align-items-center","justify-content-center"],["mat-button","","color","primary","type","button",1,"my-2","normal-wrap-button",3,"click"],[1,"me-1"],["class","m-2",3,"ngModel","ngModelOptions","ngModelChange",4,"ngIf"],[1,"mb-2",3,"selectedItemChange","selectedItem"],[1,"box-light"],[1,"mb-2","d-flex","align-items-center"],[1,"mb-0"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"],["class","d-flex justify-content-center",4,"ngIf"],[3,"hidden"],[3,"fileValidationResult","selectedResult","degreeDataSource","operationType"],["appearance","outlined",3,"hidden"],[3,"loadingChange","form","type"],[3,"form","type"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"click","disabled"],[1,"m-2",3,"ngModelChange","ngModel","ngModelOptions"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),k(2,XSt,32,19,"form",2),c()),i&2&&(m(),f("show",r.loading||r.saving),m(),f("ngIf",r.form))},dependencies:[Ee,zt,it,pt,Va,dt,He,Ze,ws,li,cc,Fr,uc,am,Eg,sm]})}}return t})();function QSt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S();m(),U(e.partner==null?null:e.partner.name)}}function ZSt(t,n){if(t&1){let e=ie();d(0,"button",12),$("click",function(){W(e);let r=S();return Y(r.openSubscriptionSelector())}),h(1," Selecionar organiza\xE7\xE3o "),c()}}function JSt(t,n){if(t&1){let e=ie();d(0,"button",13),$("click",function(){W(e);let r=S();return Y(r.openSubscriptionSelector())}),d(1,"mat-icon"),h(2,"edit"),c()()}}function ewt(t,n){if(t&1&&(d(0,"div",4)(1,"spa-prop",14),h(2),ce(3,"subscriptionType"),c()()),t&2){let e=S();m(2),U(xe(3,1,e.partner==null?null:e.partner.type))}}var Nye=(()=>{class t{constructor(e,i,r,o,a,s){this.subscriptionService=e,this.router=i,this.route=r,this.dialogService=o,this.spaControl=a,this.messageService=s}ngOnInit(){this.subscriptionId=this.route.parent.snapshot.paramMap.get("id"),this.spaControl.initialized.subscribe(()=>{this.userProfile=this.spaControl.userProfile})}openSubscriptionSelector(){this.dialogService.subSelector(this.userProfile.subscriptions).then(e=>{e&&(this.partner=e.subscription)})}submit(){if(!this.partner)return;if(this.partner.id==this.subscriptionId){this.messageService.showError("A organiza\xE7\xE3o parceira precisa ser diferente da organiza\xE7\xE3o selecionada");return}this.saving=!0;let e={partnerId:this.partner.id,subscriptionId:this.subscriptionId};this.subscriptionService.create(e).subscribe(i=>this.router.navigate(["../../"],{relativeTo:this.route}),i=>this.saving=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(oy),E(lt),E(Ut),E(Qi),E(di),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-partnership-create"]],decls:18,vars:7,consts:[[3,"loading","hidden"],["box-title",""],[1,"col-md-6"],[1,"row","mt-1"],[1,"col"],["label","Nome"],[4,"ngIf"],["mat-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["class","col",4,"ngIf"],["mat-flat-button","","color","accent",1,"mt-3","ms-0",3,"click","disabled"],[1,"me-1"],["mat-button","","color","primary",3,"click"],["mat-icon-button","","color","primary",3,"click"],["label","Tipo"]],template:function(i,r){i&1&&(d(0,"spa-box",0)(1,"span",1),h(2,"Nova parceria"),c(),d(3,"p"),h(4,"Por favor selecione a organiza\xE7\xE3o parceira:"),c(),d(5,"div",2)(6,"div",3)(7,"div",4)(8,"spa-prop",5),k(9,QSt,2,1,"span",6)(10,ZSt,2,0,"button",7)(11,JSt,3,0,"button",8),c()(),k(12,ewt,4,3,"div",9),c(),d(13,"button",10),$("click",function(){return r.submit()}),d(14,"mat-icon",11),h(15,"check"),c(),h(16,"Criar parceria "),c()()(),H(17,"router-outlet")),i&2&&(f("loading",r.saving)("hidden",r.route.firstChild),m(9),f("ngIf",r.partner),m(),f("ngIf",!r.partner),m(),f("ngIf",r.partner),m(),f("ngIf",r.partner),m(),f("disabled",!r.partner))},dependencies:[Ee,He,Ze,fi,un,wn,_n,cm]})}}return t})();function twt(t,n){t&1&&(d(0,"span"),h(1,"Anula\xE7\xE3o"),c())}function iwt(t,n){t&1&&(d(0,"span"),h(1,"Anula\xE7\xE3o Tempor\xE1ria"),c())}function nwt(t,n){t&1&&(d(0,"span"),h(1,"Restaura\xE7\xE3o"),c())}function rwt(t,n){if(t&1&&(d(0,"h2"),k(1,twt,2,0,"span",4)(2,iwt,2,0,"span",4)(3,nwt,2,0,"span",4),h(4," de hist\xF3rico escolar "),c()),t&2){let e=S();m(),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily)}}function owt(t,n){t&1&&(d(0,"strong"),h(1,"anula\xE7\xE3o"),c())}function awt(t,n){t&1&&(d(0,"strong"),h(1,"anula\xE7\xE3o tempor\xE1ria"),c())}function swt(t,n){t&1&&(d(0,"strong"),h(1,"restaura\xE7\xE3o"),c())}function lwt(t,n){t&1&&(d(0,"span"),h(1,"O hist\xF3rico escolar ainda n\xE3o foi completamente assinado, portanto ser\xE1 exclu\xEDdo no Assinador."),c())}function cwt(t,n){if(t&1&&(d(0,"mat-card",9)(1,"span",10),k(2,lwt,2,0,"span",4),h(3," Esta a\xE7\xE3o n\xE3o poder\xE1 ser revertida."),c()()),t&2){let e=S(2);m(2),f("ngIf",!e.isSigned)}}function dwt(t,n){if(t&1&&(d(0,"p"),h(1,"Informe o motivo da "),k(2,owt,2,0,"strong",4)(3,awt,2,0,"strong",4)(4,swt,2,0,"strong",4),h(5," do hist\xF3rico escolar:"),c(),d(6,"form",5)(7,"mat-form-field",6)(8,"mat-label"),h(9,"Motivo"),c(),H(10,"textarea",7),d(11,"mat-error"),h(12),c()()(),k(13,cwt,4,1,"mat-card",8)),t&2){let e=S();m(2),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily),m(2),f("formGroup",e.form),m(6),U(e.Error.get(e.form,"reason")),m(),f("ngIf",e.isCancel)}}function uwt(t,n){t&1&&(d(0,"span"),h(1,"Anular"),c())}function mwt(t,n){t&1&&(d(0,"span"),h(1,"Anular temporariamente"),c())}function pwt(t,n){t&1&&(d(0,"span"),h(1,"Restaurar"),c())}function hwt(t,n){if(t&1){let e=ie();d(0,"button",11),$("click",function(){W(e);let r=S();return Y(r.submit())}),k(1,uwt,2,0,"span",4)(2,mwt,2,0,"span",4)(3,pwt,2,0,"span",4),c(),d(4,"button",12),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5,"Descartar"),c()}if(t&2){let e=S();f("disabled",!e.form.valid)("color",e.isCancel||e.isCanceledTemporarily?"warn":"primary"),m(),f("ngIf",e.isCancel),m(),f("ngIf",e.isCanceledTemporarily),m(),f("ngIf",!e.isCancel&&!e.isCanceledTemporarily)}}var Oye=(()=>{class t{get isCancel(){return this.status==Ms.Canceled}get isCanceledTemporarily(){return this.status==Ms.CanceledTemporarily}constructor(e,i,r,o,a,s){this.formBuilder=e,this.academicTranscriptService=i,this.messageService=r,this.Error=o,this.dialogRef=s,this.academicTranscriptId=a.academicTranscriptId,this.status=a.status,this.isSigned=a.isSigned}ngOnInit(){this.form=this.formBuilder.group({reason:[null,[Se.required,Se.maxLength(500)]]})}submit(){let e=this.form.get("reason").value;this.loading=!0,this.academicTranscriptService.updateStatus(this.academicTranscriptId,this.status,e).subscribe(()=>{this.loading=!1,this.messageService.showSuccess("Hist\xF3rico escolar atualizado com sucesso"),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Qp),E(Bi),E(wi),E(mr),E(Qr))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-academic-transcript-update-status"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[4,"ngIf"],[3,"formGroup"],[1,"w-100"],["matInput","","formControlName","reason","rows","7","maxlength","500",1,"md-textarea","md-textarea-auto"],["class","bg-warn mat-elevation-z0 mat-3 warning-card",4,"ngIf"],[1,"bg-warn","mat-elevation-z0","mat-3","warning-card"],[1,"text-white"],["mat-raised-button","","tabindex","-1",3,"click","disabled","color"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,rwt,5,3,"ng-template",null,0,Ii)(3,dwt,14,6,"ng-template",null,1,Ii)(5,hwt,6,5,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Ee,zt,Gt,it,pt,wc,dt,Tt,Ze,Wt,bt,jt,Si,ws,Uo]})}}return t})();var fwt=["menuTrigger"],gwt=t=>({"text-warn":t});function _wt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"button",38),$("click",function(){W(e);let r=S(2);return Y(r.viewDegree())}),d(2,"mat-icon",39),h(3,"card_membership"),c(),h(4,"Ver diploma "),c()()}}function vwt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"button",38),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation())}),d(2,"mat-icon",39),h(3,"save_alt"),c(),h(4,"Representa\xE7\xE3o Visual "),c()()}}function bwt(t,n){if(t&1){let e=ie();d(0,"div",16)(1,"button",38),$("click",function(){W(e);let r=S(3);return Y(r.getXmlFile())}),d(2,"mat-icon",39),h(3,"save_alt"),c(),h(4,"Hist. escolar "),c()()}}function ywt(t,n){if(t&1&&(d(0,"div",14),k(1,vwt,5,0,"div",24)(2,bwt,5,0,"div",24),c()),t&2){let e=S(2);m(),f("ngIf",e.academicTranscript.hasVisualRepresentation),m(),f("ngIf",e.academicTranscript.isAcademicTranscriptSigned)}}function xwt(t,n){if(t&1){let e=ie();d(0,"button",38),$("click",function(){W(e);let r=S(3);return Y(r.viewOnSigner())}),d(1,"mat-icon",39),h(2,"launch"),c(),h(3," Ver no Assinador "),c()}}function Cwt(t,n){if(t&1){let e=ie();d(0,"div",33),k(1,xwt,4,0,"button",40),d(2,"button",41),$("click",function(){W(e);let r=S(2);return Y(r.validate())}),d(3,"mat-icon",39),h(4,"check"),c(),h(5,"Validar "),c()()}if(t&2){let e=S(2);m(),f("ngIf",e.academicTranscript.signerDocumentUrl)}}function Swt(t,n){if(t&1){let e=ie();d(0,"button",42,1),$("click",function(){W(e);let r=S(2);return Y(r.onCancelClick())}),d(2,"mat-icon",39),h(3,"cancel"),c(),h(4," Anular hist\xF3rico escolar"),c()}if(t&2){S();let e=je(49);f("matMenuTriggerFor",e)}}function wwt(t,n){if(t&1){let e=ie();d(0,"button",36),$("click",function(){W(e);let r=S(2);return Y(r.cancel(!0))}),d(1,"mat-icon"),h(2,"schedule"),c(),h(3," Temporariamente"),c()}}function Ewt(t,n){if(t&1){let e=ie();d(0,"button",43),$("click",function(){W(e);let r=S(2);return Y(r.restore())}),d(1,"mat-icon",39),h(2,"restore"),c(),h(3," Restaurar hist\xF3rico escolar"),c()}}function Iwt(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"div",15)(2,"div",14)(3,"div",16)(4,"spa-prop",17),h(5),c()(),d(6,"div",16)(7,"spa-prop",18),h(8),ce(9,"cpf"),c()()(),d(10,"div",14)(11,"div",16)(12,"spa-prop",19),h(13),c()(),d(14,"div",16)(15,"spa-prop",20),h(16),c()()(),d(17,"div",14)(18,"div",16)(19,"spa-prop",21),h(20),ce(21,"date"),c()(),d(22,"div",16)(23,"spa-prop",22),h(24),ce(25,"date"),c()()(),d(26,"div",14)(27,"div",16)(28,"spa-prop",23),h(29),ce(30,"academicTranscriptType"),c()(),d(31,"div",16),k(32,_wt,5,0,"div",24),c()(),k(33,ywt,3,2,"div",7),c(),d(34,"div",25)(35,"p",26),h(36,"Status"),c(),d(37,"div",27),H(38,"app-academic-transcript-status-icon",28),d(39,"h2",29)(40,"span",30),h(41),ce(42,"academicTranscriptStatus"),c()()(),d(43,"spa-prop",31),h(44),c(),k(45,Cwt,6,1,"div",32),d(46,"div",33),k(47,Swt,5,1,"button",34),d(48,"mat-menu",null,0),k(50,wwt,4,0,"button",35),d(51,"button",36),$("click",function(){W(e);let r=S();return Y(r.cancel())}),d(52,"mat-icon"),h(53,"clear"),c(),h(54," Definitivamente"),c()(),k(55,Ewt,4,0,"button",37),c()()()}if(t&2){let e=S();m(5),U(e.academicTranscript.studentName),m(3),U(xe(9,17,e.academicTranscript.studentCpf)),m(5),U(e.academicTranscript.course),m(3),U(e.academicTranscript.issuingIes),m(4),U(Bt(21,19,e.academicTranscript.creationDate,"short")),m(4),U(Bt(25,22,e.academicTranscript.updateDate,"short")),m(5),ue(" ",xe(30,25,e.academicTranscript.type)," "),m(3),f("ngIf",e.academicTranscript.degreeId),m(),f("ngIf",!e.isCanceledOrCanceledTemporarily),m(5),f("status",e.academicTranscript.status),m(2),f("ngClass",Le(29,gwt,e.isCanceledOrCanceledTemporarily)),m(),U(xe(42,27,e.academicTranscript.status)),m(3),U(e.academicTranscript.verificationCode),m(),f("ngIf",!e.isCanceledOrCanceledTemporarily),m(2),f("ngIf",e.academicTranscript.status!=e.AcademicTranscriptStatus.Canceled),m(3),f("ngIf",!e.isCanceledOrCanceledTemporarily&&e.academicTranscript.isAcademicTranscriptSigned),m(5),f("ngIf",e.academicTranscript.status==e.AcademicTranscriptStatus.CanceledTemporarily&&e.academicTranscript.isAcademicTranscriptSigned)}}function Dwt(t,n){if(t&1&&(d(0,"div",44),H(1,"app-degree-history-table",45),c()),t&2){let e=S();m(),f("history",e.history)("type",e.operationType)}}function Twt(t,n){if(t&1&&(d(0,"mat-tab",46),H(1,"app-document-restamp-table",47),c()),t&2){let e=S();m(),f("loadTable",e.tabIndex==2)("documentId",e.id)("documentType",e.Type)}}var C6=(()=>{class t{get isCanceledOrCanceledTemporarily(){return this.academicTranscript.status===Ms.Canceled||this.academicTranscript.status===Ms.CanceledTemporarily}constructor(e,i,r,o,a){this.route=e,this.academicTranscriptService=i,this.dialog=r,this.router=o,this.routeHelper=a,this.Type=Pt.AcademicTranscript,this.AcademicTranscriptStatus=Ms,this.AcademicTranscriptTypes=s_,this.operationType=Pt.AcademicTranscript,this.loadingHistory=!1}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.load()}load(){this.loading=!0,this.academicTranscriptService.get(this.id).subscribe(e=>{this.academicTranscript=e,this.loading=!1},e=>this.loading=!1),this.loadingHistory=!0,this.academicTranscriptService.getHistory(this.id).subscribe(e=>{this.loadingHistory=!1,this.history=e},e=>this.loadingHistory=!1)}getXmlFile(){this.loading=!0,this.academicTranscriptService.getAcademicTranscriptTicket(this.academicTranscript.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}viewOnSigner(){window.open(this.academicTranscript.signerDocumentUrl,"_blank")}viewDegree(){this.academicTranscript.degreeId&&(this.routeHelper.activatedNamedRoutesSnapshot.findNamedRoute("DegreeDetail")!=null?this.router.navigate(["../.."],{relativeTo:this.route}):this.router.navigate(["degrees",this.academicTranscript.degreeId],{relativeTo:this.route}))}getVisualRepresentation(){this.loading=!0,this.academicTranscriptService.getVisualRepresentationTicket(this.academicTranscript.id).subscribe(e=>{this.loading=!1,window.location.href=e.location},e=>this.loading=!1)}validate(){window.open("/validar/"+this.academicTranscript.verificationCode,"_blank")}updateStatus(e){this.dialog.open(Oye,{width:"600px",data:{academicTranscriptId:this.academicTranscript.id,status:e,isSigned:this.academicTranscript.isAcademicTranscriptSigned}}).afterClosed().toPromise().then(r=>{r&&this.load()})}onCancelClick(){(this.isCanceledOrCanceledTemporarily||!this.academicTranscript.isAcademicTranscriptSigned)&&(this.menuTrigger.closeMenu(),this.cancel())}cancel(e=!1){this.updateStatus(e?Ms.CanceledTemporarily:Ms.Canceled)}restore(){this.updateStatus(Ms.Active)}onTabIndexChange(e){this.tabIndex=e}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Qp),E(Dn),E(lt),E(ro))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-detail"]],viewQuery:function(i,r){if(i&1&&ot(fwt,5),i&2){let o;Pe(o=Ne())&&(r.menuTrigger=o.first)}},decls:16,vars:13,consts:[["cancelMenu","matMenu"],["menuTrigger","matMenuTrigger"],[3,"hidden"],[1,"box-light"],[3,"show"],[3,"refresh","loadingChange","loading","documentId","showExportButton","documentType"],["header",""],["class","row",4,"ngIf"],["mat-stretch-tabs","false","animationDuration","0ms",3,"selectedIndexChange"],["label","Hist\xF3rico"],["class","overflow-hidden",4,"ngIf"],["label","Eventos"],[3,"loadTable","documentId","type"],["label","Renotariza\xE7\xF5es",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"col"],["label","Diplomado(a)"],["label","CPF"],["label","Curso"],["label","IES Emissora"],["label","Criada em"],["label","Atualizada em"],["label","Tipo de hist\xF3rico escolar"],["class","col",4,"ngIf"],[1,"col-md-6","d-flex","flex-column","align-items-center"],[1,"prop-label","mt-4"],[1,"d-flex","align-items-center"],[3,"status"],[1,"mb-0","ms-1"],[3,"ngClass"],["label","C\xF3digo de valida\xE7\xE3o",1,"mt-3","text-center"],["class","d-flex justify-content-center mt-3",4,"ngIf"],[1,"d-flex","justify-content-center","mt-3"],["color","warn","mat-flat-button","",3,"matMenuTriggerFor","click",4,"ngIf"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],["color","primary","mat-stroked-button","",3,"click",4,"ngIf"],["color","primary","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",3,"click","matMenuTriggerFor"],["color","accent","mat-flat-button","",3,"click"],[1,"overflow-hidden"],[3,"history","type"],["label","Renotariza\xE7\xF5es"],[3,"loadTable","documentId","documentType"]],template:function(i,r){i&1&&(d(0,"div",2)(1,"div",3),H(2,"ngx-loading",4),d(3,"app-box-title",5),$("refresh",function(){return r.load()}),tn("loadingChange",function(a){return nn(r.loading,a)||(r.loading=a),a}),d(4,"span",6),h(5,"Detalhes do hist\xF3rico escolar"),c()(),k(6,Iwt,56,31,"div",7),c(),d(7,"div",3)(8,"mat-tab-group",8),$("selectedIndexChange",function(a){return r.onTabIndexChange(a)}),d(9,"mat-tab",9),H(10,"ngx-loading",4),k(11,Dwt,2,2,"div",10),c(),d(12,"mat-tab",11),H(13,"app-document-events",12),c(),k(14,Twt,2,3,"mat-tab",13),c()()(),H(15,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(2),f("show",r.loading),m(),en("loading",r.loading),f("documentId",r.id)("showExportButton",!0)("documentType",r.Type),m(3),f("ngIf",r.academicTranscript),m(4),f("show",r.loadingHistory),m(),f("ngIf",r.history),m(2),f("loadTable",r.tabIndex==1)("documentId",r.id)("type",r.Type),m(),f("ngIf",(r.academicTranscript==null?null:r.academicTranscript.status)==r.AcademicTranscriptStatus.Active&&(r.academicTranscript==null?null:r.academicTranscript.type)!=r.AcademicTranscriptTypes.Partial))},dependencies:[ji,Ee,Ia,Gd,Es,He,Ze,li,wn,_n,Hl,mc,bd,eh,AI,RI,ny,rn,Zo,qb,MI]})}}return t})();function Awt(t,n){if(t&1&&(d(0,"mat-option",25),h(1),ce(2,"academicTranscriptType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function kwt(t,n){if(t&1){let e=ie();d(0,"div",26)(1,"div",27)(2,"p",28)(3,"span"),h(4,"Envie um arquivo JSON com os dados dos hist\xF3ricos escolares:"),c()()(),d(5,"div")(6,"spa-files",29),$("filesLoading",function(r){W(e);let o=S(2);return Y(o.onFilesLoading(r))}),c()()()}if(t&2){let e=S(2);m(6),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes)}}function Mwt(t,n){if(t&1){let e=ie();d(0,"form",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h2",7),h(5," Emiss\xE3o de hist\xF3ricos escolares "),c(),d(6,"p"),h(7,"Para gerar hist\xF3ricos escolares selecione um modelo, o tipo de hist\xF3rico e envie o arquivo com os dados de emiss\xE3o de cada hist\xF3rico escolar:"),c(),d(8,"div",8)(9,"button",9),$("click",function(){W(e);let r=S();return Y(r.openRequiredInfoDialog())}),d(10,"mat-icon",10),h(11,"help"),c(),h(12," Quais dados s\xE3o necess\xE1rios? "),c(),d(13,"a",11)(14,"mat-icon",10),h(15,"get_app"),c(),h(16," Baixar modelo de arquivo JSON "),c()(),d(17,"div",12)(18,"mat-icon",13),h(19,"descriptions"),c(),H(20,"app-template-autocomplete-selector",14),c(),d(21,"div",12)(22,"mat-icon",13),h(23,"history_edu"),c(),d(24,"mat-form-field",15)(25,"mat-label"),h(26,"Tipo de Hist\xF3rico Escolar"),c(),d(27,"mat-select",16),k(28,Awt,3,4,"mat-option",17),c()()(),d(29,"app-folder-selector",18),tn("selectedItemChange",function(r){W(e);let o=S();return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c()()(),d(30,"div",5),k(31,kwt,7,4,"div",19),c()(),d(32,"app-file-validation-boxes",20),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),d(33,"app-signature-flow-selector",21),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),H(34,"app-signature-flow-form",22),d(35,"div",23)(36,"button",24),$("click",function(){W(e);let r=S();return Y(r.submitBatch())}),h(37," Emitir hist\xF3ricos escolares "),c()()()}if(t&2){let e=S();f("formGroup",e.form),m(20),f("type",e.TemplateTypes.AcademicTranscript)("templateControl",e.academicTranscriptTemplateControl)("templateIdControl",e.form.get("academicTranscriptTemplateId")),m(8),f("ngForOf",e.academicTranscriptTypes),m(),en("selectedItem",e.selectedFolder),m(2),f("ngIf",e.form.get("academicTranscriptType").valid),m(),f("operationType",e.operationType)("fileValidationResult",e.fileValidationResult)("selectedResult",e.selectedResult)("degreeDataSource",e.academicTranscriptDataSource)("templateId",e.form.get("academicTranscriptTemplateId").value),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type),m(2),f("disabled",!e.form.valid||!e.fileValidationResult||!e.fileValidationResult.isValid||!e.academicTranscriptTemplateControl.valid)}}var Lye=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.fb=e,this.configurationService=i,this.route=r,this.router=o,this.dialog=a,this.settingService=s,this.documentFlowService=l,this.batchService=u,this.messageService=p,this.TemplateTypes=Jr,this.academicTranscriptTypes=Object.keys(s_),this.acceptedFileTypes=["application/json"],this.fileType=ss.Json,this.selectedFolder=this.settingService.NoFolder,this.type=Ro.AcademicTranscript,this.academicTranscriptTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.operationType=Pt.AcademicTranscript}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.buildForm()}buildForm(){this.filesToAdd=this.fb.array([],Se.minLength(1)),this.form=this.fb.group({academicTranscriptType:["",Se.required],academicTranscriptTemplateId:[this.route.snapshot.queryParams.templateId||"",Se.required],files:this.filesToAdd}),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type))}openRequiredInfoDialog(){this.dialog.open(wg,{width:"1000px",data:{type:this.operationType}})}onFilesLoading(e){if(!e){let i=this.form.value.files[0],r={id:i.id,contentType:i.contentType,name:i.name,fileType:this.fileType,academicTranscriptType:this.form.get("academicTranscriptType").value};this.loading=!0,this.batchService.validateAcademictranscriptsFile(r).subscribe(o=>{this.loading=!1,this.selectedResult=null,this.academicTranscriptDataSource=null,this.fileValidationResult=o,o.result&&o.result.length>0&&(this.academicTranscriptDataSource=o.result.map(a=>{let s=a.information;return{entryNumber:a.entryNumber,isValid:a.isValid,nome:s.aluno.nome,sexo:s.aluno.sexo,cpf:s.aluno.cpf,dataNascimento:s.aluno.dataNascimento,curso:s.dadosCurso.nomeCurso,codigoCurso:s.dadosCurso.codigoCursoEMEC,errors:a.errors,structureErrors:a.structureErrors,signatureErrors:a.signatureErrors,information:s}}),o.isValid||(this.selectedResult=this.academicTranscriptDataSource.find(a=>!a.isValid)))},o=>this.loading=!1)}}submitBatch(){if(!this.form.valid)return;let e={batchFile:this.filesToAdd.value[0],documentFlow:this.documentFlowService.getFormData(this.form.get("signatureFlow")),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,fileType:this.fileType,type:Bl.AcademicTranscript,academicTranscriptTemplateId:this.form.get("academicTranscriptTemplateId").value,academicTranscriptType:this.form.get("academicTranscriptType").value};this.saving=!0,this.batchService.create(e).subscribe(i=>{this.router.navigate(["../../batches",i.id,"progress"],{relativeTo:this.route}),this.messageService.showSuccess("Os documentos ser\xE3o gerados e enviados para o Assinador")}).add(()=>this.saving=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(zo),E(Ut),E(lt),E(Dn),E(Xa),E(oa),E(dc),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-academic-transcript-create"]],decls:3,vars:2,consts:[[1,"loader-container"],[3,"show"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-md-6"],[1,"box-light","generate-box"],[1,"font-medium"],[1,"d-flex","flex-column","flex-xl-row","align-items-center","justify-content-between"],["mat-button","","color","primary","type","button",1,"my-2","normal-wrap-button",3,"click"],[1,"me-1"],["mat-button","","target","_blank","href","../../../../assets/files/academic-transcript-template2.json",1,"my-2","normal-wrap-button","mat-primary","d-flex","align-items-center"],[1,"d-flex"],[1,"middle","align-self-center","me-2"],[1,"col","px-0",3,"type","templateControl","templateIdControl"],[1,"col","px-0"],["formControlName","academicTranscriptType"],[3,"value",4,"ngFor","ngForOf"],[1,"mb-2",3,"selectedItemChange","selectedItem"],["class","box-light",4,"ngIf"],[3,"loadingChange","operationType","fileValidationResult","selectedResult","degreeDataSource","templateId"],[3,"loadingChange","form","type"],[3,"form","type"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"click","disabled"],[3,"value"],[1,"box-light"],[1,"mb-2","d-flex","align-items-center"],[1,"mb-0"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),k(2,Mwt,38,17,"form",2),c()),i&2&&(m(),f("show",r.loading||r.saving),m(),f("ngIf",r.form))},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,He,ec,Ze,bt,jt,Mi,li,cc,Li,uc,am,Eg,sm,Ig,MI]})}}return t})();var IM=gc(yp());var Vye=(()=>{class t{transform(e){switch(e){case fd.January:return"Janeiro";case fd.February:return"Fevereiro";case fd.March:return"Mar\xE7o";case fd.April:return"Abril";case fd.May:return"Maio";case fd.June:return"Junho";case fd.July:return"Julho";case fd.August:return"Agosto";case fd.September:return"Setembro";case fd.October:return"Outubro";case fd.November:return"Novembro";case fd.December:return"Dezembro"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"monthPipe",type:t,pure:!0})}}return t})();function Rwt(t,n){if(t&1&&(d(0,"mat-option",31),h(1),ce(2,"reportFileType"),c()),t&2){let e=n.$implicit;f("value",e),m(),U(xe(2,2,e))}}function Pwt(t,n){if(t&1&&(d(0,"mat-option",31),h(1),ce(2,"monthPipe"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e.name)," ")}}function Nwt(t,n){if(t&1&&(d(0,"mat-option",31),h(1),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",e," ")}}var Bye=(()=>{class t{constructor(e,i,r){this.reportService=e,this.fb=i,this.Error=r,this.fileTypes=Object.keys(rm),this.isLoading=!1,this.monthOptions=[],this.yearOptions=[],this.fileType=rm.Xlsx,this.currentYear=(0,IM.default)().year()}ngOnInit(){Object.keys(fd).forEach((r,o)=>{this.monthOptions.push({name:r,value:o})});for(let r=this.currentYear;r>=2018;r--)this.yearOptions.push(r);let e=this.monthOptions[(0,IM.default)().month()],i=this.yearOptions.find(r=>r===+(0,IM.default)().format("YYYY"));this.form=this.fb.group({month:[e,[Se.required]],year:[i,[Se.required]],type:[rm.Xlsx,[Se.required]],includeDegrees:[""],includeEmissions:[""],includeRegistrations:[""],includeAcademicTranscripts:[""],includeCurriculums:[""],includeCancellationListsByInstitute:[""],includeInspectionFilesByInstitute:[""]})}generateReport(){let e=this.form.value;this.isLoading=!0;let i=(0,IM.default)().set({year:e.year,month:e.month.value}).utc().startOf("month"),r=i.clone().add(1,"month"),o={startDateUtc:i.toISOString(),endDateUtc:r.toISOString(),includeDegrees:e.includeDegrees,includeEmissions:e.includeEmissions,includeRegistrations:e.includeRegistrations,includeAcademicTranscripts:e.includeAcademicTranscripts,includeCurriculums:e.includeCurriculums,includeCancellationListsByInstitute:e.includeCancellationListsByInstitute,includeInspectionFilesByInstitute:e.includeInspectionFilesByInstitute};this.reportService.getInstanceDocumentsReportDownloadTicketByDate(o,e.type).subscribe(a=>{document.location.href=a.location,this.isLoading=!1},a=>this.isLoading=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(SI),E(Ti),E(wi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-admin-documents-report"]],decls:65,vars:9,consts:[["degreeCheckbox",""],["emissionCheckbox",""],["registrationCheckbox",""],["academicTranscriptCheckbox",""],["curriculumCheckbox",""],["cancellationListCheckbox",""],["inspectionFileCheckbox",""],[3,"show"],[1,"d-flex","align-items-center"],[1,"ms-2","mb-0"],[1,"col-8","mt-3","ms-3",3,"formGroup"],[1,"row"],["appearance","fill",1,"col-4"],["formControlName","type"],[3,"value",4,"ngFor","ngForOf"],["appearance","fill",1,"col-4","me-2"],["mat-input","","formControlName","month","name","monthSelect"],["mat-input","","formControlName","year","name","yearSelect"],[1,"mt-2"],[1,"col-8"],[1,"row","documents-checkboxes"],["formControlName","includeDegrees",1,"col"],["formControlName","includeEmissions",1,"col"],["formControlName","includeRegistrations",1,"col"],["formControlName","includeAcademicTranscripts",1,"col"],["formControlName","includeCurriculums",1,"col"],[1,"justify-content-between","row"],["formControlName","includeCancellationListsByInstitute",1,"col"],["formControlName","includeInspectionFilesByInstitute",1,"col"],[1,"d-flex","justify-content-center"],["mat-flat-button","","color","primary",1,"ms-2",3,"click","disabled"],[3,"value"]],template:function(i,r){if(i&1){let o=ie();he(0),H(1,"ngx-loading",7),d(2,"div",8)(3,"mat-icon"),h(4,"assignment"),c(),d(5,"h2",9),h(6,"Gerar relat\xF3rio dos documentos da inst\xE2ncia"),c()(),d(7,"form",10)(8,"div",11)(9,"mat-form-field",12)(10,"mat-label"),h(11,"Tipo de arquivo"),c(),d(12,"mat-select",13),k(13,Rwt,3,4,"mat-option",14),c(),d(14,"mat-error"),h(15),c()()(),d(16,"div",11)(17,"mat-form-field",15)(18,"mat-label"),h(19,"M\xEAs"),c(),d(20,"mat-select",16),k(21,Pwt,3,4,"mat-option",14),c(),d(22,"mat-error"),h(23),c()(),d(24,"mat-form-field",12)(25,"mat-label"),h(26,"Ano"),c(),d(27,"mat-select",17),k(28,Nwt,2,2,"mat-option",14),c(),d(29,"mat-error"),h(30),c()()(),d(31,"div")(32,"div",18)(33,"p"),h(34,"Escolha os relat\xF3rios a serem gerados:"),c()(),d(35,"div",19)(36,"div",20)(37,"mat-checkbox",21,0),h(39,"Diplomas"),c(),d(40,"mat-checkbox",22,1),h(42,"Emiss\xF5es"),c(),d(43,"mat-checkbox",23,2),h(45,"Registros"),c(),d(46,"mat-checkbox",24,3),h(48,"Hist\xF3ricos Escolares"),c(),d(49,"mat-checkbox",25,4),h(51,"Curr\xEDculos Escolares"),c()()(),d(52,"div",19)(53,"div",26)(54,"mat-checkbox",27,5),h(56,"Lista de diplomas anulados por Institui\xE7\xE3o"),c(),d(57,"mat-checkbox",28,6),h(59,"Arquivos de fiscaliza\xE7\xE3o por Institui\xE7\xE3o"),c()()()(),d(60,"div",29)(61,"button",30),$("click",function(){return W(o),Y(r.generateReport())}),d(62,"mat-icon"),h(63,"assignment"),c(),h(64," Gerar relat\xF3rio "),c()()(),fe()}if(i&2){let o=je(38),a=je(41),s=je(44),l=je(47),u=je(50),p=je(55),g=je(58);m(),f("show",r.isLoading),m(6),f("formGroup",r.form),m(6),f("ngForOf",r.fileTypes),m(2),U(r.Error.get(r.form,"reportFileType")),m(6),f("ngForOf",r.monthOptions),m(2),U(r.Error.get(r.form,"month")),m(5),f("ngForOf",r.yearOptions),m(2),U(r.Error.get(r.form,"year")),m(31),f("disabled",!r.form.valid||!o.checked&&!a.checked&&!s.checked&&!l.checked&&!u.checked&&!p.checked&&!g.checked)}},dependencies:[Vt,zt,it,pt,dt,Tt,He,Ze,bt,jt,Si,Mi,Co,li,Li,Vye,wI]})}}return t})();function Lwt(t,n){t&1&&(d(0,"mat-tab-group",1)(1,"mat-tab",2)(2,"mat-card",3),H(3,"app-admin-documents-report"),c()()())}var jye=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-admin-home"]],decls:1,vars:0,consts:[["mat-stretch-tabs","false","animationDuration","0ms",4,"transloco"],["mat-stretch-tabs","false","animationDuration","0ms"],["label","Relat\xF3rios"],["appearance","outlined",1,"mt-0","mx-0","p-3"]],template:function(i,r){i&1&&k(0,Lwt,4,0,"mat-tab-group",0)},dependencies:[ws,Fn,Hl,mc,Bye]})}}return t})();var NI=(()=>{class t{transform(e){switch(e){case om.Automatic:return"Autom\xE1tico";case om.Manual:return"Manual";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"supportingDocSignatureMode",type:t,pure:!0})}}return t})();var Vwt=["institutesTable"],iC=t=>({invalid:t});function Bwt(t,n){t&1&&(d(0,"button",21)(1,"mat-icon",22),h(2,"add_circle"),c(),h(3," Cadastrar"),c())}function jwt(t,n){t&1&&(d(0,"mat-header-cell",23),h(1,"C\xF3digo MEC"),c())}function Hwt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),c()),t&2){let e=n.$implicit;f("ngClass",Le(2,iC,e.isCertificateExpired)),m(),ue(" ",e.iesCode," ")}}function zwt(t,n){t&1&&(d(0,"mat-header-cell",23),h(1,"Nome"),c())}function Uwt(t,n){if(t&1){let e=ie();d(0,"mat-cell",24)(1,"spa-link-button",25),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigate(r.id))}),h(2),c()()}if(t&2){let e=n.$implicit;f("ngClass",Le(2,iC,e.isCertificateExpired)),m(2),U(e.iesName)}}function Gwt(t,n){t&1&&(d(0,"mat-header-cell",23),h(1,"Tipo"),c())}function $wt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),ce(2,"subscriptionType"),c()),t&2){let e=n.$implicit;f("ngClass",Le(4,iC,e.isCertificateExpired)),m(),ue(" ",xe(2,2,e.type)," ")}}function qwt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"N\xFAmero de sequ\xEAncia atual"),c())}function Wwt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),c()),t&2){let e=n.$implicit,i=S();f("ngClass",Le(2,iC,e.isCertificateExpired)),m(),ue(" ",e.type!=i.InstituteTypes.Issuer?e.currentCancellationListSequenceNumber:null," ")}}function Ywt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data da pr\xF3xima lista de anula\xE7\xE3o"),c())}function Kwt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit,i=S();f("ngClass",Le(5,iC,e.isCertificateExpired)),m(),ue(" ",e.type!=i.InstituteTypes.Issuer?Bt(2,2,e.nextCancellationListGenerateDate,"dd/MM/yyyy"):null," ")}}function Xwt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Modo de assinatura"),c())}function Qwt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),ce(2,"supportingDocSignatureMode"),c()),t&2){let e=n.$implicit;f("ngClass",Le(4,iC,e.isCertificateExpired)),m(),ue(" ",xe(2,2,e.supportingDocSignatureMode)," ")}}function Zwt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Certificado expirado?"),c())}function Jwt(t,n){if(t&1&&(d(0,"mat-cell",24),h(1),c()),t&2){let e=n.$implicit;f("ngClass",Le(2,iC,e.isCertificateExpired)),m(),ue(" ",e.isCertificateExpired==null?"-":e.isCertificateExpired==!0?"Sim":"N\xE3o"," ")}}function eEt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data de cria\xE7\xE3o"),c())}function tEt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function iEt(t,n){t&1&&(d(0,"mat-header-cell",23),h(1,"Data de atualiza\xE7\xE3o"),c())}function nEt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}var zye=(()=>{class t{constructor(e,i,r,o,a){this.spaControl=e,this.router=i,this.route=r,this.routeHelper=o,this.instituteService=a,this.InstituteTypes=Zr,this.$toUnsubscribe=[],this.hasSubscriptionSelected=!1,this.loading=!1}ngOnInit(){this.dataSource=this.instituteService.institutes,this.$toUnsubscribe.push(this.spaControl.selectedSubscription.subscribe(e=>{this.hasSubscriptionSelected=!!e.sub&&e.sub!==Ye.subscriptionNoFilter}),this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}onRouteChange(e){if(this.institutesTable&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="InstituteList")try{this.institutesTable.refresh()}catch{}}}navigate(e){this.router.navigate([e],{relativeTo:this.route})}static{this.\u0275fac=function(i){return new(i||t)(E(di),E(lt),E(Ut),E(ro),E(Sg))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-institute-list"]],viewQuery:function(i,r){if(i&1&&ot(Vwt,5),i&2){let o;Pe(o=Ne())&&(r.institutesTable=o.first)}},decls:39,vars:4,consts:[["institutesTable",""],[3,"hidden"],[3,"show"],["box-title",""],["mat-flat-button","","color","primary","routerLink","new",4,"ngIf"],["matSort","","matSortActive","iesCode","showRefresh","",1,"centered-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","iesCode"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"ngClass",4,"matCellDef"],["matColumnDef","iesName"],["matColumnDef","type"],["matColumnDef","currentCancellationListSequenceNumber"],[4,"matHeaderCellDef"],["matColumnDef","nextCancellationListGenerateDate"],["matColumnDef","supportingDocSignatureMode"],["matColumnDef","isCertificateExpired"],["matColumnDef","creationDate"],[4,"matCellDef"],["matColumnDef","updateDate"],["mat-flat-button","","color","primary","routerLink","new"],[1,"me-1"],["mat-sort-header",""],[3,"ngClass"],[3,"trigger"]],template:function(i,r){i&1&&(d(0,"spa-box",1),H(1,"ngx-loading",2),d(2,"span",3),h(3,"Institui\xE7\xF5es"),c(),k(4,Bwt,4,0,"button",4),d(5,"lac-table",5,0)(7,"div",6)(8,"div",7)(9,"h3"),h(10,"Nenhuma institui\xE7\xE3o cadastrada."),c()()(),he(11,8),k(12,jwt,2,0,"mat-header-cell",9)(13,Hwt,2,4,"mat-cell",10),fe(),he(14,11),k(15,zwt,2,0,"mat-header-cell",9)(16,Uwt,3,4,"mat-cell",10),fe(),he(17,12),k(18,Gwt,2,0,"mat-header-cell",9)(19,$wt,3,6,"mat-cell",10),fe(),he(20,13),k(21,qwt,2,0,"mat-header-cell",14)(22,Wwt,2,4,"mat-cell",10),fe(),he(23,15),k(24,Ywt,2,0,"mat-header-cell",14)(25,Kwt,3,7,"mat-cell",10),fe(),he(26,16),k(27,Xwt,2,0,"mat-header-cell",14)(28,Qwt,3,6,"mat-cell",10),fe(),he(29,17),k(30,Zwt,2,0,"mat-header-cell",14)(31,Jwt,2,4,"mat-cell",10),fe(),he(32,18),k(33,eEt,2,0,"mat-header-cell",14)(34,tEt,3,4,"mat-cell",19),fe(),he(35,20),k(36,iEt,2,0,"mat-header-cell",9)(37,nEt,3,4,"mat-cell",19),fe(),c()(),H(38,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(3),f("ngIf",r.hasSubscriptionSelected),m(),f("dataSource",r.dataSource))},dependencies:[ji,Ee,He,Ze,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,As,_n,gn,rn,cm,NI],styles:["mat-cell.invalid[_ngcontent-%COMP%]{background-color:#f798ac}"]})}}return t})();function rEt(t,n){if(t&1&&(d(0,"div",2)(1,"spa-prop",8),h(2),c()()),t&2){let e=S(2);m(2),U(e.certificateInformation.subjectName)}}function oEt(t,n){if(t&1&&(d(0,"div",1)(1,"div",2)(2,"spa-prop",3),h(3),c()(),k(4,rEt,3,1,"div",4),d(5,"div",2)(6,"spa-prop",5),h(7),c()(),d(8,"div",2)(9,"spa-prop",6),h(10),c()(),d(11,"div",2)(12,"spa-prop",7),h(13),ce(14,"date"),c()()()),t&2){let e=S();m(3),U(e.certificateInformation.companyName!=null?e.certificateInformation.companyName:e.certificateInformation.subjectName),m(),f("ngIf",e.certificateInformation.isCompany),m(3),U(e.certificateInformation.isCompany?"Pessoa jur\xEDdica":"Pessoa f\xEDsica"),m(3),U(e.certificateInformation.certificateType),m(3),U(Bt(14,5,e.certificateInformation.validityEnd,"dd/MM/yyyy"))}}var S6=(()=>{class t{constructor(){this.certificateInformation=null}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=oe({type:t,selectors:[["app-certificate-informations"]],inputs:{certificateInformation:"certificateInformation"},decls:1,vars:1,consts:[["class","row flex-wrap",4,"ngIf"],[1,"row","flex-wrap"],[1,"col-md-3"],["label","Nome"],["class","col-md-3",4,"ngIf"],["label","Tipo do titular do certificado"],["label","Tipo do certificado"],["label","Validade"],["label","Representante legal"]],template:function(i,r){i&1&&k(0,oEt,15,8,"div",0),i&2&&f("ngIf",r.certificateInformation)},dependencies:[Ee,wn,rn]})}}return t})();function aEt(t,n){t&1&&(d(0,"h2"),h(1,"Assinatura dos documentos auxiliares"),c())}function sEt(t,n){if(t&1){let e=ie();d(0,"div")(1,"div")(2,"span",9),h(3,"Modo de assinatura"),c()(),d(4,"div",10)(5,"div",11)(6,"mat-radio-group",12),$("change",function(){W(e);let r=S(3);return Y(r.setSignatureModeConditionalGroup())}),d(7,"div",10)(8,"div",13)(9,"mat-radio-button",14),h(10,"Autom\xE1tico"),c()(),d(11,"div",15)(12,"mat-radio-button",16),h(13,"Manual"),c()()()()()()()}if(t&2){let e=S(3);m(9),f("value",e.SupportingDocSignatureModes.Automatic),m(3),f("value",e.SupportingDocSignatureModes.Manual)}}function lEt(t,n){t&1&&(d(0,"div",22)(1,"mat-form-field",23)(2,"mat-label"),h(3,"Senha"),c(),H(4,"input",24),c(),d(5,"mat-icon",25),h(6,"info"),c()())}function cEt(t,n){if(t&1&&(d(0,"li"),h(1),c()),t&2){let e=n.$implicit;m(),U(e)}}function dEt(t,n){if(t&1&&(d(0,"div")(1,"h3",26),h(2,"Erros"),c(),d(3,"ul"),k(4,cEt,2,1,"li",27),c()()),t&2){let e=S(4);m(4),f("ngForOf",e.result.errors)}}function uEt(t,n){if(t&1){let e=ie();d(0,"div",17),H(1,"app-certificate-informations",18),d(2,"div",19)(3,"spa-files",20),$("filesLoading",function(r){W(e);let o=S(3);return Y(o.onFilesLoading(r))}),c()(),k(4,lEt,7,0,"div",21)(5,dEt,5,1,"div",6),c()}if(t&2){let e=S(3);m(),f("certificateInformation",e.certificateInformation),m(2),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes),m(),f("ngIf",e.filesToAdd.value.length>0),m(),f("ngIf",e.filesToAdd.value.length>0&&e.result!=null&&!e.result.isValid)}}function mEt(t,n){if(t&1&&(d(0,"div",28),H(1,"app-sign-rule-form",29),c()),t&2){let e=S(3);m(),f("form",e.signerForm)("maxSignatures",1)}}function pEt(t,n){if(t&1&&(d(0,"form",5),k(1,sEt,14,2,"div",6)(2,uEt,6,7,"div",7)(3,mEt,2,2,"div",8),c()),t&2){let e=S(2);f("formGroup",e.form),m(),f("ngIf",e.instituteId!=null),m(),f("ngIf",e.isAutomaticSignatureMode==!0),m(),f("ngIf",e.isAutomaticSignatureMode==!1)}}function hEt(t,n){if(t&1&&k(0,pEt,4,4,"form",4),t&2){let e=S();f("ngIf",e.form)}}function fEt(t,n){if(t&1){let e=ie();d(0,"button",33),$("click",function(){W(e);let r=S(2);return Y(r.submit())}),d(1,"mat-icon"),h(2,"file_upload"),c(),h(3," Enviar "),c()}if(t&2){let e=S(2);f("disabled",e.form.invalid)}}function gEt(t,n){if(t&1){let e=ie();d(0,"button",34),$("click",function(){W(e);let r=S(2);return Y(r.validate())}),d(1,"mat-icon"),h(2,"done"),c(),h(3," Validar "),c()}if(t&2){let e=S(2);f("disabled",e.loading||e.filesToAdd.invalid)}}function _Et(t,n){if(t&1){let e=ie();k(0,fEt,4,1,"button",30)(1,gEt,4,1,"button",31),d(2,"button",32),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(3," Cancelar "),c()}if(t&2){let e=S();f("ngIf",e.isAutomaticSignatureMode==!1||(e.result==null?null:e.result.isValid)==!0&&e.filesToAdd.value.length>0),m(),f("ngIf",e.isAutomaticSignatureMode==!0&&(!(e.result!=null&&e.result.isValid)||e.filesToAdd.value.length==0))}}var w6=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.data=e,this.dialogRef=i,this.fb=r,this.configurationService=o,this.instituteService=a,this.messageService=s,this.dialogService=l,this.documentFlowService=u,this.supportingDocSignatureModePipe=p,this.acceptedFileTypes=["application/x-pkcs12"],this.SupportingDocSignatureModes=om,this.signerInformation=null,this.certificateInformation=null,this.isAutomaticSignatureMode=null,this.instituteId=e?.instituteId,this.mode=e?.mode,this.certificateInformation=e?.certificate,this.signerInformation=e?.signer}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.filesToAdd=this.fb.array([],[Se.required,Se.minLength(1)]),this.buildForm()}buildForm(){this.form=this.fb.group({mode:[this.mode,Se.required]}),this.certificateForm=this.fb.group({isValid:[null,rr.requiredBooleanValueEqual(!0)],uploadId:[null,Se.required],password:[]}),this.signerForm=this.documentFlowService.getSignRuleForm(this.signerInformation,!0),this.setSignatureModeConditionalGroup()}onFilesLoading(e){if(!e){this.loading=e;let i=this.filesToAdd.value[0];this.certificateForm.get("uploadId").setValue(i.id),this.certificateForm.get("password").reset(),this.clearCertificationValidationResult()}}clearCertificationValidationResult(){this.result=null,this.certificateInformation=null}validate(){this.clearCertificationValidationResult();let e={uploadId:this.certificateForm.get("uploadId").value,password:this.certificateForm.get("password").value};this.loading=!0,this.instituteService.validateInstituteCertificate(e).subscribe(i=>{this.result=i,this.certificateInformation=i.information,this.certificateForm.get("isValid").setValue(this.result.isValid),this.loading=!1},i=>this.loading=!1)}submit(){if(!this.form.invalid)if(this.instituteId){let e=this.form.value,i,r=!1;if(e.mode!=this.mode){let o=this.supportingDocSignatureModePipe.transform(this.mode),a=this.supportingDocSignatureModePipe.transform(e.mode);i=`Tem certeza de que deseja alterar o modo de assinatura dos documentos auxiliares de ${qp.htmlEncode(o)} para ${qp.htmlEncode(a)}?`,r=!0}else i="Tem certeza de que deseja alterar as informa\xE7\xF5es sobre a assinatura dos documentos auxiliares?";this.dialogService.confirm({title:"Confirma\xE7\xE3o",message:i,confirmButtonText:"Alterar",cancelButtonText:"Cancelar",useMessageAsHtml:r}).then(o=>{o&&(this.loading=!0,this.instituteService.updateSupportingDocSignatureSetting(this.instituteId,e).subscribe(a=>{this.loading=!1,this.messageService.showSuccess("Informa\xE7\xF5es sobre a assinatura dos documentos auxiliares alteradas com sucesso"),this.dialogRef.close(a)},a=>this.loading=!1))})}else{let i={upload:{uploadId:this.certificateForm.get("uploadId").value,password:this.certificateForm.get("password").value},information:this.certificateInformation};this.dialogRef.close(i)}}cancel(){this.dialogRef.close()}setSignatureModeConditionalGroup(){if(this.form.get("mode")?.value==null){this.isAutomaticSignatureMode=null;return}let e="certificate",i="signer";this.form.get("mode")?.value==om.Automatic?(this.isAutomaticSignatureMode=!0,this.form.removeControl(i),this.form.setControl(e,this.certificateForm)):(this.isAutomaticSignatureMode=!1,this.form.setControl(i,this.signerForm),this.form.removeControl(e)),this.form.updateValueAndValidity()}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr),E(Ti),E(zo),E(Sg),E(Bi),E(Qi),E(oa),E(NI))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-supporting-doc-signature-setting"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[4,"ngIf"],["formGroupName","certificate",4,"ngIf"],["formGroupName","signer",4,"ngIf"],[1,"prop-label"],[1,"row"],[1,"col-xl-7","text-truncate"],["aria-label","Select an option","color","primary","formControlName","mode",1,"d-flex","mt-2",3,"change"],[1,"col-lg-6"],[1,"me-3",3,"value"],[1,"col-lg-6","mt-3","mt-lg-0"],[3,"value"],["formGroupName","certificate"],[3,"certificateInformation"],[1,"files-container","stretch"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"],["class","mt-2 d-flex",4,"ngIf"],[1,"mt-2","d-flex"],["appearance","outline",1,"input-stretch",2,"min-width","0"],["matInput","","type","password","formControlName","password"],["matTooltip","Recomenda-se que o certificado tenha uma senha.",1,"ms-2","mt-2"],[1,"mb-0"],[4,"ngFor","ngForOf"],["formGroupName","signer"],["requiredSignaturesReadonly","true","onlyCompanySignatures","true",3,"form","maxSignatures"],["mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["type","button","mat-raised-button","","color","accent",3,"disabled","click",4,"ngIf"],["type","button","mat-button","","color","primary",3,"click"],["mat-raised-button","","color","accent",3,"click","disabled"],["type","button","mat-raised-button","","color","accent",3,"click","disabled"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,aEt,2,0,"ng-template",null,0,Ii)(3,hEt,1,1,"ng-template",null,1,Ii)(5,_Et,4,2,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,xs,He,Ze,Wt,bt,jt,cc,yi,ep,em,gI,S6,Uo]})}}return t})();function vEt(t,n){if(t&1&&(d(0,"mat-option",10),h(1),ce(2,"subscriptionType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue(" ",xe(2,2,e)," ")}}function bEt(t,n){if(t&1){let e=ie();d(0,"mat-slide-toggle",17),$("change",function(){W(e);let r=S(3);return Y(r.setConditionalGroup())}),h(1,"Utilizar dados da IES cadastrado na organiza\xE7\xE3o?"),c()}}function yEt(t,n){if(t&1&&H(0,"app-ies-form",18),t&2){let e=S(3);f("hidden",e.shouldUseSubscriptionIesData)("form",e.registryDataForm)("iesType",e.iesType)}}function xEt(t,n){if(t&1&&H(0,"app-ies-form",19),t&2){let e=S(3);f("form",e.issuerDataForm)("iesType",e.iesType)}}function CEt(t,n){if(t&1){let e=ie();d(0,"button",34),$("click",function(){W(e);let r=S(4);return Y(r.openUploadCertificateDialog())}),d(1,"mat-icon"),h(2,"edit"),c()()}}function SEt(t,n){if(t&1){let e=ie();d(0,"div",35)(1,"mat-card",36),$("click",function(){W(e);let r=S(4);return Y(r.openUploadCertificateDialog())}),h(2," Clique aqui para enviar o certificado da institui\xE7\xE3o. "),c()()}}function wEt(t,n){if(t&1&&H(0,"app-certificate-informations",37),t&2){let e=S(4);f("certificateInformation",e.certificateInformation)}}function EEt(t,n){if(t&1&&(d(0,"div",38),H(1,"app-sign-rule-form",39),c()),t&2){let e=S(4);m(),f("form",e.supportingDocSignerForm)("maxSignatures",1)}}function IEt(t,n){if(t&1){let e=ie();d(0,"div",20)(1,"div",2)(2,"h2",21),h(3,"Assinatura dos documentos auxiliares"),c(),d(4,"mat-icon",22),h(5,"info"),c(),k(6,CEt,3,0,"button",23),c(),d(7,"div",20)(8,"div")(9,"span",24),h(10,"Modo de assinatura"),c()(),d(11,"div",25)(12,"div",26)(13,"mat-radio-group",27),$("change",function(){W(e);let r=S(3);return Y(r.setSignatureModeConditionalGroup())}),d(14,"div",25)(15,"div",28)(16,"mat-radio-button",29),h(17,"Autom\xE1tico"),c()(),d(18,"div",30)(19,"mat-radio-button",10),h(20,"Manual"),c()()()()()(),k(21,SEt,3,0,"div",31),c(),k(22,wEt,1,1,"app-certificate-informations",32)(23,EEt,2,2,"div",33),c()}if(t&2){let e=S(3);m(6),f("ngIf",e.isAutomaticSignatureMode==!0&&e.certificateInformation),m(10),f("value",e.SupportingDocSignatureModes.Automatic),m(3),f("value",e.SupportingDocSignatureModes.Manual),m(2),f("ngIf",e.isAutomaticSignatureMode==!0&&!e.certificateInformation),m(),f("ngIf",e.isAutomaticSignatureMode==!0),m(),f("ngIf",e.isAutomaticSignatureMode==!1)}}function DEt(t,n){if(t&1){let e=ie();d(0,"div"),k(1,bEt,2,0,"mat-slide-toggle",11)(2,yEt,1,3,"app-ies-form",12)(3,xEt,1,2,"app-ies-form",13)(4,IEt,24,6,"div",14),d(5,"div",15)(6,"button",16),$("click",function(){W(e);let r=S(2);return Y(r.submit())}),h(7),c()()()}if(t&2){let e=S(2);m(),f("ngIf",e.iesType!=e.InstituteTypes.Issuer),m(),f("ngIf",e.iesType!=e.InstituteTypes.Issuer),m(),f("ngIf",e.iesType==e.InstituteTypes.Issuer),m(),f("ngIf",!e.id),m(2),f("disabled",e.form.invalid||e.form.pristine),m(),U(e.id?"Editar":"Cadastrar")}}function TEt(t,n){if(t&1){let e=ie();d(0,"form",5)(1,"mat-form-field",6)(2,"mat-label"),h(3,"Tipo da institui\xE7\xE3o"),c(),d(4,"mat-select",7),$("selectionChange",function(){W(e);let r=S();return Y(r.setConditionalGroup())}),k(5,vEt,3,4,"mat-option",8),c()(),k(6,DEt,8,6,"div",9),c()}if(t&2){let e=S();f("formGroup",e.form),m(5),f("ngForOf",e.instituteTypes),m(),f("ngIf",e.iesType)}}var DJ=(()=>{class t{get shouldUseSubscriptionIesData(){return this.form&&this.form.get("type").value!=Zr.Issuer&&this.form.get("shouldUseSubscriptionIesData").value==!0}constructor(e,i,r,o,a,s,l,u,p,g){this.fb=e,this.instituteService=i,this.dialog=r,this.messageService=o,this.route=a,this.router=s,this.changeDetectorRef=l,this.degreeFormService=u,this.spaControl=p,this.documentFlowService=g,this.InstituteTypes=Zr,this.SupportingDocSignatureModes=om,this.supportingDocSigner=null,this.certificateInformation=null,this.isAutomaticSignatureMode=null}ngOnInit(){this.id=this.route.parent.snapshot.paramMap.get("id"),this.id?(this.loading=!0,this.instituteService.get(this.id).subscribe(e=>{this.type=e.type,this.dadosIesEmissora=e.issuerData,this.dadosIesRegistradora=e.registryData,this.buildForm(),this.setConditionalGroup(),this.loading=!1},e=>this.loading=!1)):this.buildForm(),this.spaControl.selectedSubscription.subscribe(e=>{switch(this.subscription=e.subscription,this.subscription.type){case Zr.IssuerRegistry:this.instituteTypes=[Zr.IssuerRegistry,Zr.Issuer,Zr.Registry];break;case Zr.Issuer:this.instituteTypes=[Zr.Issuer];break;case Zr.Registry:this.instituteTypes=[Zr.Registry];break;default:break}})}ngAfterViewChecked(){this.changeDetectorRef.detectChanges()}buildForm(){this.registryDataForm=this.degreeFormService.getRegistryIesDataForm(this.dadosIesRegistradora),this.issuerDataForm=this.degreeFormService.getIssuerIesDataForm(this.dadosIesEmissora),this.form=this.fb.group({type:[this.type,[Se.required]],shouldUseSubscriptionIesData:[this.type!=Zr.Issuer&&this.id?this.dadosIesRegistradora==null:!1],supportingDocSignatureMode:[null,Se.required]}),this.id||(this.uploadCertificateForm=this.fb.group({uploadId:[null,Se.required],password:[]}),this.supportingDocSignerForm=this.documentFlowService.getSignRuleForm(null,!0))}setConditionalGroup(){if(this.form.get("type")?.value==null)return;let e="iesData";this.form.get("type").value!=Zr.Issuer?(this.iesType=gd.Registry,this.shouldUseSubscriptionIesData?this.form.removeControl(e):this.form.setControl(e,this.registryDataForm)):(this.iesType=gd.Issuer,this.form.setControl(e,this.issuerDataForm)),this.form.updateValueAndValidity()}setSignatureModeConditionalGroup(){if(this.form.get("supportingDocSignatureMode")?.value==null){this.isAutomaticSignatureMode=null;return}let e="uploadCertificate",i="supportingDocSigner";this.form.get("supportingDocSignatureMode")?.value==om.Automatic?(this.isAutomaticSignatureMode=!0,this.form.removeControl(i),this.form.setControl(e,this.uploadCertificateForm)):(this.isAutomaticSignatureMode=!1,this.form.setControl(i,this.supportingDocSignerForm),this.form.removeControl(e)),this.form.updateValueAndValidity()}submit(){if(this.form.invalid)return;let e=this.form.get("supportingDocSignatureMode").value,i={type:this.form.get("type").value,supportingDocSignatureMode:e},r=this.form.get("iesData");i.type!=Zr.Issuer?this.shouldUseSubscriptionIesData||(i.registryData=this.degreeFormService.getDadosIesRegistradoraModel(r)):i.issuerData=this.degreeFormService.getDadosIesEmissora(r),this.loading=!0;let o;if(this.id)o=this.instituteService.editInstituteData(this.id,i);else{switch(e){case om.Automatic:i.uploadedCertificate=this.uploadCertificateForm.value;break;case om.Manual:i.supportingDocSigner=this.documentFlowService.getSignRuleModel(this.form.get("supportingDocSigner"));break;default:break}o=this.instituteService.create(i)}o.subscribe(a=>{this.router.navigate([".."],{relativeTo:this.route}),this.messageService.showSuccess("Instituto cadastrado com sucesso")},a=>this.loading=!1)}openUploadCertificateDialog(){this.dialog.open(w6,{width:"800px",data:{mode:this.form.get("supportingDocSignatureMode").value}}).afterClosed().toPromise().then(i=>{i&&(this.certificateInformation=i.information,this.uploadCertificateForm.setValue(i.upload),this.form.updateValueAndValidity())})}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(Sg),E(Dn),E(Bi),E(Ut),E(lt),E(Di),E(Gn),E(di),E(oa))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-institute-create"]],decls:7,vars:2,consts:[[1,"box-light"],[3,"show"],[1,"d-flex","align-items-center"],[1,"mb-0"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"mt-2","col-4","row"],["formControlName","type",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"value"],["formControlName","shouldUseSubscriptionIesData",3,"change",4,"ngIf"],[3,"hidden","form","iesType",4,"ngIf"],[3,"form","iesType",4,"ngIf"],["class","mt-2",4,"ngIf"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"click","disabled"],["formControlName","shouldUseSubscriptionIesData",3,"change"],[3,"hidden","form","iesType"],[3,"form","iesType"],[1,"mt-2"],[1,"mt-2","mb-0"],["matTooltip","S\xE3o considerados arquivos auxiliares do diploma digital todos aqueles que n\xE3o s\xE3o o XML de Documenta\xE7\xE3o Acad\xEAmica para Emiss\xE3o e Registro, o XML de Hist\xF3ricos Escolar Digital, e o XML do Diplomado. Logo, a Lista de Diplomas Anulados e Arquivo de Fiscaliza\xE7\xE3o s\xE3o considerados documentos auxiliares.",1,"ms-2","mt-2"],["mat-icon-button","","class","ms-auto","matTooltip","Alterar certificado",3,"click",4,"ngIf"],[1,"prop-label"],[1,"row"],[1,"col-xl-7","text-truncate"],["aria-label","Select an option","color","primary","formControlName","supportingDocSignatureMode",1,"d-flex","mt-2",3,"change"],[1,"col-lg-6"],[1,"me-3",3,"value"],[1,"col-lg-6","mt-3","mt-lg-0"],["class","row justify-content-center",4,"ngIf"],[3,"certificateInformation",4,"ngIf"],["class","col-12 col-md-6",4,"ngIf"],["mat-icon-button","","matTooltip","Alterar certificado",1,"ms-auto",3,"click"],[1,"row","justify-content-center"],["appearance","outlined",1,"bg-warn","mx-0","mat-elevation-z0","mat-3","text-white","pointer","warning-card",3,"click"],[3,"certificateInformation"],[1,"col-12","col-md-6"],["requiredSignaturesReadonly","true","onlyCompanySignatures","true",3,"form","maxSignatures"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),d(2,"div",2)(3,"h2",3),h(4,"Dados da Institui\xE7\xE3o"),c()(),k(5,TEt,7,3,"form",4),c(),H(6,"router-outlet")),i&2&&(m(),f("show",r.loading),m(4),f("ngIf",r.form))},dependencies:[Vt,Ee,zt,it,pt,dt,Tt,He,Ze,fi,bt,jt,ws,Mi,li,_n,yi,Fr,Li,ep,em,gI,ey,S6,cm]})}}return t})();var TJ="/api/inspection-files",E6=(()=>{class t{constructor(e){this.http=e}generate(e){return this.http.post(`${TJ}`,e)}getTicket(e){return this.http.get(`${TJ}/${e}/xml-ticket`)}listByInstituteId(e){return{listPaginated:i=>this.http.get(`${TJ}`,{params:i.getHttpParams().append("instituteId",e??"")})}}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function AEt(t,n){t&1&&(d(0,"h2"),h(1,"Gerar arquivo de fiscaliza\xE7\xE3o"),c())}function kEt(t,n){if(t&1&&(d(0,"mat-option",15),h(1,"Emissora"),c()),t&2){let e=S(2);f("value",e.InspectionFileTypes.Issuer)}}function MEt(t,n){if(t&1&&(d(0,"mat-option",15),h(1,"Registradora"),c()),t&2){let e=S(2);f("value",e.InspectionFileTypes.Registry)}}function FEt(t,n){t&1&&(d(0,"div")(1,"mat-checkbox",16),h(2,"Incluir URL do registro acad\xEAmico"),c()())}function REt(t,n){if(t&1&&(d(0,"form",4)(1,"div",5)(2,"spa-prop",6),h(3),c(),d(4,"spa-prop",7),h(5),c()(),d(6,"mat-form-field",8)(7,"mat-label"),h(8,"Tipo de Arquivo de Fiscaliza\xE7\xE3o"),c(),d(9,"mat-select",9),k(10,kEt,2,1,"mat-option",10)(11,MEt,2,1,"mat-option",10),c()(),d(12,"div",5)(13,"div",11),H(14,"app-form-date-picker",12),c(),d(15,"div",11),H(16,"app-form-date-picker",13),c()(),k(17,FEt,3,0,"div",14),c()),t&2){let e=S();f("formGroup",e.form),m(3),U(e.iesCode),m(2),U(e.iesName),m(5),f("ngIf",e.instituteType!=e.SubscriptionTypes.Registry),m(),f("ngIf",e.instituteType!=e.SubscriptionTypes.Issuer),m(3),f("formGroup",e.form),m(2),f("formGroup",e.form),m(),f("ngIf",e.form.get("type").value==e.InspectionFileTypes.Issuer)}}function PEt(t,n){if(t&1){let e=ie();d(0,"button",17),$("click",function(){W(e);let r=S();return Y(r.submit())}),d(1,"mat-icon"),h(2,"add"),c(),h(3," Gerar "),c(),d(4,"button",18),$("click",function(){W(e);let r=S();return Y(r.cancel())}),h(5," Cancelar "),c()}if(t&2){let e=S();f("disabled",e.form.invalid)}}var $ye=(()=>{class t{constructor(e,i,r,o,a){this.data=e,this.dialogRef=i,this.fb=r,this.messageService=o,this.inspectionFileService=a,this.InspectionFileTypes=sI,this.SubscriptionTypes=Zr,this.instituteType=e.instituteType,this.iesCode=e.iesCode,this.iesName=e.iesName}ngOnInit(){this.form=this.fb.group({type:[null,[Se.required]],iesCode:[this.iesCode],startDate:[null,[Se.required,rr.stringDateValidator()]],endDate:[null,[Se.required,rr.stringDateValidator()]],includeAcademicRegistryUrl:[!1]})}convertDate(e){return e.split("/").reverse().join("-")}submit(){this.loading=!0;let e=Object.assign({},this.form.value);e.startDate=this.convertDate(e.startDate),e.endDate=this.convertDate(e.endDate),this.inspectionFileService.generate(e).subscribe(i=>{this.loading=!1,this.messageService.showSuccess("Iniciada a gera\xE7\xE3o do arquivo de fiscaliza\xE7\xE3o"),this.dialogRef.close(!0)},i=>this.loading=!1)}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(E(mr),E(Qr),E(Ti),E(Bi),E(E6))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-dialog-generate-inspection-file"]],decls:7,vars:4,consts:[["titleTemplate",""],["contentTemplate",""],["actionsTemplate",""],[3,"titleTemplate","contentTemplate","actionsTemplate","isLoading"],[3,"formGroup"],[1,"row"],["label","C\xF3digo MEC",1,"col-4"],["label","Nome",1,"col-8"],[1,"input-stretch"],["formControlName","type"],[3,"value",4,"ngIf"],[1,"col-6"],["controlName","startDate","placeholder","Data de in\xEDcio",3,"formGroup"],["controlName","endDate","placeholder","Data final",3,"formGroup"],[4,"ngIf"],[3,"value"],["formControlName","includeAcademicRegistryUrl"],["mat-raised-button","","color","accent","tabindex","-1",3,"click","disabled"],["type","button","mat-button","","color","primary","tabindex","-1",1,"ms-3",3,"click"]],template:function(i,r){if(i&1&&(H(0,"app-dialog-template",3),k(1,AEt,2,0,"ng-template",null,0,Ii)(3,REt,18,8,"ng-template",null,1,Ii)(5,PEt,6,1,"ng-template",null,2,Ii)),i&2){let o=je(2),a=je(4),s=je(6);f("titleTemplate",o)("contentTemplate",a)("actionsTemplate",s)("isLoading",r.loading)}},dependencies:[Ee,zt,it,pt,dt,Tt,He,Ze,bt,jt,Mi,Co,wn,Li,xd,Uo]})}}return t})();var qye="/api/cancellation-lists",Wye=(()=>{class t{constructor(e){this.http=e}getCancellationListTicket(e){return this.http.get(`${qye}/${e}/xml-ticket`)}listByInstituteId(e){return{listPaginated:i=>this.http.get(`${qye}/institute/${e}`,{params:i.getHttpParams()})}}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yye=(()=>{class t{constructor(){this.config={animationType:IL.circleSwish}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Kye=(()=>{class t{transform(e){switch(e){case sI.Issuer:return"Emissora";case sI.Registry:return"Registradora";default:return""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=oi({name:"inspectionFileType",type:t,pure:!0})}}return t})();function VEt(t,n){if(t&1&&(d(0,"span"),h(1),ce(2,"CnpjPipe"),c()),t&2){let e=S(2);m(),U(xe(2,1,e.iesData.cnpj))}}function BEt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2);m(),Ih(" ",e.iesData.endereco.logradouro,", ",e.iesData.endereco.bairro," - ",e.iesData.endereco.nomeMunicipio,", ",e.iesData.endereco.uf," ")}}function jEt(t,n){if(t&1&&(d(0,"div",35)(1,"spa-prop",47),h(2),c()()),t&2){let e=S(2);m(2),U(e.getRegulatoryActDescription(e.iesData.recredenciamento))}}function HEt(t,n){if(t&1&&(d(0,"div",35)(1,"spa-prop",48),h(2),c()()),t&2){let e=S(2);m(2),ue(" ",e.getRegulatoryActDescription(e.iesData.renovacaoDeRecredenciamento)," ")}}function zEt(t,n){if(t&1&&(d(0,"div",35)(1,"spa-prop",49)(2,"span"),h(3),ce(4,"CnpjPipe"),c()()()),t&2){let e=S(2);m(3),Do("",e.iesData.mantenedora.razaoSocial," (",xe(4,2,e.iesData.mantenedora.cnpj),")")}}function UEt(t,n){if(t&1&&(d(0,"div",9)(1,"div",44)(2,"spa-prop",50),h(3),c()(),d(4,"div",44)(5,"spa-prop",51),h(6),ce(7,"date"),c()()()),t&2){let e=S(2);m(3),U(e.institute.currentCancellationListSequenceNumber),m(3),U(Bt(7,2,e.institute.nextCancellationListGenerateDate,"dd/MM/yyyy"))}}function GEt(t,n){if(t&1&&(d(0,"div")(1,"div",9)(2,"div",35)(3,"spa-prop",36),h(4),c()(),d(5,"div",35)(6,"spa-prop",37),h(7),c()(),d(8,"div",35)(9,"spa-prop",38),h(10),ce(11,"subscriptionType"),c()(),d(12,"div",35)(13,"spa-prop",39),k(14,VEt,3,3,"span",8),c()(),d(15,"div",35)(16,"spa-prop",40),k(17,BEt,2,4,"span",8),c()(),d(18,"div",35)(19,"spa-prop",41),h(20),c()(),k(21,jEt,3,1,"div",42)(22,HEt,3,1,"div",42)(23,zEt,5,4,"div",42),c(),k(24,UEt,8,5,"div",43),d(25,"div",9)(26,"div",44)(27,"spa-prop",45),h(28),ce(29,"date"),c()(),d(30,"div",44)(31,"spa-prop",46),h(32),ce(33,"date"),c()()()()),t&2){let e=S();m(4),U(e.iesData.codigoMEC),m(3),U(e.iesData.nome),m(3),U(xe(11,12,e.institute.type)),m(4),f("ngIf",e.iesData.cnpj),m(3),f("ngIf",e.iesData),m(3),U(e.getRegulatoryActDescription(e.iesData.credenciamento)),m(),f("ngIf",e.iesData.recredenciamento),m(),f("ngIf",e.iesData.renovacaoDeRecredenciamento),m(),f("ngIf",e.iesData&&e.iesData.mantenedora),m(),f("ngIf",!e.isIssuer),m(4),U(Bt(29,14,e.institute.creationDate,"short")),m(4),U(Bt(33,17,e.institute.updateDate,"short"))}}function $Et(t,n){if(t&1&&(d(0,"div",44)(1,"spa-prop",56),h(2),c()()),t&2){let e=S(2);m(2),U(e.certificateInformation.subjectName)}}function qEt(t,n){if(t&1&&(d(0,"div")(1,"div",9)(2,"div",44)(3,"spa-prop",37),h(4),c()(),k(5,$Et,3,1,"div",52),c(),d(6,"div",9)(7,"div",44)(8,"spa-prop",53),h(9),c()(),d(10,"div",44)(11,"spa-prop",54),h(12),c()()(),d(13,"div",9)(14,"div",44)(15,"spa-prop",55),h(16),ce(17,"date"),c()()()()),t&2){let e=S();m(4),U(e.certificateInformation.companyName!=null?e.certificateInformation.companyName:e.certificateInformation.subjectName),m(),f("ngIf",e.certificateInformation.isCompany),m(4),U(e.certificateInformation.isCompany?"Pessoa jur\xEDdica":"Pessoa f\xEDsica"),m(3),U(e.certificateInformation.certificateType),m(4),U(Bt(17,5,e.certificateInformation.validityEnd,"dd/MM/yyyy"))}}function WEt(t,n){if(t&1&&(d(0,"div",44)(1,"spa-prop",39),h(2),ce(3,"CnpjPipe"),c()()),t&2){let e=S(2);m(2),U(xe(3,1,e.supportingDocumentSigner.companyIdentifier))}}function YEt(t,n){t&1&&(d(0,"div",63)(1,"small"),h(2,"Signat\xE1rio"),c()())}function KEt(t,n){t&1&&H(0,"mat-divider")}function XEt(t,n){if(t&1&&(he(0),k(1,YEt,3,0,"div",58)(2,KEt,1,0,"mat-divider",8),d(3,"div",9)(4,"div",59)(5,"spa-prop",37),h(6),c()(),d(7,"div",59)(8,"spa-prop",60),h(9),ce(10,"cpf"),c()(),d(11,"div",61)(12,"spa-prop",62),h(13),c()()(),fe()),t&2){let e=n.$implicit,i=S(2);m(),f("ngIf",i.supportingDocumentSigner.signers.length>1),m(),f("ngIf",i.supportingDocumentSigner.signers.length>1),m(4),U(e.name),m(3),U(xe(10,5,e.cpf)),m(4),U(e.email)}}function QEt(t,n){if(t&1&&(d(0,"div")(1,"div",9),k(2,WEt,4,3,"div",52),c(),k(3,XEt,14,7,"ng-container",57),c()),t&2){let e=S();m(2),f("ngIf",e.supportingDocumentSigner.companyIdentifier!=null),m(),f("ngForOf",e.supportingDocumentSigner.signers)}}function ZEt(t,n){if(t&1&&(d(0,"div"),H(1,"app-webhook-settings",64),c()),t&2){let e=S();m(),f("instituteId",e.instituteId)("shouldUseSubscriptionWebhookSettings",e.webhookSettings.shouldUseSubscriptionWebhookSettings)("settings",e.webhookSettings.webhook)("canManage",e.canManage)}}function JEt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data"),c())}function eIt(t,n){if(t&1&&(d(0,"mat-cell",71),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.date,"short")," ")}}function tIt(t,n){t&1&&(d(0,"mat-header-cell",72),h(1,"Opera\xE7\xE3o"),c())}function iIt(t,n){if(t&1&&(d(0,"mat-cell",72),h(1),ce(2,"eventType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.type)," ")}}function nIt(t,n){t&1&&(d(0,"mat-header-cell",72),h(1,"Detalhes"),c())}function rIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.details," ")}}function oIt(t,n){if(t&1&&(d(0,"div")(1,"lac-table",65)(2,"div",23)(3,"div",24)(4,"h3"),h(5,"Nenhum evento encontrado."),c()()(),he(6,66),k(7,JEt,2,0,"mat-header-cell",26)(8,eIt,3,4,"mat-cell",67),fe(),he(9,30),k(10,tIt,2,0,"mat-header-cell",68)(11,iIt,3,3,"mat-cell",69),fe(),he(12,70),k(13,nIt,2,0,"mat-header-cell",68)(14,rIt,2,1,"mat-cell",27),fe(),c()()),t&2){let e=S();m(),f("dataSource",e.events)("disableSearch",!0)}}function aIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function sIt(t,n){t&1&&(d(0,"mat-icon",80),h(1,"access_time"),c())}function lIt(t,n){t&1&&(d(0,"mat-icon",81),h(1,"check_circle"),c())}function cIt(t,n){if(t&1&&(d(0,"mat-cell"),he(1,77),k(2,sIt,2,0,"mat-icon",78)(3,lIt,2,0,"mat-icon",79),fe(),c()),t&2){let e=n.$implicit,i=S(2);m(),f("ngSwitch",e.status),m(),f("ngSwitchCase",i.CancellationListStatus.Created),m(),f("ngSwitchCase",i.CancellationListStatus.Signed)}}function dIt(t,n){t&1&&(d(0,"mat-header-cell",82),h(1,"N\xFAmero de sequ\xEAncia"),c())}function uIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),c()),t&2){let e=n.$implicit;m(),ue(" ",e.sequenceNumber," ")}}function mIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data de cria\xE7\xE3o"),c())}function pIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.creationDate,"dd/MM/yyyy")," ")}}function hIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data m\xE1xima da pr\xF3xima atualiza\xE7\xE3o"),c())}function fIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.maximumNextUpdateDate,"dd/MM/yyyy")," ")}}function gIt(t,n){t&1&&H(0,"mat-header-cell")}function _It(t,n){if(t&1){let e=ie();d(0,"button",86),$("click",function(){W(e);let r=S().$implicit,o=S(2);return Y(o.getCancellationListXml(r))}),d(1,"mat-icon",87),h(2,"get_app"),c()()}}function vIt(t,n){if(t&1){let e=ie();d(0,"button",88),$("click",function(){W(e);let r=S().$implicit,o=S(2);return Y(o.viewOnSigner(r.signerDocumentUrl))}),d(1,"mat-icon",89),h(2,"launch"),c()()}}function bIt(t,n){if(t&1){let e=ie();d(0,"button",90),$("click",function(){W(e);let r=S().$implicit,o=S(2);return Y(o.viewOnSigner(r.signerDocumentUrl))}),d(1,"mat-icon",91),H(2,"mat-icon",92),c()()}}function yIt(t,n){if(t&1&&(d(0,"mat-cell"),k(1,_It,3,0,"button",83)(2,vIt,3,0,"button",84)(3,bIt,3,0,"button",85),c()),t&2){let e=n.$implicit,i=S(2);m(),f("ngIf",e.status==i.CancellationListStatus.Signed),m(),f("ngIf",e.status==i.CancellationListStatus.Signed&&e.signerDocumentId!=null),m(),f("ngIf",e.status==i.CancellationListStatus.Created)}}function xIt(t,n){if(t&1&&(d(0,"mat-tab",73)(1,"div",3)(2,"lac-table",74)(3,"div",23)(4,"div",24)(5,"h3"),h(6,"Nenhuma lista de diploma anulado encontrada."),c()()(),he(7,25),k(8,aIt,2,0,"mat-header-cell",26)(9,cIt,4,3,"mat-cell",27),fe(),he(10,75),k(11,dIt,2,0,"mat-header-cell",33)(12,uIt,2,1,"mat-cell",27),fe(),he(13,31),k(14,mIt,2,0,"mat-header-cell",26)(15,pIt,3,4,"mat-cell",27),fe(),he(16,76),k(17,hIt,2,0,"mat-header-cell",26)(18,fIt,3,4,"mat-cell",27),fe(),he(19,34),k(20,gIt,1,0,"mat-header-cell",26)(21,yIt,4,3,"mat-cell",27),fe(),c()()()),t&2){let e=S();m(2),f("dataSource",e.cancellationListsDataSource)("disableSearch",!0)("ngxLoadingConfig",e.Loading.config)}}function CIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Status"),c())}function SIt(t,n){t&1&&(d(0,"mat-icon",96),h(1,"sync"),c())}function wIt(t,n){t&1&&(d(0,"mat-icon",80),h(1,"access_time"),c())}function EIt(t,n){t&1&&(d(0,"mat-icon",97),h(1,"check_circle"),c())}function IIt(t,n){t&1&&(d(0,"mat-icon",81),h(1,"check_circle"),c())}function DIt(t,n){t&1&&(d(0,"mat-icon",98),h(1,"cancel"),c())}function TIt(t,n){if(t&1&&(d(0,"mat-cell"),he(1,77),k(2,SIt,2,0,"mat-icon",93)(3,wIt,2,0,"mat-icon",78)(4,EIt,2,0,"mat-icon",94)(5,IIt,2,0,"mat-icon",79)(6,DIt,2,0,"mat-icon",95),fe(),c()),t&2){let e=n.$implicit,i=S();m(),f("ngSwitch",e.status),m(),f("ngSwitchCase",i.InspectionFileStatus.Started),m(),f("ngSwitchCase",i.InspectionFileStatus.Created),m(),f("ngSwitchCase",i.InspectionFileStatus.Generated),m(),f("ngSwitchCase",i.InspectionFileStatus.Signed),m(),f("ngSwitchCase",i.InspectionFileStatus.Error)}}function AIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data de in\xEDcio"),c())}function kIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.startDate,"dd/MM/yyyy")," ")}}function MIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data final"),c())}function FIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.endDate,"dd/MM/yyyy")," ")}}function RIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Tipo"),c())}function PIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"inspectionFileType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.type)," ")}}function NIt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Data de cria\xE7\xE3o"),c())}function OIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.creationDate,"short"))}}function LIt(t,n){t&1&&(d(0,"mat-header-cell",82),h(1,"Data de atualiza\xE7\xE3o"),c())}function VIt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),U(Bt(2,1,e.updateDate,"short"))}}function BIt(t,n){t&1&&H(0,"mat-header-cell")}function jIt(t,n){if(t&1&&(d(0,"span"),h(1),c()),t&2){let e=S(2).$implicit;m(),U(e.errorReason)}}function HIt(t,n){if(t&1){let e=ie();d(0,"button",101),$("click",function(){W(e);let r=S(2).$implicit,o=S();return Y(o.getInspectionFileXml(r))}),d(1,"mat-icon",102),h(2,"get_app"),c()()}}function zIt(t,n){if(t&1){let e=ie();d(0,"button",88),$("click",function(){W(e);let r=S(2).$implicit,o=S();return Y(o.viewOnSigner(r.signerDocumentUrl))}),d(1,"mat-icon",89),h(2,"launch"),c()()}}function UIt(t,n){if(t&1){let e=ie();d(0,"button",103),$("click",function(){W(e);let r=S(2).$implicit,o=S();return Y(o.viewOnSigner(r.signerDocumentUrl))}),d(1,"mat-icon",104),H(2,"mat-icon",92),c()()}}function GIt(t,n){if(t&1&&(d(0,"div"),k(1,jIt,2,1,"span",8)(2,HIt,3,0,"button",99)(3,zIt,3,0,"button",84)(4,UIt,3,0,"button",100),c()),t&2){let e=S().$implicit,i=S();m(),f("ngIf",e.status==i.InspectionFileStatus.Error),m(),f("ngIf",e.status==i.InspectionFileStatus.Signed),m(),f("ngIf",e.status==i.InspectionFileStatus.Signed&&e.signerDocumentId!=null),m(),f("ngIf",e.status==i.InspectionFileStatus.Created)}}function $It(t,n){if(t&1&&(d(0,"mat-cell"),k(1,GIt,5,4,"div",8),c()),t&2){let e=n.$implicit,i=S();m(),f("ngIf",e.status!=i.InspectionFileStatus.Started)}}var Xye=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p,g){this.route=e,this.instituteService=i,this.dialog=r,this.router=o,this.routeHelper=a,this.cancellationListService=s,this.spaControl=l,this.degreeFormService=u,this.Loading=p,this.inspectionFileService=g,this.SubscriptionTypes=Zr,this.SupportingDocSignatureModes=om,this.InspectionFileStatus=HZ,this.CancellationListStatus=UZ,this.$toUnsubscribe=[],this.lazyLoadedTables=[b_.CancellationList,b_.InspectionFile],this.tableShouldBeLoaded={}}ngOnInit(){this.instituteId=this.route.snapshot.paramMap.get("id"),this.resetLazyLoadedTables(),this.load(),this.canManage=this.spaControl.selectedSubscriptionSnapshot.permissions.some(e=>e=="ManageInstituteCertificate"||e=="ManageInstituteIntegrations"),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>this.onRouteChange(e)))}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}load(){this.loading=!0,this.instituteService.get(this.instituteId).subscribe(e=>{this.institute=e,this.supportingDocSignatureMode=this.institute.supportingDocSignatureMode,this.certificateInformation=this.institute.certificateInformation,this.supportingDocumentSigner=this.institute.supportingDocumentSigner,this.isIssuer=this.institute.type==Zr.Issuer,this.iesData=this.institute.issuerData??this.institute.registryData,this.webhookSettings=this.institute.webhookSettings,this.loading=!1},e=>this.loading=!1),this.getEvents()}getEvents(){this.loadingEvent=!0,this.instituteService.getEvents(this.instituteId).subscribe(e=>{this.events=e,this.loadingEvent=!1},e=>this.loadingEvent=!1)}onRouteChange(e){if(this.institute&&e.activatedRoutes.length>0){var i=e.activatedRoutes[e.activatedRoutes.length-1];if(i.name=="InstituteDetail")try{this.load()}catch{}}}startEdit(){this.router.navigate(["edit"],{relativeTo:this.route})}startSupportingDocSignatureEdit(){this.dialog.open(w6,{width:"800px",data:{instituteId:this.institute.id,mode:this.supportingDocSignatureMode,certificate:this.certificateInformation,signer:this.supportingDocumentSigner}}).afterClosed().toPromise().then(i=>{i&&(this.supportingDocSignatureMode=i.mode,this.certificateInformation=i.certificate,this.supportingDocumentSigner=i.signer,this.resetLazyLoadedTables(),this.getEvents())})}getRegulatoryActDescription(e){return this.degreeFormService.getRegulatoryActDescription(e)}getCancellationListXml(e){this.loading=!0,this.cancellationListService.getCancellationListTicket(e.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}viewOnSigner(e){window.open(e,"_blank")}getInspectionFileXml(e){this.loading=!0,this.inspectionFileService.getTicket(e.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}onTabIndexChange(e){switch(e){case b_.CancellationList:this.lazyUpdateDataSources(b_.CancellationList);break;case b_.InspectionFile:this.lazyUpdateDataSources(b_.InspectionFile);break}}openInspectionFileGenerateDialog(){this.dialog.open($ye,{width:"600px",data:{instituteType:this.institute.type,iesCode:this.iesData.codigoMEC,iesName:this.iesData.nome}}).afterClosed().toPromise().then(i=>{i&&(this.loadInspectionFileDataSource(),this.getEvents())})}loadInspectionFileDataSource(){let e=this.inspectionFileService.listByInstituteId(this.instituteId);this.inspectionFileDataSource=new Al(e)}refreshInspectionFileDataSource(){this.loadInspectionFileDataSource()}lazyUpdateDataSources(e){if(this.tableShouldBeLoaded[e]){if(e==b_.CancellationList){let i=this.cancellationListService.listByInstituteId(this.instituteId);this.cancellationListsDataSource=new Al(i)}else e==b_.InspectionFile&&this.loadInspectionFileDataSource();this.tableShouldBeLoaded[e]=!1}}resetLazyLoadedTables(){this.lazyLoadedTables.forEach(e=>this.tableShouldBeLoaded[e]=!0)}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Sg),E(Dn),E(lt),E(ro),E(Wye),E(di),E(Gn),E(Yye),E(E6))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-institute-detail"]],decls:70,vars:18,consts:[[3,"hidden"],["mat-stretch-tabs","false","animationDuration","0",3,"selectedIndexChange"],["label","Detalhes da institui\xE7\xE3o"],[1,"overflow-hidden"],[1,"box-light"],[3,"show"],[3,"refresh","edit","showEditButton"],["header",""],[4,"ngIf"],[1,"row"],[1,"col-md-6"],[3,"edit","hideRefreshButton","showEditButton"],[3,"hideRefreshButton"],["box-title",""],["label","Listas de diplomas anulados",4,"ngIf"],["label","Arquivos de fiscaliza\xE7\xE3o"],[1,"toolbar-column-1"],["mat-icon-button","","matTooltip","Gerar arquivo de fiscaliza\xE7\xE3o",3,"click"],["aria-label","Generate"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],[1,"my-0"],["id","inspectionFilesTable","matSort","","matSortActive","updateDate","matSortDirection","desc",1,"history-table","centered-cells",3,"dataSource","disableSearch","ngxLoadingConfig"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","status"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","type"],["matColumnDef","creationDate"],["matColumnDef","updateDate"],["mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","action"],[1,"col-md-3"],["label","C\xF3digo MEC"],["label","Nome"],["label","Tipo"],["label","CNPJ"],["label","Endere\xE7o"],["label","Credenciamento"],["class","col-md-3",4,"ngIf"],["class","row",4,"ngIf"],[1,"col"],["label","Criada em"],["label","Atualizada em"],["label","Recredenciamento"],["label","Renova\xE7\xE3o de recredenciamento"],["label","Mantenedora"],["label","N\xFAmero de sequ\xEAncia atual"],["label","Data da pr\xF3xima lista de anula\xE7\xE3o"],["class","col",4,"ngIf"],["label","Tipo do titular do certificado"],["label","Tipo do certificado"],["label","Validade"],["label","Representante legal"],[4,"ngFor","ngForOf"],["class","small-label-container text-primary",4,"ngIf"],[1,"col-12","col-sm-6","col-lg-4","col-md-12"],["label","CPF"],[1,"col-12","col-sm-12","col-lg-4","col-md-12"],["label","E-mail"],[1,"small-label-container","text-primary"],[3,"instituteId","shouldUseSubscriptionWebhookSettings","settings","canManage"],["id","eventsTable","matSort","","matSortActive","date","matSortDirection","desc",1,"history-table","centered-header-cells",3,"dataSource","disableSearch"],["matColumnDef","date"],["class","d-none d-md-flex justify-content-center",4,"matCellDef"],["class","d-none d-md-flex justify-content-start",4,"matHeaderCellDef"],["class","d-none d-md-flex justify-content-start",4,"matCellDef"],["matColumnDef","details"],[1,"d-none","d-md-flex","justify-content-center"],[1,"d-none","d-md-flex","justify-content-start"],["label","Listas de diplomas anulados"],["id","cancellationListsTable","matSort","","matSortActive","sequenceNumber","matSortDirection","desc",1,"history-table","centered-cells",3,"dataSource","disableSearch","ngxLoadingConfig"],["matColumnDef","sequenceNumber"],["matColumnDef","maximumNextUpdateDate"],[3,"ngSwitch"],["aria-label","Created","matTooltip","Aguardando assinatura","color","primary",4,"ngSwitchCase"],["aria-label","Signed","matTooltip","Assinado","color","primary",4,"ngSwitchCase"],["aria-label","Created","matTooltip","Aguardando assinatura","color","primary"],["aria-label","Signed","matTooltip","Assinado","color","primary"],["mat-sort-header",""],["mat-icon-button","","matTooltip","Baixar lista de anula\xE7\xE3o",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Ver no assinador",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Assinar lista de anula\xE7\xE3o",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Baixar lista de anula\xE7\xE3o",3,"click"],["aria-label","Download cancellation list"],["mat-icon-button","","matTooltip","Ver no assinador",3,"click"],["aria-label","View on signer"],["mat-icon-button","","matTooltip","Assinar lista de anula\xE7\xE3o",3,"click"],["aria-label","Sign cancellation list"],["aria-label","sign","svgIcon","sign"],["aria-label","Started","matTooltip","Iniciado",4,"ngSwitchCase"],["aria-label","Active","matTooltip","Gerado","color","primary",4,"ngSwitchCase"],["aria-label","Error","matTooltip","Erro","color","warn",4,"ngSwitchCase"],["aria-label","Started","matTooltip","Iniciado"],["aria-label","Active","matTooltip","Gerado","color","primary"],["aria-label","Error","matTooltip","Erro","color","warn"],["mat-icon-button","","matTooltip","Baixar arquivo de fiscaliza\xE7\xE3o",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Assinar arquivo de fiscaliza\xE7\xE3o",3,"click",4,"ngIf"],["mat-icon-button","","matTooltip","Baixar arquivo de fiscaliza\xE7\xE3o",3,"click"],["aria-label","Download inspection file"],["mat-icon-button","","matTooltip","Assinar arquivo de fiscaliza\xE7\xE3o",3,"click"],["aria-label","Sign inspection file"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"mat-tab-group",1),$("selectedIndexChange",function(a){return r.onTabIndexChange(a)}),d(2,"mat-tab",2)(3,"div",3)(4,"div",4),H(5,"ngx-loading",5),d(6,"app-box-title",6),$("refresh",function(){return r.load()})("edit",function(){return r.startEdit()}),d(7,"span",7),h(8,"Detalhes da institui\xE7\xE3o"),c()(),k(9,GEt,34,20,"div",8),c(),d(10,"div",9)(11,"div",10)(12,"div",4),H(13,"ngx-loading",5),d(14,"app-box-title",11),$("edit",function(){return r.startSupportingDocSignatureEdit()}),d(15,"span",7),h(16,"Assinatura dos documentos auxiliares"),c()(),k(17,qEt,18,8,"div",8)(18,QEt,4,2,"div",8),c()(),d(19,"div",10)(20,"div",4),H(21,"ngx-loading",5),d(22,"app-box-title",12)(23,"span",7),h(24,"Integra\xE7\xE3o"),c()(),k(25,ZEt,2,4,"div",8),c()()()(),d(26,"spa-box"),H(27,"ngx-loading",5),d(28,"span",13),h(29,"Eventos"),c(),k(30,oIt,15,2,"div",8),c()(),k(31,xIt,22,3,"mat-tab",14),d(32,"mat-tab",15)(33,"div",4)(34,"div",16)(35,"button",17),$("click",function(){return r.openInspectionFileGenerateDialog()}),d(36,"mat-icon",18),h(37,"add"),c()(),d(38,"button",19),$("click",function(){return r.refreshInspectionFileDataSource()}),d(39,"mat-icon",20),h(40,"refresh"),c()()(),H(41,"hr",21),d(42,"div",3)(43,"lac-table",22)(44,"div",23)(45,"div",24)(46,"h3"),h(47,"Nenhum arquivo de fiscaliza\xE7\xE3o gerado."),c()()(),he(48,25),k(49,CIt,2,0,"mat-header-cell",26)(50,TIt,7,6,"mat-cell",27),fe(),he(51,28),k(52,AIt,2,0,"mat-header-cell",26)(53,kIt,3,4,"mat-cell",27),fe(),he(54,29),k(55,MIt,2,0,"mat-header-cell",26)(56,FIt,3,4,"mat-cell",27),fe(),he(57,30),k(58,RIt,2,0,"mat-header-cell",26)(59,PIt,3,3,"mat-cell",27),fe(),he(60,31),k(61,NIt,2,0,"mat-header-cell",26)(62,OIt,3,4,"mat-cell",27),fe(),he(63,32),k(64,LIt,2,0,"mat-header-cell",33)(65,VIt,3,4,"mat-cell",27),fe(),he(66,34),k(67,BIt,1,0,"mat-header-cell",26)(68,$It,2,1,"mat-cell",27),fe(),c()()()()()(),H(69,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(5),f("show",r.loading),m(),f("showEditButton",r.canManage),m(3),f("ngIf",r.institute),m(4),f("show",r.loading),m(),f("hideRefreshButton",!0)("showEditButton",r.canManage),m(3),f("ngIf",r.supportingDocSignatureMode==r.SupportingDocSignatureModes.Automatic),m(),f("ngIf",r.supportingDocSignatureMode==r.SupportingDocSignatureModes.Manual),m(3),f("show",r.loading),m(),f("hideRefreshButton",!0),m(3),f("ngIf",r.institute),m(2),f("show",r.loadingEvent),m(3),f("ngIf",r.events),m(),f("ngIf",!r.isIssuer),m(12),f("dataSource",r.inspectionFileDataSource)("disableSearch",!0)("ngxLoadingConfig",r.Loading.config))},dependencies:[Vt,Ee,vs,rl,He,fi,kc,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,wn,_n,yi,Hl,mc,NB,eh,rn,Zo,Hx,Xb,cm,Kye],styles:[".mat-column-date[_ngcontent-%COMP%], .mat-column-startDate[_ngcontent-%COMP%], .mat-column-endDate[_ngcontent-%COMP%], .mat-column-creationDate[_ngcontent-%COMP%], .mat-column-updateDate[_ngcontent-%COMP%]{flex:0 0 200px!important}#eventsTable[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{flex:0 0 400px!important}#inspectionFilesTable[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{flex:0 0 200px!important}.mat-column-status[_ngcontent-%COMP%]{flex:0 0 150px}"]})}}return t})(),b_=function(t){return t[t.Details=0]="Details",t[t.CancellationList=1]="CancellationList",t[t.InspectionFile=2]="InspectionFile",t}(b_||{});function qIt(t,n){if(t&1){let e=ie();d(0,"div",22)(1,"div",23)(2,"p",24)(3,"span"),h(4,"Envie um arquivo JSON com os dados dos curr\xEDculos escolares:"),c()()(),d(5,"div")(6,"spa-files",25),$("filesLoading",function(r){W(e);let o=S(2);return Y(o.onFilesLoading(r))}),c()()()}if(t&2){let e=S(2);m(6),f("single",!0)("filesToAdd",e.filesToAdd)("acceptedTypes",e.acceptedFileTypes)("maxFileSize",e.maxUploadSizeInBytes)}}function WIt(t,n){if(t&1){let e=ie();d(0,"form",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"h2",7),h(5," Emiss\xE3o de curr\xEDculos escolares "),c(),d(6,"p"),h(7,"Para gerar curr\xEDculos escolares selecione um modelo e envie o arquivo com os dados de emiss\xE3o de cada curr\xEDculo escolar:"),c(),d(8,"div",8)(9,"button",9),$("click",function(){W(e);let r=S();return Y(r.openRequiredInfoDialog())}),d(10,"mat-icon",10),h(11,"help"),c(),h(12," Quais dados s\xE3o necess\xE1rios? "),c(),d(13,"a",11)(14,"mat-icon",10),h(15,"get_app"),c(),h(16," Baixar modelo de arquivo JSON "),c()(),d(17,"div",12)(18,"mat-icon",13),h(19,"descriptions"),c(),H(20,"app-template-autocomplete-selector",14),c(),d(21,"app-folder-selector",15),tn("selectedItemChange",function(r){W(e);let o=S();return nn(o.selectedFolder,r)||(o.selectedFolder=r),Y(r)}),c()()(),d(22,"div",5),k(23,qIt,7,4,"div",16),c()(),d(24,"app-file-validation-boxes",17),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),d(25,"app-signature-flow-selector",18),$("loadingChange",function(r){W(e);let o=S();return Y(o.loading=r)}),c(),H(26,"app-signature-flow-form",19),d(27,"div",20)(28,"button",21),$("click",function(){W(e);let r=S();return Y(r.submitBatch())}),h(29," Emitir curr\xEDculos "),c()()()}if(t&2){let e=S();f("formGroup",e.form),m(20),f("type",e.TemplateTypes.Curriculum)("templateControl",e.curriculumTemplateControl)("templateIdControl",e.form.get("curriculumTemplateId")),m(),en("selectedItem",e.selectedFolder),m(2),f("ngIf",e.form.get("curriculumTemplateId").valid),m(),f("operationType",e.operationType)("fileValidationResult",e.fileValidationResult)("selectedResult",e.selectedResult)("curriculumDataSource",e.curriculumDataSource)("templateId",e.form.get("curriculumTemplateId").value),m(),f("form",e.form)("type",e.type),m(),f("form",e.form.get("signatureFlow"))("type",e.type),m(2),f("disabled",!e.form.valid||!e.fileValidationResult||!e.fileValidationResult.isValid||!e.curriculumTemplateControl.valid)}}var Qye=(()=>{class t{constructor(e,i,r,o,a,s,l,u,p){this.fb=e,this.configurationService=i,this.route=r,this.router=o,this.dialog=a,this.settingService=s,this.documentFlowService=l,this.batchService=u,this.messageService=p,this.TemplateTypes=Jr,this.acceptedFileTypes=["application/json"],this.fileType=ss.Json,this.selectedFolder=this.settingService.NoFolder,this.type=Ro.Curriculum,this.curriculumTemplateControl=new Oo("",[Se.required,rr.requiredTemplateSelect()]),this.operationType=Pt.Curriculum}ngOnInit(){this.maxUploadSizeInBytes=this.configurationService.config.clientConfig.maxUploadSizeInBytes,this.buildForm()}buildForm(){this.filesToAdd=this.fb.array([],Se.minLength(1)),this.form=this.fb.group({curriculumTemplateId:[this.route.snapshot.queryParams.templateId||"",Se.required],files:this.filesToAdd}),this.form.addControl(ds,this.documentFlowService.getSignatureFlowForm(this.type))}openRequiredInfoDialog(){this.dialog.open(wg,{width:"1000px",data:{type:Pt.Curriculum}})}onFilesLoading(e){if(!e){let i=this.form.value.files[0],r={id:i.id,contentType:i.contentType,name:i.name,fileType:this.fileType};this.loading=!0,this.batchService.validateCurriculumsFile(r).subscribe(o=>{this.loading=!1,this.selectedResult=null,this.curriculumDataSource=null,this.fileValidationResult=o,o.result&&o.result.length>0&&(this.curriculumDataSource=o.result.map(a=>{let s=a.information;return{entryNumber:a.entryNumber,isValid:a.isValid,codigo:s.codigo,curso:s.dadosCurso.nomeCurso,codigoCurso:s.dadosCurso.codigoCursoEMEC,ies:s.iesEmissora.nome,codigoIes:s.iesEmissora.codigoMEC,errors:a.errors,structureErrors:a.structureErrors,signatureErrors:a.signatureErrors,information:s}}),o.isValid||(this.selectedResult=this.curriculumDataSource.find(a=>!a.isValid)))},o=>this.loading=!1)}}submitBatch(){if(!this.form.valid)return;let e={batchFile:this.filesToAdd.value[0],documentFlow:this.documentFlowService.getFormData(this.form.get("signatureFlow")),signerFolderId:this.selectedFolder.id==this.settingService.NoFolder.id?null:this.selectedFolder.id,newFolderName:this.selectedFolder.id==this.settingService.NewFolderId?this.selectedFolder.name:null,fileType:this.fileType,type:Bl.Curriculum,curriculumTemplateId:this.form.get("curriculumTemplateId").value};this.saving=!0,this.batchService.create(e).subscribe(i=>{this.router.navigate(["../../batches",i.id,"progress"],{relativeTo:this.route}),this.messageService.showSuccess("Os documentos ser\xE3o gerados e enviados para o Assinador")}).add(()=>this.saving=!1)}static{this.\u0275fac=function(i){return new(i||t)(E(Ti),E(zo),E(Ut),E(lt),E(Dn),E(Xa),E(oa),E(dc),E(Bi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-curriculum-create"]],decls:3,vars:2,consts:[[1,"loader-container"],[3,"show"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-md-6"],[1,"box-light","generate-box"],[1,"font-medium"],[1,"d-flex","flex-column","flex-xl-row","align-items-center","justify-content-between"],["mat-button","","color","primary","type","button",1,"my-2","normal-wrap-button",3,"click"],[1,"me-1"],["mat-button","","target","_blank","href","../../../../assets/files/curriculum-template.json",1,"my-2","normal-wrap-button","mat-primary","d-flex","align-items-center"],[1,"d-flex"],[1,"middle","align-self-center","me-2"],[1,"col","px-0",3,"type","templateControl","templateIdControl"],[1,"mb-2",3,"selectedItemChange","selectedItem"],["class","box-light",4,"ngIf"],[3,"loadingChange","operationType","fileValidationResult","selectedResult","curriculumDataSource","templateId"],[3,"loadingChange","form","type"],[3,"form","type"],[1,"d-flex","justify-content-center"],["mat-raised-button","","color","accent",3,"click","disabled"],[1,"box-light"],[1,"mb-2","d-flex","align-items-center"],[1,"mb-0"],[3,"filesLoading","single","filesToAdd","acceptedTypes","maxFileSize"]],template:function(i,r){i&1&&(d(0,"div",0),H(1,"ngx-loading",1),k(2,WIt,30,16,"form",2),c()),i&2&&(m(),f("show",r.loading||r.saving),m(),f("ngIf",r.form))},dependencies:[Ee,zt,pt,dt,He,ec,Ze,li,cc,uc,am,Eg,sm,Ig]})}}return t})();var YIt=t=>({"text-warn":t});function KIt(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"button",29),$("click",function(){W(e);let r=S(3);return Y(r.getVisualRepresentation())}),d(2,"mat-icon",30),h(3,"save_alt"),c(),h(4,"Representa\xE7\xE3o Visual "),c()()}}function XIt(t,n){if(t&1){let e=ie();d(0,"div",14)(1,"button",29),$("click",function(){W(e);let r=S(3);return Y(r.getXmlFile())}),d(2,"mat-icon",30),h(3,"save_alt"),c(),h(4,"Curr\xEDculo escolar "),c()()}}function QIt(t,n){if(t&1&&(d(0,"div",12),k(1,KIt,5,0,"div",28)(2,XIt,5,0,"div",28),c()),t&2){let e=S(2);m(),f("ngIf",e.curriculum.hasVisualRepresentation),m(),f("ngIf",e.curriculum.isSigned)}}function ZIt(t,n){if(t&1){let e=ie();d(0,"button",29),$("click",function(){W(e);let r=S(3);return Y(r.viewOnSigner())}),d(1,"mat-icon",30),h(2,"launch"),c(),h(3," Ver no Assinador "),c()}}function JIt(t,n){if(t&1){let e=ie();d(0,"div",31),k(1,ZIt,4,0,"button",32),d(2,"button",33),$("click",function(){W(e);let r=S(2);return Y(r.validate())}),d(3,"mat-icon",30),h(4,"check"),c(),h(5,"Validar "),c()()}if(t&2){let e=S(2);m(),f("ngIf",e.curriculum.signerDocumentUrl)}}function eDt(t,n){if(t&1){let e=ie();d(0,"div",31)(1,"button",34),$("click",function(){W(e);let r=S(2);return Y(r.cancel())}),d(2,"mat-icon",30),h(3,"cancel"),c(),h(4," Cancelar"),c()()}}function tDt(t,n){if(t&1&&(d(0,"div",12)(1,"div",13)(2,"div",12)(3,"div",14)(4,"spa-prop",15),h(5),c()(),d(6,"div",14)(7,"spa-prop",16),h(8),c()()(),d(9,"div",12)(10,"div",14)(11,"spa-prop",17),h(12),c()()(),d(13,"div",12)(14,"div",14)(15,"spa-prop",18),h(16),ce(17,"date"),c()(),d(18,"div",14)(19,"spa-prop",19),h(20),ce(21,"date"),c()()(),k(22,QIt,3,2,"div",5),c(),d(23,"div",20)(24,"p",21),h(25,"Status"),c(),d(26,"div",22),H(27,"app-curriculum-status-icon",23),d(28,"h2",24)(29,"span",25),h(30),ce(31,"curriculumStatus"),c()()(),d(32,"spa-prop",26),h(33),c(),k(34,JIt,6,1,"div",27)(35,eDt,5,0,"div",27),c()()),t&2){let e=S();m(5),U(e.curriculum.code),m(3),U(e.curriculum.course),m(4),U(e.curriculum.iesName),m(4),U(Bt(17,12,e.curriculum.creationDate,"short")),m(4),U(Bt(21,15,e.curriculum.updateDate,"short")),m(2),f("ngIf",!e.isCanceled),m(5),f("status",e.curriculum.status),m(2),f("ngClass",Le(20,YIt,e.isCanceled)),m(),U(xe(31,18,e.curriculum.status)),m(3),U(e.curriculum.validationCode),m(),f("ngIf",!e.isCanceled),m(),f("ngIf",e.canCancel)}}function iDt(t,n){if(t&1&&(d(0,"div",35),H(1,"app-degree-history-table",36),c()),t&2){let e=S();m(),f("history",e.history)("type",e.operationType)}}function nDt(t,n){if(t&1&&(d(0,"mat-tab",37),H(1,"app-document-restamp-table",38),c()),t&2){let e=S();m(),f("loadTable",e.tabIndex==2)("documentId",e.id)("documentType",e.Type)}}var AJ=(()=>{class t{get isCanceled(){return this.curriculum.status===lu.Canceled}get canCancel(){return this.curriculum.status!=lu.Canceled}constructor(e,i,r){this.route=e,this.curriculumService=i,this.dialog=r,this.Type=Pt.Curriculum,this.CurriculumStatus=lu,this.operationType=Pt.Curriculum,this.loadingHistory=!1}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),this.load()}load(){this.loading=!0,this.curriculumService.get(this.id).subscribe(e=>{this.curriculum=e,this.loading=!1},e=>this.loading=!1),this.loadingHistory=!0,this.curriculumService.getHistory(this.id).subscribe(e=>{this.loadingHistory=!1,this.history=e},e=>this.loadingHistory=!1)}viewOnSigner(){window.open(this.curriculum.signerDocumentUrl,"_blank")}validate(){window.open("/validar/"+this.curriculum.validationCode,"_blank")}cancel(){this.dialog.open(b6,{width:"600px",data:{operationType:Pt.Curriculum,documentId:this.curriculum.id,isSigned:this.curriculum.isSigned}}).afterClosed().toPromise().then(i=>{i&&this.load()})}getXmlFile(){this.loading=!0,this.curriculumService.getCurriculumTicket(this.curriculum.id).subscribe(i=>{this.loading=!1,window.location.href=i.location},i=>this.loading=!1)}getVisualRepresentation(){this.loading=!0,this.curriculumService.getVisualRepresentationTicket(this.curriculum.id).subscribe(e=>{this.loading=!1,window.location.href=e.location},e=>this.loading=!1)}onTabIndexChange(e){this.tabIndex=e}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(Cg),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-curriculum-detail"]],decls:16,vars:13,consts:[[3,"hidden"],[1,"box-light"],[3,"show"],[3,"refresh","loadingChange","loading","documentId","showExportButton","documentType"],["header",""],["class","row",4,"ngIf"],["mat-stretch-tabs","false","animationDuration","0ms",3,"selectedIndexChange"],["label","Hist\xF3rico"],["class","overflow-hidden",4,"ngIf"],["label","Eventos"],[3,"loadTable","documentId","type"],["label","Renotariza\xE7\xF5es",4,"ngIf"],[1,"row"],[1,"col-md-6"],[1,"col"],["label","C\xF3digo"],["label","Curso"],["label","Nome da IES"],["label","Criada em"],["label","Atualizada em"],[1,"col-md-6","d-flex","flex-column","align-items-center"],[1,"prop-label","mt-4"],[1,"d-flex","align-items-center"],[3,"status"],[1,"mb-0","ms-1"],[3,"ngClass"],["label","C\xF3digo de valida\xE7\xE3o",1,"mt-3","text-center"],["class","d-flex justify-content-center mt-3",4,"ngIf"],["class","col",4,"ngIf"],["color","primary","mat-stroked-button","",3,"click"],[1,"me-1"],[1,"d-flex","justify-content-center","mt-3"],["color","primary","mat-stroked-button","",3,"click",4,"ngIf"],["color","primary","mat-flat-button","",3,"click"],["color","warn","mat-flat-button","",3,"click"],[1,"overflow-hidden"],[3,"history","type"],["label","Renotariza\xE7\xF5es"],[3,"loadTable","documentId","documentType"]],template:function(i,r){i&1&&(d(0,"div",0)(1,"div",1),H(2,"ngx-loading",2),d(3,"app-box-title",3),$("refresh",function(){return r.load()}),tn("loadingChange",function(a){return nn(r.loading,a)||(r.loading=a),a}),d(4,"span",4),h(5,"Detalhes do curr\xEDculo escolar"),c()(),k(6,tDt,36,22,"div",5),c(),d(7,"div",1)(8,"mat-tab-group",6),$("selectedIndexChange",function(a){return r.onTabIndexChange(a)}),d(9,"mat-tab",7),H(10,"ngx-loading",2),k(11,iDt,2,2,"div",8),c(),d(12,"mat-tab",9),H(13,"app-document-events",10),c(),k(14,nDt,2,3,"mat-tab",11),c()()(),H(15,"router-outlet")),i&2&&(f("hidden",r.route.firstChild),m(2),f("show",r.loading),m(),en("loading",r.loading),f("documentId",r.id)("showExportButton",!0)("documentType",r.Type),m(3),f("ngIf",r.curriculum),m(4),f("show",r.loadingHistory),m(),f("ngIf",r.history),m(2),f("loadTable",r.tabIndex==1)("documentId",r.id)("type",r.Type),m(),f("ngIf",(r.curriculum==null?null:r.curriculum.status)==r.CurriculumStatus.Active))},dependencies:[ji,Ee,He,Ze,li,wn,_n,Hl,mc,bd,eh,kI,RI,ny,rn,Wb]})}}return t})();var Jye=gc(yp());var rDt="/api/events",Zye=(()=>{class t{constructor(e){this.http=e}listPaginated(e){return{listPaginated:i=>(e.searchTerm&&(i.searchTerm=e.searchTerm),this.http.get(`${rDt}/filtered`,{params:i.getHttpParams().append("startDateUtc",e.startDateUtc==null?"":e.startDateUtc.toString()).append("endDateUtc",e.endDateUtc==null?"":e.endDateUtc.toString())}))}}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function aDt(t,n){if(t&1&&H(0,"mat-datepicker-toggle",22),t&2){S();let e=je(11);f("for",e)}}function sDt(t,n){if(t&1){let e=ie();d(0,"button",23),$("click",function(){W(e);let r=S(2);return Y(r.setNullValue("startDate"))}),d(1,"mat-icon"),h(2,"close"),c()()}}function lDt(t,n){if(t&1&&H(0,"mat-datepicker-toggle",22),t&2){S();let e=je(19);f("for",e)}}function cDt(t,n){if(t&1){let e=ie();d(0,"button",23),$("click",function(){W(e);let r=S(2);return Y(r.setNullValue("endDate"))}),d(1,"mat-icon"),h(2,"close"),c()()}}function dDt(t,n){if(t&1){let e=ie();d(0,"spa-box",3)(1,"span",4),h(2,"Eventos"),c(),d(3,"div",5)(4,"div",6)(5,"button",7),$("click",function(){W(e);let r=S();return Y(r.generateReport())}),d(6,"mat-icon",8),h(7,"assignment"),c()()(),d(8,"form",9)(9,"mat-form-field",10),H(10,"mat-datepicker",null,0),k(12,aDt,1,1,"mat-datepicker-toggle",11),d(13,"input",12),$("click",function(){W(e);let r=je(11);return Y(r.open())}),c(),k(14,sDt,3,0,"button",13),c(),d(15,"mat-form-field",14),k(16,lDt,1,1,"mat-datepicker-toggle",15),d(17,"input",16),$("click",function(){W(e);let r=je(19);return Y(r.open())}),c(),H(18,"mat-datepicker",null,1),k(20,cDt,3,0,"button",13),c(),d(21,"mat-form-field",17),H(22,"input",18),c(),d(23,"button",19),$("click",function(){W(e);let r=S();return Y(r.updateSearchFilters())}),d(24,"mat-icon",20),h(25,"search"),c()()()(),H(26,"spa-event-list",21),c()}if(t&2){let e=je(11),i=je(19),r=S();f("hidden",r.route.firstChild),m(8),f("formGroup",r.form),m(4),f("ngIf",r.form.get("startDate").value==null),m(),f("matDatepicker",e),m(),f("ngIf",r.form.get("startDate").value),m(2),f("ngIf",r.form.get("endDate").value==null),m(),f("matDatepicker",i),m(3),f("ngIf",r.form.get("endDate").value),m(6),f("dataSource",r.dataSource)("showSubscriptions",r.showSubs)}}var e1e=(()=>{class t extends _Z{constructor(e,i,r,o,a,s){super(e,i,r),this.fb=o,this.localEventService=a,this.dialog=s,this.spaControlApp=r}ngOnInit(){this.showSubs=this.route.parent.snapshot.params.sub==null,this.form=this.fb.group({searchTerm:null,startDate:null,endDate:null}),this.updateSearchFilters()}updateSearchFilters(){let e=this.form.get("startDate").value,i=this.form.get("endDate").value,r={searchTerm:this.form.get("searchTerm").value,startDateUtc:e?e.toISOString():null,endDateUtc:i?(0,Jye.default)(i).add(1,"day").toISOString():null};this.dataSource=this.localEventService.listPaginated(r)}setNullValue(e){this.form.get(e).setValue(null)}generateReport(){let e=this.dialog.open(lm,{width:"500px",data:{type:Pt.Event,startDate:this.form.get("startDate").value,endDate:this.form.get("endDate").value,searchTerm:this.form.get("searchTerm").value}})}static{this.\u0275fac=function(i){return new(i||t)(E(Ut),E(zx),E(di),E(Ti),E(Zye),E(Dn))}}static{this.\u0275cmp=oe({type:t,selectors:[["spa-events"]],features:[qt],decls:2,vars:0,consts:[["startPicker",""],["endPicker",""],[3,"hidden",4,"transloco"],[3,"hidden"],["box-title",""],[1,"d-flex","justify-content-between","align-items-center"],[1,"toolbar-column-1"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],[1,"ms-auto",3,"formGroup"],["id","documentsStart","appearance","outline",1,"input-stretch","bt-prefix","pe-2"],["matSuffix","","class","small",3,"for",4,"ngIf"],["matInput","","readonly","","placeholder","In\xEDcio","formControlName","startDate",1,"pointer",3,"click","matDatepicker"],["mat-icon-button","","class","small","matSuffix","",3,"click",4,"ngIf"],["id","documentsEnd","appearance","outline",1,"ms-0","ms-sm-2","input-stretch","bt-prefix","pe-2"],["class","small","matSuffix","",3,"for",4,"ngIf"],["matInput","","readonly","","placeholder","Fim","formControlName","endDate",1,"pointer",3,"click","matDatepicker"],["appearance","outline",1,"pe-1","me-2",2,"min-width","240px"],["matInput","","placeholder","Nome do agente ou organiza\xE7\xE3o","formControlName","searchTerm"],["mat-icon-button","","matTooltip","Pesquisar",1,"align-self-center","d-md-none","d-lg-inline-block",3,"click"],["aria-label","Search"],[3,"dataSource","showSubscriptions"],["matSuffix","",1,"small",3,"for"],["mat-icon-button","","matSuffix","",1,"small",3,"click"]],template:function(i,r){i&1&&(k(0,dDt,27,10,"spa-box",2),H(1,"router-outlet"))},dependencies:[Ee,zt,Gt,it,pt,dt,Tt,He,fi,Wt,bt,ZS,Fn,un,Ux,_n,yi,Rb,vg,Lx]})}}return t})();var uDt="/api/restamps",mDt="/api/admin/restamps",t1e=(()=>{class t{constructor(e){this.http=e}getHttpParams(e,i,r=!1){i.q&&(e.searchTerm=i.q);let o=e.getHttpParams();return i.documentTypes?.forEach(a=>o=o.append("documentTypes",a.toString())),r&&i.subscriptionIds?.forEach(a=>o=o.append("subscriptionIds",a.toString())),{params:o.append("startDateUtc",i.startDateUtc==null?"":i.startDateUtc.toString()).append("endDateUtc",i.endDateUtc==null?"":i.endDateUtc.toString()).append("status",i.status==null?"":i.status.toString()).append("restampFilterField",i.restampFilterField.toString())}}listPaginatedFilters(e){return{listPaginated:i=>this.http.get(`${uDt}`,this.getHttpParams(i,e))}}listInstancePaginatedFilters(e){return{listPaginated:i=>this.http.get(`${mDt}`,this.getHttpParams(i,e,!0))}}static{this.\u0275fac=function(i){return new(i||t)(ae(sn))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var hDt=["restampsTable"];function fDt(t,n){if(t&1&&(d(0,"mat-option",42),h(1),ce(2,"restampStatus"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function gDt(t,n){if(t&1&&(d(0,"mat-option",42),h(1),ce(2,"restampFilterFields"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function _Dt(t,n){if(t&1&&(d(0,"mat-option",42),h(1),ce(2,"documentType"),c()),t&2){let e=n.$implicit;f("value",e),m(),ue("",xe(2,2,e)," ")}}function vDt(t,n){if(t&1&&(d(0,"mat-option",42),h(1),c()),t&2){let e=n.$implicit;f("value",e.id),m(),ue("",e.name," ")}}function bDt(t,n){if(t&1){let e=ie();d(0,"mat-form-field",47)(1,"mat-label"),h(2,"Organiza\xE7\xE3o"),c(),d(3,"mat-select",48),$("selectionChange",function(r){W(e);let o=S(3);return Y(o.onOrganizationSelectionChange(r.value))}),d(4,"mat-option")(5,"mat-icon",28),h(6,"cancel"),c(),h(7,"Nenhuma "),c(),k(8,vDt,2,2,"mat-option",29),c()()}if(t&2){let e=S(3);m(8),f("ngForOf",e.subscriptions)}}function yDt(t,n){if(t&1){let e=ie();d(0,"div",43)(1,"mat-form-field")(2,"mat-label"),h(3,"Campo de data a ser filtrado"),c(),d(4,"mat-select",44),k(5,gDt,3,4,"mat-option",29),c()(),d(6,"mat-form-field")(7,"mat-label"),h(8,"Tipo do documento"),c(),d(9,"mat-select",45),$("selectionChange",function(r){W(e);let o=S(2);return Y(o.onDocumentTypeChange(r.value))}),d(10,"mat-option")(11,"mat-icon",28),h(12,"cancel"),c(),h(13,"Nenhum "),c(),k(14,_Dt,3,4,"mat-option",29),c()(),k(15,bDt,9,1,"mat-form-field",46),c()}if(t&2){let e=S(2);m(5),f("ngForOf",e.restampFilterFields),m(9),f("ngForOf",e.documentTypes),m(),f("ngIf",e.inSysAdminArea)}}function xDt(t,n){if(t&1){let e=ie();d(0,"form",24)(1,"div",25)(2,"mat-form-field",26)(3,"mat-label"),h(4,"Status"),c(),d(5,"mat-select",27)(6,"mat-option")(7,"mat-icon",28),h(8,"cancel"),c(),h(9,"Nenhum "),c(),k(10,fDt,3,4,"mat-option",29),c()(),d(11,"div",30)(12,"mat-form-field",31)(13,"mat-label"),h(14,"In\xEDcio"),c(),H(15,"spa-date-input",32),c(),d(16,"mat-form-field",33)(17,"mat-label"),h(18,"Fim"),c(),H(19,"spa-date-input",34),c()(),d(20,"div",35)(21,"mat-form-field",36)(22,"mat-label"),h(23,"Pesquisar"),c(),H(24,"input",37),c(),d(25,"button",38),$("click",function(){W(e);let r=S();return Y(r.search())}),d(26,"mat-icon",39),h(27,"search"),c()(),d(28,"button",40),$("click",function(){W(e);let r=S();return Y(r.toggleShowMoreFilters())}),d(29,"mat-icon"),h(30),c()()()(),k(31,yDt,16,3,"div",41),c()}if(t&2){let e=S();f("formGroup",e.searchForm),m(10),f("ngForOf",e.restampStatus),m(18),f("matTooltip",e.showMoreFilters?"Ocultar filtros":"Mostrar mais filtros"),m(2),U(e.showMoreFilters?"filter_alt_off":"filter_alt"),m(),f("ngIf",e.showMoreFilters)}}function CDt(t,n){t&1&&(d(0,"mat-header-cell",49),h(1,"Data de cria\xE7\xE3o"),c())}function SDt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.creationDate,"short")," ")}}function wDt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Identificador"),c())}function EDt(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"spa-link-button",50),$("trigger",function(){let r=W(e).$implicit,o=S();return Y(o.navigateTo(r.documentType,r.documentId,r.organizationId))}),h(2),ce(3,"cpf"),c()()}if(t&2){let e=n.$implicit,i=S();m(2),ue(" ",e.documentType!=i.DocumentTypes.Curriculum?xe(3,1,e.identifier):e.identifier," ")}}function IDt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Tipo"),c())}function DDt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"documentType"),c()),t&2){let e=n.$implicit;m(),ue(" ",xe(2,1,e.documentType)," ")}}function TDt(t,n){t&1&&(d(0,"mat-header-cell",49),h(1,"Data da renotariza\xE7\xE3o"),c())}function ADt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",e.date!=null?Bt(2,1,e.date,"dd/MM/yyyy"):"N\xE3o renotarizado"," ")}}function kDt(t,n){t&1&&(d(0,"mat-header-cell",49),h(1,"Data de expira\xE7\xE3o"),c())}function MDt(t,n){if(t&1&&(d(0,"mat-cell"),h(1),ce(2,"date"),c()),t&2){let e=n.$implicit;m(),ue(" ",Bt(2,1,e.archivingExpiringDate,"dd/MM/yyyy")," ")}}function FDt(t,n){t&1&&(d(0,"mat-header-cell"),h(1,"Organiza\xE7\xE3o"),c())}function RDt(t,n){if(t&1){let e=ie();d(0,"mat-cell")(1,"spa-link-button",50),$("trigger",function(){let r=W(e).$implicit,o=S(2);return Y(o.navigateToSubscription(r.organizationId))}),h(2),c()()}if(t&2){let e=n.$implicit;m(2),U(e.organizationName)}}function PDt(t,n){t&1&&(he(0,51),k(1,FDt,2,0,"mat-header-cell",18)(2,RDt,3,1,"mat-cell",16),fe())}function NDt(t,n){t&1&&H(0,"mat-header-cell")}function ODt(t,n){if(t&1){let e=ie();d(0,"button",53),$("click",function(){W(e);let r=S().$implicit,o=S();return Y(o.openErrorReasonDialog(r))}),d(1,"mat-icon"),h(2,"error"),c()()}}function LDt(t,n){if(t&1&&(d(0,"mat-cell"),k(1,ODt,3,0,"button",52),c()),t&2){let e=n.$implicit;m(),f("ngIf",e.errorReason)}}var i1e=(()=>{class t{constructor(e,i,r,o,a,s,l,u){this.restampService=e,this.routeHelper=i,this.router=r,this.route=o,this.navigationService=a,this.dialog=s,this.subscriptionService=l,this.dialogService=u,this.DocumentTypes=_d,this.$toUnsubscribe=[],this.restampStatus=Object.keys(d_),this.documentTypes=Object.keys(_d),this.restampFilterFields=Object.keys(u_),this.subscriptions=[]}ngOnInit(){this.searchForm=new tN({searchQuery:new Oo,startDate:new Oo,endDate:new Oo,documentTypes:new Oo,status:new Oo,restampFilterField:new Oo(u_.ExpiringDate)}),this.$toUnsubscribe.push(this.routeHelper.activatedNamedRoutes.subscribe(e=>{this.inSysAdminArea=e.isInRoute("SysAdmin")}),this.searchForm.get("startDate").valueChanges.subscribe(e=>{let i=this.searchForm.get("endDate").value;e>i&&i!=null&&this.searchForm.get("endDate").setValue(e)})),this.inSysAdminArea&&(this.searchForm.addControl("subscriptionIds",new Oo),this.subscriptionService.list().subscribe(e=>{this.subscriptions=e})),this.updateDataSource()}generateReport(){this.dialog.open(lm,{width:"500px",data:{inSysAdminArea:this.inSysAdminArea,type:Pt.Restamp,searchTerm:this.searchForm.get("searchQuery").value,startDate:this.searchForm.get("startDate").value,endDate:this.searchForm.get("endDate").value,status:this.searchForm.get("status").value,restampFilterField:this.searchForm.get("restampFilterField").value,documentTypes:this.searchForm.get("documentTypes").value,subscriptionIds:this.inSysAdminArea?this.searchForm.get("subscriptionIds").value:null}})}search(){this.updateDataSource()}refresh(){this.restampsTable.refresh()}toggleShowMoreFilters(){this.showMoreFilters=!this.showMoreFilters}setNullValue(e){this.searchForm.get(e).setValue(null)}navigateTo(e,i,r){_d[e]==_d.AcademicDocumentation&&(e="Degree"),this.inSysAdminArea?this.navigationService.navigateEntityInSubscription(r,e,i):this.navigationService.navigate(e,i)}navigateToSubscription(e){this.router.navigateByUrl(this.navigationService.getSubscriptionUrl(e))}updateDataSource(){let e=this.searchForm.get("startDate").value,i=this.searchForm.get("endDate").value,r={q:this.searchForm.get("searchQuery").value,startDateUtc:e||null,endDateUtc:i||null,documentTypes:this.searchForm.get("documentTypes").value,status:this.searchForm.get("status").value,restampFilterField:this.searchForm.get("restampFilterField").value},o;if(this.inSysAdminArea){let a=Gi(Ve({},r),{subscriptionIds:this.searchForm.get("subscriptionIds").value});o=this.restampService.listInstancePaginatedFilters(a)}else o=this.restampService.listPaginatedFilters(r);this.dataSource=new Al(o)}onDocumentTypeChange(e){e.includes(void 0)&&this.searchForm.get("documentTypes").setValue([])}onOrganizationSelectionChange(e){e.includes(void 0)&&this.searchForm.get("subscriptionIds").setValue([])}openErrorReasonDialog(e){this.dialogService.showValue(e.errorReason,{title:"Motivo do erro",disableClose:!0})}ngOnDestroy(){for(let e of this.$toUnsubscribe)e.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(E(t1e),E(ro),E(lt),E(Ut),E(Bb),E(Dn),E(lc),E(Qi))}}static{this.\u0275cmp=oe({type:t,selectors:[["app-restamp-list"]],viewQuery:function(i,r){if(i&1&&ot(hDt,5),i&2){let o;Pe(o=Ne())&&(r.restampsTable=o.first)}},decls:39,vars:5,consts:[["restampsTable",""],[3,"hidden"],[3,"show"],["box-title",""],[1,"document-toolbar"],[1,"toolbar-column-1","d-flex","align-self-start"],["mat-icon-button","","matTooltip","Atualizar a tabela",3,"click"],["aria-label","Refresh"],["mat-icon-button","","matTooltip","Gerar relat\xF3rio",3,"click"],["aria-label","Report"],["class","toolbar-column-2 ms-auto",3,"formGroup",4,"ngIf"],["matSort","","matSortActive","creationDate","matSortDirection","desc","disableSearch","true",1,"centered-cells",3,"dataSource"],["lac-table-empty",""],[1,"d-flex","justify-content-center","mt-3"],["matColumnDef","creationDate"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","identifier"],[4,"matHeaderCellDef"],["matColumnDef","documentType"],["matColumnDef","date"],["matColumnDef","archivingExpiringDate"],["matColumnDef","organizationName",4,"ngIf"],["matColumnDef","actions"],[1,"toolbar-column-2","ms-auto",3,"formGroup"],[1,"d-flex"],[1,"pe-2"],["formControlName","status"],[1,"icon-sm"],[3,"value",4,"ngFor","ngForOf"],[1,"pickers-container"],["id","documentsStart","appearance","outline",1,"input-stretch","bt-prefix","pe-2","mb-0"],["formControlName","startDate","dayStart","",1,"compact-input"],["id","documentsEnd","appearance","outline",1,"ms-0","ms-sm-2","input-stretch","bt-prefix","pe-2","mb-0"],["formControlName","endDate","dayEnd","",1,"compact-input"],[1,"row"],["id","documentsSearch","appearance","outline",1,"pe-2","mb-0"],["matInput","","formControlName","searchQuery"],["id","documentSearchButton","mat-icon-button","","matTooltip","Pesquisar",3,"click"],["aria-label","Search"],["type","button","mat-icon-button","",3,"click","matTooltip"],["class","d-flex justify-content-end gap-2 mt-2",4,"ngIf"],[3,"value"],[1,"d-flex","justify-content-end","gap-2","mt-2"],["formControlName","restampFilterField"],["formControlName","documentTypes","multiple","",3,"selectionChange"],["class","flex-grow-1",4,"ngIf"],[1,"flex-grow-1"],["formControlName","subscriptionIds","multiple","",3,"selectionChange"],["mat-sort-header",""],[3,"trigger"],["matColumnDef","organizationName"],["mat-icon-button","","type","button","color","warn","matTooltip","Visualizar motivo do erro",3,"click",4,"ngIf"],["mat-icon-button","","type","button","color","warn","matTooltip","Visualizar motivo do erro",3,"click"]],template:function(i,r){if(i&1){let o=ie();d(0,"spa-box",1),H(1,"ngx-loading",2),d(2,"span",3),h(3,"Renotariza\xE7\xF5es"),c(),d(4,"div",4)(5,"div",5)(6,"button",6),$("click",function(){return W(o),Y(r.refresh())}),d(7,"mat-icon",7),h(8,"refresh"),c()(),d(9,"button",8),$("click",function(){return W(o),Y(r.generateReport())}),d(10,"mat-icon",9),h(11,"assignment"),c()()(),k(12,xDt,32,5,"form",10),c(),d(13,"lac-table",11,0)(15,"div",12)(16,"div",13)(17,"h3"),h(18,"Nenhuma renotariza\xE7\xE3o cadastrada."),c()()(),he(19,14),k(20,CDt,2,0,"mat-header-cell",15)(21,SDt,3,4,"mat-cell",16),fe(),he(22,17),k(23,wDt,2,0,"mat-header-cell",18)(24,EDt,4,3,"mat-cell",16),fe(),he(25,19),k(26,IDt,2,0,"mat-header-cell",18)(27,DDt,3,3,"mat-cell",16),fe(),he(28,20),k(29,TDt,2,0,"mat-header-cell",15)(30,ADt,3,4,"mat-cell",16),fe(),he(31,21),k(32,kDt,2,0,"mat-header-cell",15)(33,MDt,3,4,"mat-cell",16),fe(),k(34,PDt,3,0,"ng-container",22),he(35,23),k(36,NDt,1,0,"mat-header-cell",18)(37,LDt,2,1,"mat-cell",16),fe(),c()(),H(38,"router-outlet")}i&2&&(f("hidden",r.route.firstChild),m(),f("show",r.loading),m(11),f("ngIf",r.searchForm),m(),f("dataSource",r.dataSource),m(21),f("ngIf",r.inSysAdminArea))},dependencies:[Vt,Ee,zt,Gt,it,pt,dt,Tt,He,fi,Wt,bt,jt,Mi,zn,Vn,Hn,tr,ir,Kn,Lr,li,dr,Xr,un,As,aB,_n,yi,Li,rn,Zo,EI,a6,s6],styles:[".mat-mdc-option:first-child .mat-pseudo-checkbox{display:none}"]})}}return t})();var kJ={homeComponent:_ve,layoutComponent:mve,privateHomeComponent:ive,eventsComponent:e1e},n1e=[{path:"review",component:Fye,data:{routeName:"RegistrationReview",displayName:"Revisar"}},{path:"register",component:Rye,data:{routeName:"RegistrationRegister",displayName:"Registrar"}}],r1e={path:"academic-transcripts/:id",component:C6,data:{routeName:"AcademicTranscriptDetail",displayName:"Detalhes do hist\xF3rico escolar"}},o1e={path:"degrees/:id",component:f6,data:{routeName:"DegreeDetail",displayName:"Detalhes do diploma"}},a1e={path:"restamps",component:i1e,data:{routeName:"RestampList",displayName:"Renotariza\xE7\xF5es"}},VDt={publicRoutes:[{path:`${mM}/:code`,component:qZ},{path:mM,component:qZ}],privateRoutes:[{path:"sysadmin",canActivate:[hye],data:{routeName:"SysAdmin",branchRoot:!0},children:[{path:"",pathMatch:"full",data:{routeName:"AdminHome"},component:jye},{path:"subscriptions",component:vZ,data:{routeName:"Subscriptions"},children:[{path:"new",pathMatch:"full",component:gye,canActivate:[KE],canDeactivate:[nu],data:{routeName:"SubscriptionCreate"}},{path:":id",component:yye,data:{routeName:"SubscriptionDetail"},children:[{path:"edit",component:xye,canDeactivate:[nu],data:{routeName:"SubscriptionEdit"}},{path:"partners/new",component:Nye,canDeactivate:[nu],data:{routeName:"PartnerCreate"}}]}]},a1e,...sB(kJ),{path:"",pathMatch:"full",redirectTo:"subscriptions"}]}],subscriptionRoutes:[{path:"templates",component:qve,data:{routeName:"TemplateList",displayName:"Modelos"},children:[{path:"new",component:XZ,data:{routeName:"TemplateCreate",displayName:"Novo modelo"}},{path:":id",component:Yve,data:{routeName:"TemplateDetail",displayName:"Detalhes do modelo"}},{path:":id/edit",component:XZ,data:{routeName:"TemplateEdit",displayName:"Editar modelo"}}]},{path:"batches",component:Hbe,data:{routeName:"BatchList",displayName:"Lotes"},children:[{path:":id",component:aye,data:{routeName:"BatchDetail",displayName:"Detalhes do lote"},children:[{path:"progress",component:dye,data:{routeName:"BatchProgress",displayName:"Progresso da gera\xE7\xE3o"}},{path:"degrees/:id",component:f6,data:{routeName:"DegreeDetail",displayName:"Detalhes do diploma"},children:[r1e]},{path:"academic-transcripts/:id",component:C6,data:{routeName:"AcademicTranscriptDetail",displayName:"Detalhes do hist\xF3rico escolar"},children:[o1e]},{path:"emissions/:id",component:EJ,data:{routeName:"EmissionDetail",displayName:"Detalhes da emiss\xE3o"}},{path:"registrations/:id",component:IJ,data:{routeName:"RegistrationDetail",displayName:"Detalhes da requisi\xE7\xE3o"},children:n1e},{path:"curriculums/:id",component:AJ,data:{routeName:"CurriculumDetail",displayName:"Detalhes do curr\xEDculo escolar"}}]}]},{path:"degrees",component:l6,data:{routeName:"DegreeList",displayName:"Diplomas"},children:[{path:":id",component:f6,data:{routeName:"DegreeDetail",displayName:"Detalhes do diploma"},children:[r1e]}]},{path:"registrations",component:d6,data:{routeName:"RegistrationList",displayName:"Requisi\xE7\xF5es de registro"},children:[{path:"new",component:Pye,data:{routeName:"RegistrationCreate",displayName:"Registro de diplomas"}},{path:":id",component:IJ,data:{routeName:"RegistrationDetail",displayName:"Detalhes da requsi\xE7\xE3o"},children:n1e}]},{path:"generate",component:Vbe,data:{routeName:"DegreeGenerate",displayName:"Gera\xE7\xE3o de diplomas"},canDeactivate:[nu],children:[]},{path:"settings",component:$ve,data:{routeName:"Settings",displayName:"Configura\xE7\xF5es"}},{path:"flows",component:uye,data:{routeName:"DocumentFlowList",displayName:"Fluxos"},children:[{path:"new",component:pye,data:{routeName:"DocumentFlowCreate",displayName:"Novo fluxo"}},{path:":id",component:mye,data:{routeName:"DocumentFlowDetail",displayName:"Detalhes do fluxo"}}]},{path:"emissions",component:c6,data:{routeName:"EmissionList",displayName:"Emiss\xF5es"},children:[{path:"new",component:Eye,canDeactivate:[nu],data:{routeName:"EmissionCreate",displayName:"Emiss\xE3o de diplomas"}},{path:":id",component:EJ,data:{routeName:"EmissionDetail",displayName:"Detalhes da emiss\xE3o"}}]},{path:"academic-transcripts",component:u6,data:{routeName:"AcademicTranscriptList",displayName:"Hist\xF3ricos escolares"},children:[{path:"new",component:Lye,data:{routeName:"AcademicTranscriptCreate",displayName:"Emiss\xE3o de hist\xF3ricos escolares"}},{path:":id",component:C6,data:{routeName:"AcademicTranscriptDetail",displayName:"Detalhes do hist\xF3rico escolar"},children:[o1e]}]},{path:"institutes",component:zye,data:{routeName:"InstituteList",displayName:"Institui\xE7\xF5es"},children:[{path:"new",component:DJ,data:{routeName:"InstituteCreate",displayName:"Cadastro de institui\xE7\xE3o"}},{path:":id",component:Xye,data:{routeName:"InstituteDetail",displayName:"Detalhes da institui\xE7\xE3o"},children:[{path:"edit",component:DJ,data:{routeName:"InstituteEdit",displayName:"Edi\xE7\xE3o de institui\xE7\xE3o"}}]}]},{path:"curriculums",component:m6,data:{routeName:"CurriculumList",displayName:"Curr\xEDculos"},children:[{path:"new",component:Qye,data:{routeName:"CurriculumCreate",displayName:"Novo curr\xEDculo"}},{path:":id",component:AJ,data:{routeName:"CurriculumDetail",displayName:"Detalhes do curr\xEDculo escolar"}}]},a1e,...sB(kJ),{path:"",pathMatch:"full",component:hve}],sysAdminRoutes:[]},s1e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t})}static{this.\u0275inj=ft({imports:[zT.forRoot(u_e(kJ,VDt,fve,null,!1),{enableTracing:!1,scrollPositionRestoration:"enabled"}),zT]})}}return t})();var DM={production:!0};var l1e={name:!0,cpf:!1,emailAddress:!0},c1e=Gi(Ve({},CZ),{availableLangs:["pt"],defaultLang:"pt",fallbackLang:"pt",prodMode:DM.production,reRenderOnLangChange:!1});function d1e(t){switch(t){case"Subscription":return"domain";case"Degree":return"card_membership";case"Emission":return"input";case"Registration":return"menu_book";case"Template":return"description";case"Batch":return"dynamic_feed";case"Setting":return"settings";case"Integration":return"compare_arrows";case"Partnership":return"thumb_up";case"AcademicTranscript":return"history";case"Institute":return"account_balance";case"InspectionFile":return"search_check";case"Curriculum":return"library_books";case"Restamp":return"more_time";default:return null}}function u1e(t){switch(t){case"BatchCreated":return"Lote criado";case"BatchUpdated":return"Lote atualizado";case"TemplateCreated":return"Modelo criado";case"TemplateUpdated":return"Modelo atualizado";case"TemplateDeleted":return"Modelo exclu\xEDdo";case"DegreeCreated":return"Diploma criado";case"DegreeUpdated":return"Diploma atualizado";case"DegreeActivated":return"Diploma ativado";case"DegreeCancelled":return"Diploma revogado";case"DegreeAcademicDocSigned":return"Documenta\xE7\xE3o Acad\xEAmica do diploma assinada";case"DegreeRefreshVisualRepresentations":return"Representa\xE7\xE3o visual de diplomas atualizadas";case"SettingUpdated":return"Configura\xE7\xE3o atualizada";case"SignerApiKeyUpdated":return"Chave de API do Assinador atualizada";case"SignerApiKeyDeleted":return"Chave de API do Assinador exclu\xEDda";case"DocumentFlowCreated":return"Fluxo criado";case"DocumentFlowUpdated":return"Fluxo atualizado";case"DocumentFlowDeleted":return"Fluxo exclu\xEDdo";case"SubscriptionIntegrationsUpdated":return"Configura\xE7\xF5es de Integra\xE7\xE3o atualizadas";case"EmissionCreated":return"Emiss\xE3o criada";case"EmissionUpdated":return"Emiss\xE3o atualizada";case"EmissionCancelled":return"Emiss\xE3o cancelada";case"EmissionAcademicDocSigned":return"Documenta\xE7\xE3o acad\xEAmica da emiss\xE3o assinada";case"EmissionRegistered":return"Emiss\xE3o registrada";case"RegistrationCreated":return"Requisi\xE7\xE3o de registro criada";case"RegistrationUpdated":return"Requisi\xE7\xE3o de registro atualizada";case"RegistrationCancelled":return"Requisi\xE7\xE3o de registro cancelada";case"RegistrationRejected":return"Requisi\xE7\xE3o de registro recusada";case"RegistrationApproved":return"Requisi\xE7\xE3o de registro aprovada";case"RegistrationRegistered":return"Registro realizado";case"RegistrationDegreeSigned":return"Dados do diploma assinados";case"IntegrationCreated":return"Dados de integra\xE7\xE3o criados";case"IntegrationUpdated":return"Dados de integra\xE7\xE3o atualizados";case"IntegrationDeleted":return"Dados de integra\xE7\xE3o exclu\xEDdos";case"ApplicationUpdated":return"Aplica\xE7\xE3o atualizada";case"PartnershipCreated":return"Parceria criada";case"PartnershipDeleted":return"Parceria exclu\xEDda";case"AcademicTranscriptCreated":return"Hist\xF3rico escolar criado";case"AcademicTranscriptUpdated":return"Hist\xF3rico escolar atualizado";case"AcademicTranscriptCancelled":return"Hist\xF3rico escolar cancelado";case"AcademicTranscriptActivated":return"Hist\xF3rico escolar ativado";case"RegistrationRequiringAcceptanceCreated":return"Requisi\xE7\xE3o de registro aguardando aceita\xE7\xE3o criada";case"RegistrationAccepted":return"Requisi\xE7\xE3o de registro aceita";case"DegreeCanceledTemporarily":return"Diploma revogado temporariamente";case"AcademicTranscriptCancelledTemporarily":return"Hist\xF3rico escolar revogado temporariamente";case"InstituteCreated":return"Institui\xE7\xE3o criada";case"InstituteUpdated":return"Institui\xE7\xE3o atualizada";case"InstituteCertificateUpdated":return"Certificado da institui\xE7\xE3o atualizado";case"InstituteIntegrationsUpdated":return"Integra\xE7\xF5es da institui\xE7\xE3o atualizada";case"InstituteCancellationListGeneration":return"Gera\xE7\xE3o da lista de diplomas anulados";case"InstituteInspectionFileGeneration":return"Gera\xE7\xE3o do arquivo de fiscaliza\xE7\xE3o";case"CurriculumCreated":return"Curr\xEDculo escolar criado";case"CurriculumUpdated":return"Curr\xEDculo escolar atualizado";case"CurriculumCancelled":return"Curr\xEDculo escolar cancelado";case"CurriculumActivated":return"Curr\xEDculo escolar ativado";case"AcademicTranscriptCreationError":return"Erro ao gerar o hist\xF3rico escolar";case"VisualRepresentationUpdated":return"Representa\xE7\xE3o visual do documento atualizada";case"DegreeCreateRegistrationBooks":return"Criado livro de registro do diploma";case"EmissionAcceptedByRegistry":return"Diploma aceito pela Registradora";case"RestampCreated":return"Renotariza\xE7\xE3o criada";case"RestampUpdated":return"Renotariza\xE7\xE3o atualizada";case"RestampApplied":return"Renotariza\xE7\xE3o aplicada";case"RestampApplyingError":return"Ocorreu um erro ao realizar a renotariza\xE7\xE3o";case"RestampCreationError":return"Erro ao criar a renotariza\xE7\xE3o";case"InstituteSupportingDocSignatureSettingUpdated":return"Configura\xE7\xE3o da assinatura dos documentos auxiliares atualizada";default:return null}}function m1e(t){switch(t){case"Owner":return"Propriet\xE1rio";case"Contributor":return"Contribuidor";case"Reader":return"Leitor";case"Admin":return"Administrador";case"Manager":return"Gerente";case"Worker":return"Operador";case"Monitor":return"Monitor";case"RegistryIntegration":return"Integra\xE7\xE3o de Registro";case"IssuerIntegration":return"Integra\xE7\xE3o de Emiss\xE3o";default:return null}}function p1e(t){switch(t){case"Sub":return"\xC1rea da Organiza\xE7\xE3o";case"Subscriptions":return"Organiza\xE7\xF5es";case"SubscriptionCreate":return"Criar Organiza\xE7\xE3o";case"SubscriptionDetail":return"Detalhes da Organiza\xE7\xE3o";case"SubscriptionEdit":return"Editar Organiza\xE7\xE3o";case"PartnerCreate":return"Criar Parceria";default:return null}}var MJ=(()=>{class t{constructor(e,i){this.matIconRegistry=e,this.domSanitizer=i}register(e){this.matIconRegistry.addSvgIcon(e,this.domSanitizer.bypassSecurityTrustResourceUrl(`../../assets/img/icons/${e}.svg`))}init(){this.register("certificate"),this.register("sign")}static{this.\u0275fac=function(i){return new(i||t)(ae(Aq),ae(Kl))}}static{this.\u0275prov=Ce({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();Uoe(m_e);var h1e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gt({type:t,bootstrap:[tve]})}static{this.\u0275inj=ft({providers:[{provide:gp,useFactory:e=>()=>e.init(),deps:[zo],multi:!0},{provide:gp,useFactory:e=>()=>e.init(),deps:[xB],multi:!0},{provide:gp,useFactory:e=>()=>e.init(),deps:[MJ],multi:!0},{provide:Dh,useValue:"pt"},{provide:Xf,useValue:c1e},Xk,C2,yg,rn,dI,MJ,NI,q5()],imports:[Kae,aae,_T,hN.forRoot(),c_e.forRoot({listOfRoles:nve,listOfRootRoles:rve,enableLanguageRoute:!1,requiredIdClaims:l1e,entityNavigator:Bb,getEntityIcon:d1e,getBreadcrumbDisplayName:p1e,getEventTypeName:u1e,getRoleName:m1e}),s1e,Av,N_e,Zve,O_e,Xk,C2,ube,Tv,LL,Xbe,xve,B_e,X_e,K2,Z_e,dB,Ju]})}}return t})();function BDt(){return document.getElementsByTagName("base")[0].href}var jDt=[{provide:"BASE_URL",useFactory:BDt,deps:[]}];DM.production&&void 0;pae(jDt).bootstrapModule(h1e).then(t=>{if(!DM.production){let e=t.injector.get(Wc).components[0];gae(e)}}).catch(t=>console.log(t));export{BDt as getBaseUrl};